mirror of https://github.com/vernonkeenan/lib
parent
68e1c898b4
commit
d90985627d
12
Makefile
12
Makefile
|
@ -32,7 +32,7 @@ swagger:
|
|||
# generate auth client
|
||||
#
|
||||
mkdir api/auth
|
||||
swagger-new generate client \
|
||||
swagger generate client \
|
||||
--log-output=./swagger/logs/generate-auth-client.log \
|
||||
--copyright-file=./build/COPYRIGHT \
|
||||
--name=auth \
|
||||
|
@ -51,7 +51,7 @@ swagger:
|
|||
# generate crm client
|
||||
#
|
||||
mkdir api/crm
|
||||
swagger-new generate client \
|
||||
swagger generate client \
|
||||
--log-output=./swagger/logs/generate-crm-client.log \
|
||||
--copyright-file=./build/COPYRIGHT \
|
||||
--name=crm \
|
||||
|
@ -70,7 +70,7 @@ swagger:
|
|||
# generate devops client
|
||||
#
|
||||
mkdir api/devops
|
||||
swagger-new generate client \
|
||||
swagger generate client \
|
||||
--log-output=./swagger/logs/generate-devops-client.log \
|
||||
--copyright-file=./build/COPYRIGHT \
|
||||
--name=devops \
|
||||
|
@ -89,7 +89,7 @@ swagger:
|
|||
# generate stash client
|
||||
#
|
||||
mkdir api/stash
|
||||
swagger-new generate client \
|
||||
swagger generate client \
|
||||
--log-output=./swagger/logs/generate-stash-client.log \
|
||||
--copyright-file=./build/COPYRIGHT \
|
||||
--name=stash \
|
||||
|
@ -108,7 +108,7 @@ swagger:
|
|||
# generate sfgate client
|
||||
#
|
||||
mkdir api/sfgate
|
||||
swagger-new generate client \
|
||||
swagger generate client \
|
||||
--log-output=./swagger/logs/generate-sfgate-client.log \
|
||||
--copyright-file=./build/COPYRIGHT \
|
||||
--name=sfgate \
|
||||
|
@ -127,7 +127,7 @@ swagger:
|
|||
# generate research client
|
||||
#
|
||||
mkdir api/research
|
||||
swagger-new generate client \
|
||||
swagger generate client \
|
||||
--log-output=./swagger/logs/generate-research-client.log \
|
||||
--copyright-file=./build/COPYRIGHT \
|
||||
--name=research \
|
||||
|
|
|
@ -56,10 +56,12 @@ func NewGetUsersParamsWithHTTPClient(client *http.Client) *GetUsersParams {
|
|||
}
|
||||
}
|
||||
|
||||
/* GetUsersParams contains all the parameters to send to the API endpoint
|
||||
for the get users operation.
|
||||
/*
|
||||
GetUsersParams contains all the parameters to send to the API endpoint
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
for the get users operation.
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
*/
|
||||
type GetUsersParams struct {
|
||||
|
||||
|
|
|
@ -73,7 +73,8 @@ func NewGetUsersOK() *GetUsersOK {
|
|||
return &GetUsersOK{}
|
||||
}
|
||||
|
||||
/* GetUsersOK describes a response with status code 200, with default header values.
|
||||
/*
|
||||
GetUsersOK describes a response with status code 200, with default header values.
|
||||
|
||||
Taxnexus Response with User objects
|
||||
*/
|
||||
|
@ -81,9 +82,44 @@ type GetUsersOK struct {
|
|||
Payload *auth_models.UserResponse
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this get users o k response has a 2xx status code
|
||||
func (o *GetUsersOK) IsSuccess() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this get users o k response has a 3xx status code
|
||||
func (o *GetUsersOK) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this get users o k response has a 4xx status code
|
||||
func (o *GetUsersOK) IsClientError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsServerError returns true when this get users o k response has a 5xx status code
|
||||
func (o *GetUsersOK) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this get users o k response a status code equal to that given
|
||||
func (o *GetUsersOK) IsCode(code int) bool {
|
||||
return code == 200
|
||||
}
|
||||
|
||||
// Code gets the status code for the get users o k response
|
||||
func (o *GetUsersOK) Code() int {
|
||||
return 200
|
||||
}
|
||||
|
||||
func (o *GetUsersOK) Error() string {
|
||||
return fmt.Sprintf("[GET /users][%d] getUsersOK %+v", 200, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetUsersOK) String() string {
|
||||
return fmt.Sprintf("[GET /users][%d] getUsersOK %+v", 200, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetUsersOK) GetPayload() *auth_models.UserResponse {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -105,7 +141,8 @@ func NewGetUsersUnauthorized() *GetUsersUnauthorized {
|
|||
return &GetUsersUnauthorized{}
|
||||
}
|
||||
|
||||
/* GetUsersUnauthorized describes a response with status code 401, with default header values.
|
||||
/*
|
||||
GetUsersUnauthorized describes a response with status code 401, with default header values.
|
||||
|
||||
Access Unauthorized, invalid API-KEY was used
|
||||
*/
|
||||
|
@ -113,9 +150,44 @@ type GetUsersUnauthorized struct {
|
|||
Payload *auth_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this get users unauthorized response has a 2xx status code
|
||||
func (o *GetUsersUnauthorized) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this get users unauthorized response has a 3xx status code
|
||||
func (o *GetUsersUnauthorized) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this get users unauthorized response has a 4xx status code
|
||||
func (o *GetUsersUnauthorized) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this get users unauthorized response has a 5xx status code
|
||||
func (o *GetUsersUnauthorized) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this get users unauthorized response a status code equal to that given
|
||||
func (o *GetUsersUnauthorized) IsCode(code int) bool {
|
||||
return code == 401
|
||||
}
|
||||
|
||||
// Code gets the status code for the get users unauthorized response
|
||||
func (o *GetUsersUnauthorized) Code() int {
|
||||
return 401
|
||||
}
|
||||
|
||||
func (o *GetUsersUnauthorized) Error() string {
|
||||
return fmt.Sprintf("[GET /users][%d] getUsersUnauthorized %+v", 401, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetUsersUnauthorized) String() string {
|
||||
return fmt.Sprintf("[GET /users][%d] getUsersUnauthorized %+v", 401, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetUsersUnauthorized) GetPayload() *auth_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -137,7 +209,8 @@ func NewGetUsersForbidden() *GetUsersForbidden {
|
|||
return &GetUsersForbidden{}
|
||||
}
|
||||
|
||||
/* GetUsersForbidden describes a response with status code 403, with default header values.
|
||||
/*
|
||||
GetUsersForbidden describes a response with status code 403, with default header values.
|
||||
|
||||
Access forbidden, account lacks access
|
||||
*/
|
||||
|
@ -145,9 +218,44 @@ type GetUsersForbidden struct {
|
|||
Payload *auth_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this get users forbidden response has a 2xx status code
|
||||
func (o *GetUsersForbidden) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this get users forbidden response has a 3xx status code
|
||||
func (o *GetUsersForbidden) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this get users forbidden response has a 4xx status code
|
||||
func (o *GetUsersForbidden) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this get users forbidden response has a 5xx status code
|
||||
func (o *GetUsersForbidden) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this get users forbidden response a status code equal to that given
|
||||
func (o *GetUsersForbidden) IsCode(code int) bool {
|
||||
return code == 403
|
||||
}
|
||||
|
||||
// Code gets the status code for the get users forbidden response
|
||||
func (o *GetUsersForbidden) Code() int {
|
||||
return 403
|
||||
}
|
||||
|
||||
func (o *GetUsersForbidden) Error() string {
|
||||
return fmt.Sprintf("[GET /users][%d] getUsersForbidden %+v", 403, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetUsersForbidden) String() string {
|
||||
return fmt.Sprintf("[GET /users][%d] getUsersForbidden %+v", 403, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetUsersForbidden) GetPayload() *auth_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -169,7 +277,8 @@ func NewGetUsersNotFound() *GetUsersNotFound {
|
|||
return &GetUsersNotFound{}
|
||||
}
|
||||
|
||||
/* GetUsersNotFound describes a response with status code 404, with default header values.
|
||||
/*
|
||||
GetUsersNotFound describes a response with status code 404, with default header values.
|
||||
|
||||
Resource was not found
|
||||
*/
|
||||
|
@ -177,9 +286,44 @@ type GetUsersNotFound struct {
|
|||
Payload *auth_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this get users not found response has a 2xx status code
|
||||
func (o *GetUsersNotFound) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this get users not found response has a 3xx status code
|
||||
func (o *GetUsersNotFound) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this get users not found response has a 4xx status code
|
||||
func (o *GetUsersNotFound) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this get users not found response has a 5xx status code
|
||||
func (o *GetUsersNotFound) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this get users not found response a status code equal to that given
|
||||
func (o *GetUsersNotFound) IsCode(code int) bool {
|
||||
return code == 404
|
||||
}
|
||||
|
||||
// Code gets the status code for the get users not found response
|
||||
func (o *GetUsersNotFound) Code() int {
|
||||
return 404
|
||||
}
|
||||
|
||||
func (o *GetUsersNotFound) Error() string {
|
||||
return fmt.Sprintf("[GET /users][%d] getUsersNotFound %+v", 404, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetUsersNotFound) String() string {
|
||||
return fmt.Sprintf("[GET /users][%d] getUsersNotFound %+v", 404, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetUsersNotFound) GetPayload() *auth_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -201,7 +345,8 @@ func NewGetUsersUnprocessableEntity() *GetUsersUnprocessableEntity {
|
|||
return &GetUsersUnprocessableEntity{}
|
||||
}
|
||||
|
||||
/* GetUsersUnprocessableEntity describes a response with status code 422, with default header values.
|
||||
/*
|
||||
GetUsersUnprocessableEntity describes a response with status code 422, with default header values.
|
||||
|
||||
Unprocessable Entity, likely a bad parameter
|
||||
*/
|
||||
|
@ -209,9 +354,44 @@ type GetUsersUnprocessableEntity struct {
|
|||
Payload *auth_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this get users unprocessable entity response has a 2xx status code
|
||||
func (o *GetUsersUnprocessableEntity) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this get users unprocessable entity response has a 3xx status code
|
||||
func (o *GetUsersUnprocessableEntity) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this get users unprocessable entity response has a 4xx status code
|
||||
func (o *GetUsersUnprocessableEntity) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this get users unprocessable entity response has a 5xx status code
|
||||
func (o *GetUsersUnprocessableEntity) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this get users unprocessable entity response a status code equal to that given
|
||||
func (o *GetUsersUnprocessableEntity) IsCode(code int) bool {
|
||||
return code == 422
|
||||
}
|
||||
|
||||
// Code gets the status code for the get users unprocessable entity response
|
||||
func (o *GetUsersUnprocessableEntity) Code() int {
|
||||
return 422
|
||||
}
|
||||
|
||||
func (o *GetUsersUnprocessableEntity) Error() string {
|
||||
return fmt.Sprintf("[GET /users][%d] getUsersUnprocessableEntity %+v", 422, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetUsersUnprocessableEntity) String() string {
|
||||
return fmt.Sprintf("[GET /users][%d] getUsersUnprocessableEntity %+v", 422, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetUsersUnprocessableEntity) GetPayload() *auth_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -233,7 +413,8 @@ func NewGetUsersInternalServerError() *GetUsersInternalServerError {
|
|||
return &GetUsersInternalServerError{}
|
||||
}
|
||||
|
||||
/* GetUsersInternalServerError describes a response with status code 500, with default header values.
|
||||
/*
|
||||
GetUsersInternalServerError describes a response with status code 500, with default header values.
|
||||
|
||||
Server Internal Error
|
||||
*/
|
||||
|
@ -241,9 +422,44 @@ type GetUsersInternalServerError struct {
|
|||
Payload *auth_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this get users internal server error response has a 2xx status code
|
||||
func (o *GetUsersInternalServerError) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this get users internal server error response has a 3xx status code
|
||||
func (o *GetUsersInternalServerError) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this get users internal server error response has a 4xx status code
|
||||
func (o *GetUsersInternalServerError) IsClientError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsServerError returns true when this get users internal server error response has a 5xx status code
|
||||
func (o *GetUsersInternalServerError) IsServerError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsCode returns true when this get users internal server error response a status code equal to that given
|
||||
func (o *GetUsersInternalServerError) IsCode(code int) bool {
|
||||
return code == 500
|
||||
}
|
||||
|
||||
// Code gets the status code for the get users internal server error response
|
||||
func (o *GetUsersInternalServerError) Code() int {
|
||||
return 500
|
||||
}
|
||||
|
||||
func (o *GetUsersInternalServerError) Error() string {
|
||||
return fmt.Sprintf("[GET /users][%d] getUsersInternalServerError %+v", 500, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetUsersInternalServerError) String() string {
|
||||
return fmt.Sprintf("[GET /users][%d] getUsersInternalServerError %+v", 500, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetUsersInternalServerError) GetPayload() *auth_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
|
|
@ -40,9 +40,9 @@ type ClientService interface {
|
|||
}
|
||||
|
||||
/*
|
||||
GetUsers checks API key
|
||||
GetUsers checks API key
|
||||
|
||||
Checks for a valid API key, and returns full user record
|
||||
Checks for a valid API key, and returns full user record
|
||||
*/
|
||||
func (a *Client) GetUsers(params *GetUsersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetUsersOK, error) {
|
||||
// TODO: Validate the params before sending
|
||||
|
|
|
@ -29,25 +29,27 @@ type Client struct {
|
|||
formats strfmt.Registry
|
||||
}
|
||||
|
||||
// ClientOption is the option for Client methods
|
||||
type ClientOption func(*runtime.ClientOperation)
|
||||
|
||||
// ClientService is the interface for Client methods
|
||||
type ClientService interface {
|
||||
PostCredentials(params *PostCredentialsParams) (*PostCredentialsOK, error)
|
||||
PostCredentials(params *PostCredentialsParams, opts ...ClientOption) (*PostCredentialsOK, error)
|
||||
|
||||
SetTransport(transport runtime.ClientTransport)
|
||||
}
|
||||
|
||||
/*
|
||||
PostCredentials posts to oauth token
|
||||
PostCredentials posts to oauth token
|
||||
|
||||
Get credential token
|
||||
Get credential token
|
||||
*/
|
||||
func (a *Client) PostCredentials(params *PostCredentialsParams) (*PostCredentialsOK, error) {
|
||||
func (a *Client) PostCredentials(params *PostCredentialsParams, opts ...ClientOption) (*PostCredentialsOK, error) {
|
||||
// TODO: Validate the params before sending
|
||||
if params == nil {
|
||||
params = NewPostCredentialsParams()
|
||||
}
|
||||
|
||||
result, err := a.transport.Submit(&runtime.ClientOperation{
|
||||
op := &runtime.ClientOperation{
|
||||
ID: "postCredentials",
|
||||
Method: "POST",
|
||||
PathPattern: "/oauth/token",
|
||||
|
@ -58,7 +60,12 @@ func (a *Client) PostCredentials(params *PostCredentialsParams) (*PostCredential
|
|||
Reader: &PostCredentialsReader{formats: a.formats},
|
||||
Context: params.Context,
|
||||
Client: params.HTTPClient,
|
||||
})
|
||||
}
|
||||
for _, opt := range opts {
|
||||
opt(op)
|
||||
}
|
||||
|
||||
result, err := a.transport.Submit(op)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
|
|
@ -22,53 +22,54 @@ import (
|
|||
"code.tnxs.net/vernonkeenan/lib/api/auth0/auth0_models"
|
||||
)
|
||||
|
||||
// NewPostCredentialsParams creates a new PostCredentialsParams object
|
||||
// with the default values initialized.
|
||||
// NewPostCredentialsParams creates a new PostCredentialsParams 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 NewPostCredentialsParams() *PostCredentialsParams {
|
||||
var ()
|
||||
return &PostCredentialsParams{
|
||||
|
||||
timeout: cr.DefaultTimeout,
|
||||
}
|
||||
}
|
||||
|
||||
// NewPostCredentialsParamsWithTimeout creates a new PostCredentialsParams object
|
||||
// with the default values initialized, and the ability to set a timeout on a request
|
||||
// with the ability to set a timeout on a request.
|
||||
func NewPostCredentialsParamsWithTimeout(timeout time.Duration) *PostCredentialsParams {
|
||||
var ()
|
||||
return &PostCredentialsParams{
|
||||
|
||||
timeout: timeout,
|
||||
}
|
||||
}
|
||||
|
||||
// NewPostCredentialsParamsWithContext creates a new PostCredentialsParams object
|
||||
// with the default values initialized, and the ability to set a context for a request
|
||||
// with the ability to set a context for a request.
|
||||
func NewPostCredentialsParamsWithContext(ctx context.Context) *PostCredentialsParams {
|
||||
var ()
|
||||
return &PostCredentialsParams{
|
||||
|
||||
Context: ctx,
|
||||
}
|
||||
}
|
||||
|
||||
// NewPostCredentialsParamsWithHTTPClient creates a new PostCredentialsParams object
|
||||
// with the default values initialized, and the ability to set a custom HTTPClient for a request
|
||||
// with the ability to set a custom HTTPClient for a request.
|
||||
func NewPostCredentialsParamsWithHTTPClient(client *http.Client) *PostCredentialsParams {
|
||||
var ()
|
||||
return &PostCredentialsParams{
|
||||
HTTPClient: client,
|
||||
}
|
||||
}
|
||||
|
||||
/*PostCredentialsParams contains all the parameters to send to the API endpoint
|
||||
for the post credentials operation typically these are written to a http.Request
|
||||
/*
|
||||
PostCredentialsParams contains all the parameters to send to the API endpoint
|
||||
|
||||
for the post credentials operation.
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
*/
|
||||
type PostCredentialsParams struct {
|
||||
|
||||
/*CredentialsRequest
|
||||
Get Authentation Token
|
||||
/* CredentialsRequest.
|
||||
|
||||
Get Authentation Token
|
||||
*/
|
||||
CredentialsRequest *auth0_models.CredentialsRequest
|
||||
|
||||
|
@ -77,6 +78,21 @@ type PostCredentialsParams struct {
|
|||
HTTPClient *http.Client
|
||||
}
|
||||
|
||||
// WithDefaults hydrates default values in the post credentials params (not the query body).
|
||||
//
|
||||
// All values with no default are reset to their zero value.
|
||||
func (o *PostCredentialsParams) WithDefaults() *PostCredentialsParams {
|
||||
o.SetDefaults()
|
||||
return o
|
||||
}
|
||||
|
||||
// SetDefaults hydrates default values in the post credentials params (not the query body).
|
||||
//
|
||||
// All values with no default are reset to their zero value.
|
||||
func (o *PostCredentialsParams) SetDefaults() {
|
||||
// no default values defined for this parameter
|
||||
}
|
||||
|
||||
// WithTimeout adds the timeout to the post credentials params
|
||||
func (o *PostCredentialsParams) WithTimeout(timeout time.Duration) *PostCredentialsParams {
|
||||
o.SetTimeout(timeout)
|
||||
|
@ -128,7 +144,6 @@ func (o *PostCredentialsParams) WriteToRequest(r runtime.ClientRequest, reg strf
|
|||
return err
|
||||
}
|
||||
var res []error
|
||||
|
||||
if o.CredentialsRequest != nil {
|
||||
if err := r.SetBodyParam(o.CredentialsRequest); err != nil {
|
||||
return err
|
||||
|
|
|
@ -63,9 +63,8 @@ func (o *PostCredentialsReader) ReadResponse(response runtime.ClientResponse, co
|
|||
return nil, err
|
||||
}
|
||||
return nil, result
|
||||
|
||||
default:
|
||||
return nil, runtime.NewAPIError("unknown error", response, response.Code())
|
||||
return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code())
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -74,7 +73,8 @@ func NewPostCredentialsOK() *PostCredentialsOK {
|
|||
return &PostCredentialsOK{}
|
||||
}
|
||||
|
||||
/*PostCredentialsOK handles this case with default header values.
|
||||
/*
|
||||
PostCredentialsOK describes a response with status code 200, with default header values.
|
||||
|
||||
Credentials response from Auth0
|
||||
*/
|
||||
|
@ -82,10 +82,44 @@ type PostCredentialsOK struct {
|
|||
Payload *auth0_models.CredentialsResponse
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this post credentials o k response has a 2xx status code
|
||||
func (o *PostCredentialsOK) IsSuccess() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this post credentials o k response has a 3xx status code
|
||||
func (o *PostCredentialsOK) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this post credentials o k response has a 4xx status code
|
||||
func (o *PostCredentialsOK) IsClientError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsServerError returns true when this post credentials o k response has a 5xx status code
|
||||
func (o *PostCredentialsOK) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this post credentials o k response a status code equal to that given
|
||||
func (o *PostCredentialsOK) IsCode(code int) bool {
|
||||
return code == 200
|
||||
}
|
||||
|
||||
// Code gets the status code for the post credentials o k response
|
||||
func (o *PostCredentialsOK) Code() int {
|
||||
return 200
|
||||
}
|
||||
|
||||
func (o *PostCredentialsOK) Error() string {
|
||||
return fmt.Sprintf("[POST /oauth/token][%d] postCredentialsOK %+v", 200, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PostCredentialsOK) String() string {
|
||||
return fmt.Sprintf("[POST /oauth/token][%d] postCredentialsOK %+v", 200, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PostCredentialsOK) GetPayload() *auth0_models.CredentialsResponse {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -107,7 +141,8 @@ func NewPostCredentialsUnauthorized() *PostCredentialsUnauthorized {
|
|||
return &PostCredentialsUnauthorized{}
|
||||
}
|
||||
|
||||
/*PostCredentialsUnauthorized handles this case with default header values.
|
||||
/*
|
||||
PostCredentialsUnauthorized describes a response with status code 401, with default header values.
|
||||
|
||||
Access Unauthorized, invalid API-KEY was used
|
||||
*/
|
||||
|
@ -115,10 +150,44 @@ type PostCredentialsUnauthorized struct {
|
|||
Payload *auth0_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this post credentials unauthorized response has a 2xx status code
|
||||
func (o *PostCredentialsUnauthorized) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this post credentials unauthorized response has a 3xx status code
|
||||
func (o *PostCredentialsUnauthorized) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this post credentials unauthorized response has a 4xx status code
|
||||
func (o *PostCredentialsUnauthorized) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this post credentials unauthorized response has a 5xx status code
|
||||
func (o *PostCredentialsUnauthorized) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this post credentials unauthorized response a status code equal to that given
|
||||
func (o *PostCredentialsUnauthorized) IsCode(code int) bool {
|
||||
return code == 401
|
||||
}
|
||||
|
||||
// Code gets the status code for the post credentials unauthorized response
|
||||
func (o *PostCredentialsUnauthorized) Code() int {
|
||||
return 401
|
||||
}
|
||||
|
||||
func (o *PostCredentialsUnauthorized) Error() string {
|
||||
return fmt.Sprintf("[POST /oauth/token][%d] postCredentialsUnauthorized %+v", 401, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PostCredentialsUnauthorized) String() string {
|
||||
return fmt.Sprintf("[POST /oauth/token][%d] postCredentialsUnauthorized %+v", 401, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PostCredentialsUnauthorized) GetPayload() *auth0_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -140,7 +209,8 @@ func NewPostCredentialsForbidden() *PostCredentialsForbidden {
|
|||
return &PostCredentialsForbidden{}
|
||||
}
|
||||
|
||||
/*PostCredentialsForbidden handles this case with default header values.
|
||||
/*
|
||||
PostCredentialsForbidden describes a response with status code 403, with default header values.
|
||||
|
||||
Access forbidden, account lacks access
|
||||
*/
|
||||
|
@ -148,10 +218,44 @@ type PostCredentialsForbidden struct {
|
|||
Payload *auth0_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this post credentials forbidden response has a 2xx status code
|
||||
func (o *PostCredentialsForbidden) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this post credentials forbidden response has a 3xx status code
|
||||
func (o *PostCredentialsForbidden) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this post credentials forbidden response has a 4xx status code
|
||||
func (o *PostCredentialsForbidden) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this post credentials forbidden response has a 5xx status code
|
||||
func (o *PostCredentialsForbidden) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this post credentials forbidden response a status code equal to that given
|
||||
func (o *PostCredentialsForbidden) IsCode(code int) bool {
|
||||
return code == 403
|
||||
}
|
||||
|
||||
// Code gets the status code for the post credentials forbidden response
|
||||
func (o *PostCredentialsForbidden) Code() int {
|
||||
return 403
|
||||
}
|
||||
|
||||
func (o *PostCredentialsForbidden) Error() string {
|
||||
return fmt.Sprintf("[POST /oauth/token][%d] postCredentialsForbidden %+v", 403, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PostCredentialsForbidden) String() string {
|
||||
return fmt.Sprintf("[POST /oauth/token][%d] postCredentialsForbidden %+v", 403, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PostCredentialsForbidden) GetPayload() *auth0_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -173,7 +277,8 @@ func NewPostCredentialsNotFound() *PostCredentialsNotFound {
|
|||
return &PostCredentialsNotFound{}
|
||||
}
|
||||
|
||||
/*PostCredentialsNotFound handles this case with default header values.
|
||||
/*
|
||||
PostCredentialsNotFound describes a response with status code 404, with default header values.
|
||||
|
||||
Resource was not found
|
||||
*/
|
||||
|
@ -181,10 +286,44 @@ type PostCredentialsNotFound struct {
|
|||
Payload *auth0_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this post credentials not found response has a 2xx status code
|
||||
func (o *PostCredentialsNotFound) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this post credentials not found response has a 3xx status code
|
||||
func (o *PostCredentialsNotFound) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this post credentials not found response has a 4xx status code
|
||||
func (o *PostCredentialsNotFound) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this post credentials not found response has a 5xx status code
|
||||
func (o *PostCredentialsNotFound) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this post credentials not found response a status code equal to that given
|
||||
func (o *PostCredentialsNotFound) IsCode(code int) bool {
|
||||
return code == 404
|
||||
}
|
||||
|
||||
// Code gets the status code for the post credentials not found response
|
||||
func (o *PostCredentialsNotFound) Code() int {
|
||||
return 404
|
||||
}
|
||||
|
||||
func (o *PostCredentialsNotFound) Error() string {
|
||||
return fmt.Sprintf("[POST /oauth/token][%d] postCredentialsNotFound %+v", 404, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PostCredentialsNotFound) String() string {
|
||||
return fmt.Sprintf("[POST /oauth/token][%d] postCredentialsNotFound %+v", 404, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PostCredentialsNotFound) GetPayload() *auth0_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -206,7 +345,8 @@ func NewPostCredentialsUnprocessableEntity() *PostCredentialsUnprocessableEntity
|
|||
return &PostCredentialsUnprocessableEntity{}
|
||||
}
|
||||
|
||||
/*PostCredentialsUnprocessableEntity handles this case with default header values.
|
||||
/*
|
||||
PostCredentialsUnprocessableEntity describes a response with status code 422, with default header values.
|
||||
|
||||
Unprocessable Entity, likely a bad parameter
|
||||
*/
|
||||
|
@ -214,10 +354,44 @@ type PostCredentialsUnprocessableEntity struct {
|
|||
Payload *auth0_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this post credentials unprocessable entity response has a 2xx status code
|
||||
func (o *PostCredentialsUnprocessableEntity) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this post credentials unprocessable entity response has a 3xx status code
|
||||
func (o *PostCredentialsUnprocessableEntity) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this post credentials unprocessable entity response has a 4xx status code
|
||||
func (o *PostCredentialsUnprocessableEntity) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this post credentials unprocessable entity response has a 5xx status code
|
||||
func (o *PostCredentialsUnprocessableEntity) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this post credentials unprocessable entity response a status code equal to that given
|
||||
func (o *PostCredentialsUnprocessableEntity) IsCode(code int) bool {
|
||||
return code == 422
|
||||
}
|
||||
|
||||
// Code gets the status code for the post credentials unprocessable entity response
|
||||
func (o *PostCredentialsUnprocessableEntity) Code() int {
|
||||
return 422
|
||||
}
|
||||
|
||||
func (o *PostCredentialsUnprocessableEntity) Error() string {
|
||||
return fmt.Sprintf("[POST /oauth/token][%d] postCredentialsUnprocessableEntity %+v", 422, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PostCredentialsUnprocessableEntity) String() string {
|
||||
return fmt.Sprintf("[POST /oauth/token][%d] postCredentialsUnprocessableEntity %+v", 422, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PostCredentialsUnprocessableEntity) GetPayload() *auth0_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -239,7 +413,8 @@ func NewPostCredentialsInternalServerError() *PostCredentialsInternalServerError
|
|||
return &PostCredentialsInternalServerError{}
|
||||
}
|
||||
|
||||
/*PostCredentialsInternalServerError handles this case with default header values.
|
||||
/*
|
||||
PostCredentialsInternalServerError describes a response with status code 500, with default header values.
|
||||
|
||||
Server Internal Error
|
||||
*/
|
||||
|
@ -247,10 +422,44 @@ type PostCredentialsInternalServerError struct {
|
|||
Payload *auth0_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this post credentials internal server error response has a 2xx status code
|
||||
func (o *PostCredentialsInternalServerError) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this post credentials internal server error response has a 3xx status code
|
||||
func (o *PostCredentialsInternalServerError) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this post credentials internal server error response has a 4xx status code
|
||||
func (o *PostCredentialsInternalServerError) IsClientError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsServerError returns true when this post credentials internal server error response has a 5xx status code
|
||||
func (o *PostCredentialsInternalServerError) IsServerError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsCode returns true when this post credentials internal server error response a status code equal to that given
|
||||
func (o *PostCredentialsInternalServerError) IsCode(code int) bool {
|
||||
return code == 500
|
||||
}
|
||||
|
||||
// Code gets the status code for the post credentials internal server error response
|
||||
func (o *PostCredentialsInternalServerError) Code() int {
|
||||
return 500
|
||||
}
|
||||
|
||||
func (o *PostCredentialsInternalServerError) Error() string {
|
||||
return fmt.Sprintf("[POST /oauth/token][%d] postCredentialsInternalServerError %+v", 500, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PostCredentialsInternalServerError) String() string {
|
||||
return fmt.Sprintf("[POST /oauth/token][%d] postCredentialsInternalServerError %+v", 500, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PostCredentialsInternalServerError) GetPayload() *auth0_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
|
|
@ -20,51 +20,52 @@ import (
|
|||
"github.com/go-openapi/strfmt"
|
||||
)
|
||||
|
||||
// NewGetRolesParams creates a new GetRolesParams object
|
||||
// with the default values initialized.
|
||||
// NewGetRolesParams creates a new GetRolesParams 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 NewGetRolesParams() *GetRolesParams {
|
||||
var ()
|
||||
return &GetRolesParams{
|
||||
|
||||
timeout: cr.DefaultTimeout,
|
||||
}
|
||||
}
|
||||
|
||||
// NewGetRolesParamsWithTimeout creates a new GetRolesParams object
|
||||
// with the default values initialized, and the ability to set a timeout on a request
|
||||
// with the ability to set a timeout on a request.
|
||||
func NewGetRolesParamsWithTimeout(timeout time.Duration) *GetRolesParams {
|
||||
var ()
|
||||
return &GetRolesParams{
|
||||
|
||||
timeout: timeout,
|
||||
}
|
||||
}
|
||||
|
||||
// NewGetRolesParamsWithContext creates a new GetRolesParams object
|
||||
// with the default values initialized, and the ability to set a context for a request
|
||||
// with the ability to set a context for a request.
|
||||
func NewGetRolesParamsWithContext(ctx context.Context) *GetRolesParams {
|
||||
var ()
|
||||
return &GetRolesParams{
|
||||
|
||||
Context: ctx,
|
||||
}
|
||||
}
|
||||
|
||||
// NewGetRolesParamsWithHTTPClient creates a new GetRolesParams object
|
||||
// with the default values initialized, and the ability to set a custom HTTPClient for a request
|
||||
// with the ability to set a custom HTTPClient for a request.
|
||||
func NewGetRolesParamsWithHTTPClient(client *http.Client) *GetRolesParams {
|
||||
var ()
|
||||
return &GetRolesParams{
|
||||
HTTPClient: client,
|
||||
}
|
||||
}
|
||||
|
||||
/*GetRolesParams contains all the parameters to send to the API endpoint
|
||||
for the get roles operation typically these are written to a http.Request
|
||||
/*
|
||||
GetRolesParams contains all the parameters to send to the API endpoint
|
||||
|
||||
for the get roles operation.
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
*/
|
||||
type GetRolesParams struct {
|
||||
|
||||
/*Authorization*/
|
||||
// Authorization.
|
||||
Authorization string
|
||||
|
||||
timeout time.Duration
|
||||
|
@ -72,6 +73,21 @@ type GetRolesParams struct {
|
|||
HTTPClient *http.Client
|
||||
}
|
||||
|
||||
// WithDefaults hydrates default values in the get roles params (not the query body).
|
||||
//
|
||||
// All values with no default are reset to their zero value.
|
||||
func (o *GetRolesParams) WithDefaults() *GetRolesParams {
|
||||
o.SetDefaults()
|
||||
return o
|
||||
}
|
||||
|
||||
// SetDefaults hydrates default values in the get roles params (not the query body).
|
||||
//
|
||||
// All values with no default are reset to their zero value.
|
||||
func (o *GetRolesParams) SetDefaults() {
|
||||
// no default values defined for this parameter
|
||||
}
|
||||
|
||||
// WithTimeout adds the timeout to the get roles params
|
||||
func (o *GetRolesParams) WithTimeout(timeout time.Duration) *GetRolesParams {
|
||||
o.SetTimeout(timeout)
|
||||
|
|
|
@ -63,9 +63,8 @@ func (o *GetRolesReader) ReadResponse(response runtime.ClientResponse, consumer
|
|||
return nil, err
|
||||
}
|
||||
return nil, result
|
||||
|
||||
default:
|
||||
return nil, runtime.NewAPIError("unknown error", response, response.Code())
|
||||
return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code())
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -74,7 +73,8 @@ func NewGetRolesOK() *GetRolesOK {
|
|||
return &GetRolesOK{}
|
||||
}
|
||||
|
||||
/*GetRolesOK handles this case with default header values.
|
||||
/*
|
||||
GetRolesOK describes a response with status code 200, with default header values.
|
||||
|
||||
Taxnexus Response with User objects
|
||||
*/
|
||||
|
@ -82,10 +82,44 @@ type GetRolesOK struct {
|
|||
Payload []*auth0_models.User
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this get roles o k response has a 2xx status code
|
||||
func (o *GetRolesOK) IsSuccess() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this get roles o k response has a 3xx status code
|
||||
func (o *GetRolesOK) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this get roles o k response has a 4xx status code
|
||||
func (o *GetRolesOK) IsClientError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsServerError returns true when this get roles o k response has a 5xx status code
|
||||
func (o *GetRolesOK) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this get roles o k response a status code equal to that given
|
||||
func (o *GetRolesOK) IsCode(code int) bool {
|
||||
return code == 200
|
||||
}
|
||||
|
||||
// Code gets the status code for the get roles o k response
|
||||
func (o *GetRolesOK) Code() int {
|
||||
return 200
|
||||
}
|
||||
|
||||
func (o *GetRolesOK) Error() string {
|
||||
return fmt.Sprintf("[GET /api/v2/roles][%d] getRolesOK %+v", 200, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetRolesOK) String() string {
|
||||
return fmt.Sprintf("[GET /api/v2/roles][%d] getRolesOK %+v", 200, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetRolesOK) GetPayload() []*auth0_models.User {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -105,7 +139,8 @@ func NewGetRolesUnauthorized() *GetRolesUnauthorized {
|
|||
return &GetRolesUnauthorized{}
|
||||
}
|
||||
|
||||
/*GetRolesUnauthorized handles this case with default header values.
|
||||
/*
|
||||
GetRolesUnauthorized describes a response with status code 401, with default header values.
|
||||
|
||||
Access Unauthorized, invalid API-KEY was used
|
||||
*/
|
||||
|
@ -113,10 +148,44 @@ type GetRolesUnauthorized struct {
|
|||
Payload *auth0_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this get roles unauthorized response has a 2xx status code
|
||||
func (o *GetRolesUnauthorized) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this get roles unauthorized response has a 3xx status code
|
||||
func (o *GetRolesUnauthorized) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this get roles unauthorized response has a 4xx status code
|
||||
func (o *GetRolesUnauthorized) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this get roles unauthorized response has a 5xx status code
|
||||
func (o *GetRolesUnauthorized) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this get roles unauthorized response a status code equal to that given
|
||||
func (o *GetRolesUnauthorized) IsCode(code int) bool {
|
||||
return code == 401
|
||||
}
|
||||
|
||||
// Code gets the status code for the get roles unauthorized response
|
||||
func (o *GetRolesUnauthorized) Code() int {
|
||||
return 401
|
||||
}
|
||||
|
||||
func (o *GetRolesUnauthorized) Error() string {
|
||||
return fmt.Sprintf("[GET /api/v2/roles][%d] getRolesUnauthorized %+v", 401, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetRolesUnauthorized) String() string {
|
||||
return fmt.Sprintf("[GET /api/v2/roles][%d] getRolesUnauthorized %+v", 401, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetRolesUnauthorized) GetPayload() *auth0_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -138,7 +207,8 @@ func NewGetRolesForbidden() *GetRolesForbidden {
|
|||
return &GetRolesForbidden{}
|
||||
}
|
||||
|
||||
/*GetRolesForbidden handles this case with default header values.
|
||||
/*
|
||||
GetRolesForbidden describes a response with status code 403, with default header values.
|
||||
|
||||
Access forbidden, account lacks access
|
||||
*/
|
||||
|
@ -146,10 +216,44 @@ type GetRolesForbidden struct {
|
|||
Payload *auth0_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this get roles forbidden response has a 2xx status code
|
||||
func (o *GetRolesForbidden) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this get roles forbidden response has a 3xx status code
|
||||
func (o *GetRolesForbidden) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this get roles forbidden response has a 4xx status code
|
||||
func (o *GetRolesForbidden) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this get roles forbidden response has a 5xx status code
|
||||
func (o *GetRolesForbidden) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this get roles forbidden response a status code equal to that given
|
||||
func (o *GetRolesForbidden) IsCode(code int) bool {
|
||||
return code == 403
|
||||
}
|
||||
|
||||
// Code gets the status code for the get roles forbidden response
|
||||
func (o *GetRolesForbidden) Code() int {
|
||||
return 403
|
||||
}
|
||||
|
||||
func (o *GetRolesForbidden) Error() string {
|
||||
return fmt.Sprintf("[GET /api/v2/roles][%d] getRolesForbidden %+v", 403, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetRolesForbidden) String() string {
|
||||
return fmt.Sprintf("[GET /api/v2/roles][%d] getRolesForbidden %+v", 403, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetRolesForbidden) GetPayload() *auth0_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -171,7 +275,8 @@ func NewGetRolesNotFound() *GetRolesNotFound {
|
|||
return &GetRolesNotFound{}
|
||||
}
|
||||
|
||||
/*GetRolesNotFound handles this case with default header values.
|
||||
/*
|
||||
GetRolesNotFound describes a response with status code 404, with default header values.
|
||||
|
||||
Resource was not found
|
||||
*/
|
||||
|
@ -179,10 +284,44 @@ type GetRolesNotFound struct {
|
|||
Payload *auth0_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this get roles not found response has a 2xx status code
|
||||
func (o *GetRolesNotFound) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this get roles not found response has a 3xx status code
|
||||
func (o *GetRolesNotFound) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this get roles not found response has a 4xx status code
|
||||
func (o *GetRolesNotFound) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this get roles not found response has a 5xx status code
|
||||
func (o *GetRolesNotFound) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this get roles not found response a status code equal to that given
|
||||
func (o *GetRolesNotFound) IsCode(code int) bool {
|
||||
return code == 404
|
||||
}
|
||||
|
||||
// Code gets the status code for the get roles not found response
|
||||
func (o *GetRolesNotFound) Code() int {
|
||||
return 404
|
||||
}
|
||||
|
||||
func (o *GetRolesNotFound) Error() string {
|
||||
return fmt.Sprintf("[GET /api/v2/roles][%d] getRolesNotFound %+v", 404, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetRolesNotFound) String() string {
|
||||
return fmt.Sprintf("[GET /api/v2/roles][%d] getRolesNotFound %+v", 404, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetRolesNotFound) GetPayload() *auth0_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -204,7 +343,8 @@ func NewGetRolesUnprocessableEntity() *GetRolesUnprocessableEntity {
|
|||
return &GetRolesUnprocessableEntity{}
|
||||
}
|
||||
|
||||
/*GetRolesUnprocessableEntity handles this case with default header values.
|
||||
/*
|
||||
GetRolesUnprocessableEntity describes a response with status code 422, with default header values.
|
||||
|
||||
Unprocessable Entity, likely a bad parameter
|
||||
*/
|
||||
|
@ -212,10 +352,44 @@ type GetRolesUnprocessableEntity struct {
|
|||
Payload *auth0_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this get roles unprocessable entity response has a 2xx status code
|
||||
func (o *GetRolesUnprocessableEntity) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this get roles unprocessable entity response has a 3xx status code
|
||||
func (o *GetRolesUnprocessableEntity) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this get roles unprocessable entity response has a 4xx status code
|
||||
func (o *GetRolesUnprocessableEntity) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this get roles unprocessable entity response has a 5xx status code
|
||||
func (o *GetRolesUnprocessableEntity) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this get roles unprocessable entity response a status code equal to that given
|
||||
func (o *GetRolesUnprocessableEntity) IsCode(code int) bool {
|
||||
return code == 422
|
||||
}
|
||||
|
||||
// Code gets the status code for the get roles unprocessable entity response
|
||||
func (o *GetRolesUnprocessableEntity) Code() int {
|
||||
return 422
|
||||
}
|
||||
|
||||
func (o *GetRolesUnprocessableEntity) Error() string {
|
||||
return fmt.Sprintf("[GET /api/v2/roles][%d] getRolesUnprocessableEntity %+v", 422, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetRolesUnprocessableEntity) String() string {
|
||||
return fmt.Sprintf("[GET /api/v2/roles][%d] getRolesUnprocessableEntity %+v", 422, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetRolesUnprocessableEntity) GetPayload() *auth0_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -237,7 +411,8 @@ func NewGetRolesInternalServerError() *GetRolesInternalServerError {
|
|||
return &GetRolesInternalServerError{}
|
||||
}
|
||||
|
||||
/*GetRolesInternalServerError handles this case with default header values.
|
||||
/*
|
||||
GetRolesInternalServerError describes a response with status code 500, with default header values.
|
||||
|
||||
Server Internal Error
|
||||
*/
|
||||
|
@ -245,10 +420,44 @@ type GetRolesInternalServerError struct {
|
|||
Payload *auth0_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this get roles internal server error response has a 2xx status code
|
||||
func (o *GetRolesInternalServerError) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this get roles internal server error response has a 3xx status code
|
||||
func (o *GetRolesInternalServerError) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this get roles internal server error response has a 4xx status code
|
||||
func (o *GetRolesInternalServerError) IsClientError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsServerError returns true when this get roles internal server error response has a 5xx status code
|
||||
func (o *GetRolesInternalServerError) IsServerError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsCode returns true when this get roles internal server error response a status code equal to that given
|
||||
func (o *GetRolesInternalServerError) IsCode(code int) bool {
|
||||
return code == 500
|
||||
}
|
||||
|
||||
// Code gets the status code for the get roles internal server error response
|
||||
func (o *GetRolesInternalServerError) Code() int {
|
||||
return 500
|
||||
}
|
||||
|
||||
func (o *GetRolesInternalServerError) Error() string {
|
||||
return fmt.Sprintf("[GET /api/v2/roles][%d] getRolesInternalServerError %+v", 500, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetRolesInternalServerError) String() string {
|
||||
return fmt.Sprintf("[GET /api/v2/roles][%d] getRolesInternalServerError %+v", 500, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetRolesInternalServerError) GetPayload() *auth0_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
|
|
@ -22,60 +22,63 @@ import (
|
|||
"code.tnxs.net/vernonkeenan/lib/api/auth0/auth0_models"
|
||||
)
|
||||
|
||||
// NewPostRoleUsersParams creates a new PostRoleUsersParams object
|
||||
// with the default values initialized.
|
||||
// NewPostRoleUsersParams creates a new PostRoleUsersParams 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 NewPostRoleUsersParams() *PostRoleUsersParams {
|
||||
var ()
|
||||
return &PostRoleUsersParams{
|
||||
|
||||
timeout: cr.DefaultTimeout,
|
||||
}
|
||||
}
|
||||
|
||||
// NewPostRoleUsersParamsWithTimeout creates a new PostRoleUsersParams object
|
||||
// with the default values initialized, and the ability to set a timeout on a request
|
||||
// with the ability to set a timeout on a request.
|
||||
func NewPostRoleUsersParamsWithTimeout(timeout time.Duration) *PostRoleUsersParams {
|
||||
var ()
|
||||
return &PostRoleUsersParams{
|
||||
|
||||
timeout: timeout,
|
||||
}
|
||||
}
|
||||
|
||||
// NewPostRoleUsersParamsWithContext creates a new PostRoleUsersParams object
|
||||
// with the default values initialized, and the ability to set a context for a request
|
||||
// with the ability to set a context for a request.
|
||||
func NewPostRoleUsersParamsWithContext(ctx context.Context) *PostRoleUsersParams {
|
||||
var ()
|
||||
return &PostRoleUsersParams{
|
||||
|
||||
Context: ctx,
|
||||
}
|
||||
}
|
||||
|
||||
// NewPostRoleUsersParamsWithHTTPClient creates a new PostRoleUsersParams object
|
||||
// with the default values initialized, and the ability to set a custom HTTPClient for a request
|
||||
// with the ability to set a custom HTTPClient for a request.
|
||||
func NewPostRoleUsersParamsWithHTTPClient(client *http.Client) *PostRoleUsersParams {
|
||||
var ()
|
||||
return &PostRoleUsersParams{
|
||||
HTTPClient: client,
|
||||
}
|
||||
}
|
||||
|
||||
/*PostRoleUsersParams contains all the parameters to send to the API endpoint
|
||||
for the post role users operation typically these are written to a http.Request
|
||||
/*
|
||||
PostRoleUsersParams contains all the parameters to send to the API endpoint
|
||||
|
||||
for the post role users operation.
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
*/
|
||||
type PostRoleUsersParams struct {
|
||||
|
||||
/*Authorization*/
|
||||
// Authorization.
|
||||
Authorization string
|
||||
/*RoleUsersRequest
|
||||
An array of User IDs to add to a Role
|
||||
|
||||
/* RoleUsersRequest.
|
||||
|
||||
An array of User IDs to add to a Role
|
||||
*/
|
||||
RoleUsersRequest *auth0_models.RoleUsersRequest
|
||||
/*RoleID
|
||||
An Auth0 Role ID
|
||||
|
||||
/* RoleID.
|
||||
|
||||
An Auth0 Role ID
|
||||
*/
|
||||
RoleID string
|
||||
|
||||
|
@ -84,6 +87,21 @@ type PostRoleUsersParams struct {
|
|||
HTTPClient *http.Client
|
||||
}
|
||||
|
||||
// WithDefaults hydrates default values in the post role users params (not the query body).
|
||||
//
|
||||
// All values with no default are reset to their zero value.
|
||||
func (o *PostRoleUsersParams) WithDefaults() *PostRoleUsersParams {
|
||||
o.SetDefaults()
|
||||
return o
|
||||
}
|
||||
|
||||
// SetDefaults hydrates default values in the post role users params (not the query body).
|
||||
//
|
||||
// All values with no default are reset to their zero value.
|
||||
func (o *PostRoleUsersParams) SetDefaults() {
|
||||
// no default values defined for this parameter
|
||||
}
|
||||
|
||||
// WithTimeout adds the timeout to the post role users params
|
||||
func (o *PostRoleUsersParams) WithTimeout(timeout time.Duration) *PostRoleUsersParams {
|
||||
o.SetTimeout(timeout)
|
||||
|
@ -162,7 +180,6 @@ func (o *PostRoleUsersParams) WriteToRequest(r runtime.ClientRequest, reg strfmt
|
|||
if err := r.SetHeaderParam("Authorization", o.Authorization); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
if o.RoleUsersRequest != nil {
|
||||
if err := r.SetBodyParam(o.RoleUsersRequest); err != nil {
|
||||
return err
|
||||
|
|
|
@ -57,9 +57,8 @@ func (o *PostRoleUsersReader) ReadResponse(response runtime.ClientResponse, cons
|
|||
return nil, err
|
||||
}
|
||||
return nil, result
|
||||
|
||||
default:
|
||||
return nil, runtime.NewAPIError("unknown error", response, response.Code())
|
||||
return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code())
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -68,17 +67,52 @@ func NewPostRoleUsersOK() *PostRoleUsersOK {
|
|||
return &PostRoleUsersOK{}
|
||||
}
|
||||
|
||||
/*PostRoleUsersOK handles this case with default header values.
|
||||
/*
|
||||
PostRoleUsersOK describes a response with status code 200, with default header values.
|
||||
|
||||
Role users successfully updated
|
||||
*/
|
||||
type PostRoleUsersOK struct {
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this post role users o k response has a 2xx status code
|
||||
func (o *PostRoleUsersOK) IsSuccess() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this post role users o k response has a 3xx status code
|
||||
func (o *PostRoleUsersOK) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this post role users o k response has a 4xx status code
|
||||
func (o *PostRoleUsersOK) IsClientError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsServerError returns true when this post role users o k response has a 5xx status code
|
||||
func (o *PostRoleUsersOK) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this post role users o k response a status code equal to that given
|
||||
func (o *PostRoleUsersOK) IsCode(code int) bool {
|
||||
return code == 200
|
||||
}
|
||||
|
||||
// Code gets the status code for the post role users o k response
|
||||
func (o *PostRoleUsersOK) Code() int {
|
||||
return 200
|
||||
}
|
||||
|
||||
func (o *PostRoleUsersOK) Error() string {
|
||||
return fmt.Sprintf("[POST /api/v2/roles/{roleId}/users][%d] postRoleUsersOK ", 200)
|
||||
}
|
||||
|
||||
func (o *PostRoleUsersOK) String() string {
|
||||
return fmt.Sprintf("[POST /api/v2/roles/{roleId}/users][%d] postRoleUsersOK ", 200)
|
||||
}
|
||||
|
||||
func (o *PostRoleUsersOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
||||
|
||||
return nil
|
||||
|
@ -89,7 +123,8 @@ func NewPostRoleUsersUnauthorized() *PostRoleUsersUnauthorized {
|
|||
return &PostRoleUsersUnauthorized{}
|
||||
}
|
||||
|
||||
/*PostRoleUsersUnauthorized handles this case with default header values.
|
||||
/*
|
||||
PostRoleUsersUnauthorized describes a response with status code 401, with default header values.
|
||||
|
||||
Access Unauthorized, invalid API-KEY was used
|
||||
*/
|
||||
|
@ -97,10 +132,44 @@ type PostRoleUsersUnauthorized struct {
|
|||
Payload *auth0_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this post role users unauthorized response has a 2xx status code
|
||||
func (o *PostRoleUsersUnauthorized) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this post role users unauthorized response has a 3xx status code
|
||||
func (o *PostRoleUsersUnauthorized) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this post role users unauthorized response has a 4xx status code
|
||||
func (o *PostRoleUsersUnauthorized) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this post role users unauthorized response has a 5xx status code
|
||||
func (o *PostRoleUsersUnauthorized) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this post role users unauthorized response a status code equal to that given
|
||||
func (o *PostRoleUsersUnauthorized) IsCode(code int) bool {
|
||||
return code == 401
|
||||
}
|
||||
|
||||
// Code gets the status code for the post role users unauthorized response
|
||||
func (o *PostRoleUsersUnauthorized) Code() int {
|
||||
return 401
|
||||
}
|
||||
|
||||
func (o *PostRoleUsersUnauthorized) Error() string {
|
||||
return fmt.Sprintf("[POST /api/v2/roles/{roleId}/users][%d] postRoleUsersUnauthorized %+v", 401, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PostRoleUsersUnauthorized) String() string {
|
||||
return fmt.Sprintf("[POST /api/v2/roles/{roleId}/users][%d] postRoleUsersUnauthorized %+v", 401, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PostRoleUsersUnauthorized) GetPayload() *auth0_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -122,7 +191,8 @@ func NewPostRoleUsersForbidden() *PostRoleUsersForbidden {
|
|||
return &PostRoleUsersForbidden{}
|
||||
}
|
||||
|
||||
/*PostRoleUsersForbidden handles this case with default header values.
|
||||
/*
|
||||
PostRoleUsersForbidden describes a response with status code 403, with default header values.
|
||||
|
||||
Access forbidden, account lacks access
|
||||
*/
|
||||
|
@ -130,10 +200,44 @@ type PostRoleUsersForbidden struct {
|
|||
Payload *auth0_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this post role users forbidden response has a 2xx status code
|
||||
func (o *PostRoleUsersForbidden) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this post role users forbidden response has a 3xx status code
|
||||
func (o *PostRoleUsersForbidden) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this post role users forbidden response has a 4xx status code
|
||||
func (o *PostRoleUsersForbidden) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this post role users forbidden response has a 5xx status code
|
||||
func (o *PostRoleUsersForbidden) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this post role users forbidden response a status code equal to that given
|
||||
func (o *PostRoleUsersForbidden) IsCode(code int) bool {
|
||||
return code == 403
|
||||
}
|
||||
|
||||
// Code gets the status code for the post role users forbidden response
|
||||
func (o *PostRoleUsersForbidden) Code() int {
|
||||
return 403
|
||||
}
|
||||
|
||||
func (o *PostRoleUsersForbidden) Error() string {
|
||||
return fmt.Sprintf("[POST /api/v2/roles/{roleId}/users][%d] postRoleUsersForbidden %+v", 403, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PostRoleUsersForbidden) String() string {
|
||||
return fmt.Sprintf("[POST /api/v2/roles/{roleId}/users][%d] postRoleUsersForbidden %+v", 403, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PostRoleUsersForbidden) GetPayload() *auth0_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -155,7 +259,8 @@ func NewPostRoleUsersNotFound() *PostRoleUsersNotFound {
|
|||
return &PostRoleUsersNotFound{}
|
||||
}
|
||||
|
||||
/*PostRoleUsersNotFound handles this case with default header values.
|
||||
/*
|
||||
PostRoleUsersNotFound describes a response with status code 404, with default header values.
|
||||
|
||||
Resource was not found
|
||||
*/
|
||||
|
@ -163,10 +268,44 @@ type PostRoleUsersNotFound struct {
|
|||
Payload *auth0_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this post role users not found response has a 2xx status code
|
||||
func (o *PostRoleUsersNotFound) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this post role users not found response has a 3xx status code
|
||||
func (o *PostRoleUsersNotFound) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this post role users not found response has a 4xx status code
|
||||
func (o *PostRoleUsersNotFound) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this post role users not found response has a 5xx status code
|
||||
func (o *PostRoleUsersNotFound) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this post role users not found response a status code equal to that given
|
||||
func (o *PostRoleUsersNotFound) IsCode(code int) bool {
|
||||
return code == 404
|
||||
}
|
||||
|
||||
// Code gets the status code for the post role users not found response
|
||||
func (o *PostRoleUsersNotFound) Code() int {
|
||||
return 404
|
||||
}
|
||||
|
||||
func (o *PostRoleUsersNotFound) Error() string {
|
||||
return fmt.Sprintf("[POST /api/v2/roles/{roleId}/users][%d] postRoleUsersNotFound %+v", 404, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PostRoleUsersNotFound) String() string {
|
||||
return fmt.Sprintf("[POST /api/v2/roles/{roleId}/users][%d] postRoleUsersNotFound %+v", 404, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PostRoleUsersNotFound) GetPayload() *auth0_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -188,7 +327,8 @@ func NewPostRoleUsersInternalServerError() *PostRoleUsersInternalServerError {
|
|||
return &PostRoleUsersInternalServerError{}
|
||||
}
|
||||
|
||||
/*PostRoleUsersInternalServerError handles this case with default header values.
|
||||
/*
|
||||
PostRoleUsersInternalServerError describes a response with status code 500, with default header values.
|
||||
|
||||
Server Internal Error
|
||||
*/
|
||||
|
@ -196,10 +336,44 @@ type PostRoleUsersInternalServerError struct {
|
|||
Payload *auth0_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this post role users internal server error response has a 2xx status code
|
||||
func (o *PostRoleUsersInternalServerError) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this post role users internal server error response has a 3xx status code
|
||||
func (o *PostRoleUsersInternalServerError) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this post role users internal server error response has a 4xx status code
|
||||
func (o *PostRoleUsersInternalServerError) IsClientError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsServerError returns true when this post role users internal server error response has a 5xx status code
|
||||
func (o *PostRoleUsersInternalServerError) IsServerError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsCode returns true when this post role users internal server error response a status code equal to that given
|
||||
func (o *PostRoleUsersInternalServerError) IsCode(code int) bool {
|
||||
return code == 500
|
||||
}
|
||||
|
||||
// Code gets the status code for the post role users internal server error response
|
||||
func (o *PostRoleUsersInternalServerError) Code() int {
|
||||
return 500
|
||||
}
|
||||
|
||||
func (o *PostRoleUsersInternalServerError) Error() string {
|
||||
return fmt.Sprintf("[POST /api/v2/roles/{roleId}/users][%d] postRoleUsersInternalServerError %+v", 500, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PostRoleUsersInternalServerError) String() string {
|
||||
return fmt.Sprintf("[POST /api/v2/roles/{roleId}/users][%d] postRoleUsersInternalServerError %+v", 500, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PostRoleUsersInternalServerError) GetPayload() *auth0_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
|
|
@ -29,27 +29,29 @@ type Client struct {
|
|||
formats strfmt.Registry
|
||||
}
|
||||
|
||||
// ClientOption is the option for Client methods
|
||||
type ClientOption func(*runtime.ClientOperation)
|
||||
|
||||
// ClientService is the interface for Client methods
|
||||
type ClientService interface {
|
||||
GetRoles(params *GetRolesParams) (*GetRolesOK, error)
|
||||
GetRoles(params *GetRolesParams, opts ...ClientOption) (*GetRolesOK, error)
|
||||
|
||||
PostRoleUsers(params *PostRoleUsersParams) (*PostRoleUsersOK, error)
|
||||
PostRoleUsers(params *PostRoleUsersParams, opts ...ClientOption) (*PostRoleUsersOK, error)
|
||||
|
||||
SetTransport(transport runtime.ClientTransport)
|
||||
}
|
||||
|
||||
/*
|
||||
GetRoles gets roles from auth0
|
||||
GetRoles gets roles from auth0
|
||||
|
||||
Get Roles from Auth0
|
||||
Get Roles from Auth0
|
||||
*/
|
||||
func (a *Client) GetRoles(params *GetRolesParams) (*GetRolesOK, error) {
|
||||
func (a *Client) GetRoles(params *GetRolesParams, opts ...ClientOption) (*GetRolesOK, error) {
|
||||
// TODO: Validate the params before sending
|
||||
if params == nil {
|
||||
params = NewGetRolesParams()
|
||||
}
|
||||
|
||||
result, err := a.transport.Submit(&runtime.ClientOperation{
|
||||
op := &runtime.ClientOperation{
|
||||
ID: "getRoles",
|
||||
Method: "GET",
|
||||
PathPattern: "/api/v2/roles",
|
||||
|
@ -60,7 +62,12 @@ func (a *Client) GetRoles(params *GetRolesParams) (*GetRolesOK, error) {
|
|||
Reader: &GetRolesReader{formats: a.formats},
|
||||
Context: params.Context,
|
||||
Client: params.HTTPClient,
|
||||
})
|
||||
}
|
||||
for _, opt := range opts {
|
||||
opt(op)
|
||||
}
|
||||
|
||||
result, err := a.transport.Submit(op)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
@ -75,17 +82,16 @@ func (a *Client) GetRoles(params *GetRolesParams) (*GetRolesOK, error) {
|
|||
}
|
||||
|
||||
/*
|
||||
PostRoleUsers adds users to role
|
||||
PostRoleUsers adds users to role
|
||||
|
||||
Add users to role
|
||||
Add users to role
|
||||
*/
|
||||
func (a *Client) PostRoleUsers(params *PostRoleUsersParams) (*PostRoleUsersOK, error) {
|
||||
func (a *Client) PostRoleUsers(params *PostRoleUsersParams, opts ...ClientOption) (*PostRoleUsersOK, error) {
|
||||
// TODO: Validate the params before sending
|
||||
if params == nil {
|
||||
params = NewPostRoleUsersParams()
|
||||
}
|
||||
|
||||
result, err := a.transport.Submit(&runtime.ClientOperation{
|
||||
op := &runtime.ClientOperation{
|
||||
ID: "postRoleUsers",
|
||||
Method: "POST",
|
||||
PathPattern: "/api/v2/roles/{roleId}/users",
|
||||
|
@ -96,7 +102,12 @@ func (a *Client) PostRoleUsers(params *PostRoleUsersParams) (*PostRoleUsersOK, e
|
|||
Reader: &PostRoleUsersReader{formats: a.formats},
|
||||
Context: params.Context,
|
||||
Client: params.HTTPClient,
|
||||
})
|
||||
}
|
||||
for _, opt := range opts {
|
||||
opt(op)
|
||||
}
|
||||
|
||||
result, err := a.transport.Submit(op)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
|
|
@ -22,60 +22,63 @@ import (
|
|||
"code.tnxs.net/vernonkeenan/lib/api/auth0/auth0_models"
|
||||
)
|
||||
|
||||
// NewDeleteAPIV2UsersUserIDRolesParams creates a new DeleteAPIV2UsersUserIDRolesParams object
|
||||
// with the default values initialized.
|
||||
// NewDeleteAPIV2UsersUserIDRolesParams creates a new DeleteAPIV2UsersUserIDRolesParams 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 NewDeleteAPIV2UsersUserIDRolesParams() *DeleteAPIV2UsersUserIDRolesParams {
|
||||
var ()
|
||||
return &DeleteAPIV2UsersUserIDRolesParams{
|
||||
|
||||
timeout: cr.DefaultTimeout,
|
||||
}
|
||||
}
|
||||
|
||||
// NewDeleteAPIV2UsersUserIDRolesParamsWithTimeout creates a new DeleteAPIV2UsersUserIDRolesParams object
|
||||
// with the default values initialized, and the ability to set a timeout on a request
|
||||
// with the ability to set a timeout on a request.
|
||||
func NewDeleteAPIV2UsersUserIDRolesParamsWithTimeout(timeout time.Duration) *DeleteAPIV2UsersUserIDRolesParams {
|
||||
var ()
|
||||
return &DeleteAPIV2UsersUserIDRolesParams{
|
||||
|
||||
timeout: timeout,
|
||||
}
|
||||
}
|
||||
|
||||
// NewDeleteAPIV2UsersUserIDRolesParamsWithContext creates a new DeleteAPIV2UsersUserIDRolesParams object
|
||||
// with the default values initialized, and the ability to set a context for a request
|
||||
// with the ability to set a context for a request.
|
||||
func NewDeleteAPIV2UsersUserIDRolesParamsWithContext(ctx context.Context) *DeleteAPIV2UsersUserIDRolesParams {
|
||||
var ()
|
||||
return &DeleteAPIV2UsersUserIDRolesParams{
|
||||
|
||||
Context: ctx,
|
||||
}
|
||||
}
|
||||
|
||||
// NewDeleteAPIV2UsersUserIDRolesParamsWithHTTPClient creates a new DeleteAPIV2UsersUserIDRolesParams object
|
||||
// with the default values initialized, and the ability to set a custom HTTPClient for a request
|
||||
// with the ability to set a custom HTTPClient for a request.
|
||||
func NewDeleteAPIV2UsersUserIDRolesParamsWithHTTPClient(client *http.Client) *DeleteAPIV2UsersUserIDRolesParams {
|
||||
var ()
|
||||
return &DeleteAPIV2UsersUserIDRolesParams{
|
||||
HTTPClient: client,
|
||||
}
|
||||
}
|
||||
|
||||
/*DeleteAPIV2UsersUserIDRolesParams contains all the parameters to send to the API endpoint
|
||||
for the delete API v2 users user ID roles operation typically these are written to a http.Request
|
||||
/*
|
||||
DeleteAPIV2UsersUserIDRolesParams contains all the parameters to send to the API endpoint
|
||||
|
||||
for the delete API v2 users user ID roles operation.
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
*/
|
||||
type DeleteAPIV2UsersUserIDRolesParams struct {
|
||||
|
||||
/*Authorization*/
|
||||
// Authorization.
|
||||
Authorization string
|
||||
/*UserRolesRequest
|
||||
An array of User IDs to add to a Role
|
||||
|
||||
/* UserRolesRequest.
|
||||
|
||||
An array of User IDs to add to a Role
|
||||
*/
|
||||
UserRolesRequest *auth0_models.UserRolesRequest
|
||||
/*UserID
|
||||
An Auth0 User ID
|
||||
|
||||
/* UserID.
|
||||
|
||||
An Auth0 User ID
|
||||
*/
|
||||
UserID string
|
||||
|
||||
|
@ -84,6 +87,21 @@ type DeleteAPIV2UsersUserIDRolesParams struct {
|
|||
HTTPClient *http.Client
|
||||
}
|
||||
|
||||
// WithDefaults hydrates default values in the delete API v2 users user ID roles params (not the query body).
|
||||
//
|
||||
// All values with no default are reset to their zero value.
|
||||
func (o *DeleteAPIV2UsersUserIDRolesParams) WithDefaults() *DeleteAPIV2UsersUserIDRolesParams {
|
||||
o.SetDefaults()
|
||||
return o
|
||||
}
|
||||
|
||||
// SetDefaults hydrates default values in the delete API v2 users user ID roles params (not the query body).
|
||||
//
|
||||
// All values with no default are reset to their zero value.
|
||||
func (o *DeleteAPIV2UsersUserIDRolesParams) SetDefaults() {
|
||||
// no default values defined for this parameter
|
||||
}
|
||||
|
||||
// WithTimeout adds the timeout to the delete API v2 users user ID roles params
|
||||
func (o *DeleteAPIV2UsersUserIDRolesParams) WithTimeout(timeout time.Duration) *DeleteAPIV2UsersUserIDRolesParams {
|
||||
o.SetTimeout(timeout)
|
||||
|
@ -162,7 +180,6 @@ func (o *DeleteAPIV2UsersUserIDRolesParams) WriteToRequest(r runtime.ClientReque
|
|||
if err := r.SetHeaderParam("Authorization", o.Authorization); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
if o.UserRolesRequest != nil {
|
||||
if err := r.SetBodyParam(o.UserRolesRequest); err != nil {
|
||||
return err
|
||||
|
|
|
@ -57,9 +57,8 @@ func (o *DeleteAPIV2UsersUserIDRolesReader) ReadResponse(response runtime.Client
|
|||
return nil, err
|
||||
}
|
||||
return nil, result
|
||||
|
||||
default:
|
||||
return nil, runtime.NewAPIError("unknown error", response, response.Code())
|
||||
return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code())
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -68,17 +67,52 @@ func NewDeleteAPIV2UsersUserIDRolesNoContent() *DeleteAPIV2UsersUserIDRolesNoCon
|
|||
return &DeleteAPIV2UsersUserIDRolesNoContent{}
|
||||
}
|
||||
|
||||
/*DeleteAPIV2UsersUserIDRolesNoContent handles this case with default header values.
|
||||
/*
|
||||
DeleteAPIV2UsersUserIDRolesNoContent describes a response with status code 204, with default header values.
|
||||
|
||||
User roles successfully removed
|
||||
*/
|
||||
type DeleteAPIV2UsersUserIDRolesNoContent struct {
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this delete Api v2 users user Id roles no content response has a 2xx status code
|
||||
func (o *DeleteAPIV2UsersUserIDRolesNoContent) IsSuccess() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this delete Api v2 users user Id roles no content response has a 3xx status code
|
||||
func (o *DeleteAPIV2UsersUserIDRolesNoContent) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this delete Api v2 users user Id roles no content response has a 4xx status code
|
||||
func (o *DeleteAPIV2UsersUserIDRolesNoContent) IsClientError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsServerError returns true when this delete Api v2 users user Id roles no content response has a 5xx status code
|
||||
func (o *DeleteAPIV2UsersUserIDRolesNoContent) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this delete Api v2 users user Id roles no content response a status code equal to that given
|
||||
func (o *DeleteAPIV2UsersUserIDRolesNoContent) IsCode(code int) bool {
|
||||
return code == 204
|
||||
}
|
||||
|
||||
// Code gets the status code for the delete Api v2 users user Id roles no content response
|
||||
func (o *DeleteAPIV2UsersUserIDRolesNoContent) Code() int {
|
||||
return 204
|
||||
}
|
||||
|
||||
func (o *DeleteAPIV2UsersUserIDRolesNoContent) Error() string {
|
||||
return fmt.Sprintf("[DELETE /api/v2/users/{userId}/roles][%d] deleteApiV2UsersUserIdRolesNoContent ", 204)
|
||||
}
|
||||
|
||||
func (o *DeleteAPIV2UsersUserIDRolesNoContent) String() string {
|
||||
return fmt.Sprintf("[DELETE /api/v2/users/{userId}/roles][%d] deleteApiV2UsersUserIdRolesNoContent ", 204)
|
||||
}
|
||||
|
||||
func (o *DeleteAPIV2UsersUserIDRolesNoContent) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
||||
|
||||
return nil
|
||||
|
@ -89,7 +123,8 @@ func NewDeleteAPIV2UsersUserIDRolesUnauthorized() *DeleteAPIV2UsersUserIDRolesUn
|
|||
return &DeleteAPIV2UsersUserIDRolesUnauthorized{}
|
||||
}
|
||||
|
||||
/*DeleteAPIV2UsersUserIDRolesUnauthorized handles this case with default header values.
|
||||
/*
|
||||
DeleteAPIV2UsersUserIDRolesUnauthorized describes a response with status code 401, with default header values.
|
||||
|
||||
Access Unauthorized, invalid API-KEY was used
|
||||
*/
|
||||
|
@ -97,10 +132,44 @@ type DeleteAPIV2UsersUserIDRolesUnauthorized struct {
|
|||
Payload *auth0_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this delete Api v2 users user Id roles unauthorized response has a 2xx status code
|
||||
func (o *DeleteAPIV2UsersUserIDRolesUnauthorized) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this delete Api v2 users user Id roles unauthorized response has a 3xx status code
|
||||
func (o *DeleteAPIV2UsersUserIDRolesUnauthorized) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this delete Api v2 users user Id roles unauthorized response has a 4xx status code
|
||||
func (o *DeleteAPIV2UsersUserIDRolesUnauthorized) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this delete Api v2 users user Id roles unauthorized response has a 5xx status code
|
||||
func (o *DeleteAPIV2UsersUserIDRolesUnauthorized) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this delete Api v2 users user Id roles unauthorized response a status code equal to that given
|
||||
func (o *DeleteAPIV2UsersUserIDRolesUnauthorized) IsCode(code int) bool {
|
||||
return code == 401
|
||||
}
|
||||
|
||||
// Code gets the status code for the delete Api v2 users user Id roles unauthorized response
|
||||
func (o *DeleteAPIV2UsersUserIDRolesUnauthorized) Code() int {
|
||||
return 401
|
||||
}
|
||||
|
||||
func (o *DeleteAPIV2UsersUserIDRolesUnauthorized) Error() string {
|
||||
return fmt.Sprintf("[DELETE /api/v2/users/{userId}/roles][%d] deleteApiV2UsersUserIdRolesUnauthorized %+v", 401, o.Payload)
|
||||
}
|
||||
|
||||
func (o *DeleteAPIV2UsersUserIDRolesUnauthorized) String() string {
|
||||
return fmt.Sprintf("[DELETE /api/v2/users/{userId}/roles][%d] deleteApiV2UsersUserIdRolesUnauthorized %+v", 401, o.Payload)
|
||||
}
|
||||
|
||||
func (o *DeleteAPIV2UsersUserIDRolesUnauthorized) GetPayload() *auth0_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -122,7 +191,8 @@ func NewDeleteAPIV2UsersUserIDRolesForbidden() *DeleteAPIV2UsersUserIDRolesForbi
|
|||
return &DeleteAPIV2UsersUserIDRolesForbidden{}
|
||||
}
|
||||
|
||||
/*DeleteAPIV2UsersUserIDRolesForbidden handles this case with default header values.
|
||||
/*
|
||||
DeleteAPIV2UsersUserIDRolesForbidden describes a response with status code 403, with default header values.
|
||||
|
||||
Access forbidden, account lacks access
|
||||
*/
|
||||
|
@ -130,10 +200,44 @@ type DeleteAPIV2UsersUserIDRolesForbidden struct {
|
|||
Payload *auth0_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this delete Api v2 users user Id roles forbidden response has a 2xx status code
|
||||
func (o *DeleteAPIV2UsersUserIDRolesForbidden) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this delete Api v2 users user Id roles forbidden response has a 3xx status code
|
||||
func (o *DeleteAPIV2UsersUserIDRolesForbidden) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this delete Api v2 users user Id roles forbidden response has a 4xx status code
|
||||
func (o *DeleteAPIV2UsersUserIDRolesForbidden) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this delete Api v2 users user Id roles forbidden response has a 5xx status code
|
||||
func (o *DeleteAPIV2UsersUserIDRolesForbidden) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this delete Api v2 users user Id roles forbidden response a status code equal to that given
|
||||
func (o *DeleteAPIV2UsersUserIDRolesForbidden) IsCode(code int) bool {
|
||||
return code == 403
|
||||
}
|
||||
|
||||
// Code gets the status code for the delete Api v2 users user Id roles forbidden response
|
||||
func (o *DeleteAPIV2UsersUserIDRolesForbidden) Code() int {
|
||||
return 403
|
||||
}
|
||||
|
||||
func (o *DeleteAPIV2UsersUserIDRolesForbidden) Error() string {
|
||||
return fmt.Sprintf("[DELETE /api/v2/users/{userId}/roles][%d] deleteApiV2UsersUserIdRolesForbidden %+v", 403, o.Payload)
|
||||
}
|
||||
|
||||
func (o *DeleteAPIV2UsersUserIDRolesForbidden) String() string {
|
||||
return fmt.Sprintf("[DELETE /api/v2/users/{userId}/roles][%d] deleteApiV2UsersUserIdRolesForbidden %+v", 403, o.Payload)
|
||||
}
|
||||
|
||||
func (o *DeleteAPIV2UsersUserIDRolesForbidden) GetPayload() *auth0_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -155,7 +259,8 @@ func NewDeleteAPIV2UsersUserIDRolesNotFound() *DeleteAPIV2UsersUserIDRolesNotFou
|
|||
return &DeleteAPIV2UsersUserIDRolesNotFound{}
|
||||
}
|
||||
|
||||
/*DeleteAPIV2UsersUserIDRolesNotFound handles this case with default header values.
|
||||
/*
|
||||
DeleteAPIV2UsersUserIDRolesNotFound describes a response with status code 404, with default header values.
|
||||
|
||||
Resource was not found
|
||||
*/
|
||||
|
@ -163,10 +268,44 @@ type DeleteAPIV2UsersUserIDRolesNotFound struct {
|
|||
Payload *auth0_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this delete Api v2 users user Id roles not found response has a 2xx status code
|
||||
func (o *DeleteAPIV2UsersUserIDRolesNotFound) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this delete Api v2 users user Id roles not found response has a 3xx status code
|
||||
func (o *DeleteAPIV2UsersUserIDRolesNotFound) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this delete Api v2 users user Id roles not found response has a 4xx status code
|
||||
func (o *DeleteAPIV2UsersUserIDRolesNotFound) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this delete Api v2 users user Id roles not found response has a 5xx status code
|
||||
func (o *DeleteAPIV2UsersUserIDRolesNotFound) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this delete Api v2 users user Id roles not found response a status code equal to that given
|
||||
func (o *DeleteAPIV2UsersUserIDRolesNotFound) IsCode(code int) bool {
|
||||
return code == 404
|
||||
}
|
||||
|
||||
// Code gets the status code for the delete Api v2 users user Id roles not found response
|
||||
func (o *DeleteAPIV2UsersUserIDRolesNotFound) Code() int {
|
||||
return 404
|
||||
}
|
||||
|
||||
func (o *DeleteAPIV2UsersUserIDRolesNotFound) Error() string {
|
||||
return fmt.Sprintf("[DELETE /api/v2/users/{userId}/roles][%d] deleteApiV2UsersUserIdRolesNotFound %+v", 404, o.Payload)
|
||||
}
|
||||
|
||||
func (o *DeleteAPIV2UsersUserIDRolesNotFound) String() string {
|
||||
return fmt.Sprintf("[DELETE /api/v2/users/{userId}/roles][%d] deleteApiV2UsersUserIdRolesNotFound %+v", 404, o.Payload)
|
||||
}
|
||||
|
||||
func (o *DeleteAPIV2UsersUserIDRolesNotFound) GetPayload() *auth0_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -188,7 +327,8 @@ func NewDeleteAPIV2UsersUserIDRolesInternalServerError() *DeleteAPIV2UsersUserID
|
|||
return &DeleteAPIV2UsersUserIDRolesInternalServerError{}
|
||||
}
|
||||
|
||||
/*DeleteAPIV2UsersUserIDRolesInternalServerError handles this case with default header values.
|
||||
/*
|
||||
DeleteAPIV2UsersUserIDRolesInternalServerError describes a response with status code 500, with default header values.
|
||||
|
||||
Server Internal Error
|
||||
*/
|
||||
|
@ -196,10 +336,44 @@ type DeleteAPIV2UsersUserIDRolesInternalServerError struct {
|
|||
Payload *auth0_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this delete Api v2 users user Id roles internal server error response has a 2xx status code
|
||||
func (o *DeleteAPIV2UsersUserIDRolesInternalServerError) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this delete Api v2 users user Id roles internal server error response has a 3xx status code
|
||||
func (o *DeleteAPIV2UsersUserIDRolesInternalServerError) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this delete Api v2 users user Id roles internal server error response has a 4xx status code
|
||||
func (o *DeleteAPIV2UsersUserIDRolesInternalServerError) IsClientError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsServerError returns true when this delete Api v2 users user Id roles internal server error response has a 5xx status code
|
||||
func (o *DeleteAPIV2UsersUserIDRolesInternalServerError) IsServerError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsCode returns true when this delete Api v2 users user Id roles internal server error response a status code equal to that given
|
||||
func (o *DeleteAPIV2UsersUserIDRolesInternalServerError) IsCode(code int) bool {
|
||||
return code == 500
|
||||
}
|
||||
|
||||
// Code gets the status code for the delete Api v2 users user Id roles internal server error response
|
||||
func (o *DeleteAPIV2UsersUserIDRolesInternalServerError) Code() int {
|
||||
return 500
|
||||
}
|
||||
|
||||
func (o *DeleteAPIV2UsersUserIDRolesInternalServerError) Error() string {
|
||||
return fmt.Sprintf("[DELETE /api/v2/users/{userId}/roles][%d] deleteApiV2UsersUserIdRolesInternalServerError %+v", 500, o.Payload)
|
||||
}
|
||||
|
||||
func (o *DeleteAPIV2UsersUserIDRolesInternalServerError) String() string {
|
||||
return fmt.Sprintf("[DELETE /api/v2/users/{userId}/roles][%d] deleteApiV2UsersUserIdRolesInternalServerError %+v", 500, o.Payload)
|
||||
}
|
||||
|
||||
func (o *DeleteAPIV2UsersUserIDRolesInternalServerError) GetPayload() *auth0_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
|
|
@ -20,53 +20,55 @@ import (
|
|||
"github.com/go-openapi/strfmt"
|
||||
)
|
||||
|
||||
// NewGetUserByEmailParams creates a new GetUserByEmailParams object
|
||||
// with the default values initialized.
|
||||
// NewGetUserByEmailParams creates a new GetUserByEmailParams 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 NewGetUserByEmailParams() *GetUserByEmailParams {
|
||||
var ()
|
||||
return &GetUserByEmailParams{
|
||||
|
||||
timeout: cr.DefaultTimeout,
|
||||
}
|
||||
}
|
||||
|
||||
// NewGetUserByEmailParamsWithTimeout creates a new GetUserByEmailParams object
|
||||
// with the default values initialized, and the ability to set a timeout on a request
|
||||
// with the ability to set a timeout on a request.
|
||||
func NewGetUserByEmailParamsWithTimeout(timeout time.Duration) *GetUserByEmailParams {
|
||||
var ()
|
||||
return &GetUserByEmailParams{
|
||||
|
||||
timeout: timeout,
|
||||
}
|
||||
}
|
||||
|
||||
// NewGetUserByEmailParamsWithContext creates a new GetUserByEmailParams object
|
||||
// with the default values initialized, and the ability to set a context for a request
|
||||
// with the ability to set a context for a request.
|
||||
func NewGetUserByEmailParamsWithContext(ctx context.Context) *GetUserByEmailParams {
|
||||
var ()
|
||||
return &GetUserByEmailParams{
|
||||
|
||||
Context: ctx,
|
||||
}
|
||||
}
|
||||
|
||||
// NewGetUserByEmailParamsWithHTTPClient creates a new GetUserByEmailParams object
|
||||
// with the default values initialized, and the ability to set a custom HTTPClient for a request
|
||||
// with the ability to set a custom HTTPClient for a request.
|
||||
func NewGetUserByEmailParamsWithHTTPClient(client *http.Client) *GetUserByEmailParams {
|
||||
var ()
|
||||
return &GetUserByEmailParams{
|
||||
HTTPClient: client,
|
||||
}
|
||||
}
|
||||
|
||||
/*GetUserByEmailParams contains all the parameters to send to the API endpoint
|
||||
for the get user by email operation typically these are written to a http.Request
|
||||
/*
|
||||
GetUserByEmailParams contains all the parameters to send to the API endpoint
|
||||
|
||||
for the get user by email operation.
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
*/
|
||||
type GetUserByEmailParams struct {
|
||||
|
||||
/*Authorization*/
|
||||
// Authorization.
|
||||
Authorization string
|
||||
/*Email*/
|
||||
|
||||
// Email.
|
||||
Email string
|
||||
|
||||
timeout time.Duration
|
||||
|
@ -74,6 +76,21 @@ type GetUserByEmailParams struct {
|
|||
HTTPClient *http.Client
|
||||
}
|
||||
|
||||
// WithDefaults hydrates default values in the get user by email params (not the query body).
|
||||
//
|
||||
// All values with no default are reset to their zero value.
|
||||
func (o *GetUserByEmailParams) WithDefaults() *GetUserByEmailParams {
|
||||
o.SetDefaults()
|
||||
return o
|
||||
}
|
||||
|
||||
// SetDefaults hydrates default values in the get user by email params (not the query body).
|
||||
//
|
||||
// All values with no default are reset to their zero value.
|
||||
func (o *GetUserByEmailParams) SetDefaults() {
|
||||
// no default values defined for this parameter
|
||||
}
|
||||
|
||||
// WithTimeout adds the timeout to the get user by email params
|
||||
func (o *GetUserByEmailParams) WithTimeout(timeout time.Duration) *GetUserByEmailParams {
|
||||
o.SetTimeout(timeout)
|
||||
|
@ -146,6 +163,7 @@ func (o *GetUserByEmailParams) WriteToRequest(r runtime.ClientRequest, reg strfm
|
|||
qrEmail := o.Email
|
||||
qEmail := qrEmail
|
||||
if qEmail != "" {
|
||||
|
||||
if err := r.SetQueryParam("email", qEmail); err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
@ -57,9 +57,8 @@ func (o *GetUserByEmailReader) ReadResponse(response runtime.ClientResponse, con
|
|||
return nil, err
|
||||
}
|
||||
return nil, result
|
||||
|
||||
default:
|
||||
return nil, runtime.NewAPIError("unknown error", response, response.Code())
|
||||
return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code())
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -68,7 +67,8 @@ func NewGetUserByEmailOK() *GetUserByEmailOK {
|
|||
return &GetUserByEmailOK{}
|
||||
}
|
||||
|
||||
/*GetUserByEmailOK handles this case with default header values.
|
||||
/*
|
||||
GetUserByEmailOK describes a response with status code 200, with default header values.
|
||||
|
||||
Taxnexus Response with User objects
|
||||
*/
|
||||
|
@ -76,10 +76,44 @@ type GetUserByEmailOK struct {
|
|||
Payload []*auth0_models.User
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this get user by email o k response has a 2xx status code
|
||||
func (o *GetUserByEmailOK) IsSuccess() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this get user by email o k response has a 3xx status code
|
||||
func (o *GetUserByEmailOK) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this get user by email o k response has a 4xx status code
|
||||
func (o *GetUserByEmailOK) IsClientError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsServerError returns true when this get user by email o k response has a 5xx status code
|
||||
func (o *GetUserByEmailOK) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this get user by email o k response a status code equal to that given
|
||||
func (o *GetUserByEmailOK) IsCode(code int) bool {
|
||||
return code == 200
|
||||
}
|
||||
|
||||
// Code gets the status code for the get user by email o k response
|
||||
func (o *GetUserByEmailOK) Code() int {
|
||||
return 200
|
||||
}
|
||||
|
||||
func (o *GetUserByEmailOK) Error() string {
|
||||
return fmt.Sprintf("[GET /api/v2/users-by-email][%d] getUserByEmailOK %+v", 200, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetUserByEmailOK) String() string {
|
||||
return fmt.Sprintf("[GET /api/v2/users-by-email][%d] getUserByEmailOK %+v", 200, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetUserByEmailOK) GetPayload() []*auth0_models.User {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -99,7 +133,8 @@ func NewGetUserByEmailUnauthorized() *GetUserByEmailUnauthorized {
|
|||
return &GetUserByEmailUnauthorized{}
|
||||
}
|
||||
|
||||
/*GetUserByEmailUnauthorized handles this case with default header values.
|
||||
/*
|
||||
GetUserByEmailUnauthorized describes a response with status code 401, with default header values.
|
||||
|
||||
Access Unauthorized, invalid API-KEY was used
|
||||
*/
|
||||
|
@ -107,10 +142,44 @@ type GetUserByEmailUnauthorized struct {
|
|||
Payload *auth0_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this get user by email unauthorized response has a 2xx status code
|
||||
func (o *GetUserByEmailUnauthorized) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this get user by email unauthorized response has a 3xx status code
|
||||
func (o *GetUserByEmailUnauthorized) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this get user by email unauthorized response has a 4xx status code
|
||||
func (o *GetUserByEmailUnauthorized) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this get user by email unauthorized response has a 5xx status code
|
||||
func (o *GetUserByEmailUnauthorized) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this get user by email unauthorized response a status code equal to that given
|
||||
func (o *GetUserByEmailUnauthorized) IsCode(code int) bool {
|
||||
return code == 401
|
||||
}
|
||||
|
||||
// Code gets the status code for the get user by email unauthorized response
|
||||
func (o *GetUserByEmailUnauthorized) Code() int {
|
||||
return 401
|
||||
}
|
||||
|
||||
func (o *GetUserByEmailUnauthorized) Error() string {
|
||||
return fmt.Sprintf("[GET /api/v2/users-by-email][%d] getUserByEmailUnauthorized %+v", 401, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetUserByEmailUnauthorized) String() string {
|
||||
return fmt.Sprintf("[GET /api/v2/users-by-email][%d] getUserByEmailUnauthorized %+v", 401, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetUserByEmailUnauthorized) GetPayload() *auth0_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -132,7 +201,8 @@ func NewGetUserByEmailForbidden() *GetUserByEmailForbidden {
|
|||
return &GetUserByEmailForbidden{}
|
||||
}
|
||||
|
||||
/*GetUserByEmailForbidden handles this case with default header values.
|
||||
/*
|
||||
GetUserByEmailForbidden describes a response with status code 403, with default header values.
|
||||
|
||||
Access forbidden, account lacks access
|
||||
*/
|
||||
|
@ -140,10 +210,44 @@ type GetUserByEmailForbidden struct {
|
|||
Payload *auth0_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this get user by email forbidden response has a 2xx status code
|
||||
func (o *GetUserByEmailForbidden) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this get user by email forbidden response has a 3xx status code
|
||||
func (o *GetUserByEmailForbidden) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this get user by email forbidden response has a 4xx status code
|
||||
func (o *GetUserByEmailForbidden) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this get user by email forbidden response has a 5xx status code
|
||||
func (o *GetUserByEmailForbidden) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this get user by email forbidden response a status code equal to that given
|
||||
func (o *GetUserByEmailForbidden) IsCode(code int) bool {
|
||||
return code == 403
|
||||
}
|
||||
|
||||
// Code gets the status code for the get user by email forbidden response
|
||||
func (o *GetUserByEmailForbidden) Code() int {
|
||||
return 403
|
||||
}
|
||||
|
||||
func (o *GetUserByEmailForbidden) Error() string {
|
||||
return fmt.Sprintf("[GET /api/v2/users-by-email][%d] getUserByEmailForbidden %+v", 403, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetUserByEmailForbidden) String() string {
|
||||
return fmt.Sprintf("[GET /api/v2/users-by-email][%d] getUserByEmailForbidden %+v", 403, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetUserByEmailForbidden) GetPayload() *auth0_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -165,7 +269,8 @@ func NewGetUserByEmailNotFound() *GetUserByEmailNotFound {
|
|||
return &GetUserByEmailNotFound{}
|
||||
}
|
||||
|
||||
/*GetUserByEmailNotFound handles this case with default header values.
|
||||
/*
|
||||
GetUserByEmailNotFound describes a response with status code 404, with default header values.
|
||||
|
||||
Resource was not found
|
||||
*/
|
||||
|
@ -173,10 +278,44 @@ type GetUserByEmailNotFound struct {
|
|||
Payload *auth0_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this get user by email not found response has a 2xx status code
|
||||
func (o *GetUserByEmailNotFound) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this get user by email not found response has a 3xx status code
|
||||
func (o *GetUserByEmailNotFound) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this get user by email not found response has a 4xx status code
|
||||
func (o *GetUserByEmailNotFound) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this get user by email not found response has a 5xx status code
|
||||
func (o *GetUserByEmailNotFound) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this get user by email not found response a status code equal to that given
|
||||
func (o *GetUserByEmailNotFound) IsCode(code int) bool {
|
||||
return code == 404
|
||||
}
|
||||
|
||||
// Code gets the status code for the get user by email not found response
|
||||
func (o *GetUserByEmailNotFound) Code() int {
|
||||
return 404
|
||||
}
|
||||
|
||||
func (o *GetUserByEmailNotFound) Error() string {
|
||||
return fmt.Sprintf("[GET /api/v2/users-by-email][%d] getUserByEmailNotFound %+v", 404, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetUserByEmailNotFound) String() string {
|
||||
return fmt.Sprintf("[GET /api/v2/users-by-email][%d] getUserByEmailNotFound %+v", 404, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetUserByEmailNotFound) GetPayload() *auth0_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -198,7 +337,8 @@ func NewGetUserByEmailInternalServerError() *GetUserByEmailInternalServerError {
|
|||
return &GetUserByEmailInternalServerError{}
|
||||
}
|
||||
|
||||
/*GetUserByEmailInternalServerError handles this case with default header values.
|
||||
/*
|
||||
GetUserByEmailInternalServerError describes a response with status code 500, with default header values.
|
||||
|
||||
Server Internal Error
|
||||
*/
|
||||
|
@ -206,10 +346,44 @@ type GetUserByEmailInternalServerError struct {
|
|||
Payload *auth0_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this get user by email internal server error response has a 2xx status code
|
||||
func (o *GetUserByEmailInternalServerError) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this get user by email internal server error response has a 3xx status code
|
||||
func (o *GetUserByEmailInternalServerError) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this get user by email internal server error response has a 4xx status code
|
||||
func (o *GetUserByEmailInternalServerError) IsClientError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsServerError returns true when this get user by email internal server error response has a 5xx status code
|
||||
func (o *GetUserByEmailInternalServerError) IsServerError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsCode returns true when this get user by email internal server error response a status code equal to that given
|
||||
func (o *GetUserByEmailInternalServerError) IsCode(code int) bool {
|
||||
return code == 500
|
||||
}
|
||||
|
||||
// Code gets the status code for the get user by email internal server error response
|
||||
func (o *GetUserByEmailInternalServerError) Code() int {
|
||||
return 500
|
||||
}
|
||||
|
||||
func (o *GetUserByEmailInternalServerError) Error() string {
|
||||
return fmt.Sprintf("[GET /api/v2/users-by-email][%d] getUserByEmailInternalServerError %+v", 500, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetUserByEmailInternalServerError) String() string {
|
||||
return fmt.Sprintf("[GET /api/v2/users-by-email][%d] getUserByEmailInternalServerError %+v", 500, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetUserByEmailInternalServerError) GetPayload() *auth0_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
|
|
@ -20,55 +20,57 @@ import (
|
|||
"github.com/go-openapi/strfmt"
|
||||
)
|
||||
|
||||
// NewGetUserRolesParams creates a new GetUserRolesParams object
|
||||
// with the default values initialized.
|
||||
// NewGetUserRolesParams creates a new GetUserRolesParams 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 NewGetUserRolesParams() *GetUserRolesParams {
|
||||
var ()
|
||||
return &GetUserRolesParams{
|
||||
|
||||
timeout: cr.DefaultTimeout,
|
||||
}
|
||||
}
|
||||
|
||||
// NewGetUserRolesParamsWithTimeout creates a new GetUserRolesParams object
|
||||
// with the default values initialized, and the ability to set a timeout on a request
|
||||
// with the ability to set a timeout on a request.
|
||||
func NewGetUserRolesParamsWithTimeout(timeout time.Duration) *GetUserRolesParams {
|
||||
var ()
|
||||
return &GetUserRolesParams{
|
||||
|
||||
timeout: timeout,
|
||||
}
|
||||
}
|
||||
|
||||
// NewGetUserRolesParamsWithContext creates a new GetUserRolesParams object
|
||||
// with the default values initialized, and the ability to set a context for a request
|
||||
// with the ability to set a context for a request.
|
||||
func NewGetUserRolesParamsWithContext(ctx context.Context) *GetUserRolesParams {
|
||||
var ()
|
||||
return &GetUserRolesParams{
|
||||
|
||||
Context: ctx,
|
||||
}
|
||||
}
|
||||
|
||||
// NewGetUserRolesParamsWithHTTPClient creates a new GetUserRolesParams object
|
||||
// with the default values initialized, and the ability to set a custom HTTPClient for a request
|
||||
// with the ability to set a custom HTTPClient for a request.
|
||||
func NewGetUserRolesParamsWithHTTPClient(client *http.Client) *GetUserRolesParams {
|
||||
var ()
|
||||
return &GetUserRolesParams{
|
||||
HTTPClient: client,
|
||||
}
|
||||
}
|
||||
|
||||
/*GetUserRolesParams contains all the parameters to send to the API endpoint
|
||||
for the get user roles operation typically these are written to a http.Request
|
||||
/*
|
||||
GetUserRolesParams contains all the parameters to send to the API endpoint
|
||||
|
||||
for the get user roles operation.
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
*/
|
||||
type GetUserRolesParams struct {
|
||||
|
||||
/*Authorization*/
|
||||
// Authorization.
|
||||
Authorization string
|
||||
/*UserID
|
||||
An Auth0 User ID
|
||||
|
||||
/* UserID.
|
||||
|
||||
An Auth0 User ID
|
||||
*/
|
||||
UserID string
|
||||
|
||||
|
@ -77,6 +79,21 @@ type GetUserRolesParams struct {
|
|||
HTTPClient *http.Client
|
||||
}
|
||||
|
||||
// WithDefaults hydrates default values in the get user roles params (not the query body).
|
||||
//
|
||||
// All values with no default are reset to their zero value.
|
||||
func (o *GetUserRolesParams) WithDefaults() *GetUserRolesParams {
|
||||
o.SetDefaults()
|
||||
return o
|
||||
}
|
||||
|
||||
// SetDefaults hydrates default values in the get user roles params (not the query body).
|
||||
//
|
||||
// All values with no default are reset to their zero value.
|
||||
func (o *GetUserRolesParams) SetDefaults() {
|
||||
// no default values defined for this parameter
|
||||
}
|
||||
|
||||
// WithTimeout adds the timeout to the get user roles params
|
||||
func (o *GetUserRolesParams) WithTimeout(timeout time.Duration) *GetUserRolesParams {
|
||||
o.SetTimeout(timeout)
|
||||
|
|
|
@ -57,9 +57,8 @@ func (o *GetUserRolesReader) ReadResponse(response runtime.ClientResponse, consu
|
|||
return nil, err
|
||||
}
|
||||
return nil, result
|
||||
|
||||
default:
|
||||
return nil, runtime.NewAPIError("unknown error", response, response.Code())
|
||||
return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code())
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -68,7 +67,8 @@ func NewGetUserRolesOK() *GetUserRolesOK {
|
|||
return &GetUserRolesOK{}
|
||||
}
|
||||
|
||||
/*GetUserRolesOK handles this case with default header values.
|
||||
/*
|
||||
GetUserRolesOK describes a response with status code 200, with default header values.
|
||||
|
||||
Taxnexus Response with User objects
|
||||
*/
|
||||
|
@ -76,10 +76,44 @@ type GetUserRolesOK struct {
|
|||
Payload *auth0_models.RoleResponse
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this get user roles o k response has a 2xx status code
|
||||
func (o *GetUserRolesOK) IsSuccess() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this get user roles o k response has a 3xx status code
|
||||
func (o *GetUserRolesOK) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this get user roles o k response has a 4xx status code
|
||||
func (o *GetUserRolesOK) IsClientError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsServerError returns true when this get user roles o k response has a 5xx status code
|
||||
func (o *GetUserRolesOK) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this get user roles o k response a status code equal to that given
|
||||
func (o *GetUserRolesOK) IsCode(code int) bool {
|
||||
return code == 200
|
||||
}
|
||||
|
||||
// Code gets the status code for the get user roles o k response
|
||||
func (o *GetUserRolesOK) Code() int {
|
||||
return 200
|
||||
}
|
||||
|
||||
func (o *GetUserRolesOK) Error() string {
|
||||
return fmt.Sprintf("[GET /api/v2/users/{userId}/roles][%d] getUserRolesOK %+v", 200, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetUserRolesOK) String() string {
|
||||
return fmt.Sprintf("[GET /api/v2/users/{userId}/roles][%d] getUserRolesOK %+v", 200, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetUserRolesOK) GetPayload() *auth0_models.RoleResponse {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -101,7 +135,8 @@ func NewGetUserRolesUnauthorized() *GetUserRolesUnauthorized {
|
|||
return &GetUserRolesUnauthorized{}
|
||||
}
|
||||
|
||||
/*GetUserRolesUnauthorized handles this case with default header values.
|
||||
/*
|
||||
GetUserRolesUnauthorized describes a response with status code 401, with default header values.
|
||||
|
||||
Access Unauthorized, invalid API-KEY was used
|
||||
*/
|
||||
|
@ -109,10 +144,44 @@ type GetUserRolesUnauthorized struct {
|
|||
Payload *auth0_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this get user roles unauthorized response has a 2xx status code
|
||||
func (o *GetUserRolesUnauthorized) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this get user roles unauthorized response has a 3xx status code
|
||||
func (o *GetUserRolesUnauthorized) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this get user roles unauthorized response has a 4xx status code
|
||||
func (o *GetUserRolesUnauthorized) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this get user roles unauthorized response has a 5xx status code
|
||||
func (o *GetUserRolesUnauthorized) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this get user roles unauthorized response a status code equal to that given
|
||||
func (o *GetUserRolesUnauthorized) IsCode(code int) bool {
|
||||
return code == 401
|
||||
}
|
||||
|
||||
// Code gets the status code for the get user roles unauthorized response
|
||||
func (o *GetUserRolesUnauthorized) Code() int {
|
||||
return 401
|
||||
}
|
||||
|
||||
func (o *GetUserRolesUnauthorized) Error() string {
|
||||
return fmt.Sprintf("[GET /api/v2/users/{userId}/roles][%d] getUserRolesUnauthorized %+v", 401, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetUserRolesUnauthorized) String() string {
|
||||
return fmt.Sprintf("[GET /api/v2/users/{userId}/roles][%d] getUserRolesUnauthorized %+v", 401, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetUserRolesUnauthorized) GetPayload() *auth0_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -134,7 +203,8 @@ func NewGetUserRolesForbidden() *GetUserRolesForbidden {
|
|||
return &GetUserRolesForbidden{}
|
||||
}
|
||||
|
||||
/*GetUserRolesForbidden handles this case with default header values.
|
||||
/*
|
||||
GetUserRolesForbidden describes a response with status code 403, with default header values.
|
||||
|
||||
Access forbidden, account lacks access
|
||||
*/
|
||||
|
@ -142,10 +212,44 @@ type GetUserRolesForbidden struct {
|
|||
Payload *auth0_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this get user roles forbidden response has a 2xx status code
|
||||
func (o *GetUserRolesForbidden) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this get user roles forbidden response has a 3xx status code
|
||||
func (o *GetUserRolesForbidden) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this get user roles forbidden response has a 4xx status code
|
||||
func (o *GetUserRolesForbidden) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this get user roles forbidden response has a 5xx status code
|
||||
func (o *GetUserRolesForbidden) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this get user roles forbidden response a status code equal to that given
|
||||
func (o *GetUserRolesForbidden) IsCode(code int) bool {
|
||||
return code == 403
|
||||
}
|
||||
|
||||
// Code gets the status code for the get user roles forbidden response
|
||||
func (o *GetUserRolesForbidden) Code() int {
|
||||
return 403
|
||||
}
|
||||
|
||||
func (o *GetUserRolesForbidden) Error() string {
|
||||
return fmt.Sprintf("[GET /api/v2/users/{userId}/roles][%d] getUserRolesForbidden %+v", 403, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetUserRolesForbidden) String() string {
|
||||
return fmt.Sprintf("[GET /api/v2/users/{userId}/roles][%d] getUserRolesForbidden %+v", 403, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetUserRolesForbidden) GetPayload() *auth0_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -167,7 +271,8 @@ func NewGetUserRolesNotFound() *GetUserRolesNotFound {
|
|||
return &GetUserRolesNotFound{}
|
||||
}
|
||||
|
||||
/*GetUserRolesNotFound handles this case with default header values.
|
||||
/*
|
||||
GetUserRolesNotFound describes a response with status code 404, with default header values.
|
||||
|
||||
Resource was not found
|
||||
*/
|
||||
|
@ -175,10 +280,44 @@ type GetUserRolesNotFound struct {
|
|||
Payload *auth0_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this get user roles not found response has a 2xx status code
|
||||
func (o *GetUserRolesNotFound) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this get user roles not found response has a 3xx status code
|
||||
func (o *GetUserRolesNotFound) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this get user roles not found response has a 4xx status code
|
||||
func (o *GetUserRolesNotFound) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this get user roles not found response has a 5xx status code
|
||||
func (o *GetUserRolesNotFound) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this get user roles not found response a status code equal to that given
|
||||
func (o *GetUserRolesNotFound) IsCode(code int) bool {
|
||||
return code == 404
|
||||
}
|
||||
|
||||
// Code gets the status code for the get user roles not found response
|
||||
func (o *GetUserRolesNotFound) Code() int {
|
||||
return 404
|
||||
}
|
||||
|
||||
func (o *GetUserRolesNotFound) Error() string {
|
||||
return fmt.Sprintf("[GET /api/v2/users/{userId}/roles][%d] getUserRolesNotFound %+v", 404, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetUserRolesNotFound) String() string {
|
||||
return fmt.Sprintf("[GET /api/v2/users/{userId}/roles][%d] getUserRolesNotFound %+v", 404, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetUserRolesNotFound) GetPayload() *auth0_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -200,7 +339,8 @@ func NewGetUserRolesInternalServerError() *GetUserRolesInternalServerError {
|
|||
return &GetUserRolesInternalServerError{}
|
||||
}
|
||||
|
||||
/*GetUserRolesInternalServerError handles this case with default header values.
|
||||
/*
|
||||
GetUserRolesInternalServerError describes a response with status code 500, with default header values.
|
||||
|
||||
Server Internal Error
|
||||
*/
|
||||
|
@ -208,10 +348,44 @@ type GetUserRolesInternalServerError struct {
|
|||
Payload *auth0_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this get user roles internal server error response has a 2xx status code
|
||||
func (o *GetUserRolesInternalServerError) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this get user roles internal server error response has a 3xx status code
|
||||
func (o *GetUserRolesInternalServerError) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this get user roles internal server error response has a 4xx status code
|
||||
func (o *GetUserRolesInternalServerError) IsClientError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsServerError returns true when this get user roles internal server error response has a 5xx status code
|
||||
func (o *GetUserRolesInternalServerError) IsServerError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsCode returns true when this get user roles internal server error response a status code equal to that given
|
||||
func (o *GetUserRolesInternalServerError) IsCode(code int) bool {
|
||||
return code == 500
|
||||
}
|
||||
|
||||
// Code gets the status code for the get user roles internal server error response
|
||||
func (o *GetUserRolesInternalServerError) Code() int {
|
||||
return 500
|
||||
}
|
||||
|
||||
func (o *GetUserRolesInternalServerError) Error() string {
|
||||
return fmt.Sprintf("[GET /api/v2/users/{userId}/roles][%d] getUserRolesInternalServerError %+v", 500, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetUserRolesInternalServerError) String() string {
|
||||
return fmt.Sprintf("[GET /api/v2/users/{userId}/roles][%d] getUserRolesInternalServerError %+v", 500, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetUserRolesInternalServerError) GetPayload() *auth0_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
|
|
@ -20,51 +20,52 @@ import (
|
|||
"github.com/go-openapi/strfmt"
|
||||
)
|
||||
|
||||
// NewGetUsersParams creates a new GetUsersParams object
|
||||
// with the default values initialized.
|
||||
// NewGetUsersParams creates a new GetUsersParams 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 NewGetUsersParams() *GetUsersParams {
|
||||
var ()
|
||||
return &GetUsersParams{
|
||||
|
||||
timeout: cr.DefaultTimeout,
|
||||
}
|
||||
}
|
||||
|
||||
// NewGetUsersParamsWithTimeout creates a new GetUsersParams object
|
||||
// with the default values initialized, and the ability to set a timeout on a request
|
||||
// with the ability to set a timeout on a request.
|
||||
func NewGetUsersParamsWithTimeout(timeout time.Duration) *GetUsersParams {
|
||||
var ()
|
||||
return &GetUsersParams{
|
||||
|
||||
timeout: timeout,
|
||||
}
|
||||
}
|
||||
|
||||
// NewGetUsersParamsWithContext creates a new GetUsersParams object
|
||||
// with the default values initialized, and the ability to set a context for a request
|
||||
// with the ability to set a context for a request.
|
||||
func NewGetUsersParamsWithContext(ctx context.Context) *GetUsersParams {
|
||||
var ()
|
||||
return &GetUsersParams{
|
||||
|
||||
Context: ctx,
|
||||
}
|
||||
}
|
||||
|
||||
// NewGetUsersParamsWithHTTPClient creates a new GetUsersParams object
|
||||
// with the default values initialized, and the ability to set a custom HTTPClient for a request
|
||||
// with the ability to set a custom HTTPClient for a request.
|
||||
func NewGetUsersParamsWithHTTPClient(client *http.Client) *GetUsersParams {
|
||||
var ()
|
||||
return &GetUsersParams{
|
||||
HTTPClient: client,
|
||||
}
|
||||
}
|
||||
|
||||
/*GetUsersParams contains all the parameters to send to the API endpoint
|
||||
for the get users operation typically these are written to a http.Request
|
||||
/*
|
||||
GetUsersParams contains all the parameters to send to the API endpoint
|
||||
|
||||
for the get users operation.
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
*/
|
||||
type GetUsersParams struct {
|
||||
|
||||
/*Authorization*/
|
||||
// Authorization.
|
||||
Authorization string
|
||||
|
||||
timeout time.Duration
|
||||
|
@ -72,6 +73,21 @@ type GetUsersParams struct {
|
|||
HTTPClient *http.Client
|
||||
}
|
||||
|
||||
// WithDefaults hydrates default values in the get users params (not the query body).
|
||||
//
|
||||
// All values with no default are reset to their zero value.
|
||||
func (o *GetUsersParams) WithDefaults() *GetUsersParams {
|
||||
o.SetDefaults()
|
||||
return o
|
||||
}
|
||||
|
||||
// SetDefaults hydrates default values in the get users params (not the query body).
|
||||
//
|
||||
// All values with no default are reset to their zero value.
|
||||
func (o *GetUsersParams) SetDefaults() {
|
||||
// no default values defined for this parameter
|
||||
}
|
||||
|
||||
// WithTimeout adds the timeout to the get users params
|
||||
func (o *GetUsersParams) WithTimeout(timeout time.Duration) *GetUsersParams {
|
||||
o.SetTimeout(timeout)
|
||||
|
|
|
@ -57,9 +57,8 @@ func (o *GetUsersReader) ReadResponse(response runtime.ClientResponse, consumer
|
|||
return nil, err
|
||||
}
|
||||
return nil, result
|
||||
|
||||
default:
|
||||
return nil, runtime.NewAPIError("unknown error", response, response.Code())
|
||||
return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code())
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -68,7 +67,8 @@ func NewGetUsersOK() *GetUsersOK {
|
|||
return &GetUsersOK{}
|
||||
}
|
||||
|
||||
/*GetUsersOK handles this case with default header values.
|
||||
/*
|
||||
GetUsersOK describes a response with status code 200, with default header values.
|
||||
|
||||
Taxnexus Response with User objects
|
||||
*/
|
||||
|
@ -76,10 +76,44 @@ type GetUsersOK struct {
|
|||
Payload []*auth0_models.User
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this get users o k response has a 2xx status code
|
||||
func (o *GetUsersOK) IsSuccess() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this get users o k response has a 3xx status code
|
||||
func (o *GetUsersOK) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this get users o k response has a 4xx status code
|
||||
func (o *GetUsersOK) IsClientError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsServerError returns true when this get users o k response has a 5xx status code
|
||||
func (o *GetUsersOK) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this get users o k response a status code equal to that given
|
||||
func (o *GetUsersOK) IsCode(code int) bool {
|
||||
return code == 200
|
||||
}
|
||||
|
||||
// Code gets the status code for the get users o k response
|
||||
func (o *GetUsersOK) Code() int {
|
||||
return 200
|
||||
}
|
||||
|
||||
func (o *GetUsersOK) Error() string {
|
||||
return fmt.Sprintf("[GET /api/v2/users][%d] getUsersOK %+v", 200, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetUsersOK) String() string {
|
||||
return fmt.Sprintf("[GET /api/v2/users][%d] getUsersOK %+v", 200, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetUsersOK) GetPayload() []*auth0_models.User {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -99,7 +133,8 @@ func NewGetUsersUnauthorized() *GetUsersUnauthorized {
|
|||
return &GetUsersUnauthorized{}
|
||||
}
|
||||
|
||||
/*GetUsersUnauthorized handles this case with default header values.
|
||||
/*
|
||||
GetUsersUnauthorized describes a response with status code 401, with default header values.
|
||||
|
||||
Access Unauthorized, invalid API-KEY was used
|
||||
*/
|
||||
|
@ -107,10 +142,44 @@ type GetUsersUnauthorized struct {
|
|||
Payload *auth0_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this get users unauthorized response has a 2xx status code
|
||||
func (o *GetUsersUnauthorized) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this get users unauthorized response has a 3xx status code
|
||||
func (o *GetUsersUnauthorized) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this get users unauthorized response has a 4xx status code
|
||||
func (o *GetUsersUnauthorized) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this get users unauthorized response has a 5xx status code
|
||||
func (o *GetUsersUnauthorized) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this get users unauthorized response a status code equal to that given
|
||||
func (o *GetUsersUnauthorized) IsCode(code int) bool {
|
||||
return code == 401
|
||||
}
|
||||
|
||||
// Code gets the status code for the get users unauthorized response
|
||||
func (o *GetUsersUnauthorized) Code() int {
|
||||
return 401
|
||||
}
|
||||
|
||||
func (o *GetUsersUnauthorized) Error() string {
|
||||
return fmt.Sprintf("[GET /api/v2/users][%d] getUsersUnauthorized %+v", 401, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetUsersUnauthorized) String() string {
|
||||
return fmt.Sprintf("[GET /api/v2/users][%d] getUsersUnauthorized %+v", 401, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetUsersUnauthorized) GetPayload() *auth0_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -132,7 +201,8 @@ func NewGetUsersForbidden() *GetUsersForbidden {
|
|||
return &GetUsersForbidden{}
|
||||
}
|
||||
|
||||
/*GetUsersForbidden handles this case with default header values.
|
||||
/*
|
||||
GetUsersForbidden describes a response with status code 403, with default header values.
|
||||
|
||||
Access forbidden, account lacks access
|
||||
*/
|
||||
|
@ -140,10 +210,44 @@ type GetUsersForbidden struct {
|
|||
Payload *auth0_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this get users forbidden response has a 2xx status code
|
||||
func (o *GetUsersForbidden) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this get users forbidden response has a 3xx status code
|
||||
func (o *GetUsersForbidden) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this get users forbidden response has a 4xx status code
|
||||
func (o *GetUsersForbidden) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this get users forbidden response has a 5xx status code
|
||||
func (o *GetUsersForbidden) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this get users forbidden response a status code equal to that given
|
||||
func (o *GetUsersForbidden) IsCode(code int) bool {
|
||||
return code == 403
|
||||
}
|
||||
|
||||
// Code gets the status code for the get users forbidden response
|
||||
func (o *GetUsersForbidden) Code() int {
|
||||
return 403
|
||||
}
|
||||
|
||||
func (o *GetUsersForbidden) Error() string {
|
||||
return fmt.Sprintf("[GET /api/v2/users][%d] getUsersForbidden %+v", 403, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetUsersForbidden) String() string {
|
||||
return fmt.Sprintf("[GET /api/v2/users][%d] getUsersForbidden %+v", 403, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetUsersForbidden) GetPayload() *auth0_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -165,7 +269,8 @@ func NewGetUsersNotFound() *GetUsersNotFound {
|
|||
return &GetUsersNotFound{}
|
||||
}
|
||||
|
||||
/*GetUsersNotFound handles this case with default header values.
|
||||
/*
|
||||
GetUsersNotFound describes a response with status code 404, with default header values.
|
||||
|
||||
Resource was not found
|
||||
*/
|
||||
|
@ -173,10 +278,44 @@ type GetUsersNotFound struct {
|
|||
Payload *auth0_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this get users not found response has a 2xx status code
|
||||
func (o *GetUsersNotFound) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this get users not found response has a 3xx status code
|
||||
func (o *GetUsersNotFound) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this get users not found response has a 4xx status code
|
||||
func (o *GetUsersNotFound) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this get users not found response has a 5xx status code
|
||||
func (o *GetUsersNotFound) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this get users not found response a status code equal to that given
|
||||
func (o *GetUsersNotFound) IsCode(code int) bool {
|
||||
return code == 404
|
||||
}
|
||||
|
||||
// Code gets the status code for the get users not found response
|
||||
func (o *GetUsersNotFound) Code() int {
|
||||
return 404
|
||||
}
|
||||
|
||||
func (o *GetUsersNotFound) Error() string {
|
||||
return fmt.Sprintf("[GET /api/v2/users][%d] getUsersNotFound %+v", 404, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetUsersNotFound) String() string {
|
||||
return fmt.Sprintf("[GET /api/v2/users][%d] getUsersNotFound %+v", 404, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetUsersNotFound) GetPayload() *auth0_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -198,7 +337,8 @@ func NewGetUsersInternalServerError() *GetUsersInternalServerError {
|
|||
return &GetUsersInternalServerError{}
|
||||
}
|
||||
|
||||
/*GetUsersInternalServerError handles this case with default header values.
|
||||
/*
|
||||
GetUsersInternalServerError describes a response with status code 500, with default header values.
|
||||
|
||||
Server Internal Error
|
||||
*/
|
||||
|
@ -206,10 +346,44 @@ type GetUsersInternalServerError struct {
|
|||
Payload *auth0_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this get users internal server error response has a 2xx status code
|
||||
func (o *GetUsersInternalServerError) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this get users internal server error response has a 3xx status code
|
||||
func (o *GetUsersInternalServerError) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this get users internal server error response has a 4xx status code
|
||||
func (o *GetUsersInternalServerError) IsClientError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsServerError returns true when this get users internal server error response has a 5xx status code
|
||||
func (o *GetUsersInternalServerError) IsServerError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsCode returns true when this get users internal server error response a status code equal to that given
|
||||
func (o *GetUsersInternalServerError) IsCode(code int) bool {
|
||||
return code == 500
|
||||
}
|
||||
|
||||
// Code gets the status code for the get users internal server error response
|
||||
func (o *GetUsersInternalServerError) Code() int {
|
||||
return 500
|
||||
}
|
||||
|
||||
func (o *GetUsersInternalServerError) Error() string {
|
||||
return fmt.Sprintf("[GET /api/v2/users][%d] getUsersInternalServerError %+v", 500, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetUsersInternalServerError) String() string {
|
||||
return fmt.Sprintf("[GET /api/v2/users][%d] getUsersInternalServerError %+v", 500, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetUsersInternalServerError) GetPayload() *auth0_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
|
|
@ -22,55 +22,57 @@ import (
|
|||
"code.tnxs.net/vernonkeenan/lib/api/auth0/auth0_models"
|
||||
)
|
||||
|
||||
// NewPostUsersParams creates a new PostUsersParams object
|
||||
// with the default values initialized.
|
||||
// NewPostUsersParams creates a new PostUsersParams 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 NewPostUsersParams() *PostUsersParams {
|
||||
var ()
|
||||
return &PostUsersParams{
|
||||
|
||||
timeout: cr.DefaultTimeout,
|
||||
}
|
||||
}
|
||||
|
||||
// NewPostUsersParamsWithTimeout creates a new PostUsersParams object
|
||||
// with the default values initialized, and the ability to set a timeout on a request
|
||||
// with the ability to set a timeout on a request.
|
||||
func NewPostUsersParamsWithTimeout(timeout time.Duration) *PostUsersParams {
|
||||
var ()
|
||||
return &PostUsersParams{
|
||||
|
||||
timeout: timeout,
|
||||
}
|
||||
}
|
||||
|
||||
// NewPostUsersParamsWithContext creates a new PostUsersParams object
|
||||
// with the default values initialized, and the ability to set a context for a request
|
||||
// with the ability to set a context for a request.
|
||||
func NewPostUsersParamsWithContext(ctx context.Context) *PostUsersParams {
|
||||
var ()
|
||||
return &PostUsersParams{
|
||||
|
||||
Context: ctx,
|
||||
}
|
||||
}
|
||||
|
||||
// NewPostUsersParamsWithHTTPClient creates a new PostUsersParams object
|
||||
// with the default values initialized, and the ability to set a custom HTTPClient for a request
|
||||
// with the ability to set a custom HTTPClient for a request.
|
||||
func NewPostUsersParamsWithHTTPClient(client *http.Client) *PostUsersParams {
|
||||
var ()
|
||||
return &PostUsersParams{
|
||||
HTTPClient: client,
|
||||
}
|
||||
}
|
||||
|
||||
/*PostUsersParams contains all the parameters to send to the API endpoint
|
||||
for the post users operation typically these are written to a http.Request
|
||||
/*
|
||||
PostUsersParams contains all the parameters to send to the API endpoint
|
||||
|
||||
for the post users operation.
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
*/
|
||||
type PostUsersParams struct {
|
||||
|
||||
/*Authorization*/
|
||||
// Authorization.
|
||||
Authorization string
|
||||
/*UserRequest
|
||||
An array of User records
|
||||
|
||||
/* UserRequest.
|
||||
|
||||
An array of User records
|
||||
*/
|
||||
UserRequest *auth0_models.UserRequest
|
||||
|
||||
|
@ -79,6 +81,21 @@ type PostUsersParams struct {
|
|||
HTTPClient *http.Client
|
||||
}
|
||||
|
||||
// WithDefaults hydrates default values in the post users params (not the query body).
|
||||
//
|
||||
// All values with no default are reset to their zero value.
|
||||
func (o *PostUsersParams) WithDefaults() *PostUsersParams {
|
||||
o.SetDefaults()
|
||||
return o
|
||||
}
|
||||
|
||||
// SetDefaults hydrates default values in the post users params (not the query body).
|
||||
//
|
||||
// All values with no default are reset to their zero value.
|
||||
func (o *PostUsersParams) SetDefaults() {
|
||||
// no default values defined for this parameter
|
||||
}
|
||||
|
||||
// WithTimeout adds the timeout to the post users params
|
||||
func (o *PostUsersParams) WithTimeout(timeout time.Duration) *PostUsersParams {
|
||||
o.SetTimeout(timeout)
|
||||
|
@ -146,7 +163,6 @@ func (o *PostUsersParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Reg
|
|||
if err := r.SetHeaderParam("Authorization", o.Authorization); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
if o.UserRequest != nil {
|
||||
if err := r.SetBodyParam(o.UserRequest); err != nil {
|
||||
return err
|
||||
|
|
|
@ -63,9 +63,8 @@ func (o *PostUsersReader) ReadResponse(response runtime.ClientResponse, consumer
|
|||
return nil, err
|
||||
}
|
||||
return nil, result
|
||||
|
||||
default:
|
||||
return nil, runtime.NewAPIError("unknown error", response, response.Code())
|
||||
return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code())
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -74,17 +73,52 @@ func NewPostUsersCreated() *PostUsersCreated {
|
|||
return &PostUsersCreated{}
|
||||
}
|
||||
|
||||
/*PostUsersCreated handles this case with default header values.
|
||||
/*
|
||||
PostUsersCreated describes a response with status code 201, with default header values.
|
||||
|
||||
New user created
|
||||
*/
|
||||
type PostUsersCreated struct {
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this post users created response has a 2xx status code
|
||||
func (o *PostUsersCreated) IsSuccess() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this post users created response has a 3xx status code
|
||||
func (o *PostUsersCreated) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this post users created response has a 4xx status code
|
||||
func (o *PostUsersCreated) IsClientError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsServerError returns true when this post users created response has a 5xx status code
|
||||
func (o *PostUsersCreated) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this post users created response a status code equal to that given
|
||||
func (o *PostUsersCreated) IsCode(code int) bool {
|
||||
return code == 201
|
||||
}
|
||||
|
||||
// Code gets the status code for the post users created response
|
||||
func (o *PostUsersCreated) Code() int {
|
||||
return 201
|
||||
}
|
||||
|
||||
func (o *PostUsersCreated) Error() string {
|
||||
return fmt.Sprintf("[POST /api/v2/users-by-email][%d] postUsersCreated ", 201)
|
||||
}
|
||||
|
||||
func (o *PostUsersCreated) String() string {
|
||||
return fmt.Sprintf("[POST /api/v2/users-by-email][%d] postUsersCreated ", 201)
|
||||
}
|
||||
|
||||
func (o *PostUsersCreated) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
||||
|
||||
return nil
|
||||
|
@ -95,7 +129,8 @@ func NewPostUsersUnauthorized() *PostUsersUnauthorized {
|
|||
return &PostUsersUnauthorized{}
|
||||
}
|
||||
|
||||
/*PostUsersUnauthorized handles this case with default header values.
|
||||
/*
|
||||
PostUsersUnauthorized describes a response with status code 401, with default header values.
|
||||
|
||||
Access Unauthorized, invalid API-KEY was used
|
||||
*/
|
||||
|
@ -103,10 +138,44 @@ type PostUsersUnauthorized struct {
|
|||
Payload *auth0_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this post users unauthorized response has a 2xx status code
|
||||
func (o *PostUsersUnauthorized) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this post users unauthorized response has a 3xx status code
|
||||
func (o *PostUsersUnauthorized) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this post users unauthorized response has a 4xx status code
|
||||
func (o *PostUsersUnauthorized) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this post users unauthorized response has a 5xx status code
|
||||
func (o *PostUsersUnauthorized) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this post users unauthorized response a status code equal to that given
|
||||
func (o *PostUsersUnauthorized) IsCode(code int) bool {
|
||||
return code == 401
|
||||
}
|
||||
|
||||
// Code gets the status code for the post users unauthorized response
|
||||
func (o *PostUsersUnauthorized) Code() int {
|
||||
return 401
|
||||
}
|
||||
|
||||
func (o *PostUsersUnauthorized) Error() string {
|
||||
return fmt.Sprintf("[POST /api/v2/users-by-email][%d] postUsersUnauthorized %+v", 401, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PostUsersUnauthorized) String() string {
|
||||
return fmt.Sprintf("[POST /api/v2/users-by-email][%d] postUsersUnauthorized %+v", 401, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PostUsersUnauthorized) GetPayload() *auth0_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -128,7 +197,8 @@ func NewPostUsersForbidden() *PostUsersForbidden {
|
|||
return &PostUsersForbidden{}
|
||||
}
|
||||
|
||||
/*PostUsersForbidden handles this case with default header values.
|
||||
/*
|
||||
PostUsersForbidden describes a response with status code 403, with default header values.
|
||||
|
||||
Access forbidden, account lacks access
|
||||
*/
|
||||
|
@ -136,10 +206,44 @@ type PostUsersForbidden struct {
|
|||
Payload *auth0_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this post users forbidden response has a 2xx status code
|
||||
func (o *PostUsersForbidden) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this post users forbidden response has a 3xx status code
|
||||
func (o *PostUsersForbidden) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this post users forbidden response has a 4xx status code
|
||||
func (o *PostUsersForbidden) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this post users forbidden response has a 5xx status code
|
||||
func (o *PostUsersForbidden) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this post users forbidden response a status code equal to that given
|
||||
func (o *PostUsersForbidden) IsCode(code int) bool {
|
||||
return code == 403
|
||||
}
|
||||
|
||||
// Code gets the status code for the post users forbidden response
|
||||
func (o *PostUsersForbidden) Code() int {
|
||||
return 403
|
||||
}
|
||||
|
||||
func (o *PostUsersForbidden) Error() string {
|
||||
return fmt.Sprintf("[POST /api/v2/users-by-email][%d] postUsersForbidden %+v", 403, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PostUsersForbidden) String() string {
|
||||
return fmt.Sprintf("[POST /api/v2/users-by-email][%d] postUsersForbidden %+v", 403, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PostUsersForbidden) GetPayload() *auth0_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -161,7 +265,8 @@ func NewPostUsersNotFound() *PostUsersNotFound {
|
|||
return &PostUsersNotFound{}
|
||||
}
|
||||
|
||||
/*PostUsersNotFound handles this case with default header values.
|
||||
/*
|
||||
PostUsersNotFound describes a response with status code 404, with default header values.
|
||||
|
||||
Resource was not found
|
||||
*/
|
||||
|
@ -169,10 +274,44 @@ type PostUsersNotFound struct {
|
|||
Payload *auth0_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this post users not found response has a 2xx status code
|
||||
func (o *PostUsersNotFound) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this post users not found response has a 3xx status code
|
||||
func (o *PostUsersNotFound) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this post users not found response has a 4xx status code
|
||||
func (o *PostUsersNotFound) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this post users not found response has a 5xx status code
|
||||
func (o *PostUsersNotFound) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this post users not found response a status code equal to that given
|
||||
func (o *PostUsersNotFound) IsCode(code int) bool {
|
||||
return code == 404
|
||||
}
|
||||
|
||||
// Code gets the status code for the post users not found response
|
||||
func (o *PostUsersNotFound) Code() int {
|
||||
return 404
|
||||
}
|
||||
|
||||
func (o *PostUsersNotFound) Error() string {
|
||||
return fmt.Sprintf("[POST /api/v2/users-by-email][%d] postUsersNotFound %+v", 404, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PostUsersNotFound) String() string {
|
||||
return fmt.Sprintf("[POST /api/v2/users-by-email][%d] postUsersNotFound %+v", 404, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PostUsersNotFound) GetPayload() *auth0_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -194,17 +333,52 @@ func NewPostUsersConflict() *PostUsersConflict {
|
|||
return &PostUsersConflict{}
|
||||
}
|
||||
|
||||
/*PostUsersConflict handles this case with default header values.
|
||||
/*
|
||||
PostUsersConflict describes a response with status code 409, with default header values.
|
||||
|
||||
User already exists
|
||||
*/
|
||||
type PostUsersConflict struct {
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this post users conflict response has a 2xx status code
|
||||
func (o *PostUsersConflict) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this post users conflict response has a 3xx status code
|
||||
func (o *PostUsersConflict) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this post users conflict response has a 4xx status code
|
||||
func (o *PostUsersConflict) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this post users conflict response has a 5xx status code
|
||||
func (o *PostUsersConflict) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this post users conflict response a status code equal to that given
|
||||
func (o *PostUsersConflict) IsCode(code int) bool {
|
||||
return code == 409
|
||||
}
|
||||
|
||||
// Code gets the status code for the post users conflict response
|
||||
func (o *PostUsersConflict) Code() int {
|
||||
return 409
|
||||
}
|
||||
|
||||
func (o *PostUsersConflict) Error() string {
|
||||
return fmt.Sprintf("[POST /api/v2/users-by-email][%d] postUsersConflict ", 409)
|
||||
}
|
||||
|
||||
func (o *PostUsersConflict) String() string {
|
||||
return fmt.Sprintf("[POST /api/v2/users-by-email][%d] postUsersConflict ", 409)
|
||||
}
|
||||
|
||||
func (o *PostUsersConflict) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
||||
|
||||
return nil
|
||||
|
@ -215,7 +389,8 @@ func NewPostUsersInternalServerError() *PostUsersInternalServerError {
|
|||
return &PostUsersInternalServerError{}
|
||||
}
|
||||
|
||||
/*PostUsersInternalServerError handles this case with default header values.
|
||||
/*
|
||||
PostUsersInternalServerError describes a response with status code 500, with default header values.
|
||||
|
||||
Server Internal Error
|
||||
*/
|
||||
|
@ -223,10 +398,44 @@ type PostUsersInternalServerError struct {
|
|||
Payload *auth0_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this post users internal server error response has a 2xx status code
|
||||
func (o *PostUsersInternalServerError) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this post users internal server error response has a 3xx status code
|
||||
func (o *PostUsersInternalServerError) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this post users internal server error response has a 4xx status code
|
||||
func (o *PostUsersInternalServerError) IsClientError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsServerError returns true when this post users internal server error response has a 5xx status code
|
||||
func (o *PostUsersInternalServerError) IsServerError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsCode returns true when this post users internal server error response a status code equal to that given
|
||||
func (o *PostUsersInternalServerError) IsCode(code int) bool {
|
||||
return code == 500
|
||||
}
|
||||
|
||||
// Code gets the status code for the post users internal server error response
|
||||
func (o *PostUsersInternalServerError) Code() int {
|
||||
return 500
|
||||
}
|
||||
|
||||
func (o *PostUsersInternalServerError) Error() string {
|
||||
return fmt.Sprintf("[POST /api/v2/users-by-email][%d] postUsersInternalServerError %+v", 500, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PostUsersInternalServerError) String() string {
|
||||
return fmt.Sprintf("[POST /api/v2/users-by-email][%d] postUsersInternalServerError %+v", 500, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PostUsersInternalServerError) GetPayload() *auth0_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
|
|
@ -29,31 +29,33 @@ type Client struct {
|
|||
formats strfmt.Registry
|
||||
}
|
||||
|
||||
// ClientOption is the option for Client methods
|
||||
type ClientOption func(*runtime.ClientOperation)
|
||||
|
||||
// ClientService is the interface for Client methods
|
||||
type ClientService interface {
|
||||
DeleteAPIV2UsersUserIDRoles(params *DeleteAPIV2UsersUserIDRolesParams) (*DeleteAPIV2UsersUserIDRolesNoContent, error)
|
||||
DeleteAPIV2UsersUserIDRoles(params *DeleteAPIV2UsersUserIDRolesParams, opts ...ClientOption) (*DeleteAPIV2UsersUserIDRolesNoContent, error)
|
||||
|
||||
GetUserByEmail(params *GetUserByEmailParams) (*GetUserByEmailOK, error)
|
||||
GetUserByEmail(params *GetUserByEmailParams, opts ...ClientOption) (*GetUserByEmailOK, error)
|
||||
|
||||
GetUserRoles(params *GetUserRolesParams) (*GetUserRolesOK, error)
|
||||
GetUserRoles(params *GetUserRolesParams, opts ...ClientOption) (*GetUserRolesOK, error)
|
||||
|
||||
GetUsers(params *GetUsersParams) (*GetUsersOK, error)
|
||||
GetUsers(params *GetUsersParams, opts ...ClientOption) (*GetUsersOK, error)
|
||||
|
||||
PostUsers(params *PostUsersParams) (*PostUsersCreated, error)
|
||||
PostUsers(params *PostUsersParams, opts ...ClientOption) (*PostUsersCreated, error)
|
||||
|
||||
SetTransport(transport runtime.ClientTransport)
|
||||
}
|
||||
|
||||
/*
|
||||
DeleteAPIV2UsersUserIDRoles delete API v2 users user ID roles API
|
||||
DeleteAPIV2UsersUserIDRoles delete API v2 users user ID roles API
|
||||
*/
|
||||
func (a *Client) DeleteAPIV2UsersUserIDRoles(params *DeleteAPIV2UsersUserIDRolesParams) (*DeleteAPIV2UsersUserIDRolesNoContent, error) {
|
||||
func (a *Client) DeleteAPIV2UsersUserIDRoles(params *DeleteAPIV2UsersUserIDRolesParams, opts ...ClientOption) (*DeleteAPIV2UsersUserIDRolesNoContent, error) {
|
||||
// TODO: Validate the params before sending
|
||||
if params == nil {
|
||||
params = NewDeleteAPIV2UsersUserIDRolesParams()
|
||||
}
|
||||
|
||||
result, err := a.transport.Submit(&runtime.ClientOperation{
|
||||
op := &runtime.ClientOperation{
|
||||
ID: "DeleteAPIV2UsersUserIDRoles",
|
||||
Method: "DELETE",
|
||||
PathPattern: "/api/v2/users/{userId}/roles",
|
||||
|
@ -64,7 +66,12 @@ func (a *Client) DeleteAPIV2UsersUserIDRoles(params *DeleteAPIV2UsersUserIDRoles
|
|||
Reader: &DeleteAPIV2UsersUserIDRolesReader{formats: a.formats},
|
||||
Context: params.Context,
|
||||
Client: params.HTTPClient,
|
||||
})
|
||||
}
|
||||
for _, opt := range opts {
|
||||
opt(op)
|
||||
}
|
||||
|
||||
result, err := a.transport.Submit(op)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
@ -79,17 +86,16 @@ func (a *Client) DeleteAPIV2UsersUserIDRoles(params *DeleteAPIV2UsersUserIDRoles
|
|||
}
|
||||
|
||||
/*
|
||||
GetUserByEmail gets a single user from auth0 by email address
|
||||
GetUserByEmail gets a single user from auth0 by email address
|
||||
|
||||
Get a single user from Auth0 by Email Address
|
||||
Get a single user from Auth0 by Email Address
|
||||
*/
|
||||
func (a *Client) GetUserByEmail(params *GetUserByEmailParams) (*GetUserByEmailOK, error) {
|
||||
func (a *Client) GetUserByEmail(params *GetUserByEmailParams, opts ...ClientOption) (*GetUserByEmailOK, error) {
|
||||
// TODO: Validate the params before sending
|
||||
if params == nil {
|
||||
params = NewGetUserByEmailParams()
|
||||
}
|
||||
|
||||
result, err := a.transport.Submit(&runtime.ClientOperation{
|
||||
op := &runtime.ClientOperation{
|
||||
ID: "getUserByEmail",
|
||||
Method: "GET",
|
||||
PathPattern: "/api/v2/users-by-email",
|
||||
|
@ -100,7 +106,12 @@ func (a *Client) GetUserByEmail(params *GetUserByEmailParams) (*GetUserByEmailOK
|
|||
Reader: &GetUserByEmailReader{formats: a.formats},
|
||||
Context: params.Context,
|
||||
Client: params.HTTPClient,
|
||||
})
|
||||
}
|
||||
for _, opt := range opts {
|
||||
opt(op)
|
||||
}
|
||||
|
||||
result, err := a.transport.Submit(op)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
@ -115,17 +126,16 @@ func (a *Client) GetUserByEmail(params *GetUserByEmailParams) (*GetUserByEmailOK
|
|||
}
|
||||
|
||||
/*
|
||||
GetUserRoles gets a user s roles
|
||||
GetUserRoles gets a user s roles
|
||||
|
||||
Get a User's Roles
|
||||
Get a User's Roles
|
||||
*/
|
||||
func (a *Client) GetUserRoles(params *GetUserRolesParams) (*GetUserRolesOK, error) {
|
||||
func (a *Client) GetUserRoles(params *GetUserRolesParams, opts ...ClientOption) (*GetUserRolesOK, error) {
|
||||
// TODO: Validate the params before sending
|
||||
if params == nil {
|
||||
params = NewGetUserRolesParams()
|
||||
}
|
||||
|
||||
result, err := a.transport.Submit(&runtime.ClientOperation{
|
||||
op := &runtime.ClientOperation{
|
||||
ID: "getUserRoles",
|
||||
Method: "GET",
|
||||
PathPattern: "/api/v2/users/{userId}/roles",
|
||||
|
@ -136,7 +146,12 @@ func (a *Client) GetUserRoles(params *GetUserRolesParams) (*GetUserRolesOK, erro
|
|||
Reader: &GetUserRolesReader{formats: a.formats},
|
||||
Context: params.Context,
|
||||
Client: params.HTTPClient,
|
||||
})
|
||||
}
|
||||
for _, opt := range opts {
|
||||
opt(op)
|
||||
}
|
||||
|
||||
result, err := a.transport.Submit(op)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
@ -151,17 +166,16 @@ func (a *Client) GetUserRoles(params *GetUserRolesParams) (*GetUserRolesOK, erro
|
|||
}
|
||||
|
||||
/*
|
||||
GetUsers gets all users from auth0
|
||||
GetUsers gets all users from auth0
|
||||
|
||||
Get all users from Auth0
|
||||
Get all users from Auth0
|
||||
*/
|
||||
func (a *Client) GetUsers(params *GetUsersParams) (*GetUsersOK, error) {
|
||||
func (a *Client) GetUsers(params *GetUsersParams, opts ...ClientOption) (*GetUsersOK, error) {
|
||||
// TODO: Validate the params before sending
|
||||
if params == nil {
|
||||
params = NewGetUsersParams()
|
||||
}
|
||||
|
||||
result, err := a.transport.Submit(&runtime.ClientOperation{
|
||||
op := &runtime.ClientOperation{
|
||||
ID: "getUsers",
|
||||
Method: "GET",
|
||||
PathPattern: "/api/v2/users",
|
||||
|
@ -172,7 +186,12 @@ func (a *Client) GetUsers(params *GetUsersParams) (*GetUsersOK, error) {
|
|||
Reader: &GetUsersReader{formats: a.formats},
|
||||
Context: params.Context,
|
||||
Client: params.HTTPClient,
|
||||
})
|
||||
}
|
||||
for _, opt := range opts {
|
||||
opt(op)
|
||||
}
|
||||
|
||||
result, err := a.transport.Submit(op)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
@ -187,17 +206,16 @@ func (a *Client) GetUsers(params *GetUsersParams) (*GetUsersOK, error) {
|
|||
}
|
||||
|
||||
/*
|
||||
PostUsers creates new auth0 user
|
||||
PostUsers creates new auth0 user
|
||||
|
||||
create new Auth0 user
|
||||
create new Auth0 user
|
||||
*/
|
||||
func (a *Client) PostUsers(params *PostUsersParams) (*PostUsersCreated, error) {
|
||||
func (a *Client) PostUsers(params *PostUsersParams, opts ...ClientOption) (*PostUsersCreated, error) {
|
||||
// TODO: Validate the params before sending
|
||||
if params == nil {
|
||||
params = NewPostUsersParams()
|
||||
}
|
||||
|
||||
result, err := a.transport.Submit(&runtime.ClientOperation{
|
||||
op := &runtime.ClientOperation{
|
||||
ID: "postUsers",
|
||||
Method: "POST",
|
||||
PathPattern: "/api/v2/users-by-email",
|
||||
|
@ -208,7 +226,12 @@ func (a *Client) PostUsers(params *PostUsersParams) (*PostUsersCreated, error) {
|
|||
Reader: &PostUsersReader{formats: a.formats},
|
||||
Context: params.Context,
|
||||
Client: params.HTTPClient,
|
||||
})
|
||||
}
|
||||
for _, opt := range opts {
|
||||
opt(op)
|
||||
}
|
||||
|
||||
result, err := a.transport.Submit(op)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
|
|
@ -10,6 +10,8 @@ package auth0_models
|
|||
// Editing this file might prove futile when you re-run the swagger generate command
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/go-openapi/strfmt"
|
||||
"github.com/go-openapi/swag"
|
||||
)
|
||||
|
@ -37,6 +39,11 @@ func (m *CredentialsRequest) Validate(formats strfmt.Registry) error {
|
|||
return nil
|
||||
}
|
||||
|
||||
// ContextValidate validates this credentials request based on context it is used
|
||||
func (m *CredentialsRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// MarshalBinary interface implementation
|
||||
func (m *CredentialsRequest) MarshalBinary() ([]byte, error) {
|
||||
if m == nil {
|
||||
|
|
|
@ -10,6 +10,8 @@ package auth0_models
|
|||
// Editing this file might prove futile when you re-run the swagger generate command
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/go-openapi/strfmt"
|
||||
"github.com/go-openapi/swag"
|
||||
)
|
||||
|
@ -37,6 +39,11 @@ func (m *CredentialsResponse) Validate(formats strfmt.Registry) error {
|
|||
return nil
|
||||
}
|
||||
|
||||
// ContextValidate validates this credentials response based on context it is used
|
||||
func (m *CredentialsResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// MarshalBinary interface implementation
|
||||
func (m *CredentialsResponse) MarshalBinary() ([]byte, error) {
|
||||
if m == nil {
|
||||
|
|
|
@ -10,6 +10,8 @@ package auth0_models
|
|||
// Editing this file might prove futile when you re-run the swagger generate command
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/go-openapi/strfmt"
|
||||
"github.com/go-openapi/swag"
|
||||
)
|
||||
|
@ -34,6 +36,11 @@ func (m *Error) Validate(formats strfmt.Registry) error {
|
|||
return nil
|
||||
}
|
||||
|
||||
// ContextValidate validates this error based on context it is used
|
||||
func (m *Error) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// MarshalBinary interface implementation
|
||||
func (m *Error) MarshalBinary() ([]byte, error) {
|
||||
if m == nil {
|
||||
|
|
|
@ -10,6 +10,8 @@ package auth0_models
|
|||
// Editing this file might prove futile when you re-run the swagger generate command
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/go-openapi/strfmt"
|
||||
"github.com/go-openapi/swag"
|
||||
)
|
||||
|
@ -20,48 +22,63 @@ import (
|
|||
type NewUser struct {
|
||||
|
||||
// blocked
|
||||
// Example: false
|
||||
Blocked bool `json:"blocked,omitempty"`
|
||||
|
||||
// connection
|
||||
// Example: Initial-Connection
|
||||
Connection string `json:"connection,omitempty"`
|
||||
|
||||
// email
|
||||
// Example: john.doe@gmail.com
|
||||
Email string `json:"email,omitempty"`
|
||||
|
||||
// email verified
|
||||
// Example: false
|
||||
EmailVerified bool `json:"email_verified,omitempty"`
|
||||
|
||||
// family name
|
||||
// Example: Doe
|
||||
FamilyName string `json:"family_name,omitempty"`
|
||||
|
||||
// given name
|
||||
// Example: John
|
||||
GivenName string `json:"given_name,omitempty"`
|
||||
|
||||
// name
|
||||
// Example: John Doe
|
||||
Name string `json:"name,omitempty"`
|
||||
|
||||
// nickname
|
||||
// Example: Johnny
|
||||
Nickname string `json:"nickname,omitempty"`
|
||||
|
||||
// password
|
||||
// Example: secret
|
||||
Password string `json:"password,omitempty"`
|
||||
|
||||
// phone number
|
||||
// Example: +199999999999999
|
||||
PhoneNumber string `json:"phone_number,omitempty"`
|
||||
|
||||
// phone verified
|
||||
// Example: false
|
||||
PhoneVerified bool `json:"phone_verified,omitempty"`
|
||||
|
||||
// picture
|
||||
// Example: https://secure.gravatar.com/avatar/15626c5e0c749cb912f9d1ad48dba440?s=480\u0026r=pg\u0026d=https%3A%2F%2Fssl.gstatic.com%2Fs2%2Fprofiles%2Fimages%2Fsilhouette80.png
|
||||
Picture string `json:"picture,omitempty"`
|
||||
|
||||
// user id
|
||||
// Example: abc
|
||||
UserID string `json:"user_id,omitempty"`
|
||||
|
||||
// username
|
||||
// Example: johndoe
|
||||
Username string `json:"username,omitempty"`
|
||||
|
||||
// verify email
|
||||
// Example: false
|
||||
VerifyEmail bool `json:"verify_email,omitempty"`
|
||||
}
|
||||
|
||||
|
@ -70,6 +87,11 @@ func (m *NewUser) Validate(formats strfmt.Registry) error {
|
|||
return nil
|
||||
}
|
||||
|
||||
// ContextValidate validates this new user based on context it is used
|
||||
func (m *NewUser) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// MarshalBinary interface implementation
|
||||
func (m *NewUser) MarshalBinary() ([]byte, error) {
|
||||
if m == nil {
|
||||
|
|
|
@ -10,6 +10,8 @@ package auth0_models
|
|||
// Editing this file might prove futile when you re-run the swagger generate command
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/go-openapi/strfmt"
|
||||
"github.com/go-openapi/swag"
|
||||
)
|
||||
|
@ -20,12 +22,15 @@ import (
|
|||
type Role struct {
|
||||
|
||||
// description
|
||||
// Example: Taxnexus API Developer
|
||||
Description string `json:"description,omitempty"`
|
||||
|
||||
// id
|
||||
// Example: rol_oWVoMn2Zx2qDSGUL
|
||||
ID string `json:"id,omitempty"`
|
||||
|
||||
// name
|
||||
// Example: Developer
|
||||
Name string `json:"name,omitempty"`
|
||||
}
|
||||
|
||||
|
@ -34,6 +39,11 @@ func (m *Role) Validate(formats strfmt.Registry) error {
|
|||
return nil
|
||||
}
|
||||
|
||||
// ContextValidate validates this role based on context it is used
|
||||
func (m *Role) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// MarshalBinary interface implementation
|
||||
func (m *Role) MarshalBinary() ([]byte, error) {
|
||||
if m == nil {
|
||||
|
|
|
@ -10,6 +10,7 @@ package auth0_models
|
|||
// Editing this file might prove futile when you re-run the swagger generate command
|
||||
|
||||
import (
|
||||
"context"
|
||||
"strconv"
|
||||
|
||||
"github.com/go-openapi/errors"
|
||||
|
@ -41,7 +42,6 @@ func (m *RoleResponse) Validate(formats strfmt.Registry) error {
|
|||
}
|
||||
|
||||
func (m *RoleResponse) validateRoles(formats strfmt.Registry) error {
|
||||
|
||||
if swag.IsZero(m.Roles) { // not required
|
||||
return nil
|
||||
}
|
||||
|
@ -55,6 +55,42 @@ func (m *RoleResponse) validateRoles(formats strfmt.Registry) error {
|
|||
if err := m.Roles[i].Validate(formats); err != nil {
|
||||
if ve, ok := err.(*errors.Validation); ok {
|
||||
return ve.ValidateName("roles" + "." + strconv.Itoa(i))
|
||||
} else if ce, ok := err.(*errors.CompositeError); ok {
|
||||
return ce.ValidateName("roles" + "." + strconv.Itoa(i))
|
||||
}
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
// ContextValidate validate this role response based on the context it is used
|
||||
func (m *RoleResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
|
||||
var res []error
|
||||
|
||||
if err := m.contextValidateRoles(ctx, formats); err != nil {
|
||||
res = append(res, err)
|
||||
}
|
||||
|
||||
if len(res) > 0 {
|
||||
return errors.CompositeValidationError(res...)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *RoleResponse) contextValidateRoles(ctx context.Context, formats strfmt.Registry) error {
|
||||
|
||||
for i := 0; i < len(m.Roles); i++ {
|
||||
|
||||
if m.Roles[i] != nil {
|
||||
if err := m.Roles[i].ContextValidate(ctx, formats); err != nil {
|
||||
if ve, ok := err.(*errors.Validation); ok {
|
||||
return ve.ValidateName("roles" + "." + strconv.Itoa(i))
|
||||
} else if ce, ok := err.(*errors.CompositeError); ok {
|
||||
return ce.ValidateName("roles" + "." + strconv.Itoa(i))
|
||||
}
|
||||
return err
|
||||
}
|
||||
|
|
|
@ -10,6 +10,8 @@ package auth0_models
|
|||
// Editing this file might prove futile when you re-run the swagger generate command
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/go-openapi/strfmt"
|
||||
"github.com/go-openapi/swag"
|
||||
)
|
||||
|
@ -28,6 +30,11 @@ func (m *RoleUsersRequest) Validate(formats strfmt.Registry) error {
|
|||
return nil
|
||||
}
|
||||
|
||||
// ContextValidate validates this role users request based on context it is used
|
||||
func (m *RoleUsersRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// MarshalBinary interface implementation
|
||||
func (m *RoleUsersRequest) MarshalBinary() ([]byte, error) {
|
||||
if m == nil {
|
||||
|
|
|
@ -10,6 +10,7 @@ package auth0_models
|
|||
// Editing this file might prove futile when you re-run the swagger generate command
|
||||
|
||||
import (
|
||||
"context"
|
||||
"strconv"
|
||||
|
||||
"github.com/go-openapi/errors"
|
||||
|
@ -26,51 +27,66 @@ type User struct {
|
|||
AppMetadata *UserAppMetadata `json:"app_metadata,omitempty"`
|
||||
|
||||
// created at
|
||||
// Example: 2018-06-06T16:00:55.930Z
|
||||
CreatedAt string `json:"created_at,omitempty"`
|
||||
|
||||
// email
|
||||
// Example: vern@taxnexus.net
|
||||
Email string `json:"email,omitempty"`
|
||||
|
||||
// email verified
|
||||
// Example: true
|
||||
EmailVerified bool `json:"email_verified,omitempty"`
|
||||
|
||||
// family name
|
||||
// Example: Keenan
|
||||
FamilyName string `json:"family_name,omitempty"`
|
||||
|
||||
// given name
|
||||
// Example: Vernon
|
||||
GivenName string `json:"given_name,omitempty"`
|
||||
|
||||
// identities
|
||||
Identities []*UserIdentitiesItems0 `json:"identities"`
|
||||
|
||||
// last ip
|
||||
// Example: 67.188.106.161
|
||||
LastIP string `json:"last_ip,omitempty"`
|
||||
|
||||
// last login
|
||||
// Example: 2020-09-22T19:19:02.706Z
|
||||
LastLogin string `json:"last_login,omitempty"`
|
||||
|
||||
// last password reset
|
||||
// Example: 2020-09-21T00:11:47.397Z
|
||||
LastPasswordReset string `json:"last_password_reset,omitempty"`
|
||||
|
||||
// logins count
|
||||
// Example: 178
|
||||
LoginsCount int64 `json:"logins_count,omitempty"`
|
||||
|
||||
// multifactor last modified
|
||||
// Example: 2020-09-21T00:30:34.081Z
|
||||
MultifactorLastModified string `json:"multifactor_last_modified,omitempty"`
|
||||
|
||||
// name
|
||||
// Example: Vernon Keenan
|
||||
Name string `json:"name,omitempty"`
|
||||
|
||||
// nickname
|
||||
// Example: vern
|
||||
Nickname string `json:"nickname,omitempty"`
|
||||
|
||||
// picture
|
||||
// Example: https://s.gravatar.com/avatar/a08710b8d49416c729a0da8a9c34cdb0?s=480\u0026r=pg\u0026d=https%3A%2F%2Fcdn.auth0.com%2Favatars%2Fve.png
|
||||
Picture string `json:"picture,omitempty"`
|
||||
|
||||
// updated at
|
||||
// Example: 2020-09-22T19:19:02.706Z
|
||||
UpdatedAt string `json:"updated_at,omitempty"`
|
||||
|
||||
// user id
|
||||
// Example: auth0|5b180537157859716f2c9df5
|
||||
UserID string `json:"user_id,omitempty"`
|
||||
|
||||
// user metadata
|
||||
|
@ -100,7 +116,6 @@ func (m *User) Validate(formats strfmt.Registry) error {
|
|||
}
|
||||
|
||||
func (m *User) validateAppMetadata(formats strfmt.Registry) error {
|
||||
|
||||
if swag.IsZero(m.AppMetadata) { // not required
|
||||
return nil
|
||||
}
|
||||
|
@ -109,6 +124,8 @@ func (m *User) validateAppMetadata(formats strfmt.Registry) error {
|
|||
if err := m.AppMetadata.Validate(formats); err != nil {
|
||||
if ve, ok := err.(*errors.Validation); ok {
|
||||
return ve.ValidateName("app_metadata")
|
||||
} else if ce, ok := err.(*errors.CompositeError); ok {
|
||||
return ce.ValidateName("app_metadata")
|
||||
}
|
||||
return err
|
||||
}
|
||||
|
@ -118,7 +135,6 @@ func (m *User) validateAppMetadata(formats strfmt.Registry) error {
|
|||
}
|
||||
|
||||
func (m *User) validateIdentities(formats strfmt.Registry) error {
|
||||
|
||||
if swag.IsZero(m.Identities) { // not required
|
||||
return nil
|
||||
}
|
||||
|
@ -132,6 +148,8 @@ func (m *User) validateIdentities(formats strfmt.Registry) error {
|
|||
if err := m.Identities[i].Validate(formats); err != nil {
|
||||
if ve, ok := err.(*errors.Validation); ok {
|
||||
return ve.ValidateName("identities" + "." + strconv.Itoa(i))
|
||||
} else if ce, ok := err.(*errors.CompositeError); ok {
|
||||
return ce.ValidateName("identities" + "." + strconv.Itoa(i))
|
||||
}
|
||||
return err
|
||||
}
|
||||
|
@ -143,7 +161,6 @@ func (m *User) validateIdentities(formats strfmt.Registry) error {
|
|||
}
|
||||
|
||||
func (m *User) validateUserMetadata(formats strfmt.Registry) error {
|
||||
|
||||
if swag.IsZero(m.UserMetadata) { // not required
|
||||
return nil
|
||||
}
|
||||
|
@ -152,6 +169,82 @@ func (m *User) validateUserMetadata(formats strfmt.Registry) error {
|
|||
if err := m.UserMetadata.Validate(formats); err != nil {
|
||||
if ve, ok := err.(*errors.Validation); ok {
|
||||
return ve.ValidateName("user_metadata")
|
||||
} else if ce, ok := err.(*errors.CompositeError); ok {
|
||||
return ce.ValidateName("user_metadata")
|
||||
}
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
// ContextValidate validate this user based on the context it is used
|
||||
func (m *User) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
|
||||
var res []error
|
||||
|
||||
if err := m.contextValidateAppMetadata(ctx, formats); err != nil {
|
||||
res = append(res, err)
|
||||
}
|
||||
|
||||
if err := m.contextValidateIdentities(ctx, formats); err != nil {
|
||||
res = append(res, err)
|
||||
}
|
||||
|
||||
if err := m.contextValidateUserMetadata(ctx, formats); err != nil {
|
||||
res = append(res, err)
|
||||
}
|
||||
|
||||
if len(res) > 0 {
|
||||
return errors.CompositeValidationError(res...)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *User) contextValidateAppMetadata(ctx context.Context, formats strfmt.Registry) error {
|
||||
|
||||
if m.AppMetadata != nil {
|
||||
if err := m.AppMetadata.ContextValidate(ctx, formats); err != nil {
|
||||
if ve, ok := err.(*errors.Validation); ok {
|
||||
return ve.ValidateName("app_metadata")
|
||||
} else if ce, ok := err.(*errors.CompositeError); ok {
|
||||
return ce.ValidateName("app_metadata")
|
||||
}
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *User) contextValidateIdentities(ctx context.Context, formats strfmt.Registry) error {
|
||||
|
||||
for i := 0; i < len(m.Identities); i++ {
|
||||
|
||||
if m.Identities[i] != nil {
|
||||
if err := m.Identities[i].ContextValidate(ctx, formats); err != nil {
|
||||
if ve, ok := err.(*errors.Validation); ok {
|
||||
return ve.ValidateName("identities" + "." + strconv.Itoa(i))
|
||||
} else if ce, ok := err.(*errors.CompositeError); ok {
|
||||
return ce.ValidateName("identities" + "." + strconv.Itoa(i))
|
||||
}
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *User) contextValidateUserMetadata(ctx context.Context, formats strfmt.Registry) error {
|
||||
|
||||
if m.UserMetadata != nil {
|
||||
if err := m.UserMetadata.ContextValidate(ctx, formats); err != nil {
|
||||
if ve, ok := err.(*errors.Validation); ok {
|
||||
return ve.ValidateName("user_metadata")
|
||||
} else if ce, ok := err.(*errors.CompositeError); ok {
|
||||
return ce.ValidateName("user_metadata")
|
||||
}
|
||||
return err
|
||||
}
|
||||
|
@ -184,15 +277,19 @@ func (m *User) UnmarshalBinary(b []byte) error {
|
|||
type UserAppMetadata struct {
|
||||
|
||||
// roles
|
||||
// Example: ["login"]
|
||||
Roles []string `json:"roles"`
|
||||
|
||||
// taxnexus account id
|
||||
// Example: 7f661ca6-ae4a-486f-9c3c-cd292685a46d
|
||||
TaxnexusAccountID string `json:"taxnexus_account_id,omitempty"`
|
||||
|
||||
// taxnexus contact id
|
||||
// Example: 9f79dca8-e875-4e2b-a5ad-001a3d32e83d
|
||||
TaxnexusContactID string `json:"taxnexus_contact_id,omitempty"`
|
||||
|
||||
// taxnexus user id
|
||||
// Example: f04da03d-70ad-46df-a46c-a676388aadd7
|
||||
TaxnexusUserID string `json:"taxnexus_user_id,omitempty"`
|
||||
}
|
||||
|
||||
|
@ -201,6 +298,11 @@ func (m *UserAppMetadata) Validate(formats strfmt.Registry) error {
|
|||
return nil
|
||||
}
|
||||
|
||||
// ContextValidate validates this user app metadata based on context it is used
|
||||
func (m *UserAppMetadata) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// MarshalBinary interface implementation
|
||||
func (m *UserAppMetadata) MarshalBinary() ([]byte, error) {
|
||||
if m == nil {
|
||||
|
@ -225,15 +327,19 @@ func (m *UserAppMetadata) UnmarshalBinary(b []byte) error {
|
|||
type UserIdentitiesItems0 struct {
|
||||
|
||||
// connection
|
||||
// Example: Username-Password-Authentication
|
||||
Connection string `json:"connection,omitempty"`
|
||||
|
||||
// is social
|
||||
// Example: false
|
||||
IsSocial bool `json:"isSocial,omitempty"`
|
||||
|
||||
// provider
|
||||
// Example: auth0
|
||||
Provider string `json:"provider,omitempty"`
|
||||
|
||||
// user id
|
||||
// Example: 5b180537157859716f2c9df5
|
||||
UserID string `json:"user_id,omitempty"`
|
||||
}
|
||||
|
||||
|
@ -242,6 +348,11 @@ func (m *UserIdentitiesItems0) Validate(formats strfmt.Registry) error {
|
|||
return nil
|
||||
}
|
||||
|
||||
// ContextValidate validates this user identities items0 based on context it is used
|
||||
func (m *UserIdentitiesItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// MarshalBinary interface implementation
|
||||
func (m *UserIdentitiesItems0) MarshalBinary() ([]byte, error) {
|
||||
if m == nil {
|
||||
|
@ -266,18 +377,23 @@ func (m *UserIdentitiesItems0) UnmarshalBinary(b []byte) error {
|
|||
type UserUserMetadata struct {
|
||||
|
||||
// taxnexus email
|
||||
// Example: vern@taxnexus.net
|
||||
TaxnexusEmail string `json:"taxnexus_email,omitempty"`
|
||||
|
||||
// taxnexus firstname
|
||||
// Example: Vernon
|
||||
TaxnexusFirstname string `json:"taxnexus_firstname,omitempty"`
|
||||
|
||||
// taxnexus fullname
|
||||
// Example: Vernon Keenan
|
||||
TaxnexusFullname string `json:"taxnexus_fullname,omitempty"`
|
||||
|
||||
// taxnexus lastname
|
||||
// Example: Keenan
|
||||
TaxnexusLastname string `json:"taxnexus_lastname,omitempty"`
|
||||
|
||||
// taxnexus phone
|
||||
// Example: +15106791900
|
||||
TaxnexusPhone string `json:"taxnexus_phone,omitempty"`
|
||||
}
|
||||
|
||||
|
@ -286,6 +402,11 @@ func (m *UserUserMetadata) Validate(formats strfmt.Registry) error {
|
|||
return nil
|
||||
}
|
||||
|
||||
// ContextValidate validates this user user metadata based on context it is used
|
||||
func (m *UserUserMetadata) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// MarshalBinary interface implementation
|
||||
func (m *UserUserMetadata) MarshalBinary() ([]byte, error) {
|
||||
if m == nil {
|
||||
|
|
|
@ -10,6 +10,7 @@ package auth0_models
|
|||
// Editing this file might prove futile when you re-run the swagger generate command
|
||||
|
||||
import (
|
||||
"context"
|
||||
"strconv"
|
||||
|
||||
"github.com/go-openapi/errors"
|
||||
|
@ -41,7 +42,6 @@ func (m *UserRequest) Validate(formats strfmt.Registry) error {
|
|||
}
|
||||
|
||||
func (m *UserRequest) validateUsers(formats strfmt.Registry) error {
|
||||
|
||||
if swag.IsZero(m.Users) { // not required
|
||||
return nil
|
||||
}
|
||||
|
@ -55,6 +55,42 @@ func (m *UserRequest) validateUsers(formats strfmt.Registry) error {
|
|||
if err := m.Users[i].Validate(formats); err != nil {
|
||||
if ve, ok := err.(*errors.Validation); ok {
|
||||
return ve.ValidateName("users" + "." + strconv.Itoa(i))
|
||||
} else if ce, ok := err.(*errors.CompositeError); ok {
|
||||
return ce.ValidateName("users" + "." + strconv.Itoa(i))
|
||||
}
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
// ContextValidate validate this user request based on the context it is used
|
||||
func (m *UserRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
|
||||
var res []error
|
||||
|
||||
if err := m.contextValidateUsers(ctx, formats); err != nil {
|
||||
res = append(res, err)
|
||||
}
|
||||
|
||||
if len(res) > 0 {
|
||||
return errors.CompositeValidationError(res...)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *UserRequest) contextValidateUsers(ctx context.Context, formats strfmt.Registry) error {
|
||||
|
||||
for i := 0; i < len(m.Users); i++ {
|
||||
|
||||
if m.Users[i] != nil {
|
||||
if err := m.Users[i].ContextValidate(ctx, formats); err != nil {
|
||||
if ve, ok := err.(*errors.Validation); ok {
|
||||
return ve.ValidateName("users" + "." + strconv.Itoa(i))
|
||||
} else if ce, ok := err.(*errors.CompositeError); ok {
|
||||
return ce.ValidateName("users" + "." + strconv.Itoa(i))
|
||||
}
|
||||
return err
|
||||
}
|
||||
|
|
|
@ -10,6 +10,8 @@ package auth0_models
|
|||
// Editing this file might prove futile when you re-run the swagger generate command
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/go-openapi/strfmt"
|
||||
"github.com/go-openapi/swag"
|
||||
)
|
||||
|
@ -28,6 +30,11 @@ func (m *UserRolesRequest) Validate(formats strfmt.Registry) error {
|
|||
return nil
|
||||
}
|
||||
|
||||
// ContextValidate validates this user roles request based on context it is used
|
||||
func (m *UserRolesRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// MarshalBinary interface implementation
|
||||
func (m *UserRolesRequest) MarshalBinary() ([]byte, error) {
|
||||
if m == nil {
|
||||
|
|
|
@ -48,9 +48,9 @@ type ClientService interface {
|
|||
}
|
||||
|
||||
/*
|
||||
DeleteAccount deletes an account
|
||||
DeleteAccount deletes an account
|
||||
|
||||
Delete Taxnexus Account record
|
||||
Delete Taxnexus Account record
|
||||
*/
|
||||
func (a *Client) DeleteAccount(params *DeleteAccountParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteAccountOK, error) {
|
||||
// TODO: Validate the params before sending
|
||||
|
@ -89,9 +89,9 @@ func (a *Client) DeleteAccount(params *DeleteAccountParams, authInfo runtime.Cli
|
|||
}
|
||||
|
||||
/*
|
||||
GetAccounts gets a list of accounts
|
||||
GetAccounts gets a list of accounts
|
||||
|
||||
Return a list of all available Accounts
|
||||
Return a list of all available Accounts
|
||||
*/
|
||||
func (a *Client) GetAccounts(params *GetAccountsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAccountsOK, error) {
|
||||
// TODO: Validate the params before sending
|
||||
|
@ -130,9 +130,9 @@ func (a *Client) GetAccounts(params *GetAccountsParams, authInfo runtime.ClientA
|
|||
}
|
||||
|
||||
/*
|
||||
GetAccountsObservable gets taxnexus accounts in an observable array
|
||||
GetAccountsObservable gets taxnexus accounts in an observable array
|
||||
|
||||
A list of accounts in a simple JSON array
|
||||
A list of accounts in a simple JSON array
|
||||
*/
|
||||
func (a *Client) GetAccountsObservable(params *GetAccountsObservableParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAccountsObservableOK, error) {
|
||||
// TODO: Validate the params before sending
|
||||
|
@ -171,9 +171,9 @@ func (a *Client) GetAccountsObservable(params *GetAccountsObservableParams, auth
|
|||
}
|
||||
|
||||
/*
|
||||
PostAccounts adds a new account to taxnexus
|
||||
PostAccounts adds a new account to taxnexus
|
||||
|
||||
Account record to be added
|
||||
Account record to be added
|
||||
*/
|
||||
func (a *Client) PostAccounts(params *PostAccountsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostAccountsOK, error) {
|
||||
// TODO: Validate the params before sending
|
||||
|
@ -212,9 +212,9 @@ func (a *Client) PostAccounts(params *PostAccountsParams, authInfo runtime.Clien
|
|||
}
|
||||
|
||||
/*
|
||||
PutAccount updates a single account
|
||||
PutAccount updates a single account
|
||||
|
||||
Update a single account specified by accountId
|
||||
Update a single account specified by accountId
|
||||
*/
|
||||
func (a *Client) PutAccount(params *PutAccountParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PutAccountOK, error) {
|
||||
// TODO: Validate the params before sending
|
||||
|
|
|
@ -56,10 +56,12 @@ func NewDeleteAccountParamsWithHTTPClient(client *http.Client) *DeleteAccountPar
|
|||
}
|
||||
}
|
||||
|
||||
/* DeleteAccountParams contains all the parameters to send to the API endpoint
|
||||
for the delete account operation.
|
||||
/*
|
||||
DeleteAccountParams contains all the parameters to send to the API endpoint
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
for the delete account operation.
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
*/
|
||||
type DeleteAccountParams struct {
|
||||
|
||||
|
|
|
@ -73,7 +73,8 @@ func NewDeleteAccountOK() *DeleteAccountOK {
|
|||
return &DeleteAccountOK{}
|
||||
}
|
||||
|
||||
/* DeleteAccountOK describes a response with status code 200, with default header values.
|
||||
/*
|
||||
DeleteAccountOK describes a response with status code 200, with default header values.
|
||||
|
||||
Taxnexus Response with Message Objects with Delete Status
|
||||
*/
|
||||
|
@ -83,9 +84,44 @@ type DeleteAccountOK struct {
|
|||
Payload *crm_models.DeleteResponse
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this delete account o k response has a 2xx status code
|
||||
func (o *DeleteAccountOK) IsSuccess() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this delete account o k response has a 3xx status code
|
||||
func (o *DeleteAccountOK) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this delete account o k response has a 4xx status code
|
||||
func (o *DeleteAccountOK) IsClientError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsServerError returns true when this delete account o k response has a 5xx status code
|
||||
func (o *DeleteAccountOK) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this delete account o k response a status code equal to that given
|
||||
func (o *DeleteAccountOK) IsCode(code int) bool {
|
||||
return code == 200
|
||||
}
|
||||
|
||||
// Code gets the status code for the delete account o k response
|
||||
func (o *DeleteAccountOK) Code() int {
|
||||
return 200
|
||||
}
|
||||
|
||||
func (o *DeleteAccountOK) Error() string {
|
||||
return fmt.Sprintf("[DELETE /accounts][%d] deleteAccountOK %+v", 200, o.Payload)
|
||||
}
|
||||
|
||||
func (o *DeleteAccountOK) String() string {
|
||||
return fmt.Sprintf("[DELETE /accounts][%d] deleteAccountOK %+v", 200, o.Payload)
|
||||
}
|
||||
|
||||
func (o *DeleteAccountOK) GetPayload() *crm_models.DeleteResponse {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -114,7 +150,8 @@ func NewDeleteAccountUnauthorized() *DeleteAccountUnauthorized {
|
|||
return &DeleteAccountUnauthorized{}
|
||||
}
|
||||
|
||||
/* DeleteAccountUnauthorized describes a response with status code 401, with default header values.
|
||||
/*
|
||||
DeleteAccountUnauthorized describes a response with status code 401, with default header values.
|
||||
|
||||
Access unauthorized, invalid API-KEY was used
|
||||
*/
|
||||
|
@ -124,9 +161,44 @@ type DeleteAccountUnauthorized struct {
|
|||
Payload *crm_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this delete account unauthorized response has a 2xx status code
|
||||
func (o *DeleteAccountUnauthorized) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this delete account unauthorized response has a 3xx status code
|
||||
func (o *DeleteAccountUnauthorized) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this delete account unauthorized response has a 4xx status code
|
||||
func (o *DeleteAccountUnauthorized) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this delete account unauthorized response has a 5xx status code
|
||||
func (o *DeleteAccountUnauthorized) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this delete account unauthorized response a status code equal to that given
|
||||
func (o *DeleteAccountUnauthorized) IsCode(code int) bool {
|
||||
return code == 401
|
||||
}
|
||||
|
||||
// Code gets the status code for the delete account unauthorized response
|
||||
func (o *DeleteAccountUnauthorized) Code() int {
|
||||
return 401
|
||||
}
|
||||
|
||||
func (o *DeleteAccountUnauthorized) Error() string {
|
||||
return fmt.Sprintf("[DELETE /accounts][%d] deleteAccountUnauthorized %+v", 401, o.Payload)
|
||||
}
|
||||
|
||||
func (o *DeleteAccountUnauthorized) String() string {
|
||||
return fmt.Sprintf("[DELETE /accounts][%d] deleteAccountUnauthorized %+v", 401, o.Payload)
|
||||
}
|
||||
|
||||
func (o *DeleteAccountUnauthorized) GetPayload() *crm_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -155,7 +227,8 @@ func NewDeleteAccountForbidden() *DeleteAccountForbidden {
|
|||
return &DeleteAccountForbidden{}
|
||||
}
|
||||
|
||||
/* DeleteAccountForbidden describes a response with status code 403, with default header values.
|
||||
/*
|
||||
DeleteAccountForbidden describes a response with status code 403, with default header values.
|
||||
|
||||
Access forbidden, account lacks access
|
||||
*/
|
||||
|
@ -165,9 +238,44 @@ type DeleteAccountForbidden struct {
|
|||
Payload *crm_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this delete account forbidden response has a 2xx status code
|
||||
func (o *DeleteAccountForbidden) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this delete account forbidden response has a 3xx status code
|
||||
func (o *DeleteAccountForbidden) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this delete account forbidden response has a 4xx status code
|
||||
func (o *DeleteAccountForbidden) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this delete account forbidden response has a 5xx status code
|
||||
func (o *DeleteAccountForbidden) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this delete account forbidden response a status code equal to that given
|
||||
func (o *DeleteAccountForbidden) IsCode(code int) bool {
|
||||
return code == 403
|
||||
}
|
||||
|
||||
// Code gets the status code for the delete account forbidden response
|
||||
func (o *DeleteAccountForbidden) Code() int {
|
||||
return 403
|
||||
}
|
||||
|
||||
func (o *DeleteAccountForbidden) Error() string {
|
||||
return fmt.Sprintf("[DELETE /accounts][%d] deleteAccountForbidden %+v", 403, o.Payload)
|
||||
}
|
||||
|
||||
func (o *DeleteAccountForbidden) String() string {
|
||||
return fmt.Sprintf("[DELETE /accounts][%d] deleteAccountForbidden %+v", 403, o.Payload)
|
||||
}
|
||||
|
||||
func (o *DeleteAccountForbidden) GetPayload() *crm_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -196,7 +304,8 @@ func NewDeleteAccountNotFound() *DeleteAccountNotFound {
|
|||
return &DeleteAccountNotFound{}
|
||||
}
|
||||
|
||||
/* DeleteAccountNotFound describes a response with status code 404, with default header values.
|
||||
/*
|
||||
DeleteAccountNotFound describes a response with status code 404, with default header values.
|
||||
|
||||
Resource was not found
|
||||
*/
|
||||
|
@ -206,9 +315,44 @@ type DeleteAccountNotFound struct {
|
|||
Payload *crm_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this delete account not found response has a 2xx status code
|
||||
func (o *DeleteAccountNotFound) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this delete account not found response has a 3xx status code
|
||||
func (o *DeleteAccountNotFound) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this delete account not found response has a 4xx status code
|
||||
func (o *DeleteAccountNotFound) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this delete account not found response has a 5xx status code
|
||||
func (o *DeleteAccountNotFound) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this delete account not found response a status code equal to that given
|
||||
func (o *DeleteAccountNotFound) IsCode(code int) bool {
|
||||
return code == 404
|
||||
}
|
||||
|
||||
// Code gets the status code for the delete account not found response
|
||||
func (o *DeleteAccountNotFound) Code() int {
|
||||
return 404
|
||||
}
|
||||
|
||||
func (o *DeleteAccountNotFound) Error() string {
|
||||
return fmt.Sprintf("[DELETE /accounts][%d] deleteAccountNotFound %+v", 404, o.Payload)
|
||||
}
|
||||
|
||||
func (o *DeleteAccountNotFound) String() string {
|
||||
return fmt.Sprintf("[DELETE /accounts][%d] deleteAccountNotFound %+v", 404, o.Payload)
|
||||
}
|
||||
|
||||
func (o *DeleteAccountNotFound) GetPayload() *crm_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -237,7 +381,8 @@ func NewDeleteAccountUnprocessableEntity() *DeleteAccountUnprocessableEntity {
|
|||
return &DeleteAccountUnprocessableEntity{}
|
||||
}
|
||||
|
||||
/* DeleteAccountUnprocessableEntity describes a response with status code 422, with default header values.
|
||||
/*
|
||||
DeleteAccountUnprocessableEntity describes a response with status code 422, with default header values.
|
||||
|
||||
Unprocessable Entity, likely a bad parameter
|
||||
*/
|
||||
|
@ -247,9 +392,44 @@ type DeleteAccountUnprocessableEntity struct {
|
|||
Payload *crm_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this delete account unprocessable entity response has a 2xx status code
|
||||
func (o *DeleteAccountUnprocessableEntity) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this delete account unprocessable entity response has a 3xx status code
|
||||
func (o *DeleteAccountUnprocessableEntity) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this delete account unprocessable entity response has a 4xx status code
|
||||
func (o *DeleteAccountUnprocessableEntity) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this delete account unprocessable entity response has a 5xx status code
|
||||
func (o *DeleteAccountUnprocessableEntity) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this delete account unprocessable entity response a status code equal to that given
|
||||
func (o *DeleteAccountUnprocessableEntity) IsCode(code int) bool {
|
||||
return code == 422
|
||||
}
|
||||
|
||||
// Code gets the status code for the delete account unprocessable entity response
|
||||
func (o *DeleteAccountUnprocessableEntity) Code() int {
|
||||
return 422
|
||||
}
|
||||
|
||||
func (o *DeleteAccountUnprocessableEntity) Error() string {
|
||||
return fmt.Sprintf("[DELETE /accounts][%d] deleteAccountUnprocessableEntity %+v", 422, o.Payload)
|
||||
}
|
||||
|
||||
func (o *DeleteAccountUnprocessableEntity) String() string {
|
||||
return fmt.Sprintf("[DELETE /accounts][%d] deleteAccountUnprocessableEntity %+v", 422, o.Payload)
|
||||
}
|
||||
|
||||
func (o *DeleteAccountUnprocessableEntity) GetPayload() *crm_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -278,7 +458,8 @@ func NewDeleteAccountInternalServerError() *DeleteAccountInternalServerError {
|
|||
return &DeleteAccountInternalServerError{}
|
||||
}
|
||||
|
||||
/* DeleteAccountInternalServerError describes a response with status code 500, with default header values.
|
||||
/*
|
||||
DeleteAccountInternalServerError describes a response with status code 500, with default header values.
|
||||
|
||||
Server Internal Error
|
||||
*/
|
||||
|
@ -288,9 +469,44 @@ type DeleteAccountInternalServerError struct {
|
|||
Payload *crm_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this delete account internal server error response has a 2xx status code
|
||||
func (o *DeleteAccountInternalServerError) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this delete account internal server error response has a 3xx status code
|
||||
func (o *DeleteAccountInternalServerError) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this delete account internal server error response has a 4xx status code
|
||||
func (o *DeleteAccountInternalServerError) IsClientError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsServerError returns true when this delete account internal server error response has a 5xx status code
|
||||
func (o *DeleteAccountInternalServerError) IsServerError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsCode returns true when this delete account internal server error response a status code equal to that given
|
||||
func (o *DeleteAccountInternalServerError) IsCode(code int) bool {
|
||||
return code == 500
|
||||
}
|
||||
|
||||
// Code gets the status code for the delete account internal server error response
|
||||
func (o *DeleteAccountInternalServerError) Code() int {
|
||||
return 500
|
||||
}
|
||||
|
||||
func (o *DeleteAccountInternalServerError) Error() string {
|
||||
return fmt.Sprintf("[DELETE /accounts][%d] deleteAccountInternalServerError %+v", 500, o.Payload)
|
||||
}
|
||||
|
||||
func (o *DeleteAccountInternalServerError) String() string {
|
||||
return fmt.Sprintf("[DELETE /accounts][%d] deleteAccountInternalServerError %+v", 500, o.Payload)
|
||||
}
|
||||
|
||||
func (o *DeleteAccountInternalServerError) GetPayload() *crm_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
|
|
@ -57,10 +57,12 @@ func NewGetAccountsObservableParamsWithHTTPClient(client *http.Client) *GetAccou
|
|||
}
|
||||
}
|
||||
|
||||
/* GetAccountsObservableParams contains all the parameters to send to the API endpoint
|
||||
for the get accounts observable operation.
|
||||
/*
|
||||
GetAccountsObservableParams contains all the parameters to send to the API endpoint
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
for the get accounts observable operation.
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
*/
|
||||
type GetAccountsObservableParams struct {
|
||||
|
||||
|
|
|
@ -73,7 +73,8 @@ func NewGetAccountsObservableOK() *GetAccountsObservableOK {
|
|||
return &GetAccountsObservableOK{}
|
||||
}
|
||||
|
||||
/* GetAccountsObservableOK describes a response with status code 200, with default header values.
|
||||
/*
|
||||
GetAccountsObservableOK describes a response with status code 200, with default header values.
|
||||
|
||||
Taxnexus Response with an array of Account objects
|
||||
*/
|
||||
|
@ -84,9 +85,44 @@ type GetAccountsObservableOK struct {
|
|||
Payload []*crm_models.Account
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this get accounts observable o k response has a 2xx status code
|
||||
func (o *GetAccountsObservableOK) IsSuccess() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this get accounts observable o k response has a 3xx status code
|
||||
func (o *GetAccountsObservableOK) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this get accounts observable o k response has a 4xx status code
|
||||
func (o *GetAccountsObservableOK) IsClientError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsServerError returns true when this get accounts observable o k response has a 5xx status code
|
||||
func (o *GetAccountsObservableOK) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this get accounts observable o k response a status code equal to that given
|
||||
func (o *GetAccountsObservableOK) IsCode(code int) bool {
|
||||
return code == 200
|
||||
}
|
||||
|
||||
// Code gets the status code for the get accounts observable o k response
|
||||
func (o *GetAccountsObservableOK) Code() int {
|
||||
return 200
|
||||
}
|
||||
|
||||
func (o *GetAccountsObservableOK) Error() string {
|
||||
return fmt.Sprintf("[GET /accounts/observable][%d] getAccountsObservableOK %+v", 200, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetAccountsObservableOK) String() string {
|
||||
return fmt.Sprintf("[GET /accounts/observable][%d] getAccountsObservableOK %+v", 200, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetAccountsObservableOK) GetPayload() []*crm_models.Account {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -120,7 +156,8 @@ func NewGetAccountsObservableUnauthorized() *GetAccountsObservableUnauthorized {
|
|||
return &GetAccountsObservableUnauthorized{}
|
||||
}
|
||||
|
||||
/* GetAccountsObservableUnauthorized describes a response with status code 401, with default header values.
|
||||
/*
|
||||
GetAccountsObservableUnauthorized describes a response with status code 401, with default header values.
|
||||
|
||||
Access unauthorized, invalid API-KEY was used
|
||||
*/
|
||||
|
@ -130,9 +167,44 @@ type GetAccountsObservableUnauthorized struct {
|
|||
Payload *crm_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this get accounts observable unauthorized response has a 2xx status code
|
||||
func (o *GetAccountsObservableUnauthorized) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this get accounts observable unauthorized response has a 3xx status code
|
||||
func (o *GetAccountsObservableUnauthorized) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this get accounts observable unauthorized response has a 4xx status code
|
||||
func (o *GetAccountsObservableUnauthorized) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this get accounts observable unauthorized response has a 5xx status code
|
||||
func (o *GetAccountsObservableUnauthorized) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this get accounts observable unauthorized response a status code equal to that given
|
||||
func (o *GetAccountsObservableUnauthorized) IsCode(code int) bool {
|
||||
return code == 401
|
||||
}
|
||||
|
||||
// Code gets the status code for the get accounts observable unauthorized response
|
||||
func (o *GetAccountsObservableUnauthorized) Code() int {
|
||||
return 401
|
||||
}
|
||||
|
||||
func (o *GetAccountsObservableUnauthorized) Error() string {
|
||||
return fmt.Sprintf("[GET /accounts/observable][%d] getAccountsObservableUnauthorized %+v", 401, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetAccountsObservableUnauthorized) String() string {
|
||||
return fmt.Sprintf("[GET /accounts/observable][%d] getAccountsObservableUnauthorized %+v", 401, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetAccountsObservableUnauthorized) GetPayload() *crm_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -161,7 +233,8 @@ func NewGetAccountsObservableForbidden() *GetAccountsObservableForbidden {
|
|||
return &GetAccountsObservableForbidden{}
|
||||
}
|
||||
|
||||
/* GetAccountsObservableForbidden describes a response with status code 403, with default header values.
|
||||
/*
|
||||
GetAccountsObservableForbidden describes a response with status code 403, with default header values.
|
||||
|
||||
Access forbidden, account lacks access
|
||||
*/
|
||||
|
@ -171,9 +244,44 @@ type GetAccountsObservableForbidden struct {
|
|||
Payload *crm_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this get accounts observable forbidden response has a 2xx status code
|
||||
func (o *GetAccountsObservableForbidden) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this get accounts observable forbidden response has a 3xx status code
|
||||
func (o *GetAccountsObservableForbidden) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this get accounts observable forbidden response has a 4xx status code
|
||||
func (o *GetAccountsObservableForbidden) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this get accounts observable forbidden response has a 5xx status code
|
||||
func (o *GetAccountsObservableForbidden) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this get accounts observable forbidden response a status code equal to that given
|
||||
func (o *GetAccountsObservableForbidden) IsCode(code int) bool {
|
||||
return code == 403
|
||||
}
|
||||
|
||||
// Code gets the status code for the get accounts observable forbidden response
|
||||
func (o *GetAccountsObservableForbidden) Code() int {
|
||||
return 403
|
||||
}
|
||||
|
||||
func (o *GetAccountsObservableForbidden) Error() string {
|
||||
return fmt.Sprintf("[GET /accounts/observable][%d] getAccountsObservableForbidden %+v", 403, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetAccountsObservableForbidden) String() string {
|
||||
return fmt.Sprintf("[GET /accounts/observable][%d] getAccountsObservableForbidden %+v", 403, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetAccountsObservableForbidden) GetPayload() *crm_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -202,7 +310,8 @@ func NewGetAccountsObservableNotFound() *GetAccountsObservableNotFound {
|
|||
return &GetAccountsObservableNotFound{}
|
||||
}
|
||||
|
||||
/* GetAccountsObservableNotFound describes a response with status code 404, with default header values.
|
||||
/*
|
||||
GetAccountsObservableNotFound describes a response with status code 404, with default header values.
|
||||
|
||||
Resource was not found
|
||||
*/
|
||||
|
@ -212,9 +321,44 @@ type GetAccountsObservableNotFound struct {
|
|||
Payload *crm_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this get accounts observable not found response has a 2xx status code
|
||||
func (o *GetAccountsObservableNotFound) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this get accounts observable not found response has a 3xx status code
|
||||
func (o *GetAccountsObservableNotFound) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this get accounts observable not found response has a 4xx status code
|
||||
func (o *GetAccountsObservableNotFound) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this get accounts observable not found response has a 5xx status code
|
||||
func (o *GetAccountsObservableNotFound) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this get accounts observable not found response a status code equal to that given
|
||||
func (o *GetAccountsObservableNotFound) IsCode(code int) bool {
|
||||
return code == 404
|
||||
}
|
||||
|
||||
// Code gets the status code for the get accounts observable not found response
|
||||
func (o *GetAccountsObservableNotFound) Code() int {
|
||||
return 404
|
||||
}
|
||||
|
||||
func (o *GetAccountsObservableNotFound) Error() string {
|
||||
return fmt.Sprintf("[GET /accounts/observable][%d] getAccountsObservableNotFound %+v", 404, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetAccountsObservableNotFound) String() string {
|
||||
return fmt.Sprintf("[GET /accounts/observable][%d] getAccountsObservableNotFound %+v", 404, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetAccountsObservableNotFound) GetPayload() *crm_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -243,7 +387,8 @@ func NewGetAccountsObservableUnprocessableEntity() *GetAccountsObservableUnproce
|
|||
return &GetAccountsObservableUnprocessableEntity{}
|
||||
}
|
||||
|
||||
/* GetAccountsObservableUnprocessableEntity describes a response with status code 422, with default header values.
|
||||
/*
|
||||
GetAccountsObservableUnprocessableEntity describes a response with status code 422, with default header values.
|
||||
|
||||
Unprocessable Entity, likely a bad parameter
|
||||
*/
|
||||
|
@ -253,9 +398,44 @@ type GetAccountsObservableUnprocessableEntity struct {
|
|||
Payload *crm_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this get accounts observable unprocessable entity response has a 2xx status code
|
||||
func (o *GetAccountsObservableUnprocessableEntity) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this get accounts observable unprocessable entity response has a 3xx status code
|
||||
func (o *GetAccountsObservableUnprocessableEntity) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this get accounts observable unprocessable entity response has a 4xx status code
|
||||
func (o *GetAccountsObservableUnprocessableEntity) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this get accounts observable unprocessable entity response has a 5xx status code
|
||||
func (o *GetAccountsObservableUnprocessableEntity) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this get accounts observable unprocessable entity response a status code equal to that given
|
||||
func (o *GetAccountsObservableUnprocessableEntity) IsCode(code int) bool {
|
||||
return code == 422
|
||||
}
|
||||
|
||||
// Code gets the status code for the get accounts observable unprocessable entity response
|
||||
func (o *GetAccountsObservableUnprocessableEntity) Code() int {
|
||||
return 422
|
||||
}
|
||||
|
||||
func (o *GetAccountsObservableUnprocessableEntity) Error() string {
|
||||
return fmt.Sprintf("[GET /accounts/observable][%d] getAccountsObservableUnprocessableEntity %+v", 422, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetAccountsObservableUnprocessableEntity) String() string {
|
||||
return fmt.Sprintf("[GET /accounts/observable][%d] getAccountsObservableUnprocessableEntity %+v", 422, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetAccountsObservableUnprocessableEntity) GetPayload() *crm_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -284,7 +464,8 @@ func NewGetAccountsObservableInternalServerError() *GetAccountsObservableInterna
|
|||
return &GetAccountsObservableInternalServerError{}
|
||||
}
|
||||
|
||||
/* GetAccountsObservableInternalServerError describes a response with status code 500, with default header values.
|
||||
/*
|
||||
GetAccountsObservableInternalServerError describes a response with status code 500, with default header values.
|
||||
|
||||
Server Internal Error
|
||||
*/
|
||||
|
@ -294,9 +475,44 @@ type GetAccountsObservableInternalServerError struct {
|
|||
Payload *crm_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this get accounts observable internal server error response has a 2xx status code
|
||||
func (o *GetAccountsObservableInternalServerError) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this get accounts observable internal server error response has a 3xx status code
|
||||
func (o *GetAccountsObservableInternalServerError) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this get accounts observable internal server error response has a 4xx status code
|
||||
func (o *GetAccountsObservableInternalServerError) IsClientError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsServerError returns true when this get accounts observable internal server error response has a 5xx status code
|
||||
func (o *GetAccountsObservableInternalServerError) IsServerError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsCode returns true when this get accounts observable internal server error response a status code equal to that given
|
||||
func (o *GetAccountsObservableInternalServerError) IsCode(code int) bool {
|
||||
return code == 500
|
||||
}
|
||||
|
||||
// Code gets the status code for the get accounts observable internal server error response
|
||||
func (o *GetAccountsObservableInternalServerError) Code() int {
|
||||
return 500
|
||||
}
|
||||
|
||||
func (o *GetAccountsObservableInternalServerError) Error() string {
|
||||
return fmt.Sprintf("[GET /accounts/observable][%d] getAccountsObservableInternalServerError %+v", 500, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetAccountsObservableInternalServerError) String() string {
|
||||
return fmt.Sprintf("[GET /accounts/observable][%d] getAccountsObservableInternalServerError %+v", 500, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetAccountsObservableInternalServerError) GetPayload() *crm_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
|
|
@ -57,10 +57,12 @@ func NewGetAccountsParamsWithHTTPClient(client *http.Client) *GetAccountsParams
|
|||
}
|
||||
}
|
||||
|
||||
/* GetAccountsParams contains all the parameters to send to the API endpoint
|
||||
for the get accounts operation.
|
||||
/*
|
||||
GetAccountsParams contains all the parameters to send to the API endpoint
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
for the get accounts operation.
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
*/
|
||||
type GetAccountsParams struct {
|
||||
|
||||
|
|
|
@ -73,7 +73,8 @@ func NewGetAccountsOK() *GetAccountsOK {
|
|||
return &GetAccountsOK{}
|
||||
}
|
||||
|
||||
/* GetAccountsOK describes a response with status code 200, with default header values.
|
||||
/*
|
||||
GetAccountsOK describes a response with status code 200, with default header values.
|
||||
|
||||
Taxnexus Response with Account objects with Contacts
|
||||
*/
|
||||
|
@ -84,9 +85,44 @@ type GetAccountsOK struct {
|
|||
Payload *crm_models.AccountResponse
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this get accounts o k response has a 2xx status code
|
||||
func (o *GetAccountsOK) IsSuccess() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this get accounts o k response has a 3xx status code
|
||||
func (o *GetAccountsOK) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this get accounts o k response has a 4xx status code
|
||||
func (o *GetAccountsOK) IsClientError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsServerError returns true when this get accounts o k response has a 5xx status code
|
||||
func (o *GetAccountsOK) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this get accounts o k response a status code equal to that given
|
||||
func (o *GetAccountsOK) IsCode(code int) bool {
|
||||
return code == 200
|
||||
}
|
||||
|
||||
// Code gets the status code for the get accounts o k response
|
||||
func (o *GetAccountsOK) Code() int {
|
||||
return 200
|
||||
}
|
||||
|
||||
func (o *GetAccountsOK) Error() string {
|
||||
return fmt.Sprintf("[GET /accounts][%d] getAccountsOK %+v", 200, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetAccountsOK) String() string {
|
||||
return fmt.Sprintf("[GET /accounts][%d] getAccountsOK %+v", 200, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetAccountsOK) GetPayload() *crm_models.AccountResponse {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -122,7 +158,8 @@ func NewGetAccountsUnauthorized() *GetAccountsUnauthorized {
|
|||
return &GetAccountsUnauthorized{}
|
||||
}
|
||||
|
||||
/* GetAccountsUnauthorized describes a response with status code 401, with default header values.
|
||||
/*
|
||||
GetAccountsUnauthorized describes a response with status code 401, with default header values.
|
||||
|
||||
Access unauthorized, invalid API-KEY was used
|
||||
*/
|
||||
|
@ -132,9 +169,44 @@ type GetAccountsUnauthorized struct {
|
|||
Payload *crm_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this get accounts unauthorized response has a 2xx status code
|
||||
func (o *GetAccountsUnauthorized) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this get accounts unauthorized response has a 3xx status code
|
||||
func (o *GetAccountsUnauthorized) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this get accounts unauthorized response has a 4xx status code
|
||||
func (o *GetAccountsUnauthorized) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this get accounts unauthorized response has a 5xx status code
|
||||
func (o *GetAccountsUnauthorized) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this get accounts unauthorized response a status code equal to that given
|
||||
func (o *GetAccountsUnauthorized) IsCode(code int) bool {
|
||||
return code == 401
|
||||
}
|
||||
|
||||
// Code gets the status code for the get accounts unauthorized response
|
||||
func (o *GetAccountsUnauthorized) Code() int {
|
||||
return 401
|
||||
}
|
||||
|
||||
func (o *GetAccountsUnauthorized) Error() string {
|
||||
return fmt.Sprintf("[GET /accounts][%d] getAccountsUnauthorized %+v", 401, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetAccountsUnauthorized) String() string {
|
||||
return fmt.Sprintf("[GET /accounts][%d] getAccountsUnauthorized %+v", 401, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetAccountsUnauthorized) GetPayload() *crm_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -163,7 +235,8 @@ func NewGetAccountsForbidden() *GetAccountsForbidden {
|
|||
return &GetAccountsForbidden{}
|
||||
}
|
||||
|
||||
/* GetAccountsForbidden describes a response with status code 403, with default header values.
|
||||
/*
|
||||
GetAccountsForbidden describes a response with status code 403, with default header values.
|
||||
|
||||
Access forbidden, account lacks access
|
||||
*/
|
||||
|
@ -173,9 +246,44 @@ type GetAccountsForbidden struct {
|
|||
Payload *crm_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this get accounts forbidden response has a 2xx status code
|
||||
func (o *GetAccountsForbidden) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this get accounts forbidden response has a 3xx status code
|
||||
func (o *GetAccountsForbidden) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this get accounts forbidden response has a 4xx status code
|
||||
func (o *GetAccountsForbidden) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this get accounts forbidden response has a 5xx status code
|
||||
func (o *GetAccountsForbidden) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this get accounts forbidden response a status code equal to that given
|
||||
func (o *GetAccountsForbidden) IsCode(code int) bool {
|
||||
return code == 403
|
||||
}
|
||||
|
||||
// Code gets the status code for the get accounts forbidden response
|
||||
func (o *GetAccountsForbidden) Code() int {
|
||||
return 403
|
||||
}
|
||||
|
||||
func (o *GetAccountsForbidden) Error() string {
|
||||
return fmt.Sprintf("[GET /accounts][%d] getAccountsForbidden %+v", 403, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetAccountsForbidden) String() string {
|
||||
return fmt.Sprintf("[GET /accounts][%d] getAccountsForbidden %+v", 403, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetAccountsForbidden) GetPayload() *crm_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -204,7 +312,8 @@ func NewGetAccountsNotFound() *GetAccountsNotFound {
|
|||
return &GetAccountsNotFound{}
|
||||
}
|
||||
|
||||
/* GetAccountsNotFound describes a response with status code 404, with default header values.
|
||||
/*
|
||||
GetAccountsNotFound describes a response with status code 404, with default header values.
|
||||
|
||||
Resource was not found
|
||||
*/
|
||||
|
@ -214,9 +323,44 @@ type GetAccountsNotFound struct {
|
|||
Payload *crm_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this get accounts not found response has a 2xx status code
|
||||
func (o *GetAccountsNotFound) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this get accounts not found response has a 3xx status code
|
||||
func (o *GetAccountsNotFound) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this get accounts not found response has a 4xx status code
|
||||
func (o *GetAccountsNotFound) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this get accounts not found response has a 5xx status code
|
||||
func (o *GetAccountsNotFound) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this get accounts not found response a status code equal to that given
|
||||
func (o *GetAccountsNotFound) IsCode(code int) bool {
|
||||
return code == 404
|
||||
}
|
||||
|
||||
// Code gets the status code for the get accounts not found response
|
||||
func (o *GetAccountsNotFound) Code() int {
|
||||
return 404
|
||||
}
|
||||
|
||||
func (o *GetAccountsNotFound) Error() string {
|
||||
return fmt.Sprintf("[GET /accounts][%d] getAccountsNotFound %+v", 404, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetAccountsNotFound) String() string {
|
||||
return fmt.Sprintf("[GET /accounts][%d] getAccountsNotFound %+v", 404, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetAccountsNotFound) GetPayload() *crm_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -245,7 +389,8 @@ func NewGetAccountsUnprocessableEntity() *GetAccountsUnprocessableEntity {
|
|||
return &GetAccountsUnprocessableEntity{}
|
||||
}
|
||||
|
||||
/* GetAccountsUnprocessableEntity describes a response with status code 422, with default header values.
|
||||
/*
|
||||
GetAccountsUnprocessableEntity describes a response with status code 422, with default header values.
|
||||
|
||||
Unprocessable Entity, likely a bad parameter
|
||||
*/
|
||||
|
@ -255,9 +400,44 @@ type GetAccountsUnprocessableEntity struct {
|
|||
Payload *crm_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this get accounts unprocessable entity response has a 2xx status code
|
||||
func (o *GetAccountsUnprocessableEntity) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this get accounts unprocessable entity response has a 3xx status code
|
||||
func (o *GetAccountsUnprocessableEntity) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this get accounts unprocessable entity response has a 4xx status code
|
||||
func (o *GetAccountsUnprocessableEntity) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this get accounts unprocessable entity response has a 5xx status code
|
||||
func (o *GetAccountsUnprocessableEntity) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this get accounts unprocessable entity response a status code equal to that given
|
||||
func (o *GetAccountsUnprocessableEntity) IsCode(code int) bool {
|
||||
return code == 422
|
||||
}
|
||||
|
||||
// Code gets the status code for the get accounts unprocessable entity response
|
||||
func (o *GetAccountsUnprocessableEntity) Code() int {
|
||||
return 422
|
||||
}
|
||||
|
||||
func (o *GetAccountsUnprocessableEntity) Error() string {
|
||||
return fmt.Sprintf("[GET /accounts][%d] getAccountsUnprocessableEntity %+v", 422, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetAccountsUnprocessableEntity) String() string {
|
||||
return fmt.Sprintf("[GET /accounts][%d] getAccountsUnprocessableEntity %+v", 422, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetAccountsUnprocessableEntity) GetPayload() *crm_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -286,7 +466,8 @@ func NewGetAccountsInternalServerError() *GetAccountsInternalServerError {
|
|||
return &GetAccountsInternalServerError{}
|
||||
}
|
||||
|
||||
/* GetAccountsInternalServerError describes a response with status code 500, with default header values.
|
||||
/*
|
||||
GetAccountsInternalServerError describes a response with status code 500, with default header values.
|
||||
|
||||
Server Internal Error
|
||||
*/
|
||||
|
@ -296,9 +477,44 @@ type GetAccountsInternalServerError struct {
|
|||
Payload *crm_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this get accounts internal server error response has a 2xx status code
|
||||
func (o *GetAccountsInternalServerError) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this get accounts internal server error response has a 3xx status code
|
||||
func (o *GetAccountsInternalServerError) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this get accounts internal server error response has a 4xx status code
|
||||
func (o *GetAccountsInternalServerError) IsClientError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsServerError returns true when this get accounts internal server error response has a 5xx status code
|
||||
func (o *GetAccountsInternalServerError) IsServerError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsCode returns true when this get accounts internal server error response a status code equal to that given
|
||||
func (o *GetAccountsInternalServerError) IsCode(code int) bool {
|
||||
return code == 500
|
||||
}
|
||||
|
||||
// Code gets the status code for the get accounts internal server error response
|
||||
func (o *GetAccountsInternalServerError) Code() int {
|
||||
return 500
|
||||
}
|
||||
|
||||
func (o *GetAccountsInternalServerError) Error() string {
|
||||
return fmt.Sprintf("[GET /accounts][%d] getAccountsInternalServerError %+v", 500, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetAccountsInternalServerError) String() string {
|
||||
return fmt.Sprintf("[GET /accounts][%d] getAccountsInternalServerError %+v", 500, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetAccountsInternalServerError) GetPayload() *crm_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
|
|
@ -58,10 +58,12 @@ func NewPostAccountsParamsWithHTTPClient(client *http.Client) *PostAccountsParam
|
|||
}
|
||||
}
|
||||
|
||||
/* PostAccountsParams contains all the parameters to send to the API endpoint
|
||||
for the post accounts operation.
|
||||
/*
|
||||
PostAccountsParams contains all the parameters to send to the API endpoint
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
for the post accounts operation.
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
*/
|
||||
type PostAccountsParams struct {
|
||||
|
||||
|
|
|
@ -73,7 +73,8 @@ func NewPostAccountsOK() *PostAccountsOK {
|
|||
return &PostAccountsOK{}
|
||||
}
|
||||
|
||||
/* PostAccountsOK describes a response with status code 200, with default header values.
|
||||
/*
|
||||
PostAccountsOK describes a response with status code 200, with default header values.
|
||||
|
||||
Taxnexus Response with Account objects with Contacts
|
||||
*/
|
||||
|
@ -84,9 +85,44 @@ type PostAccountsOK struct {
|
|||
Payload *crm_models.AccountResponse
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this post accounts o k response has a 2xx status code
|
||||
func (o *PostAccountsOK) IsSuccess() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this post accounts o k response has a 3xx status code
|
||||
func (o *PostAccountsOK) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this post accounts o k response has a 4xx status code
|
||||
func (o *PostAccountsOK) IsClientError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsServerError returns true when this post accounts o k response has a 5xx status code
|
||||
func (o *PostAccountsOK) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this post accounts o k response a status code equal to that given
|
||||
func (o *PostAccountsOK) IsCode(code int) bool {
|
||||
return code == 200
|
||||
}
|
||||
|
||||
// Code gets the status code for the post accounts o k response
|
||||
func (o *PostAccountsOK) Code() int {
|
||||
return 200
|
||||
}
|
||||
|
||||
func (o *PostAccountsOK) Error() string {
|
||||
return fmt.Sprintf("[POST /accounts][%d] postAccountsOK %+v", 200, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PostAccountsOK) String() string {
|
||||
return fmt.Sprintf("[POST /accounts][%d] postAccountsOK %+v", 200, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PostAccountsOK) GetPayload() *crm_models.AccountResponse {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -122,7 +158,8 @@ func NewPostAccountsUnauthorized() *PostAccountsUnauthorized {
|
|||
return &PostAccountsUnauthorized{}
|
||||
}
|
||||
|
||||
/* PostAccountsUnauthorized describes a response with status code 401, with default header values.
|
||||
/*
|
||||
PostAccountsUnauthorized describes a response with status code 401, with default header values.
|
||||
|
||||
Access unauthorized, invalid API-KEY was used
|
||||
*/
|
||||
|
@ -132,9 +169,44 @@ type PostAccountsUnauthorized struct {
|
|||
Payload *crm_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this post accounts unauthorized response has a 2xx status code
|
||||
func (o *PostAccountsUnauthorized) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this post accounts unauthorized response has a 3xx status code
|
||||
func (o *PostAccountsUnauthorized) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this post accounts unauthorized response has a 4xx status code
|
||||
func (o *PostAccountsUnauthorized) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this post accounts unauthorized response has a 5xx status code
|
||||
func (o *PostAccountsUnauthorized) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this post accounts unauthorized response a status code equal to that given
|
||||
func (o *PostAccountsUnauthorized) IsCode(code int) bool {
|
||||
return code == 401
|
||||
}
|
||||
|
||||
// Code gets the status code for the post accounts unauthorized response
|
||||
func (o *PostAccountsUnauthorized) Code() int {
|
||||
return 401
|
||||
}
|
||||
|
||||
func (o *PostAccountsUnauthorized) Error() string {
|
||||
return fmt.Sprintf("[POST /accounts][%d] postAccountsUnauthorized %+v", 401, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PostAccountsUnauthorized) String() string {
|
||||
return fmt.Sprintf("[POST /accounts][%d] postAccountsUnauthorized %+v", 401, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PostAccountsUnauthorized) GetPayload() *crm_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -163,7 +235,8 @@ func NewPostAccountsForbidden() *PostAccountsForbidden {
|
|||
return &PostAccountsForbidden{}
|
||||
}
|
||||
|
||||
/* PostAccountsForbidden describes a response with status code 403, with default header values.
|
||||
/*
|
||||
PostAccountsForbidden describes a response with status code 403, with default header values.
|
||||
|
||||
Access forbidden, account lacks access
|
||||
*/
|
||||
|
@ -173,9 +246,44 @@ type PostAccountsForbidden struct {
|
|||
Payload *crm_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this post accounts forbidden response has a 2xx status code
|
||||
func (o *PostAccountsForbidden) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this post accounts forbidden response has a 3xx status code
|
||||
func (o *PostAccountsForbidden) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this post accounts forbidden response has a 4xx status code
|
||||
func (o *PostAccountsForbidden) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this post accounts forbidden response has a 5xx status code
|
||||
func (o *PostAccountsForbidden) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this post accounts forbidden response a status code equal to that given
|
||||
func (o *PostAccountsForbidden) IsCode(code int) bool {
|
||||
return code == 403
|
||||
}
|
||||
|
||||
// Code gets the status code for the post accounts forbidden response
|
||||
func (o *PostAccountsForbidden) Code() int {
|
||||
return 403
|
||||
}
|
||||
|
||||
func (o *PostAccountsForbidden) Error() string {
|
||||
return fmt.Sprintf("[POST /accounts][%d] postAccountsForbidden %+v", 403, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PostAccountsForbidden) String() string {
|
||||
return fmt.Sprintf("[POST /accounts][%d] postAccountsForbidden %+v", 403, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PostAccountsForbidden) GetPayload() *crm_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -204,7 +312,8 @@ func NewPostAccountsNotFound() *PostAccountsNotFound {
|
|||
return &PostAccountsNotFound{}
|
||||
}
|
||||
|
||||
/* PostAccountsNotFound describes a response with status code 404, with default header values.
|
||||
/*
|
||||
PostAccountsNotFound describes a response with status code 404, with default header values.
|
||||
|
||||
Resource was not found
|
||||
*/
|
||||
|
@ -214,9 +323,44 @@ type PostAccountsNotFound struct {
|
|||
Payload *crm_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this post accounts not found response has a 2xx status code
|
||||
func (o *PostAccountsNotFound) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this post accounts not found response has a 3xx status code
|
||||
func (o *PostAccountsNotFound) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this post accounts not found response has a 4xx status code
|
||||
func (o *PostAccountsNotFound) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this post accounts not found response has a 5xx status code
|
||||
func (o *PostAccountsNotFound) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this post accounts not found response a status code equal to that given
|
||||
func (o *PostAccountsNotFound) IsCode(code int) bool {
|
||||
return code == 404
|
||||
}
|
||||
|
||||
// Code gets the status code for the post accounts not found response
|
||||
func (o *PostAccountsNotFound) Code() int {
|
||||
return 404
|
||||
}
|
||||
|
||||
func (o *PostAccountsNotFound) Error() string {
|
||||
return fmt.Sprintf("[POST /accounts][%d] postAccountsNotFound %+v", 404, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PostAccountsNotFound) String() string {
|
||||
return fmt.Sprintf("[POST /accounts][%d] postAccountsNotFound %+v", 404, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PostAccountsNotFound) GetPayload() *crm_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -245,7 +389,8 @@ func NewPostAccountsUnprocessableEntity() *PostAccountsUnprocessableEntity {
|
|||
return &PostAccountsUnprocessableEntity{}
|
||||
}
|
||||
|
||||
/* PostAccountsUnprocessableEntity describes a response with status code 422, with default header values.
|
||||
/*
|
||||
PostAccountsUnprocessableEntity describes a response with status code 422, with default header values.
|
||||
|
||||
Unprocessable Entity, likely a bad parameter
|
||||
*/
|
||||
|
@ -255,9 +400,44 @@ type PostAccountsUnprocessableEntity struct {
|
|||
Payload *crm_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this post accounts unprocessable entity response has a 2xx status code
|
||||
func (o *PostAccountsUnprocessableEntity) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this post accounts unprocessable entity response has a 3xx status code
|
||||
func (o *PostAccountsUnprocessableEntity) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this post accounts unprocessable entity response has a 4xx status code
|
||||
func (o *PostAccountsUnprocessableEntity) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this post accounts unprocessable entity response has a 5xx status code
|
||||
func (o *PostAccountsUnprocessableEntity) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this post accounts unprocessable entity response a status code equal to that given
|
||||
func (o *PostAccountsUnprocessableEntity) IsCode(code int) bool {
|
||||
return code == 422
|
||||
}
|
||||
|
||||
// Code gets the status code for the post accounts unprocessable entity response
|
||||
func (o *PostAccountsUnprocessableEntity) Code() int {
|
||||
return 422
|
||||
}
|
||||
|
||||
func (o *PostAccountsUnprocessableEntity) Error() string {
|
||||
return fmt.Sprintf("[POST /accounts][%d] postAccountsUnprocessableEntity %+v", 422, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PostAccountsUnprocessableEntity) String() string {
|
||||
return fmt.Sprintf("[POST /accounts][%d] postAccountsUnprocessableEntity %+v", 422, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PostAccountsUnprocessableEntity) GetPayload() *crm_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -286,7 +466,8 @@ func NewPostAccountsInternalServerError() *PostAccountsInternalServerError {
|
|||
return &PostAccountsInternalServerError{}
|
||||
}
|
||||
|
||||
/* PostAccountsInternalServerError describes a response with status code 500, with default header values.
|
||||
/*
|
||||
PostAccountsInternalServerError describes a response with status code 500, with default header values.
|
||||
|
||||
Server Internal Error
|
||||
*/
|
||||
|
@ -296,9 +477,44 @@ type PostAccountsInternalServerError struct {
|
|||
Payload *crm_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this post accounts internal server error response has a 2xx status code
|
||||
func (o *PostAccountsInternalServerError) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this post accounts internal server error response has a 3xx status code
|
||||
func (o *PostAccountsInternalServerError) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this post accounts internal server error response has a 4xx status code
|
||||
func (o *PostAccountsInternalServerError) IsClientError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsServerError returns true when this post accounts internal server error response has a 5xx status code
|
||||
func (o *PostAccountsInternalServerError) IsServerError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsCode returns true when this post accounts internal server error response a status code equal to that given
|
||||
func (o *PostAccountsInternalServerError) IsCode(code int) bool {
|
||||
return code == 500
|
||||
}
|
||||
|
||||
// Code gets the status code for the post accounts internal server error response
|
||||
func (o *PostAccountsInternalServerError) Code() int {
|
||||
return 500
|
||||
}
|
||||
|
||||
func (o *PostAccountsInternalServerError) Error() string {
|
||||
return fmt.Sprintf("[POST /accounts][%d] postAccountsInternalServerError %+v", 500, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PostAccountsInternalServerError) String() string {
|
||||
return fmt.Sprintf("[POST /accounts][%d] postAccountsInternalServerError %+v", 500, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PostAccountsInternalServerError) GetPayload() *crm_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
|
|
@ -58,10 +58,12 @@ func NewPutAccountParamsWithHTTPClient(client *http.Client) *PutAccountParams {
|
|||
}
|
||||
}
|
||||
|
||||
/* PutAccountParams contains all the parameters to send to the API endpoint
|
||||
for the put account operation.
|
||||
/*
|
||||
PutAccountParams contains all the parameters to send to the API endpoint
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
for the put account operation.
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
*/
|
||||
type PutAccountParams struct {
|
||||
|
||||
|
|
|
@ -73,7 +73,8 @@ func NewPutAccountOK() *PutAccountOK {
|
|||
return &PutAccountOK{}
|
||||
}
|
||||
|
||||
/* PutAccountOK describes a response with status code 200, with default header values.
|
||||
/*
|
||||
PutAccountOK describes a response with status code 200, with default header values.
|
||||
|
||||
Taxnexus Response with Account objects with Contacts
|
||||
*/
|
||||
|
@ -84,9 +85,44 @@ type PutAccountOK struct {
|
|||
Payload *crm_models.AccountResponse
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this put account o k response has a 2xx status code
|
||||
func (o *PutAccountOK) IsSuccess() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this put account o k response has a 3xx status code
|
||||
func (o *PutAccountOK) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this put account o k response has a 4xx status code
|
||||
func (o *PutAccountOK) IsClientError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsServerError returns true when this put account o k response has a 5xx status code
|
||||
func (o *PutAccountOK) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this put account o k response a status code equal to that given
|
||||
func (o *PutAccountOK) IsCode(code int) bool {
|
||||
return code == 200
|
||||
}
|
||||
|
||||
// Code gets the status code for the put account o k response
|
||||
func (o *PutAccountOK) Code() int {
|
||||
return 200
|
||||
}
|
||||
|
||||
func (o *PutAccountOK) Error() string {
|
||||
return fmt.Sprintf("[PUT /accounts][%d] putAccountOK %+v", 200, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PutAccountOK) String() string {
|
||||
return fmt.Sprintf("[PUT /accounts][%d] putAccountOK %+v", 200, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PutAccountOK) GetPayload() *crm_models.AccountResponse {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -122,7 +158,8 @@ func NewPutAccountUnauthorized() *PutAccountUnauthorized {
|
|||
return &PutAccountUnauthorized{}
|
||||
}
|
||||
|
||||
/* PutAccountUnauthorized describes a response with status code 401, with default header values.
|
||||
/*
|
||||
PutAccountUnauthorized describes a response with status code 401, with default header values.
|
||||
|
||||
Access unauthorized, invalid API-KEY was used
|
||||
*/
|
||||
|
@ -132,9 +169,44 @@ type PutAccountUnauthorized struct {
|
|||
Payload *crm_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this put account unauthorized response has a 2xx status code
|
||||
func (o *PutAccountUnauthorized) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this put account unauthorized response has a 3xx status code
|
||||
func (o *PutAccountUnauthorized) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this put account unauthorized response has a 4xx status code
|
||||
func (o *PutAccountUnauthorized) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this put account unauthorized response has a 5xx status code
|
||||
func (o *PutAccountUnauthorized) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this put account unauthorized response a status code equal to that given
|
||||
func (o *PutAccountUnauthorized) IsCode(code int) bool {
|
||||
return code == 401
|
||||
}
|
||||
|
||||
// Code gets the status code for the put account unauthorized response
|
||||
func (o *PutAccountUnauthorized) Code() int {
|
||||
return 401
|
||||
}
|
||||
|
||||
func (o *PutAccountUnauthorized) Error() string {
|
||||
return fmt.Sprintf("[PUT /accounts][%d] putAccountUnauthorized %+v", 401, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PutAccountUnauthorized) String() string {
|
||||
return fmt.Sprintf("[PUT /accounts][%d] putAccountUnauthorized %+v", 401, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PutAccountUnauthorized) GetPayload() *crm_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -163,7 +235,8 @@ func NewPutAccountForbidden() *PutAccountForbidden {
|
|||
return &PutAccountForbidden{}
|
||||
}
|
||||
|
||||
/* PutAccountForbidden describes a response with status code 403, with default header values.
|
||||
/*
|
||||
PutAccountForbidden describes a response with status code 403, with default header values.
|
||||
|
||||
Access forbidden, account lacks access
|
||||
*/
|
||||
|
@ -173,9 +246,44 @@ type PutAccountForbidden struct {
|
|||
Payload *crm_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this put account forbidden response has a 2xx status code
|
||||
func (o *PutAccountForbidden) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this put account forbidden response has a 3xx status code
|
||||
func (o *PutAccountForbidden) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this put account forbidden response has a 4xx status code
|
||||
func (o *PutAccountForbidden) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this put account forbidden response has a 5xx status code
|
||||
func (o *PutAccountForbidden) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this put account forbidden response a status code equal to that given
|
||||
func (o *PutAccountForbidden) IsCode(code int) bool {
|
||||
return code == 403
|
||||
}
|
||||
|
||||
// Code gets the status code for the put account forbidden response
|
||||
func (o *PutAccountForbidden) Code() int {
|
||||
return 403
|
||||
}
|
||||
|
||||
func (o *PutAccountForbidden) Error() string {
|
||||
return fmt.Sprintf("[PUT /accounts][%d] putAccountForbidden %+v", 403, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PutAccountForbidden) String() string {
|
||||
return fmt.Sprintf("[PUT /accounts][%d] putAccountForbidden %+v", 403, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PutAccountForbidden) GetPayload() *crm_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -204,7 +312,8 @@ func NewPutAccountNotFound() *PutAccountNotFound {
|
|||
return &PutAccountNotFound{}
|
||||
}
|
||||
|
||||
/* PutAccountNotFound describes a response with status code 404, with default header values.
|
||||
/*
|
||||
PutAccountNotFound describes a response with status code 404, with default header values.
|
||||
|
||||
Resource was not found
|
||||
*/
|
||||
|
@ -214,9 +323,44 @@ type PutAccountNotFound struct {
|
|||
Payload *crm_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this put account not found response has a 2xx status code
|
||||
func (o *PutAccountNotFound) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this put account not found response has a 3xx status code
|
||||
func (o *PutAccountNotFound) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this put account not found response has a 4xx status code
|
||||
func (o *PutAccountNotFound) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this put account not found response has a 5xx status code
|
||||
func (o *PutAccountNotFound) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this put account not found response a status code equal to that given
|
||||
func (o *PutAccountNotFound) IsCode(code int) bool {
|
||||
return code == 404
|
||||
}
|
||||
|
||||
// Code gets the status code for the put account not found response
|
||||
func (o *PutAccountNotFound) Code() int {
|
||||
return 404
|
||||
}
|
||||
|
||||
func (o *PutAccountNotFound) Error() string {
|
||||
return fmt.Sprintf("[PUT /accounts][%d] putAccountNotFound %+v", 404, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PutAccountNotFound) String() string {
|
||||
return fmt.Sprintf("[PUT /accounts][%d] putAccountNotFound %+v", 404, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PutAccountNotFound) GetPayload() *crm_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -245,7 +389,8 @@ func NewPutAccountUnprocessableEntity() *PutAccountUnprocessableEntity {
|
|||
return &PutAccountUnprocessableEntity{}
|
||||
}
|
||||
|
||||
/* PutAccountUnprocessableEntity describes a response with status code 422, with default header values.
|
||||
/*
|
||||
PutAccountUnprocessableEntity describes a response with status code 422, with default header values.
|
||||
|
||||
Unprocessable Entity, likely a bad parameter
|
||||
*/
|
||||
|
@ -255,9 +400,44 @@ type PutAccountUnprocessableEntity struct {
|
|||
Payload *crm_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this put account unprocessable entity response has a 2xx status code
|
||||
func (o *PutAccountUnprocessableEntity) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this put account unprocessable entity response has a 3xx status code
|
||||
func (o *PutAccountUnprocessableEntity) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this put account unprocessable entity response has a 4xx status code
|
||||
func (o *PutAccountUnprocessableEntity) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this put account unprocessable entity response has a 5xx status code
|
||||
func (o *PutAccountUnprocessableEntity) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this put account unprocessable entity response a status code equal to that given
|
||||
func (o *PutAccountUnprocessableEntity) IsCode(code int) bool {
|
||||
return code == 422
|
||||
}
|
||||
|
||||
// Code gets the status code for the put account unprocessable entity response
|
||||
func (o *PutAccountUnprocessableEntity) Code() int {
|
||||
return 422
|
||||
}
|
||||
|
||||
func (o *PutAccountUnprocessableEntity) Error() string {
|
||||
return fmt.Sprintf("[PUT /accounts][%d] putAccountUnprocessableEntity %+v", 422, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PutAccountUnprocessableEntity) String() string {
|
||||
return fmt.Sprintf("[PUT /accounts][%d] putAccountUnprocessableEntity %+v", 422, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PutAccountUnprocessableEntity) GetPayload() *crm_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -286,7 +466,8 @@ func NewPutAccountInternalServerError() *PutAccountInternalServerError {
|
|||
return &PutAccountInternalServerError{}
|
||||
}
|
||||
|
||||
/* PutAccountInternalServerError describes a response with status code 500, with default header values.
|
||||
/*
|
||||
PutAccountInternalServerError describes a response with status code 500, with default header values.
|
||||
|
||||
Server Internal Error
|
||||
*/
|
||||
|
@ -296,9 +477,44 @@ type PutAccountInternalServerError struct {
|
|||
Payload *crm_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this put account internal server error response has a 2xx status code
|
||||
func (o *PutAccountInternalServerError) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this put account internal server error response has a 3xx status code
|
||||
func (o *PutAccountInternalServerError) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this put account internal server error response has a 4xx status code
|
||||
func (o *PutAccountInternalServerError) IsClientError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsServerError returns true when this put account internal server error response has a 5xx status code
|
||||
func (o *PutAccountInternalServerError) IsServerError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsCode returns true when this put account internal server error response a status code equal to that given
|
||||
func (o *PutAccountInternalServerError) IsCode(code int) bool {
|
||||
return code == 500
|
||||
}
|
||||
|
||||
// Code gets the status code for the put account internal server error response
|
||||
func (o *PutAccountInternalServerError) Code() int {
|
||||
return 500
|
||||
}
|
||||
|
||||
func (o *PutAccountInternalServerError) Error() string {
|
||||
return fmt.Sprintf("[PUT /accounts][%d] putAccountInternalServerError %+v", 500, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PutAccountInternalServerError) String() string {
|
||||
return fmt.Sprintf("[PUT /accounts][%d] putAccountInternalServerError %+v", 500, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PutAccountInternalServerError) GetPayload() *crm_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
|
|
@ -48,9 +48,9 @@ type ClientService interface {
|
|||
}
|
||||
|
||||
/*
|
||||
DeleteAsset deletes an asset
|
||||
DeleteAsset deletes an asset
|
||||
|
||||
Delete Taxnexus Asset record
|
||||
Delete Taxnexus Asset record
|
||||
*/
|
||||
func (a *Client) DeleteAsset(params *DeleteAssetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteAssetOK, error) {
|
||||
// TODO: Validate the params before sending
|
||||
|
@ -89,9 +89,9 @@ func (a *Client) DeleteAsset(params *DeleteAssetParams, authInfo runtime.ClientA
|
|||
}
|
||||
|
||||
/*
|
||||
GetAssets gets a list of assets
|
||||
GetAssets gets a list of assets
|
||||
|
||||
Return a list of all available Assets
|
||||
Return a list of all available Assets
|
||||
*/
|
||||
func (a *Client) GetAssets(params *GetAssetsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAssetsOK, error) {
|
||||
// TODO: Validate the params before sending
|
||||
|
@ -130,9 +130,9 @@ func (a *Client) GetAssets(params *GetAssetsParams, authInfo runtime.ClientAuthI
|
|||
}
|
||||
|
||||
/*
|
||||
GetAssetsObservable gets taxnexus assets in an observable array
|
||||
GetAssetsObservable gets taxnexus assets in an observable array
|
||||
|
||||
A list of assets in a simple JSON array
|
||||
A list of assets in a simple JSON array
|
||||
*/
|
||||
func (a *Client) GetAssetsObservable(params *GetAssetsObservableParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAssetsObservableOK, error) {
|
||||
// TODO: Validate the params before sending
|
||||
|
@ -171,9 +171,9 @@ func (a *Client) GetAssetsObservable(params *GetAssetsObservableParams, authInfo
|
|||
}
|
||||
|
||||
/*
|
||||
PostAssets adds a new asset to taxnexus
|
||||
PostAssets adds a new asset to taxnexus
|
||||
|
||||
Asset record to be added
|
||||
Asset record to be added
|
||||
*/
|
||||
func (a *Client) PostAssets(params *PostAssetsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostAssetsOK, error) {
|
||||
// TODO: Validate the params before sending
|
||||
|
@ -212,9 +212,9 @@ func (a *Client) PostAssets(params *PostAssetsParams, authInfo runtime.ClientAut
|
|||
}
|
||||
|
||||
/*
|
||||
PutAsset updates a single asset
|
||||
PutAsset updates a single asset
|
||||
|
||||
Update a single asset specified by assetId
|
||||
Update a single asset specified by assetId
|
||||
*/
|
||||
func (a *Client) PutAsset(params *PutAssetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PutAssetOK, error) {
|
||||
// TODO: Validate the params before sending
|
||||
|
|
|
@ -56,10 +56,12 @@ func NewDeleteAssetParamsWithHTTPClient(client *http.Client) *DeleteAssetParams
|
|||
}
|
||||
}
|
||||
|
||||
/* DeleteAssetParams contains all the parameters to send to the API endpoint
|
||||
for the delete asset operation.
|
||||
/*
|
||||
DeleteAssetParams contains all the parameters to send to the API endpoint
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
for the delete asset operation.
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
*/
|
||||
type DeleteAssetParams struct {
|
||||
|
||||
|
|
|
@ -73,7 +73,8 @@ func NewDeleteAssetOK() *DeleteAssetOK {
|
|||
return &DeleteAssetOK{}
|
||||
}
|
||||
|
||||
/* DeleteAssetOK describes a response with status code 200, with default header values.
|
||||
/*
|
||||
DeleteAssetOK describes a response with status code 200, with default header values.
|
||||
|
||||
Taxnexus Response with Message Objects with Delete Status
|
||||
*/
|
||||
|
@ -83,9 +84,44 @@ type DeleteAssetOK struct {
|
|||
Payload *crm_models.DeleteResponse
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this delete asset o k response has a 2xx status code
|
||||
func (o *DeleteAssetOK) IsSuccess() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this delete asset o k response has a 3xx status code
|
||||
func (o *DeleteAssetOK) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this delete asset o k response has a 4xx status code
|
||||
func (o *DeleteAssetOK) IsClientError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsServerError returns true when this delete asset o k response has a 5xx status code
|
||||
func (o *DeleteAssetOK) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this delete asset o k response a status code equal to that given
|
||||
func (o *DeleteAssetOK) IsCode(code int) bool {
|
||||
return code == 200
|
||||
}
|
||||
|
||||
// Code gets the status code for the delete asset o k response
|
||||
func (o *DeleteAssetOK) Code() int {
|
||||
return 200
|
||||
}
|
||||
|
||||
func (o *DeleteAssetOK) Error() string {
|
||||
return fmt.Sprintf("[DELETE /assets][%d] deleteAssetOK %+v", 200, o.Payload)
|
||||
}
|
||||
|
||||
func (o *DeleteAssetOK) String() string {
|
||||
return fmt.Sprintf("[DELETE /assets][%d] deleteAssetOK %+v", 200, o.Payload)
|
||||
}
|
||||
|
||||
func (o *DeleteAssetOK) GetPayload() *crm_models.DeleteResponse {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -114,7 +150,8 @@ func NewDeleteAssetUnauthorized() *DeleteAssetUnauthorized {
|
|||
return &DeleteAssetUnauthorized{}
|
||||
}
|
||||
|
||||
/* DeleteAssetUnauthorized describes a response with status code 401, with default header values.
|
||||
/*
|
||||
DeleteAssetUnauthorized describes a response with status code 401, with default header values.
|
||||
|
||||
Access unauthorized, invalid API-KEY was used
|
||||
*/
|
||||
|
@ -124,9 +161,44 @@ type DeleteAssetUnauthorized struct {
|
|||
Payload *crm_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this delete asset unauthorized response has a 2xx status code
|
||||
func (o *DeleteAssetUnauthorized) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this delete asset unauthorized response has a 3xx status code
|
||||
func (o *DeleteAssetUnauthorized) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this delete asset unauthorized response has a 4xx status code
|
||||
func (o *DeleteAssetUnauthorized) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this delete asset unauthorized response has a 5xx status code
|
||||
func (o *DeleteAssetUnauthorized) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this delete asset unauthorized response a status code equal to that given
|
||||
func (o *DeleteAssetUnauthorized) IsCode(code int) bool {
|
||||
return code == 401
|
||||
}
|
||||
|
||||
// Code gets the status code for the delete asset unauthorized response
|
||||
func (o *DeleteAssetUnauthorized) Code() int {
|
||||
return 401
|
||||
}
|
||||
|
||||
func (o *DeleteAssetUnauthorized) Error() string {
|
||||
return fmt.Sprintf("[DELETE /assets][%d] deleteAssetUnauthorized %+v", 401, o.Payload)
|
||||
}
|
||||
|
||||
func (o *DeleteAssetUnauthorized) String() string {
|
||||
return fmt.Sprintf("[DELETE /assets][%d] deleteAssetUnauthorized %+v", 401, o.Payload)
|
||||
}
|
||||
|
||||
func (o *DeleteAssetUnauthorized) GetPayload() *crm_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -155,7 +227,8 @@ func NewDeleteAssetForbidden() *DeleteAssetForbidden {
|
|||
return &DeleteAssetForbidden{}
|
||||
}
|
||||
|
||||
/* DeleteAssetForbidden describes a response with status code 403, with default header values.
|
||||
/*
|
||||
DeleteAssetForbidden describes a response with status code 403, with default header values.
|
||||
|
||||
Access forbidden, account lacks access
|
||||
*/
|
||||
|
@ -165,9 +238,44 @@ type DeleteAssetForbidden struct {
|
|||
Payload *crm_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this delete asset forbidden response has a 2xx status code
|
||||
func (o *DeleteAssetForbidden) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this delete asset forbidden response has a 3xx status code
|
||||
func (o *DeleteAssetForbidden) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this delete asset forbidden response has a 4xx status code
|
||||
func (o *DeleteAssetForbidden) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this delete asset forbidden response has a 5xx status code
|
||||
func (o *DeleteAssetForbidden) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this delete asset forbidden response a status code equal to that given
|
||||
func (o *DeleteAssetForbidden) IsCode(code int) bool {
|
||||
return code == 403
|
||||
}
|
||||
|
||||
// Code gets the status code for the delete asset forbidden response
|
||||
func (o *DeleteAssetForbidden) Code() int {
|
||||
return 403
|
||||
}
|
||||
|
||||
func (o *DeleteAssetForbidden) Error() string {
|
||||
return fmt.Sprintf("[DELETE /assets][%d] deleteAssetForbidden %+v", 403, o.Payload)
|
||||
}
|
||||
|
||||
func (o *DeleteAssetForbidden) String() string {
|
||||
return fmt.Sprintf("[DELETE /assets][%d] deleteAssetForbidden %+v", 403, o.Payload)
|
||||
}
|
||||
|
||||
func (o *DeleteAssetForbidden) GetPayload() *crm_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -196,7 +304,8 @@ func NewDeleteAssetNotFound() *DeleteAssetNotFound {
|
|||
return &DeleteAssetNotFound{}
|
||||
}
|
||||
|
||||
/* DeleteAssetNotFound describes a response with status code 404, with default header values.
|
||||
/*
|
||||
DeleteAssetNotFound describes a response with status code 404, with default header values.
|
||||
|
||||
Resource was not found
|
||||
*/
|
||||
|
@ -206,9 +315,44 @@ type DeleteAssetNotFound struct {
|
|||
Payload *crm_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this delete asset not found response has a 2xx status code
|
||||
func (o *DeleteAssetNotFound) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this delete asset not found response has a 3xx status code
|
||||
func (o *DeleteAssetNotFound) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this delete asset not found response has a 4xx status code
|
||||
func (o *DeleteAssetNotFound) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this delete asset not found response has a 5xx status code
|
||||
func (o *DeleteAssetNotFound) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this delete asset not found response a status code equal to that given
|
||||
func (o *DeleteAssetNotFound) IsCode(code int) bool {
|
||||
return code == 404
|
||||
}
|
||||
|
||||
// Code gets the status code for the delete asset not found response
|
||||
func (o *DeleteAssetNotFound) Code() int {
|
||||
return 404
|
||||
}
|
||||
|
||||
func (o *DeleteAssetNotFound) Error() string {
|
||||
return fmt.Sprintf("[DELETE /assets][%d] deleteAssetNotFound %+v", 404, o.Payload)
|
||||
}
|
||||
|
||||
func (o *DeleteAssetNotFound) String() string {
|
||||
return fmt.Sprintf("[DELETE /assets][%d] deleteAssetNotFound %+v", 404, o.Payload)
|
||||
}
|
||||
|
||||
func (o *DeleteAssetNotFound) GetPayload() *crm_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -237,7 +381,8 @@ func NewDeleteAssetUnprocessableEntity() *DeleteAssetUnprocessableEntity {
|
|||
return &DeleteAssetUnprocessableEntity{}
|
||||
}
|
||||
|
||||
/* DeleteAssetUnprocessableEntity describes a response with status code 422, with default header values.
|
||||
/*
|
||||
DeleteAssetUnprocessableEntity describes a response with status code 422, with default header values.
|
||||
|
||||
Unprocessable Entity, likely a bad parameter
|
||||
*/
|
||||
|
@ -247,9 +392,44 @@ type DeleteAssetUnprocessableEntity struct {
|
|||
Payload *crm_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this delete asset unprocessable entity response has a 2xx status code
|
||||
func (o *DeleteAssetUnprocessableEntity) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this delete asset unprocessable entity response has a 3xx status code
|
||||
func (o *DeleteAssetUnprocessableEntity) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this delete asset unprocessable entity response has a 4xx status code
|
||||
func (o *DeleteAssetUnprocessableEntity) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this delete asset unprocessable entity response has a 5xx status code
|
||||
func (o *DeleteAssetUnprocessableEntity) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this delete asset unprocessable entity response a status code equal to that given
|
||||
func (o *DeleteAssetUnprocessableEntity) IsCode(code int) bool {
|
||||
return code == 422
|
||||
}
|
||||
|
||||
// Code gets the status code for the delete asset unprocessable entity response
|
||||
func (o *DeleteAssetUnprocessableEntity) Code() int {
|
||||
return 422
|
||||
}
|
||||
|
||||
func (o *DeleteAssetUnprocessableEntity) Error() string {
|
||||
return fmt.Sprintf("[DELETE /assets][%d] deleteAssetUnprocessableEntity %+v", 422, o.Payload)
|
||||
}
|
||||
|
||||
func (o *DeleteAssetUnprocessableEntity) String() string {
|
||||
return fmt.Sprintf("[DELETE /assets][%d] deleteAssetUnprocessableEntity %+v", 422, o.Payload)
|
||||
}
|
||||
|
||||
func (o *DeleteAssetUnprocessableEntity) GetPayload() *crm_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -278,7 +458,8 @@ func NewDeleteAssetInternalServerError() *DeleteAssetInternalServerError {
|
|||
return &DeleteAssetInternalServerError{}
|
||||
}
|
||||
|
||||
/* DeleteAssetInternalServerError describes a response with status code 500, with default header values.
|
||||
/*
|
||||
DeleteAssetInternalServerError describes a response with status code 500, with default header values.
|
||||
|
||||
Server Internal Error
|
||||
*/
|
||||
|
@ -288,9 +469,44 @@ type DeleteAssetInternalServerError struct {
|
|||
Payload *crm_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this delete asset internal server error response has a 2xx status code
|
||||
func (o *DeleteAssetInternalServerError) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this delete asset internal server error response has a 3xx status code
|
||||
func (o *DeleteAssetInternalServerError) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this delete asset internal server error response has a 4xx status code
|
||||
func (o *DeleteAssetInternalServerError) IsClientError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsServerError returns true when this delete asset internal server error response has a 5xx status code
|
||||
func (o *DeleteAssetInternalServerError) IsServerError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsCode returns true when this delete asset internal server error response a status code equal to that given
|
||||
func (o *DeleteAssetInternalServerError) IsCode(code int) bool {
|
||||
return code == 500
|
||||
}
|
||||
|
||||
// Code gets the status code for the delete asset internal server error response
|
||||
func (o *DeleteAssetInternalServerError) Code() int {
|
||||
return 500
|
||||
}
|
||||
|
||||
func (o *DeleteAssetInternalServerError) Error() string {
|
||||
return fmt.Sprintf("[DELETE /assets][%d] deleteAssetInternalServerError %+v", 500, o.Payload)
|
||||
}
|
||||
|
||||
func (o *DeleteAssetInternalServerError) String() string {
|
||||
return fmt.Sprintf("[DELETE /assets][%d] deleteAssetInternalServerError %+v", 500, o.Payload)
|
||||
}
|
||||
|
||||
func (o *DeleteAssetInternalServerError) GetPayload() *crm_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
|
|
@ -56,10 +56,12 @@ func NewGetAssetsObservableParamsWithHTTPClient(client *http.Client) *GetAssetsO
|
|||
}
|
||||
}
|
||||
|
||||
/* GetAssetsObservableParams contains all the parameters to send to the API endpoint
|
||||
for the get assets observable operation.
|
||||
/*
|
||||
GetAssetsObservableParams contains all the parameters to send to the API endpoint
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
for the get assets observable operation.
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
*/
|
||||
type GetAssetsObservableParams struct {
|
||||
|
||||
|
|
|
@ -73,7 +73,8 @@ func NewGetAssetsObservableOK() *GetAssetsObservableOK {
|
|||
return &GetAssetsObservableOK{}
|
||||
}
|
||||
|
||||
/* GetAssetsObservableOK describes a response with status code 200, with default header values.
|
||||
/*
|
||||
GetAssetsObservableOK describes a response with status code 200, with default header values.
|
||||
|
||||
Taxnexus Response with an array of Asset objects
|
||||
*/
|
||||
|
@ -84,9 +85,44 @@ type GetAssetsObservableOK struct {
|
|||
Payload []*crm_models.Asset
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this get assets observable o k response has a 2xx status code
|
||||
func (o *GetAssetsObservableOK) IsSuccess() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this get assets observable o k response has a 3xx status code
|
||||
func (o *GetAssetsObservableOK) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this get assets observable o k response has a 4xx status code
|
||||
func (o *GetAssetsObservableOK) IsClientError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsServerError returns true when this get assets observable o k response has a 5xx status code
|
||||
func (o *GetAssetsObservableOK) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this get assets observable o k response a status code equal to that given
|
||||
func (o *GetAssetsObservableOK) IsCode(code int) bool {
|
||||
return code == 200
|
||||
}
|
||||
|
||||
// Code gets the status code for the get assets observable o k response
|
||||
func (o *GetAssetsObservableOK) Code() int {
|
||||
return 200
|
||||
}
|
||||
|
||||
func (o *GetAssetsObservableOK) Error() string {
|
||||
return fmt.Sprintf("[GET /assets/observable][%d] getAssetsObservableOK %+v", 200, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetAssetsObservableOK) String() string {
|
||||
return fmt.Sprintf("[GET /assets/observable][%d] getAssetsObservableOK %+v", 200, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetAssetsObservableOK) GetPayload() []*crm_models.Asset {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -120,7 +156,8 @@ func NewGetAssetsObservableUnauthorized() *GetAssetsObservableUnauthorized {
|
|||
return &GetAssetsObservableUnauthorized{}
|
||||
}
|
||||
|
||||
/* GetAssetsObservableUnauthorized describes a response with status code 401, with default header values.
|
||||
/*
|
||||
GetAssetsObservableUnauthorized describes a response with status code 401, with default header values.
|
||||
|
||||
Access unauthorized, invalid API-KEY was used
|
||||
*/
|
||||
|
@ -130,9 +167,44 @@ type GetAssetsObservableUnauthorized struct {
|
|||
Payload *crm_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this get assets observable unauthorized response has a 2xx status code
|
||||
func (o *GetAssetsObservableUnauthorized) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this get assets observable unauthorized response has a 3xx status code
|
||||
func (o *GetAssetsObservableUnauthorized) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this get assets observable unauthorized response has a 4xx status code
|
||||
func (o *GetAssetsObservableUnauthorized) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this get assets observable unauthorized response has a 5xx status code
|
||||
func (o *GetAssetsObservableUnauthorized) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this get assets observable unauthorized response a status code equal to that given
|
||||
func (o *GetAssetsObservableUnauthorized) IsCode(code int) bool {
|
||||
return code == 401
|
||||
}
|
||||
|
||||
// Code gets the status code for the get assets observable unauthorized response
|
||||
func (o *GetAssetsObservableUnauthorized) Code() int {
|
||||
return 401
|
||||
}
|
||||
|
||||
func (o *GetAssetsObservableUnauthorized) Error() string {
|
||||
return fmt.Sprintf("[GET /assets/observable][%d] getAssetsObservableUnauthorized %+v", 401, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetAssetsObservableUnauthorized) String() string {
|
||||
return fmt.Sprintf("[GET /assets/observable][%d] getAssetsObservableUnauthorized %+v", 401, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetAssetsObservableUnauthorized) GetPayload() *crm_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -161,7 +233,8 @@ func NewGetAssetsObservableForbidden() *GetAssetsObservableForbidden {
|
|||
return &GetAssetsObservableForbidden{}
|
||||
}
|
||||
|
||||
/* GetAssetsObservableForbidden describes a response with status code 403, with default header values.
|
||||
/*
|
||||
GetAssetsObservableForbidden describes a response with status code 403, with default header values.
|
||||
|
||||
Access forbidden, account lacks access
|
||||
*/
|
||||
|
@ -171,9 +244,44 @@ type GetAssetsObservableForbidden struct {
|
|||
Payload *crm_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this get assets observable forbidden response has a 2xx status code
|
||||
func (o *GetAssetsObservableForbidden) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this get assets observable forbidden response has a 3xx status code
|
||||
func (o *GetAssetsObservableForbidden) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this get assets observable forbidden response has a 4xx status code
|
||||
func (o *GetAssetsObservableForbidden) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this get assets observable forbidden response has a 5xx status code
|
||||
func (o *GetAssetsObservableForbidden) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this get assets observable forbidden response a status code equal to that given
|
||||
func (o *GetAssetsObservableForbidden) IsCode(code int) bool {
|
||||
return code == 403
|
||||
}
|
||||
|
||||
// Code gets the status code for the get assets observable forbidden response
|
||||
func (o *GetAssetsObservableForbidden) Code() int {
|
||||
return 403
|
||||
}
|
||||
|
||||
func (o *GetAssetsObservableForbidden) Error() string {
|
||||
return fmt.Sprintf("[GET /assets/observable][%d] getAssetsObservableForbidden %+v", 403, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetAssetsObservableForbidden) String() string {
|
||||
return fmt.Sprintf("[GET /assets/observable][%d] getAssetsObservableForbidden %+v", 403, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetAssetsObservableForbidden) GetPayload() *crm_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -202,7 +310,8 @@ func NewGetAssetsObservableNotFound() *GetAssetsObservableNotFound {
|
|||
return &GetAssetsObservableNotFound{}
|
||||
}
|
||||
|
||||
/* GetAssetsObservableNotFound describes a response with status code 404, with default header values.
|
||||
/*
|
||||
GetAssetsObservableNotFound describes a response with status code 404, with default header values.
|
||||
|
||||
Resource was not found
|
||||
*/
|
||||
|
@ -212,9 +321,44 @@ type GetAssetsObservableNotFound struct {
|
|||
Payload *crm_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this get assets observable not found response has a 2xx status code
|
||||
func (o *GetAssetsObservableNotFound) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this get assets observable not found response has a 3xx status code
|
||||
func (o *GetAssetsObservableNotFound) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this get assets observable not found response has a 4xx status code
|
||||
func (o *GetAssetsObservableNotFound) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this get assets observable not found response has a 5xx status code
|
||||
func (o *GetAssetsObservableNotFound) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this get assets observable not found response a status code equal to that given
|
||||
func (o *GetAssetsObservableNotFound) IsCode(code int) bool {
|
||||
return code == 404
|
||||
}
|
||||
|
||||
// Code gets the status code for the get assets observable not found response
|
||||
func (o *GetAssetsObservableNotFound) Code() int {
|
||||
return 404
|
||||
}
|
||||
|
||||
func (o *GetAssetsObservableNotFound) Error() string {
|
||||
return fmt.Sprintf("[GET /assets/observable][%d] getAssetsObservableNotFound %+v", 404, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetAssetsObservableNotFound) String() string {
|
||||
return fmt.Sprintf("[GET /assets/observable][%d] getAssetsObservableNotFound %+v", 404, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetAssetsObservableNotFound) GetPayload() *crm_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -243,7 +387,8 @@ func NewGetAssetsObservableUnprocessableEntity() *GetAssetsObservableUnprocessab
|
|||
return &GetAssetsObservableUnprocessableEntity{}
|
||||
}
|
||||
|
||||
/* GetAssetsObservableUnprocessableEntity describes a response with status code 422, with default header values.
|
||||
/*
|
||||
GetAssetsObservableUnprocessableEntity describes a response with status code 422, with default header values.
|
||||
|
||||
Unprocessable Entity, likely a bad parameter
|
||||
*/
|
||||
|
@ -253,9 +398,44 @@ type GetAssetsObservableUnprocessableEntity struct {
|
|||
Payload *crm_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this get assets observable unprocessable entity response has a 2xx status code
|
||||
func (o *GetAssetsObservableUnprocessableEntity) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this get assets observable unprocessable entity response has a 3xx status code
|
||||
func (o *GetAssetsObservableUnprocessableEntity) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this get assets observable unprocessable entity response has a 4xx status code
|
||||
func (o *GetAssetsObservableUnprocessableEntity) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this get assets observable unprocessable entity response has a 5xx status code
|
||||
func (o *GetAssetsObservableUnprocessableEntity) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this get assets observable unprocessable entity response a status code equal to that given
|
||||
func (o *GetAssetsObservableUnprocessableEntity) IsCode(code int) bool {
|
||||
return code == 422
|
||||
}
|
||||
|
||||
// Code gets the status code for the get assets observable unprocessable entity response
|
||||
func (o *GetAssetsObservableUnprocessableEntity) Code() int {
|
||||
return 422
|
||||
}
|
||||
|
||||
func (o *GetAssetsObservableUnprocessableEntity) Error() string {
|
||||
return fmt.Sprintf("[GET /assets/observable][%d] getAssetsObservableUnprocessableEntity %+v", 422, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetAssetsObservableUnprocessableEntity) String() string {
|
||||
return fmt.Sprintf("[GET /assets/observable][%d] getAssetsObservableUnprocessableEntity %+v", 422, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetAssetsObservableUnprocessableEntity) GetPayload() *crm_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -284,7 +464,8 @@ func NewGetAssetsObservableInternalServerError() *GetAssetsObservableInternalSer
|
|||
return &GetAssetsObservableInternalServerError{}
|
||||
}
|
||||
|
||||
/* GetAssetsObservableInternalServerError describes a response with status code 500, with default header values.
|
||||
/*
|
||||
GetAssetsObservableInternalServerError describes a response with status code 500, with default header values.
|
||||
|
||||
Server Internal Error
|
||||
*/
|
||||
|
@ -294,9 +475,44 @@ type GetAssetsObservableInternalServerError struct {
|
|||
Payload *crm_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this get assets observable internal server error response has a 2xx status code
|
||||
func (o *GetAssetsObservableInternalServerError) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this get assets observable internal server error response has a 3xx status code
|
||||
func (o *GetAssetsObservableInternalServerError) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this get assets observable internal server error response has a 4xx status code
|
||||
func (o *GetAssetsObservableInternalServerError) IsClientError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsServerError returns true when this get assets observable internal server error response has a 5xx status code
|
||||
func (o *GetAssetsObservableInternalServerError) IsServerError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsCode returns true when this get assets observable internal server error response a status code equal to that given
|
||||
func (o *GetAssetsObservableInternalServerError) IsCode(code int) bool {
|
||||
return code == 500
|
||||
}
|
||||
|
||||
// Code gets the status code for the get assets observable internal server error response
|
||||
func (o *GetAssetsObservableInternalServerError) Code() int {
|
||||
return 500
|
||||
}
|
||||
|
||||
func (o *GetAssetsObservableInternalServerError) Error() string {
|
||||
return fmt.Sprintf("[GET /assets/observable][%d] getAssetsObservableInternalServerError %+v", 500, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetAssetsObservableInternalServerError) String() string {
|
||||
return fmt.Sprintf("[GET /assets/observable][%d] getAssetsObservableInternalServerError %+v", 500, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetAssetsObservableInternalServerError) GetPayload() *crm_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
|
|
@ -57,10 +57,12 @@ func NewGetAssetsParamsWithHTTPClient(client *http.Client) *GetAssetsParams {
|
|||
}
|
||||
}
|
||||
|
||||
/* GetAssetsParams contains all the parameters to send to the API endpoint
|
||||
for the get assets operation.
|
||||
/*
|
||||
GetAssetsParams contains all the parameters to send to the API endpoint
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
for the get assets operation.
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
*/
|
||||
type GetAssetsParams struct {
|
||||
|
||||
|
|
|
@ -73,7 +73,8 @@ func NewGetAssetsOK() *GetAssetsOK {
|
|||
return &GetAssetsOK{}
|
||||
}
|
||||
|
||||
/* GetAssetsOK describes a response with status code 200, with default header values.
|
||||
/*
|
||||
GetAssetsOK describes a response with status code 200, with default header values.
|
||||
|
||||
Taxnexus Response with Asset objects with Contacts
|
||||
*/
|
||||
|
@ -84,9 +85,44 @@ type GetAssetsOK struct {
|
|||
Payload *crm_models.AssetResponse
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this get assets o k response has a 2xx status code
|
||||
func (o *GetAssetsOK) IsSuccess() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this get assets o k response has a 3xx status code
|
||||
func (o *GetAssetsOK) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this get assets o k response has a 4xx status code
|
||||
func (o *GetAssetsOK) IsClientError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsServerError returns true when this get assets o k response has a 5xx status code
|
||||
func (o *GetAssetsOK) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this get assets o k response a status code equal to that given
|
||||
func (o *GetAssetsOK) IsCode(code int) bool {
|
||||
return code == 200
|
||||
}
|
||||
|
||||
// Code gets the status code for the get assets o k response
|
||||
func (o *GetAssetsOK) Code() int {
|
||||
return 200
|
||||
}
|
||||
|
||||
func (o *GetAssetsOK) Error() string {
|
||||
return fmt.Sprintf("[GET /assets][%d] getAssetsOK %+v", 200, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetAssetsOK) String() string {
|
||||
return fmt.Sprintf("[GET /assets][%d] getAssetsOK %+v", 200, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetAssetsOK) GetPayload() *crm_models.AssetResponse {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -122,7 +158,8 @@ func NewGetAssetsUnauthorized() *GetAssetsUnauthorized {
|
|||
return &GetAssetsUnauthorized{}
|
||||
}
|
||||
|
||||
/* GetAssetsUnauthorized describes a response with status code 401, with default header values.
|
||||
/*
|
||||
GetAssetsUnauthorized describes a response with status code 401, with default header values.
|
||||
|
||||
Access unauthorized, invalid API-KEY was used
|
||||
*/
|
||||
|
@ -132,9 +169,44 @@ type GetAssetsUnauthorized struct {
|
|||
Payload *crm_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this get assets unauthorized response has a 2xx status code
|
||||
func (o *GetAssetsUnauthorized) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this get assets unauthorized response has a 3xx status code
|
||||
func (o *GetAssetsUnauthorized) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this get assets unauthorized response has a 4xx status code
|
||||
func (o *GetAssetsUnauthorized) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this get assets unauthorized response has a 5xx status code
|
||||
func (o *GetAssetsUnauthorized) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this get assets unauthorized response a status code equal to that given
|
||||
func (o *GetAssetsUnauthorized) IsCode(code int) bool {
|
||||
return code == 401
|
||||
}
|
||||
|
||||
// Code gets the status code for the get assets unauthorized response
|
||||
func (o *GetAssetsUnauthorized) Code() int {
|
||||
return 401
|
||||
}
|
||||
|
||||
func (o *GetAssetsUnauthorized) Error() string {
|
||||
return fmt.Sprintf("[GET /assets][%d] getAssetsUnauthorized %+v", 401, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetAssetsUnauthorized) String() string {
|
||||
return fmt.Sprintf("[GET /assets][%d] getAssetsUnauthorized %+v", 401, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetAssetsUnauthorized) GetPayload() *crm_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -163,7 +235,8 @@ func NewGetAssetsForbidden() *GetAssetsForbidden {
|
|||
return &GetAssetsForbidden{}
|
||||
}
|
||||
|
||||
/* GetAssetsForbidden describes a response with status code 403, with default header values.
|
||||
/*
|
||||
GetAssetsForbidden describes a response with status code 403, with default header values.
|
||||
|
||||
Access forbidden, account lacks access
|
||||
*/
|
||||
|
@ -173,9 +246,44 @@ type GetAssetsForbidden struct {
|
|||
Payload *crm_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this get assets forbidden response has a 2xx status code
|
||||
func (o *GetAssetsForbidden) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this get assets forbidden response has a 3xx status code
|
||||
func (o *GetAssetsForbidden) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this get assets forbidden response has a 4xx status code
|
||||
func (o *GetAssetsForbidden) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this get assets forbidden response has a 5xx status code
|
||||
func (o *GetAssetsForbidden) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this get assets forbidden response a status code equal to that given
|
||||
func (o *GetAssetsForbidden) IsCode(code int) bool {
|
||||
return code == 403
|
||||
}
|
||||
|
||||
// Code gets the status code for the get assets forbidden response
|
||||
func (o *GetAssetsForbidden) Code() int {
|
||||
return 403
|
||||
}
|
||||
|
||||
func (o *GetAssetsForbidden) Error() string {
|
||||
return fmt.Sprintf("[GET /assets][%d] getAssetsForbidden %+v", 403, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetAssetsForbidden) String() string {
|
||||
return fmt.Sprintf("[GET /assets][%d] getAssetsForbidden %+v", 403, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetAssetsForbidden) GetPayload() *crm_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -204,7 +312,8 @@ func NewGetAssetsNotFound() *GetAssetsNotFound {
|
|||
return &GetAssetsNotFound{}
|
||||
}
|
||||
|
||||
/* GetAssetsNotFound describes a response with status code 404, with default header values.
|
||||
/*
|
||||
GetAssetsNotFound describes a response with status code 404, with default header values.
|
||||
|
||||
Resource was not found
|
||||
*/
|
||||
|
@ -214,9 +323,44 @@ type GetAssetsNotFound struct {
|
|||
Payload *crm_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this get assets not found response has a 2xx status code
|
||||
func (o *GetAssetsNotFound) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this get assets not found response has a 3xx status code
|
||||
func (o *GetAssetsNotFound) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this get assets not found response has a 4xx status code
|
||||
func (o *GetAssetsNotFound) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this get assets not found response has a 5xx status code
|
||||
func (o *GetAssetsNotFound) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this get assets not found response a status code equal to that given
|
||||
func (o *GetAssetsNotFound) IsCode(code int) bool {
|
||||
return code == 404
|
||||
}
|
||||
|
||||
// Code gets the status code for the get assets not found response
|
||||
func (o *GetAssetsNotFound) Code() int {
|
||||
return 404
|
||||
}
|
||||
|
||||
func (o *GetAssetsNotFound) Error() string {
|
||||
return fmt.Sprintf("[GET /assets][%d] getAssetsNotFound %+v", 404, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetAssetsNotFound) String() string {
|
||||
return fmt.Sprintf("[GET /assets][%d] getAssetsNotFound %+v", 404, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetAssetsNotFound) GetPayload() *crm_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -245,7 +389,8 @@ func NewGetAssetsUnprocessableEntity() *GetAssetsUnprocessableEntity {
|
|||
return &GetAssetsUnprocessableEntity{}
|
||||
}
|
||||
|
||||
/* GetAssetsUnprocessableEntity describes a response with status code 422, with default header values.
|
||||
/*
|
||||
GetAssetsUnprocessableEntity describes a response with status code 422, with default header values.
|
||||
|
||||
Unprocessable Entity, likely a bad parameter
|
||||
*/
|
||||
|
@ -255,9 +400,44 @@ type GetAssetsUnprocessableEntity struct {
|
|||
Payload *crm_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this get assets unprocessable entity response has a 2xx status code
|
||||
func (o *GetAssetsUnprocessableEntity) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this get assets unprocessable entity response has a 3xx status code
|
||||
func (o *GetAssetsUnprocessableEntity) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this get assets unprocessable entity response has a 4xx status code
|
||||
func (o *GetAssetsUnprocessableEntity) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this get assets unprocessable entity response has a 5xx status code
|
||||
func (o *GetAssetsUnprocessableEntity) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this get assets unprocessable entity response a status code equal to that given
|
||||
func (o *GetAssetsUnprocessableEntity) IsCode(code int) bool {
|
||||
return code == 422
|
||||
}
|
||||
|
||||
// Code gets the status code for the get assets unprocessable entity response
|
||||
func (o *GetAssetsUnprocessableEntity) Code() int {
|
||||
return 422
|
||||
}
|
||||
|
||||
func (o *GetAssetsUnprocessableEntity) Error() string {
|
||||
return fmt.Sprintf("[GET /assets][%d] getAssetsUnprocessableEntity %+v", 422, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetAssetsUnprocessableEntity) String() string {
|
||||
return fmt.Sprintf("[GET /assets][%d] getAssetsUnprocessableEntity %+v", 422, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetAssetsUnprocessableEntity) GetPayload() *crm_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -286,7 +466,8 @@ func NewGetAssetsInternalServerError() *GetAssetsInternalServerError {
|
|||
return &GetAssetsInternalServerError{}
|
||||
}
|
||||
|
||||
/* GetAssetsInternalServerError describes a response with status code 500, with default header values.
|
||||
/*
|
||||
GetAssetsInternalServerError describes a response with status code 500, with default header values.
|
||||
|
||||
Server Internal Error
|
||||
*/
|
||||
|
@ -296,9 +477,44 @@ type GetAssetsInternalServerError struct {
|
|||
Payload *crm_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this get assets internal server error response has a 2xx status code
|
||||
func (o *GetAssetsInternalServerError) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this get assets internal server error response has a 3xx status code
|
||||
func (o *GetAssetsInternalServerError) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this get assets internal server error response has a 4xx status code
|
||||
func (o *GetAssetsInternalServerError) IsClientError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsServerError returns true when this get assets internal server error response has a 5xx status code
|
||||
func (o *GetAssetsInternalServerError) IsServerError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsCode returns true when this get assets internal server error response a status code equal to that given
|
||||
func (o *GetAssetsInternalServerError) IsCode(code int) bool {
|
||||
return code == 500
|
||||
}
|
||||
|
||||
// Code gets the status code for the get assets internal server error response
|
||||
func (o *GetAssetsInternalServerError) Code() int {
|
||||
return 500
|
||||
}
|
||||
|
||||
func (o *GetAssetsInternalServerError) Error() string {
|
||||
return fmt.Sprintf("[GET /assets][%d] getAssetsInternalServerError %+v", 500, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetAssetsInternalServerError) String() string {
|
||||
return fmt.Sprintf("[GET /assets][%d] getAssetsInternalServerError %+v", 500, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetAssetsInternalServerError) GetPayload() *crm_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
|
|
@ -58,10 +58,12 @@ func NewPostAssetsParamsWithHTTPClient(client *http.Client) *PostAssetsParams {
|
|||
}
|
||||
}
|
||||
|
||||
/* PostAssetsParams contains all the parameters to send to the API endpoint
|
||||
for the post assets operation.
|
||||
/*
|
||||
PostAssetsParams contains all the parameters to send to the API endpoint
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
for the post assets operation.
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
*/
|
||||
type PostAssetsParams struct {
|
||||
|
||||
|
|
|
@ -73,7 +73,8 @@ func NewPostAssetsOK() *PostAssetsOK {
|
|||
return &PostAssetsOK{}
|
||||
}
|
||||
|
||||
/* PostAssetsOK describes a response with status code 200, with default header values.
|
||||
/*
|
||||
PostAssetsOK describes a response with status code 200, with default header values.
|
||||
|
||||
Taxnexus Response with Asset objects with Contacts
|
||||
*/
|
||||
|
@ -84,9 +85,44 @@ type PostAssetsOK struct {
|
|||
Payload *crm_models.AssetResponse
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this post assets o k response has a 2xx status code
|
||||
func (o *PostAssetsOK) IsSuccess() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this post assets o k response has a 3xx status code
|
||||
func (o *PostAssetsOK) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this post assets o k response has a 4xx status code
|
||||
func (o *PostAssetsOK) IsClientError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsServerError returns true when this post assets o k response has a 5xx status code
|
||||
func (o *PostAssetsOK) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this post assets o k response a status code equal to that given
|
||||
func (o *PostAssetsOK) IsCode(code int) bool {
|
||||
return code == 200
|
||||
}
|
||||
|
||||
// Code gets the status code for the post assets o k response
|
||||
func (o *PostAssetsOK) Code() int {
|
||||
return 200
|
||||
}
|
||||
|
||||
func (o *PostAssetsOK) Error() string {
|
||||
return fmt.Sprintf("[POST /assets][%d] postAssetsOK %+v", 200, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PostAssetsOK) String() string {
|
||||
return fmt.Sprintf("[POST /assets][%d] postAssetsOK %+v", 200, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PostAssetsOK) GetPayload() *crm_models.AssetResponse {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -122,7 +158,8 @@ func NewPostAssetsUnauthorized() *PostAssetsUnauthorized {
|
|||
return &PostAssetsUnauthorized{}
|
||||
}
|
||||
|
||||
/* PostAssetsUnauthorized describes a response with status code 401, with default header values.
|
||||
/*
|
||||
PostAssetsUnauthorized describes a response with status code 401, with default header values.
|
||||
|
||||
Access unauthorized, invalid API-KEY was used
|
||||
*/
|
||||
|
@ -132,9 +169,44 @@ type PostAssetsUnauthorized struct {
|
|||
Payload *crm_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this post assets unauthorized response has a 2xx status code
|
||||
func (o *PostAssetsUnauthorized) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this post assets unauthorized response has a 3xx status code
|
||||
func (o *PostAssetsUnauthorized) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this post assets unauthorized response has a 4xx status code
|
||||
func (o *PostAssetsUnauthorized) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this post assets unauthorized response has a 5xx status code
|
||||
func (o *PostAssetsUnauthorized) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this post assets unauthorized response a status code equal to that given
|
||||
func (o *PostAssetsUnauthorized) IsCode(code int) bool {
|
||||
return code == 401
|
||||
}
|
||||
|
||||
// Code gets the status code for the post assets unauthorized response
|
||||
func (o *PostAssetsUnauthorized) Code() int {
|
||||
return 401
|
||||
}
|
||||
|
||||
func (o *PostAssetsUnauthorized) Error() string {
|
||||
return fmt.Sprintf("[POST /assets][%d] postAssetsUnauthorized %+v", 401, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PostAssetsUnauthorized) String() string {
|
||||
return fmt.Sprintf("[POST /assets][%d] postAssetsUnauthorized %+v", 401, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PostAssetsUnauthorized) GetPayload() *crm_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -163,7 +235,8 @@ func NewPostAssetsForbidden() *PostAssetsForbidden {
|
|||
return &PostAssetsForbidden{}
|
||||
}
|
||||
|
||||
/* PostAssetsForbidden describes a response with status code 403, with default header values.
|
||||
/*
|
||||
PostAssetsForbidden describes a response with status code 403, with default header values.
|
||||
|
||||
Access forbidden, account lacks access
|
||||
*/
|
||||
|
@ -173,9 +246,44 @@ type PostAssetsForbidden struct {
|
|||
Payload *crm_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this post assets forbidden response has a 2xx status code
|
||||
func (o *PostAssetsForbidden) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this post assets forbidden response has a 3xx status code
|
||||
func (o *PostAssetsForbidden) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this post assets forbidden response has a 4xx status code
|
||||
func (o *PostAssetsForbidden) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this post assets forbidden response has a 5xx status code
|
||||
func (o *PostAssetsForbidden) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this post assets forbidden response a status code equal to that given
|
||||
func (o *PostAssetsForbidden) IsCode(code int) bool {
|
||||
return code == 403
|
||||
}
|
||||
|
||||
// Code gets the status code for the post assets forbidden response
|
||||
func (o *PostAssetsForbidden) Code() int {
|
||||
return 403
|
||||
}
|
||||
|
||||
func (o *PostAssetsForbidden) Error() string {
|
||||
return fmt.Sprintf("[POST /assets][%d] postAssetsForbidden %+v", 403, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PostAssetsForbidden) String() string {
|
||||
return fmt.Sprintf("[POST /assets][%d] postAssetsForbidden %+v", 403, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PostAssetsForbidden) GetPayload() *crm_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -204,7 +312,8 @@ func NewPostAssetsNotFound() *PostAssetsNotFound {
|
|||
return &PostAssetsNotFound{}
|
||||
}
|
||||
|
||||
/* PostAssetsNotFound describes a response with status code 404, with default header values.
|
||||
/*
|
||||
PostAssetsNotFound describes a response with status code 404, with default header values.
|
||||
|
||||
Resource was not found
|
||||
*/
|
||||
|
@ -214,9 +323,44 @@ type PostAssetsNotFound struct {
|
|||
Payload *crm_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this post assets not found response has a 2xx status code
|
||||
func (o *PostAssetsNotFound) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this post assets not found response has a 3xx status code
|
||||
func (o *PostAssetsNotFound) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this post assets not found response has a 4xx status code
|
||||
func (o *PostAssetsNotFound) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this post assets not found response has a 5xx status code
|
||||
func (o *PostAssetsNotFound) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this post assets not found response a status code equal to that given
|
||||
func (o *PostAssetsNotFound) IsCode(code int) bool {
|
||||
return code == 404
|
||||
}
|
||||
|
||||
// Code gets the status code for the post assets not found response
|
||||
func (o *PostAssetsNotFound) Code() int {
|
||||
return 404
|
||||
}
|
||||
|
||||
func (o *PostAssetsNotFound) Error() string {
|
||||
return fmt.Sprintf("[POST /assets][%d] postAssetsNotFound %+v", 404, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PostAssetsNotFound) String() string {
|
||||
return fmt.Sprintf("[POST /assets][%d] postAssetsNotFound %+v", 404, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PostAssetsNotFound) GetPayload() *crm_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -245,7 +389,8 @@ func NewPostAssetsUnprocessableEntity() *PostAssetsUnprocessableEntity {
|
|||
return &PostAssetsUnprocessableEntity{}
|
||||
}
|
||||
|
||||
/* PostAssetsUnprocessableEntity describes a response with status code 422, with default header values.
|
||||
/*
|
||||
PostAssetsUnprocessableEntity describes a response with status code 422, with default header values.
|
||||
|
||||
Unprocessable Entity, likely a bad parameter
|
||||
*/
|
||||
|
@ -255,9 +400,44 @@ type PostAssetsUnprocessableEntity struct {
|
|||
Payload *crm_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this post assets unprocessable entity response has a 2xx status code
|
||||
func (o *PostAssetsUnprocessableEntity) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this post assets unprocessable entity response has a 3xx status code
|
||||
func (o *PostAssetsUnprocessableEntity) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this post assets unprocessable entity response has a 4xx status code
|
||||
func (o *PostAssetsUnprocessableEntity) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this post assets unprocessable entity response has a 5xx status code
|
||||
func (o *PostAssetsUnprocessableEntity) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this post assets unprocessable entity response a status code equal to that given
|
||||
func (o *PostAssetsUnprocessableEntity) IsCode(code int) bool {
|
||||
return code == 422
|
||||
}
|
||||
|
||||
// Code gets the status code for the post assets unprocessable entity response
|
||||
func (o *PostAssetsUnprocessableEntity) Code() int {
|
||||
return 422
|
||||
}
|
||||
|
||||
func (o *PostAssetsUnprocessableEntity) Error() string {
|
||||
return fmt.Sprintf("[POST /assets][%d] postAssetsUnprocessableEntity %+v", 422, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PostAssetsUnprocessableEntity) String() string {
|
||||
return fmt.Sprintf("[POST /assets][%d] postAssetsUnprocessableEntity %+v", 422, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PostAssetsUnprocessableEntity) GetPayload() *crm_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -286,7 +466,8 @@ func NewPostAssetsInternalServerError() *PostAssetsInternalServerError {
|
|||
return &PostAssetsInternalServerError{}
|
||||
}
|
||||
|
||||
/* PostAssetsInternalServerError describes a response with status code 500, with default header values.
|
||||
/*
|
||||
PostAssetsInternalServerError describes a response with status code 500, with default header values.
|
||||
|
||||
Server Internal Error
|
||||
*/
|
||||
|
@ -296,9 +477,44 @@ type PostAssetsInternalServerError struct {
|
|||
Payload *crm_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this post assets internal server error response has a 2xx status code
|
||||
func (o *PostAssetsInternalServerError) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this post assets internal server error response has a 3xx status code
|
||||
func (o *PostAssetsInternalServerError) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this post assets internal server error response has a 4xx status code
|
||||
func (o *PostAssetsInternalServerError) IsClientError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsServerError returns true when this post assets internal server error response has a 5xx status code
|
||||
func (o *PostAssetsInternalServerError) IsServerError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsCode returns true when this post assets internal server error response a status code equal to that given
|
||||
func (o *PostAssetsInternalServerError) IsCode(code int) bool {
|
||||
return code == 500
|
||||
}
|
||||
|
||||
// Code gets the status code for the post assets internal server error response
|
||||
func (o *PostAssetsInternalServerError) Code() int {
|
||||
return 500
|
||||
}
|
||||
|
||||
func (o *PostAssetsInternalServerError) Error() string {
|
||||
return fmt.Sprintf("[POST /assets][%d] postAssetsInternalServerError %+v", 500, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PostAssetsInternalServerError) String() string {
|
||||
return fmt.Sprintf("[POST /assets][%d] postAssetsInternalServerError %+v", 500, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PostAssetsInternalServerError) GetPayload() *crm_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
|
|
@ -58,10 +58,12 @@ func NewPutAssetParamsWithHTTPClient(client *http.Client) *PutAssetParams {
|
|||
}
|
||||
}
|
||||
|
||||
/* PutAssetParams contains all the parameters to send to the API endpoint
|
||||
for the put asset operation.
|
||||
/*
|
||||
PutAssetParams contains all the parameters to send to the API endpoint
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
for the put asset operation.
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
*/
|
||||
type PutAssetParams struct {
|
||||
|
||||
|
|
|
@ -73,7 +73,8 @@ func NewPutAssetOK() *PutAssetOK {
|
|||
return &PutAssetOK{}
|
||||
}
|
||||
|
||||
/* PutAssetOK describes a response with status code 200, with default header values.
|
||||
/*
|
||||
PutAssetOK describes a response with status code 200, with default header values.
|
||||
|
||||
Taxnexus Response with Asset objects with Contacts
|
||||
*/
|
||||
|
@ -84,9 +85,44 @@ type PutAssetOK struct {
|
|||
Payload *crm_models.AssetResponse
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this put asset o k response has a 2xx status code
|
||||
func (o *PutAssetOK) IsSuccess() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this put asset o k response has a 3xx status code
|
||||
func (o *PutAssetOK) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this put asset o k response has a 4xx status code
|
||||
func (o *PutAssetOK) IsClientError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsServerError returns true when this put asset o k response has a 5xx status code
|
||||
func (o *PutAssetOK) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this put asset o k response a status code equal to that given
|
||||
func (o *PutAssetOK) IsCode(code int) bool {
|
||||
return code == 200
|
||||
}
|
||||
|
||||
// Code gets the status code for the put asset o k response
|
||||
func (o *PutAssetOK) Code() int {
|
||||
return 200
|
||||
}
|
||||
|
||||
func (o *PutAssetOK) Error() string {
|
||||
return fmt.Sprintf("[PUT /assets][%d] putAssetOK %+v", 200, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PutAssetOK) String() string {
|
||||
return fmt.Sprintf("[PUT /assets][%d] putAssetOK %+v", 200, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PutAssetOK) GetPayload() *crm_models.AssetResponse {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -122,7 +158,8 @@ func NewPutAssetUnauthorized() *PutAssetUnauthorized {
|
|||
return &PutAssetUnauthorized{}
|
||||
}
|
||||
|
||||
/* PutAssetUnauthorized describes a response with status code 401, with default header values.
|
||||
/*
|
||||
PutAssetUnauthorized describes a response with status code 401, with default header values.
|
||||
|
||||
Access unauthorized, invalid API-KEY was used
|
||||
*/
|
||||
|
@ -132,9 +169,44 @@ type PutAssetUnauthorized struct {
|
|||
Payload *crm_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this put asset unauthorized response has a 2xx status code
|
||||
func (o *PutAssetUnauthorized) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this put asset unauthorized response has a 3xx status code
|
||||
func (o *PutAssetUnauthorized) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this put asset unauthorized response has a 4xx status code
|
||||
func (o *PutAssetUnauthorized) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this put asset unauthorized response has a 5xx status code
|
||||
func (o *PutAssetUnauthorized) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this put asset unauthorized response a status code equal to that given
|
||||
func (o *PutAssetUnauthorized) IsCode(code int) bool {
|
||||
return code == 401
|
||||
}
|
||||
|
||||
// Code gets the status code for the put asset unauthorized response
|
||||
func (o *PutAssetUnauthorized) Code() int {
|
||||
return 401
|
||||
}
|
||||
|
||||
func (o *PutAssetUnauthorized) Error() string {
|
||||
return fmt.Sprintf("[PUT /assets][%d] putAssetUnauthorized %+v", 401, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PutAssetUnauthorized) String() string {
|
||||
return fmt.Sprintf("[PUT /assets][%d] putAssetUnauthorized %+v", 401, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PutAssetUnauthorized) GetPayload() *crm_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -163,7 +235,8 @@ func NewPutAssetForbidden() *PutAssetForbidden {
|
|||
return &PutAssetForbidden{}
|
||||
}
|
||||
|
||||
/* PutAssetForbidden describes a response with status code 403, with default header values.
|
||||
/*
|
||||
PutAssetForbidden describes a response with status code 403, with default header values.
|
||||
|
||||
Access forbidden, account lacks access
|
||||
*/
|
||||
|
@ -173,9 +246,44 @@ type PutAssetForbidden struct {
|
|||
Payload *crm_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this put asset forbidden response has a 2xx status code
|
||||
func (o *PutAssetForbidden) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this put asset forbidden response has a 3xx status code
|
||||
func (o *PutAssetForbidden) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this put asset forbidden response has a 4xx status code
|
||||
func (o *PutAssetForbidden) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this put asset forbidden response has a 5xx status code
|
||||
func (o *PutAssetForbidden) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this put asset forbidden response a status code equal to that given
|
||||
func (o *PutAssetForbidden) IsCode(code int) bool {
|
||||
return code == 403
|
||||
}
|
||||
|
||||
// Code gets the status code for the put asset forbidden response
|
||||
func (o *PutAssetForbidden) Code() int {
|
||||
return 403
|
||||
}
|
||||
|
||||
func (o *PutAssetForbidden) Error() string {
|
||||
return fmt.Sprintf("[PUT /assets][%d] putAssetForbidden %+v", 403, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PutAssetForbidden) String() string {
|
||||
return fmt.Sprintf("[PUT /assets][%d] putAssetForbidden %+v", 403, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PutAssetForbidden) GetPayload() *crm_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -204,7 +312,8 @@ func NewPutAssetNotFound() *PutAssetNotFound {
|
|||
return &PutAssetNotFound{}
|
||||
}
|
||||
|
||||
/* PutAssetNotFound describes a response with status code 404, with default header values.
|
||||
/*
|
||||
PutAssetNotFound describes a response with status code 404, with default header values.
|
||||
|
||||
Resource was not found
|
||||
*/
|
||||
|
@ -214,9 +323,44 @@ type PutAssetNotFound struct {
|
|||
Payload *crm_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this put asset not found response has a 2xx status code
|
||||
func (o *PutAssetNotFound) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this put asset not found response has a 3xx status code
|
||||
func (o *PutAssetNotFound) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this put asset not found response has a 4xx status code
|
||||
func (o *PutAssetNotFound) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this put asset not found response has a 5xx status code
|
||||
func (o *PutAssetNotFound) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this put asset not found response a status code equal to that given
|
||||
func (o *PutAssetNotFound) IsCode(code int) bool {
|
||||
return code == 404
|
||||
}
|
||||
|
||||
// Code gets the status code for the put asset not found response
|
||||
func (o *PutAssetNotFound) Code() int {
|
||||
return 404
|
||||
}
|
||||
|
||||
func (o *PutAssetNotFound) Error() string {
|
||||
return fmt.Sprintf("[PUT /assets][%d] putAssetNotFound %+v", 404, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PutAssetNotFound) String() string {
|
||||
return fmt.Sprintf("[PUT /assets][%d] putAssetNotFound %+v", 404, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PutAssetNotFound) GetPayload() *crm_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -245,7 +389,8 @@ func NewPutAssetUnprocessableEntity() *PutAssetUnprocessableEntity {
|
|||
return &PutAssetUnprocessableEntity{}
|
||||
}
|
||||
|
||||
/* PutAssetUnprocessableEntity describes a response with status code 422, with default header values.
|
||||
/*
|
||||
PutAssetUnprocessableEntity describes a response with status code 422, with default header values.
|
||||
|
||||
Unprocessable Entity, likely a bad parameter
|
||||
*/
|
||||
|
@ -255,9 +400,44 @@ type PutAssetUnprocessableEntity struct {
|
|||
Payload *crm_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this put asset unprocessable entity response has a 2xx status code
|
||||
func (o *PutAssetUnprocessableEntity) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this put asset unprocessable entity response has a 3xx status code
|
||||
func (o *PutAssetUnprocessableEntity) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this put asset unprocessable entity response has a 4xx status code
|
||||
func (o *PutAssetUnprocessableEntity) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this put asset unprocessable entity response has a 5xx status code
|
||||
func (o *PutAssetUnprocessableEntity) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this put asset unprocessable entity response a status code equal to that given
|
||||
func (o *PutAssetUnprocessableEntity) IsCode(code int) bool {
|
||||
return code == 422
|
||||
}
|
||||
|
||||
// Code gets the status code for the put asset unprocessable entity response
|
||||
func (o *PutAssetUnprocessableEntity) Code() int {
|
||||
return 422
|
||||
}
|
||||
|
||||
func (o *PutAssetUnprocessableEntity) Error() string {
|
||||
return fmt.Sprintf("[PUT /assets][%d] putAssetUnprocessableEntity %+v", 422, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PutAssetUnprocessableEntity) String() string {
|
||||
return fmt.Sprintf("[PUT /assets][%d] putAssetUnprocessableEntity %+v", 422, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PutAssetUnprocessableEntity) GetPayload() *crm_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -286,7 +466,8 @@ func NewPutAssetInternalServerError() *PutAssetInternalServerError {
|
|||
return &PutAssetInternalServerError{}
|
||||
}
|
||||
|
||||
/* PutAssetInternalServerError describes a response with status code 500, with default header values.
|
||||
/*
|
||||
PutAssetInternalServerError describes a response with status code 500, with default header values.
|
||||
|
||||
Server Internal Error
|
||||
*/
|
||||
|
@ -296,9 +477,44 @@ type PutAssetInternalServerError struct {
|
|||
Payload *crm_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this put asset internal server error response has a 2xx status code
|
||||
func (o *PutAssetInternalServerError) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this put asset internal server error response has a 3xx status code
|
||||
func (o *PutAssetInternalServerError) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this put asset internal server error response has a 4xx status code
|
||||
func (o *PutAssetInternalServerError) IsClientError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsServerError returns true when this put asset internal server error response has a 5xx status code
|
||||
func (o *PutAssetInternalServerError) IsServerError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsCode returns true when this put asset internal server error response a status code equal to that given
|
||||
func (o *PutAssetInternalServerError) IsCode(code int) bool {
|
||||
return code == 500
|
||||
}
|
||||
|
||||
// Code gets the status code for the put asset internal server error response
|
||||
func (o *PutAssetInternalServerError) Code() int {
|
||||
return 500
|
||||
}
|
||||
|
||||
func (o *PutAssetInternalServerError) Error() string {
|
||||
return fmt.Sprintf("[PUT /assets][%d] putAssetInternalServerError %+v", 500, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PutAssetInternalServerError) String() string {
|
||||
return fmt.Sprintf("[PUT /assets][%d] putAssetInternalServerError %+v", 500, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PutAssetInternalServerError) GetPayload() *crm_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
|
|
@ -48,9 +48,9 @@ type ClientService interface {
|
|||
}
|
||||
|
||||
/*
|
||||
DeleteContact deletes a contact
|
||||
DeleteContact deletes a contact
|
||||
|
||||
Delete Taxnexus Contact record
|
||||
Delete Taxnexus Contact record
|
||||
*/
|
||||
func (a *Client) DeleteContact(params *DeleteContactParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteContactOK, error) {
|
||||
// TODO: Validate the params before sending
|
||||
|
@ -89,9 +89,9 @@ func (a *Client) DeleteContact(params *DeleteContactParams, authInfo runtime.Cli
|
|||
}
|
||||
|
||||
/*
|
||||
GetContacts gets a list of contacts
|
||||
GetContacts gets a list of contacts
|
||||
|
||||
Return a list of all available Contacts
|
||||
Return a list of all available Contacts
|
||||
*/
|
||||
func (a *Client) GetContacts(params *GetContactsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetContactsOK, error) {
|
||||
// TODO: Validate the params before sending
|
||||
|
@ -130,9 +130,9 @@ func (a *Client) GetContacts(params *GetContactsParams, authInfo runtime.ClientA
|
|||
}
|
||||
|
||||
/*
|
||||
GetContactsObservable gets taxnexus contacts in an observable array
|
||||
GetContactsObservable gets taxnexus contacts in an observable array
|
||||
|
||||
A list of contacts in a simple JSON array
|
||||
A list of contacts in a simple JSON array
|
||||
*/
|
||||
func (a *Client) GetContactsObservable(params *GetContactsObservableParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetContactsObservableOK, error) {
|
||||
// TODO: Validate the params before sending
|
||||
|
@ -171,9 +171,9 @@ func (a *Client) GetContactsObservable(params *GetContactsObservableParams, auth
|
|||
}
|
||||
|
||||
/*
|
||||
PostContacts adds new contacts
|
||||
PostContacts adds new contacts
|
||||
|
||||
Contact record to be added
|
||||
Contact record to be added
|
||||
*/
|
||||
func (a *Client) PostContacts(params *PostContactsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostContactsOK, error) {
|
||||
// TODO: Validate the params before sending
|
||||
|
@ -212,9 +212,9 @@ func (a *Client) PostContacts(params *PostContactsParams, authInfo runtime.Clien
|
|||
}
|
||||
|
||||
/*
|
||||
PutContacts updates contact
|
||||
PutContacts updates contact
|
||||
|
||||
Update Contact records
|
||||
Update Contact records
|
||||
*/
|
||||
func (a *Client) PutContacts(params *PutContactsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PutContactsOK, error) {
|
||||
// TODO: Validate the params before sending
|
||||
|
|
|
@ -56,10 +56,12 @@ func NewDeleteContactParamsWithHTTPClient(client *http.Client) *DeleteContactPar
|
|||
}
|
||||
}
|
||||
|
||||
/* DeleteContactParams contains all the parameters to send to the API endpoint
|
||||
for the delete contact operation.
|
||||
/*
|
||||
DeleteContactParams contains all the parameters to send to the API endpoint
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
for the delete contact operation.
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
*/
|
||||
type DeleteContactParams struct {
|
||||
|
||||
|
|
|
@ -73,7 +73,8 @@ func NewDeleteContactOK() *DeleteContactOK {
|
|||
return &DeleteContactOK{}
|
||||
}
|
||||
|
||||
/* DeleteContactOK describes a response with status code 200, with default header values.
|
||||
/*
|
||||
DeleteContactOK describes a response with status code 200, with default header values.
|
||||
|
||||
Taxnexus Response with Message Objects with Delete Status
|
||||
*/
|
||||
|
@ -83,9 +84,44 @@ type DeleteContactOK struct {
|
|||
Payload *crm_models.DeleteResponse
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this delete contact o k response has a 2xx status code
|
||||
func (o *DeleteContactOK) IsSuccess() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this delete contact o k response has a 3xx status code
|
||||
func (o *DeleteContactOK) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this delete contact o k response has a 4xx status code
|
||||
func (o *DeleteContactOK) IsClientError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsServerError returns true when this delete contact o k response has a 5xx status code
|
||||
func (o *DeleteContactOK) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this delete contact o k response a status code equal to that given
|
||||
func (o *DeleteContactOK) IsCode(code int) bool {
|
||||
return code == 200
|
||||
}
|
||||
|
||||
// Code gets the status code for the delete contact o k response
|
||||
func (o *DeleteContactOK) Code() int {
|
||||
return 200
|
||||
}
|
||||
|
||||
func (o *DeleteContactOK) Error() string {
|
||||
return fmt.Sprintf("[DELETE /contacts][%d] deleteContactOK %+v", 200, o.Payload)
|
||||
}
|
||||
|
||||
func (o *DeleteContactOK) String() string {
|
||||
return fmt.Sprintf("[DELETE /contacts][%d] deleteContactOK %+v", 200, o.Payload)
|
||||
}
|
||||
|
||||
func (o *DeleteContactOK) GetPayload() *crm_models.DeleteResponse {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -114,7 +150,8 @@ func NewDeleteContactUnauthorized() *DeleteContactUnauthorized {
|
|||
return &DeleteContactUnauthorized{}
|
||||
}
|
||||
|
||||
/* DeleteContactUnauthorized describes a response with status code 401, with default header values.
|
||||
/*
|
||||
DeleteContactUnauthorized describes a response with status code 401, with default header values.
|
||||
|
||||
Access unauthorized, invalid API-KEY was used
|
||||
*/
|
||||
|
@ -124,9 +161,44 @@ type DeleteContactUnauthorized struct {
|
|||
Payload *crm_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this delete contact unauthorized response has a 2xx status code
|
||||
func (o *DeleteContactUnauthorized) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this delete contact unauthorized response has a 3xx status code
|
||||
func (o *DeleteContactUnauthorized) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this delete contact unauthorized response has a 4xx status code
|
||||
func (o *DeleteContactUnauthorized) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this delete contact unauthorized response has a 5xx status code
|
||||
func (o *DeleteContactUnauthorized) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this delete contact unauthorized response a status code equal to that given
|
||||
func (o *DeleteContactUnauthorized) IsCode(code int) bool {
|
||||
return code == 401
|
||||
}
|
||||
|
||||
// Code gets the status code for the delete contact unauthorized response
|
||||
func (o *DeleteContactUnauthorized) Code() int {
|
||||
return 401
|
||||
}
|
||||
|
||||
func (o *DeleteContactUnauthorized) Error() string {
|
||||
return fmt.Sprintf("[DELETE /contacts][%d] deleteContactUnauthorized %+v", 401, o.Payload)
|
||||
}
|
||||
|
||||
func (o *DeleteContactUnauthorized) String() string {
|
||||
return fmt.Sprintf("[DELETE /contacts][%d] deleteContactUnauthorized %+v", 401, o.Payload)
|
||||
}
|
||||
|
||||
func (o *DeleteContactUnauthorized) GetPayload() *crm_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -155,7 +227,8 @@ func NewDeleteContactForbidden() *DeleteContactForbidden {
|
|||
return &DeleteContactForbidden{}
|
||||
}
|
||||
|
||||
/* DeleteContactForbidden describes a response with status code 403, with default header values.
|
||||
/*
|
||||
DeleteContactForbidden describes a response with status code 403, with default header values.
|
||||
|
||||
Access forbidden, account lacks access
|
||||
*/
|
||||
|
@ -165,9 +238,44 @@ type DeleteContactForbidden struct {
|
|||
Payload *crm_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this delete contact forbidden response has a 2xx status code
|
||||
func (o *DeleteContactForbidden) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this delete contact forbidden response has a 3xx status code
|
||||
func (o *DeleteContactForbidden) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this delete contact forbidden response has a 4xx status code
|
||||
func (o *DeleteContactForbidden) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this delete contact forbidden response has a 5xx status code
|
||||
func (o *DeleteContactForbidden) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this delete contact forbidden response a status code equal to that given
|
||||
func (o *DeleteContactForbidden) IsCode(code int) bool {
|
||||
return code == 403
|
||||
}
|
||||
|
||||
// Code gets the status code for the delete contact forbidden response
|
||||
func (o *DeleteContactForbidden) Code() int {
|
||||
return 403
|
||||
}
|
||||
|
||||
func (o *DeleteContactForbidden) Error() string {
|
||||
return fmt.Sprintf("[DELETE /contacts][%d] deleteContactForbidden %+v", 403, o.Payload)
|
||||
}
|
||||
|
||||
func (o *DeleteContactForbidden) String() string {
|
||||
return fmt.Sprintf("[DELETE /contacts][%d] deleteContactForbidden %+v", 403, o.Payload)
|
||||
}
|
||||
|
||||
func (o *DeleteContactForbidden) GetPayload() *crm_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -196,7 +304,8 @@ func NewDeleteContactNotFound() *DeleteContactNotFound {
|
|||
return &DeleteContactNotFound{}
|
||||
}
|
||||
|
||||
/* DeleteContactNotFound describes a response with status code 404, with default header values.
|
||||
/*
|
||||
DeleteContactNotFound describes a response with status code 404, with default header values.
|
||||
|
||||
Resource was not found
|
||||
*/
|
||||
|
@ -206,9 +315,44 @@ type DeleteContactNotFound struct {
|
|||
Payload *crm_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this delete contact not found response has a 2xx status code
|
||||
func (o *DeleteContactNotFound) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this delete contact not found response has a 3xx status code
|
||||
func (o *DeleteContactNotFound) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this delete contact not found response has a 4xx status code
|
||||
func (o *DeleteContactNotFound) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this delete contact not found response has a 5xx status code
|
||||
func (o *DeleteContactNotFound) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this delete contact not found response a status code equal to that given
|
||||
func (o *DeleteContactNotFound) IsCode(code int) bool {
|
||||
return code == 404
|
||||
}
|
||||
|
||||
// Code gets the status code for the delete contact not found response
|
||||
func (o *DeleteContactNotFound) Code() int {
|
||||
return 404
|
||||
}
|
||||
|
||||
func (o *DeleteContactNotFound) Error() string {
|
||||
return fmt.Sprintf("[DELETE /contacts][%d] deleteContactNotFound %+v", 404, o.Payload)
|
||||
}
|
||||
|
||||
func (o *DeleteContactNotFound) String() string {
|
||||
return fmt.Sprintf("[DELETE /contacts][%d] deleteContactNotFound %+v", 404, o.Payload)
|
||||
}
|
||||
|
||||
func (o *DeleteContactNotFound) GetPayload() *crm_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -237,7 +381,8 @@ func NewDeleteContactUnprocessableEntity() *DeleteContactUnprocessableEntity {
|
|||
return &DeleteContactUnprocessableEntity{}
|
||||
}
|
||||
|
||||
/* DeleteContactUnprocessableEntity describes a response with status code 422, with default header values.
|
||||
/*
|
||||
DeleteContactUnprocessableEntity describes a response with status code 422, with default header values.
|
||||
|
||||
Unprocessable Entity, likely a bad parameter
|
||||
*/
|
||||
|
@ -247,9 +392,44 @@ type DeleteContactUnprocessableEntity struct {
|
|||
Payload *crm_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this delete contact unprocessable entity response has a 2xx status code
|
||||
func (o *DeleteContactUnprocessableEntity) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this delete contact unprocessable entity response has a 3xx status code
|
||||
func (o *DeleteContactUnprocessableEntity) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this delete contact unprocessable entity response has a 4xx status code
|
||||
func (o *DeleteContactUnprocessableEntity) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this delete contact unprocessable entity response has a 5xx status code
|
||||
func (o *DeleteContactUnprocessableEntity) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this delete contact unprocessable entity response a status code equal to that given
|
||||
func (o *DeleteContactUnprocessableEntity) IsCode(code int) bool {
|
||||
return code == 422
|
||||
}
|
||||
|
||||
// Code gets the status code for the delete contact unprocessable entity response
|
||||
func (o *DeleteContactUnprocessableEntity) Code() int {
|
||||
return 422
|
||||
}
|
||||
|
||||
func (o *DeleteContactUnprocessableEntity) Error() string {
|
||||
return fmt.Sprintf("[DELETE /contacts][%d] deleteContactUnprocessableEntity %+v", 422, o.Payload)
|
||||
}
|
||||
|
||||
func (o *DeleteContactUnprocessableEntity) String() string {
|
||||
return fmt.Sprintf("[DELETE /contacts][%d] deleteContactUnprocessableEntity %+v", 422, o.Payload)
|
||||
}
|
||||
|
||||
func (o *DeleteContactUnprocessableEntity) GetPayload() *crm_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -278,7 +458,8 @@ func NewDeleteContactInternalServerError() *DeleteContactInternalServerError {
|
|||
return &DeleteContactInternalServerError{}
|
||||
}
|
||||
|
||||
/* DeleteContactInternalServerError describes a response with status code 500, with default header values.
|
||||
/*
|
||||
DeleteContactInternalServerError describes a response with status code 500, with default header values.
|
||||
|
||||
Server Internal Error
|
||||
*/
|
||||
|
@ -288,9 +469,44 @@ type DeleteContactInternalServerError struct {
|
|||
Payload *crm_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this delete contact internal server error response has a 2xx status code
|
||||
func (o *DeleteContactInternalServerError) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this delete contact internal server error response has a 3xx status code
|
||||
func (o *DeleteContactInternalServerError) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this delete contact internal server error response has a 4xx status code
|
||||
func (o *DeleteContactInternalServerError) IsClientError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsServerError returns true when this delete contact internal server error response has a 5xx status code
|
||||
func (o *DeleteContactInternalServerError) IsServerError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsCode returns true when this delete contact internal server error response a status code equal to that given
|
||||
func (o *DeleteContactInternalServerError) IsCode(code int) bool {
|
||||
return code == 500
|
||||
}
|
||||
|
||||
// Code gets the status code for the delete contact internal server error response
|
||||
func (o *DeleteContactInternalServerError) Code() int {
|
||||
return 500
|
||||
}
|
||||
|
||||
func (o *DeleteContactInternalServerError) Error() string {
|
||||
return fmt.Sprintf("[DELETE /contacts][%d] deleteContactInternalServerError %+v", 500, o.Payload)
|
||||
}
|
||||
|
||||
func (o *DeleteContactInternalServerError) String() string {
|
||||
return fmt.Sprintf("[DELETE /contacts][%d] deleteContactInternalServerError %+v", 500, o.Payload)
|
||||
}
|
||||
|
||||
func (o *DeleteContactInternalServerError) GetPayload() *crm_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
|
|
@ -57,10 +57,12 @@ func NewGetContactsObservableParamsWithHTTPClient(client *http.Client) *GetConta
|
|||
}
|
||||
}
|
||||
|
||||
/* GetContactsObservableParams contains all the parameters to send to the API endpoint
|
||||
for the get contacts observable operation.
|
||||
/*
|
||||
GetContactsObservableParams contains all the parameters to send to the API endpoint
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
for the get contacts observable operation.
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
*/
|
||||
type GetContactsObservableParams struct {
|
||||
|
||||
|
|
|
@ -73,7 +73,8 @@ func NewGetContactsObservableOK() *GetContactsObservableOK {
|
|||
return &GetContactsObservableOK{}
|
||||
}
|
||||
|
||||
/* GetContactsObservableOK describes a response with status code 200, with default header values.
|
||||
/*
|
||||
GetContactsObservableOK describes a response with status code 200, with default header values.
|
||||
|
||||
Taxnexus Response with an array of Contact objects
|
||||
*/
|
||||
|
@ -84,9 +85,44 @@ type GetContactsObservableOK struct {
|
|||
Payload []*crm_models.Contact
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this get contacts observable o k response has a 2xx status code
|
||||
func (o *GetContactsObservableOK) IsSuccess() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this get contacts observable o k response has a 3xx status code
|
||||
func (o *GetContactsObservableOK) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this get contacts observable o k response has a 4xx status code
|
||||
func (o *GetContactsObservableOK) IsClientError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsServerError returns true when this get contacts observable o k response has a 5xx status code
|
||||
func (o *GetContactsObservableOK) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this get contacts observable o k response a status code equal to that given
|
||||
func (o *GetContactsObservableOK) IsCode(code int) bool {
|
||||
return code == 200
|
||||
}
|
||||
|
||||
// Code gets the status code for the get contacts observable o k response
|
||||
func (o *GetContactsObservableOK) Code() int {
|
||||
return 200
|
||||
}
|
||||
|
||||
func (o *GetContactsObservableOK) Error() string {
|
||||
return fmt.Sprintf("[GET /contacts/observable][%d] getContactsObservableOK %+v", 200, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetContactsObservableOK) String() string {
|
||||
return fmt.Sprintf("[GET /contacts/observable][%d] getContactsObservableOK %+v", 200, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetContactsObservableOK) GetPayload() []*crm_models.Contact {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -120,7 +156,8 @@ func NewGetContactsObservableUnauthorized() *GetContactsObservableUnauthorized {
|
|||
return &GetContactsObservableUnauthorized{}
|
||||
}
|
||||
|
||||
/* GetContactsObservableUnauthorized describes a response with status code 401, with default header values.
|
||||
/*
|
||||
GetContactsObservableUnauthorized describes a response with status code 401, with default header values.
|
||||
|
||||
Access unauthorized, invalid API-KEY was used
|
||||
*/
|
||||
|
@ -130,9 +167,44 @@ type GetContactsObservableUnauthorized struct {
|
|||
Payload *crm_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this get contacts observable unauthorized response has a 2xx status code
|
||||
func (o *GetContactsObservableUnauthorized) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this get contacts observable unauthorized response has a 3xx status code
|
||||
func (o *GetContactsObservableUnauthorized) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this get contacts observable unauthorized response has a 4xx status code
|
||||
func (o *GetContactsObservableUnauthorized) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this get contacts observable unauthorized response has a 5xx status code
|
||||
func (o *GetContactsObservableUnauthorized) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this get contacts observable unauthorized response a status code equal to that given
|
||||
func (o *GetContactsObservableUnauthorized) IsCode(code int) bool {
|
||||
return code == 401
|
||||
}
|
||||
|
||||
// Code gets the status code for the get contacts observable unauthorized response
|
||||
func (o *GetContactsObservableUnauthorized) Code() int {
|
||||
return 401
|
||||
}
|
||||
|
||||
func (o *GetContactsObservableUnauthorized) Error() string {
|
||||
return fmt.Sprintf("[GET /contacts/observable][%d] getContactsObservableUnauthorized %+v", 401, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetContactsObservableUnauthorized) String() string {
|
||||
return fmt.Sprintf("[GET /contacts/observable][%d] getContactsObservableUnauthorized %+v", 401, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetContactsObservableUnauthorized) GetPayload() *crm_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -161,7 +233,8 @@ func NewGetContactsObservableForbidden() *GetContactsObservableForbidden {
|
|||
return &GetContactsObservableForbidden{}
|
||||
}
|
||||
|
||||
/* GetContactsObservableForbidden describes a response with status code 403, with default header values.
|
||||
/*
|
||||
GetContactsObservableForbidden describes a response with status code 403, with default header values.
|
||||
|
||||
Access forbidden, account lacks access
|
||||
*/
|
||||
|
@ -171,9 +244,44 @@ type GetContactsObservableForbidden struct {
|
|||
Payload *crm_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this get contacts observable forbidden response has a 2xx status code
|
||||
func (o *GetContactsObservableForbidden) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this get contacts observable forbidden response has a 3xx status code
|
||||
func (o *GetContactsObservableForbidden) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this get contacts observable forbidden response has a 4xx status code
|
||||
func (o *GetContactsObservableForbidden) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this get contacts observable forbidden response has a 5xx status code
|
||||
func (o *GetContactsObservableForbidden) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this get contacts observable forbidden response a status code equal to that given
|
||||
func (o *GetContactsObservableForbidden) IsCode(code int) bool {
|
||||
return code == 403
|
||||
}
|
||||
|
||||
// Code gets the status code for the get contacts observable forbidden response
|
||||
func (o *GetContactsObservableForbidden) Code() int {
|
||||
return 403
|
||||
}
|
||||
|
||||
func (o *GetContactsObservableForbidden) Error() string {
|
||||
return fmt.Sprintf("[GET /contacts/observable][%d] getContactsObservableForbidden %+v", 403, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetContactsObservableForbidden) String() string {
|
||||
return fmt.Sprintf("[GET /contacts/observable][%d] getContactsObservableForbidden %+v", 403, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetContactsObservableForbidden) GetPayload() *crm_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -202,7 +310,8 @@ func NewGetContactsObservableNotFound() *GetContactsObservableNotFound {
|
|||
return &GetContactsObservableNotFound{}
|
||||
}
|
||||
|
||||
/* GetContactsObservableNotFound describes a response with status code 404, with default header values.
|
||||
/*
|
||||
GetContactsObservableNotFound describes a response with status code 404, with default header values.
|
||||
|
||||
Resource was not found
|
||||
*/
|
||||
|
@ -212,9 +321,44 @@ type GetContactsObservableNotFound struct {
|
|||
Payload *crm_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this get contacts observable not found response has a 2xx status code
|
||||
func (o *GetContactsObservableNotFound) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this get contacts observable not found response has a 3xx status code
|
||||
func (o *GetContactsObservableNotFound) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this get contacts observable not found response has a 4xx status code
|
||||
func (o *GetContactsObservableNotFound) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this get contacts observable not found response has a 5xx status code
|
||||
func (o *GetContactsObservableNotFound) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this get contacts observable not found response a status code equal to that given
|
||||
func (o *GetContactsObservableNotFound) IsCode(code int) bool {
|
||||
return code == 404
|
||||
}
|
||||
|
||||
// Code gets the status code for the get contacts observable not found response
|
||||
func (o *GetContactsObservableNotFound) Code() int {
|
||||
return 404
|
||||
}
|
||||
|
||||
func (o *GetContactsObservableNotFound) Error() string {
|
||||
return fmt.Sprintf("[GET /contacts/observable][%d] getContactsObservableNotFound %+v", 404, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetContactsObservableNotFound) String() string {
|
||||
return fmt.Sprintf("[GET /contacts/observable][%d] getContactsObservableNotFound %+v", 404, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetContactsObservableNotFound) GetPayload() *crm_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -243,7 +387,8 @@ func NewGetContactsObservableUnprocessableEntity() *GetContactsObservableUnproce
|
|||
return &GetContactsObservableUnprocessableEntity{}
|
||||
}
|
||||
|
||||
/* GetContactsObservableUnprocessableEntity describes a response with status code 422, with default header values.
|
||||
/*
|
||||
GetContactsObservableUnprocessableEntity describes a response with status code 422, with default header values.
|
||||
|
||||
Unprocessable Entity, likely a bad parameter
|
||||
*/
|
||||
|
@ -253,9 +398,44 @@ type GetContactsObservableUnprocessableEntity struct {
|
|||
Payload *crm_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this get contacts observable unprocessable entity response has a 2xx status code
|
||||
func (o *GetContactsObservableUnprocessableEntity) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this get contacts observable unprocessable entity response has a 3xx status code
|
||||
func (o *GetContactsObservableUnprocessableEntity) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this get contacts observable unprocessable entity response has a 4xx status code
|
||||
func (o *GetContactsObservableUnprocessableEntity) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this get contacts observable unprocessable entity response has a 5xx status code
|
||||
func (o *GetContactsObservableUnprocessableEntity) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this get contacts observable unprocessable entity response a status code equal to that given
|
||||
func (o *GetContactsObservableUnprocessableEntity) IsCode(code int) bool {
|
||||
return code == 422
|
||||
}
|
||||
|
||||
// Code gets the status code for the get contacts observable unprocessable entity response
|
||||
func (o *GetContactsObservableUnprocessableEntity) Code() int {
|
||||
return 422
|
||||
}
|
||||
|
||||
func (o *GetContactsObservableUnprocessableEntity) Error() string {
|
||||
return fmt.Sprintf("[GET /contacts/observable][%d] getContactsObservableUnprocessableEntity %+v", 422, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetContactsObservableUnprocessableEntity) String() string {
|
||||
return fmt.Sprintf("[GET /contacts/observable][%d] getContactsObservableUnprocessableEntity %+v", 422, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetContactsObservableUnprocessableEntity) GetPayload() *crm_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -284,7 +464,8 @@ func NewGetContactsObservableInternalServerError() *GetContactsObservableInterna
|
|||
return &GetContactsObservableInternalServerError{}
|
||||
}
|
||||
|
||||
/* GetContactsObservableInternalServerError describes a response with status code 500, with default header values.
|
||||
/*
|
||||
GetContactsObservableInternalServerError describes a response with status code 500, with default header values.
|
||||
|
||||
Server Internal Error
|
||||
*/
|
||||
|
@ -294,9 +475,44 @@ type GetContactsObservableInternalServerError struct {
|
|||
Payload *crm_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this get contacts observable internal server error response has a 2xx status code
|
||||
func (o *GetContactsObservableInternalServerError) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this get contacts observable internal server error response has a 3xx status code
|
||||
func (o *GetContactsObservableInternalServerError) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this get contacts observable internal server error response has a 4xx status code
|
||||
func (o *GetContactsObservableInternalServerError) IsClientError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsServerError returns true when this get contacts observable internal server error response has a 5xx status code
|
||||
func (o *GetContactsObservableInternalServerError) IsServerError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsCode returns true when this get contacts observable internal server error response a status code equal to that given
|
||||
func (o *GetContactsObservableInternalServerError) IsCode(code int) bool {
|
||||
return code == 500
|
||||
}
|
||||
|
||||
// Code gets the status code for the get contacts observable internal server error response
|
||||
func (o *GetContactsObservableInternalServerError) Code() int {
|
||||
return 500
|
||||
}
|
||||
|
||||
func (o *GetContactsObservableInternalServerError) Error() string {
|
||||
return fmt.Sprintf("[GET /contacts/observable][%d] getContactsObservableInternalServerError %+v", 500, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetContactsObservableInternalServerError) String() string {
|
||||
return fmt.Sprintf("[GET /contacts/observable][%d] getContactsObservableInternalServerError %+v", 500, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetContactsObservableInternalServerError) GetPayload() *crm_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
|
|
@ -57,10 +57,12 @@ func NewGetContactsParamsWithHTTPClient(client *http.Client) *GetContactsParams
|
|||
}
|
||||
}
|
||||
|
||||
/* GetContactsParams contains all the parameters to send to the API endpoint
|
||||
for the get contacts operation.
|
||||
/*
|
||||
GetContactsParams contains all the parameters to send to the API endpoint
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
for the get contacts operation.
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
*/
|
||||
type GetContactsParams struct {
|
||||
|
||||
|
|
|
@ -73,7 +73,8 @@ func NewGetContactsOK() *GetContactsOK {
|
|||
return &GetContactsOK{}
|
||||
}
|
||||
|
||||
/* GetContactsOK describes a response with status code 200, with default header values.
|
||||
/*
|
||||
GetContactsOK describes a response with status code 200, with default header values.
|
||||
|
||||
Taxnexus Response with an array of Contact objects
|
||||
*/
|
||||
|
@ -84,9 +85,44 @@ type GetContactsOK struct {
|
|||
Payload *crm_models.ContactResponse
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this get contacts o k response has a 2xx status code
|
||||
func (o *GetContactsOK) IsSuccess() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this get contacts o k response has a 3xx status code
|
||||
func (o *GetContactsOK) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this get contacts o k response has a 4xx status code
|
||||
func (o *GetContactsOK) IsClientError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsServerError returns true when this get contacts o k response has a 5xx status code
|
||||
func (o *GetContactsOK) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this get contacts o k response a status code equal to that given
|
||||
func (o *GetContactsOK) IsCode(code int) bool {
|
||||
return code == 200
|
||||
}
|
||||
|
||||
// Code gets the status code for the get contacts o k response
|
||||
func (o *GetContactsOK) Code() int {
|
||||
return 200
|
||||
}
|
||||
|
||||
func (o *GetContactsOK) Error() string {
|
||||
return fmt.Sprintf("[GET /contacts][%d] getContactsOK %+v", 200, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetContactsOK) String() string {
|
||||
return fmt.Sprintf("[GET /contacts][%d] getContactsOK %+v", 200, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetContactsOK) GetPayload() *crm_models.ContactResponse {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -122,7 +158,8 @@ func NewGetContactsUnauthorized() *GetContactsUnauthorized {
|
|||
return &GetContactsUnauthorized{}
|
||||
}
|
||||
|
||||
/* GetContactsUnauthorized describes a response with status code 401, with default header values.
|
||||
/*
|
||||
GetContactsUnauthorized describes a response with status code 401, with default header values.
|
||||
|
||||
Access unauthorized, invalid API-KEY was used
|
||||
*/
|
||||
|
@ -132,9 +169,44 @@ type GetContactsUnauthorized struct {
|
|||
Payload *crm_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this get contacts unauthorized response has a 2xx status code
|
||||
func (o *GetContactsUnauthorized) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this get contacts unauthorized response has a 3xx status code
|
||||
func (o *GetContactsUnauthorized) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this get contacts unauthorized response has a 4xx status code
|
||||
func (o *GetContactsUnauthorized) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this get contacts unauthorized response has a 5xx status code
|
||||
func (o *GetContactsUnauthorized) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this get contacts unauthorized response a status code equal to that given
|
||||
func (o *GetContactsUnauthorized) IsCode(code int) bool {
|
||||
return code == 401
|
||||
}
|
||||
|
||||
// Code gets the status code for the get contacts unauthorized response
|
||||
func (o *GetContactsUnauthorized) Code() int {
|
||||
return 401
|
||||
}
|
||||
|
||||
func (o *GetContactsUnauthorized) Error() string {
|
||||
return fmt.Sprintf("[GET /contacts][%d] getContactsUnauthorized %+v", 401, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetContactsUnauthorized) String() string {
|
||||
return fmt.Sprintf("[GET /contacts][%d] getContactsUnauthorized %+v", 401, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetContactsUnauthorized) GetPayload() *crm_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -163,7 +235,8 @@ func NewGetContactsForbidden() *GetContactsForbidden {
|
|||
return &GetContactsForbidden{}
|
||||
}
|
||||
|
||||
/* GetContactsForbidden describes a response with status code 403, with default header values.
|
||||
/*
|
||||
GetContactsForbidden describes a response with status code 403, with default header values.
|
||||
|
||||
Access forbidden, account lacks access
|
||||
*/
|
||||
|
@ -173,9 +246,44 @@ type GetContactsForbidden struct {
|
|||
Payload *crm_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this get contacts forbidden response has a 2xx status code
|
||||
func (o *GetContactsForbidden) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this get contacts forbidden response has a 3xx status code
|
||||
func (o *GetContactsForbidden) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this get contacts forbidden response has a 4xx status code
|
||||
func (o *GetContactsForbidden) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this get contacts forbidden response has a 5xx status code
|
||||
func (o *GetContactsForbidden) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this get contacts forbidden response a status code equal to that given
|
||||
func (o *GetContactsForbidden) IsCode(code int) bool {
|
||||
return code == 403
|
||||
}
|
||||
|
||||
// Code gets the status code for the get contacts forbidden response
|
||||
func (o *GetContactsForbidden) Code() int {
|
||||
return 403
|
||||
}
|
||||
|
||||
func (o *GetContactsForbidden) Error() string {
|
||||
return fmt.Sprintf("[GET /contacts][%d] getContactsForbidden %+v", 403, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetContactsForbidden) String() string {
|
||||
return fmt.Sprintf("[GET /contacts][%d] getContactsForbidden %+v", 403, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetContactsForbidden) GetPayload() *crm_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -204,7 +312,8 @@ func NewGetContactsNotFound() *GetContactsNotFound {
|
|||
return &GetContactsNotFound{}
|
||||
}
|
||||
|
||||
/* GetContactsNotFound describes a response with status code 404, with default header values.
|
||||
/*
|
||||
GetContactsNotFound describes a response with status code 404, with default header values.
|
||||
|
||||
Resource was not found
|
||||
*/
|
||||
|
@ -214,9 +323,44 @@ type GetContactsNotFound struct {
|
|||
Payload *crm_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this get contacts not found response has a 2xx status code
|
||||
func (o *GetContactsNotFound) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this get contacts not found response has a 3xx status code
|
||||
func (o *GetContactsNotFound) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this get contacts not found response has a 4xx status code
|
||||
func (o *GetContactsNotFound) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this get contacts not found response has a 5xx status code
|
||||
func (o *GetContactsNotFound) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this get contacts not found response a status code equal to that given
|
||||
func (o *GetContactsNotFound) IsCode(code int) bool {
|
||||
return code == 404
|
||||
}
|
||||
|
||||
// Code gets the status code for the get contacts not found response
|
||||
func (o *GetContactsNotFound) Code() int {
|
||||
return 404
|
||||
}
|
||||
|
||||
func (o *GetContactsNotFound) Error() string {
|
||||
return fmt.Sprintf("[GET /contacts][%d] getContactsNotFound %+v", 404, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetContactsNotFound) String() string {
|
||||
return fmt.Sprintf("[GET /contacts][%d] getContactsNotFound %+v", 404, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetContactsNotFound) GetPayload() *crm_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -245,7 +389,8 @@ func NewGetContactsUnprocessableEntity() *GetContactsUnprocessableEntity {
|
|||
return &GetContactsUnprocessableEntity{}
|
||||
}
|
||||
|
||||
/* GetContactsUnprocessableEntity describes a response with status code 422, with default header values.
|
||||
/*
|
||||
GetContactsUnprocessableEntity describes a response with status code 422, with default header values.
|
||||
|
||||
Unprocessable Entity, likely a bad parameter
|
||||
*/
|
||||
|
@ -255,9 +400,44 @@ type GetContactsUnprocessableEntity struct {
|
|||
Payload *crm_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this get contacts unprocessable entity response has a 2xx status code
|
||||
func (o *GetContactsUnprocessableEntity) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this get contacts unprocessable entity response has a 3xx status code
|
||||
func (o *GetContactsUnprocessableEntity) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this get contacts unprocessable entity response has a 4xx status code
|
||||
func (o *GetContactsUnprocessableEntity) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this get contacts unprocessable entity response has a 5xx status code
|
||||
func (o *GetContactsUnprocessableEntity) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this get contacts unprocessable entity response a status code equal to that given
|
||||
func (o *GetContactsUnprocessableEntity) IsCode(code int) bool {
|
||||
return code == 422
|
||||
}
|
||||
|
||||
// Code gets the status code for the get contacts unprocessable entity response
|
||||
func (o *GetContactsUnprocessableEntity) Code() int {
|
||||
return 422
|
||||
}
|
||||
|
||||
func (o *GetContactsUnprocessableEntity) Error() string {
|
||||
return fmt.Sprintf("[GET /contacts][%d] getContactsUnprocessableEntity %+v", 422, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetContactsUnprocessableEntity) String() string {
|
||||
return fmt.Sprintf("[GET /contacts][%d] getContactsUnprocessableEntity %+v", 422, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetContactsUnprocessableEntity) GetPayload() *crm_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -286,7 +466,8 @@ func NewGetContactsInternalServerError() *GetContactsInternalServerError {
|
|||
return &GetContactsInternalServerError{}
|
||||
}
|
||||
|
||||
/* GetContactsInternalServerError describes a response with status code 500, with default header values.
|
||||
/*
|
||||
GetContactsInternalServerError describes a response with status code 500, with default header values.
|
||||
|
||||
Server Internal Error
|
||||
*/
|
||||
|
@ -296,9 +477,44 @@ type GetContactsInternalServerError struct {
|
|||
Payload *crm_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this get contacts internal server error response has a 2xx status code
|
||||
func (o *GetContactsInternalServerError) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this get contacts internal server error response has a 3xx status code
|
||||
func (o *GetContactsInternalServerError) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this get contacts internal server error response has a 4xx status code
|
||||
func (o *GetContactsInternalServerError) IsClientError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsServerError returns true when this get contacts internal server error response has a 5xx status code
|
||||
func (o *GetContactsInternalServerError) IsServerError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsCode returns true when this get contacts internal server error response a status code equal to that given
|
||||
func (o *GetContactsInternalServerError) IsCode(code int) bool {
|
||||
return code == 500
|
||||
}
|
||||
|
||||
// Code gets the status code for the get contacts internal server error response
|
||||
func (o *GetContactsInternalServerError) Code() int {
|
||||
return 500
|
||||
}
|
||||
|
||||
func (o *GetContactsInternalServerError) Error() string {
|
||||
return fmt.Sprintf("[GET /contacts][%d] getContactsInternalServerError %+v", 500, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetContactsInternalServerError) String() string {
|
||||
return fmt.Sprintf("[GET /contacts][%d] getContactsInternalServerError %+v", 500, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetContactsInternalServerError) GetPayload() *crm_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
|
|
@ -58,10 +58,12 @@ func NewPostContactsParamsWithHTTPClient(client *http.Client) *PostContactsParam
|
|||
}
|
||||
}
|
||||
|
||||
/* PostContactsParams contains all the parameters to send to the API endpoint
|
||||
for the post contacts operation.
|
||||
/*
|
||||
PostContactsParams contains all the parameters to send to the API endpoint
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
for the post contacts operation.
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
*/
|
||||
type PostContactsParams struct {
|
||||
|
||||
|
|
|
@ -73,7 +73,8 @@ func NewPostContactsOK() *PostContactsOK {
|
|||
return &PostContactsOK{}
|
||||
}
|
||||
|
||||
/* PostContactsOK describes a response with status code 200, with default header values.
|
||||
/*
|
||||
PostContactsOK describes a response with status code 200, with default header values.
|
||||
|
||||
Taxnexus Response with an array of Contact objects
|
||||
*/
|
||||
|
@ -84,9 +85,44 @@ type PostContactsOK struct {
|
|||
Payload *crm_models.ContactResponse
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this post contacts o k response has a 2xx status code
|
||||
func (o *PostContactsOK) IsSuccess() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this post contacts o k response has a 3xx status code
|
||||
func (o *PostContactsOK) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this post contacts o k response has a 4xx status code
|
||||
func (o *PostContactsOK) IsClientError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsServerError returns true when this post contacts o k response has a 5xx status code
|
||||
func (o *PostContactsOK) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this post contacts o k response a status code equal to that given
|
||||
func (o *PostContactsOK) IsCode(code int) bool {
|
||||
return code == 200
|
||||
}
|
||||
|
||||
// Code gets the status code for the post contacts o k response
|
||||
func (o *PostContactsOK) Code() int {
|
||||
return 200
|
||||
}
|
||||
|
||||
func (o *PostContactsOK) Error() string {
|
||||
return fmt.Sprintf("[POST /contacts][%d] postContactsOK %+v", 200, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PostContactsOK) String() string {
|
||||
return fmt.Sprintf("[POST /contacts][%d] postContactsOK %+v", 200, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PostContactsOK) GetPayload() *crm_models.ContactResponse {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -122,7 +158,8 @@ func NewPostContactsUnauthorized() *PostContactsUnauthorized {
|
|||
return &PostContactsUnauthorized{}
|
||||
}
|
||||
|
||||
/* PostContactsUnauthorized describes a response with status code 401, with default header values.
|
||||
/*
|
||||
PostContactsUnauthorized describes a response with status code 401, with default header values.
|
||||
|
||||
Access unauthorized, invalid API-KEY was used
|
||||
*/
|
||||
|
@ -132,9 +169,44 @@ type PostContactsUnauthorized struct {
|
|||
Payload *crm_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this post contacts unauthorized response has a 2xx status code
|
||||
func (o *PostContactsUnauthorized) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this post contacts unauthorized response has a 3xx status code
|
||||
func (o *PostContactsUnauthorized) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this post contacts unauthorized response has a 4xx status code
|
||||
func (o *PostContactsUnauthorized) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this post contacts unauthorized response has a 5xx status code
|
||||
func (o *PostContactsUnauthorized) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this post contacts unauthorized response a status code equal to that given
|
||||
func (o *PostContactsUnauthorized) IsCode(code int) bool {
|
||||
return code == 401
|
||||
}
|
||||
|
||||
// Code gets the status code for the post contacts unauthorized response
|
||||
func (o *PostContactsUnauthorized) Code() int {
|
||||
return 401
|
||||
}
|
||||
|
||||
func (o *PostContactsUnauthorized) Error() string {
|
||||
return fmt.Sprintf("[POST /contacts][%d] postContactsUnauthorized %+v", 401, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PostContactsUnauthorized) String() string {
|
||||
return fmt.Sprintf("[POST /contacts][%d] postContactsUnauthorized %+v", 401, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PostContactsUnauthorized) GetPayload() *crm_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -163,7 +235,8 @@ func NewPostContactsForbidden() *PostContactsForbidden {
|
|||
return &PostContactsForbidden{}
|
||||
}
|
||||
|
||||
/* PostContactsForbidden describes a response with status code 403, with default header values.
|
||||
/*
|
||||
PostContactsForbidden describes a response with status code 403, with default header values.
|
||||
|
||||
Access forbidden, account lacks access
|
||||
*/
|
||||
|
@ -173,9 +246,44 @@ type PostContactsForbidden struct {
|
|||
Payload *crm_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this post contacts forbidden response has a 2xx status code
|
||||
func (o *PostContactsForbidden) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this post contacts forbidden response has a 3xx status code
|
||||
func (o *PostContactsForbidden) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this post contacts forbidden response has a 4xx status code
|
||||
func (o *PostContactsForbidden) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this post contacts forbidden response has a 5xx status code
|
||||
func (o *PostContactsForbidden) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this post contacts forbidden response a status code equal to that given
|
||||
func (o *PostContactsForbidden) IsCode(code int) bool {
|
||||
return code == 403
|
||||
}
|
||||
|
||||
// Code gets the status code for the post contacts forbidden response
|
||||
func (o *PostContactsForbidden) Code() int {
|
||||
return 403
|
||||
}
|
||||
|
||||
func (o *PostContactsForbidden) Error() string {
|
||||
return fmt.Sprintf("[POST /contacts][%d] postContactsForbidden %+v", 403, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PostContactsForbidden) String() string {
|
||||
return fmt.Sprintf("[POST /contacts][%d] postContactsForbidden %+v", 403, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PostContactsForbidden) GetPayload() *crm_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -204,7 +312,8 @@ func NewPostContactsNotFound() *PostContactsNotFound {
|
|||
return &PostContactsNotFound{}
|
||||
}
|
||||
|
||||
/* PostContactsNotFound describes a response with status code 404, with default header values.
|
||||
/*
|
||||
PostContactsNotFound describes a response with status code 404, with default header values.
|
||||
|
||||
Resource was not found
|
||||
*/
|
||||
|
@ -214,9 +323,44 @@ type PostContactsNotFound struct {
|
|||
Payload *crm_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this post contacts not found response has a 2xx status code
|
||||
func (o *PostContactsNotFound) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this post contacts not found response has a 3xx status code
|
||||
func (o *PostContactsNotFound) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this post contacts not found response has a 4xx status code
|
||||
func (o *PostContactsNotFound) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this post contacts not found response has a 5xx status code
|
||||
func (o *PostContactsNotFound) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this post contacts not found response a status code equal to that given
|
||||
func (o *PostContactsNotFound) IsCode(code int) bool {
|
||||
return code == 404
|
||||
}
|
||||
|
||||
// Code gets the status code for the post contacts not found response
|
||||
func (o *PostContactsNotFound) Code() int {
|
||||
return 404
|
||||
}
|
||||
|
||||
func (o *PostContactsNotFound) Error() string {
|
||||
return fmt.Sprintf("[POST /contacts][%d] postContactsNotFound %+v", 404, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PostContactsNotFound) String() string {
|
||||
return fmt.Sprintf("[POST /contacts][%d] postContactsNotFound %+v", 404, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PostContactsNotFound) GetPayload() *crm_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -245,7 +389,8 @@ func NewPostContactsUnprocessableEntity() *PostContactsUnprocessableEntity {
|
|||
return &PostContactsUnprocessableEntity{}
|
||||
}
|
||||
|
||||
/* PostContactsUnprocessableEntity describes a response with status code 422, with default header values.
|
||||
/*
|
||||
PostContactsUnprocessableEntity describes a response with status code 422, with default header values.
|
||||
|
||||
Unprocessable Entity, likely a bad parameter
|
||||
*/
|
||||
|
@ -255,9 +400,44 @@ type PostContactsUnprocessableEntity struct {
|
|||
Payload *crm_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this post contacts unprocessable entity response has a 2xx status code
|
||||
func (o *PostContactsUnprocessableEntity) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this post contacts unprocessable entity response has a 3xx status code
|
||||
func (o *PostContactsUnprocessableEntity) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this post contacts unprocessable entity response has a 4xx status code
|
||||
func (o *PostContactsUnprocessableEntity) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this post contacts unprocessable entity response has a 5xx status code
|
||||
func (o *PostContactsUnprocessableEntity) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this post contacts unprocessable entity response a status code equal to that given
|
||||
func (o *PostContactsUnprocessableEntity) IsCode(code int) bool {
|
||||
return code == 422
|
||||
}
|
||||
|
||||
// Code gets the status code for the post contacts unprocessable entity response
|
||||
func (o *PostContactsUnprocessableEntity) Code() int {
|
||||
return 422
|
||||
}
|
||||
|
||||
func (o *PostContactsUnprocessableEntity) Error() string {
|
||||
return fmt.Sprintf("[POST /contacts][%d] postContactsUnprocessableEntity %+v", 422, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PostContactsUnprocessableEntity) String() string {
|
||||
return fmt.Sprintf("[POST /contacts][%d] postContactsUnprocessableEntity %+v", 422, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PostContactsUnprocessableEntity) GetPayload() *crm_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -286,7 +466,8 @@ func NewPostContactsInternalServerError() *PostContactsInternalServerError {
|
|||
return &PostContactsInternalServerError{}
|
||||
}
|
||||
|
||||
/* PostContactsInternalServerError describes a response with status code 500, with default header values.
|
||||
/*
|
||||
PostContactsInternalServerError describes a response with status code 500, with default header values.
|
||||
|
||||
Server Internal Error
|
||||
*/
|
||||
|
@ -296,9 +477,44 @@ type PostContactsInternalServerError struct {
|
|||
Payload *crm_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this post contacts internal server error response has a 2xx status code
|
||||
func (o *PostContactsInternalServerError) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this post contacts internal server error response has a 3xx status code
|
||||
func (o *PostContactsInternalServerError) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this post contacts internal server error response has a 4xx status code
|
||||
func (o *PostContactsInternalServerError) IsClientError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsServerError returns true when this post contacts internal server error response has a 5xx status code
|
||||
func (o *PostContactsInternalServerError) IsServerError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsCode returns true when this post contacts internal server error response a status code equal to that given
|
||||
func (o *PostContactsInternalServerError) IsCode(code int) bool {
|
||||
return code == 500
|
||||
}
|
||||
|
||||
// Code gets the status code for the post contacts internal server error response
|
||||
func (o *PostContactsInternalServerError) Code() int {
|
||||
return 500
|
||||
}
|
||||
|
||||
func (o *PostContactsInternalServerError) Error() string {
|
||||
return fmt.Sprintf("[POST /contacts][%d] postContactsInternalServerError %+v", 500, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PostContactsInternalServerError) String() string {
|
||||
return fmt.Sprintf("[POST /contacts][%d] postContactsInternalServerError %+v", 500, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PostContactsInternalServerError) GetPayload() *crm_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
|
|
@ -58,10 +58,12 @@ func NewPutContactsParamsWithHTTPClient(client *http.Client) *PutContactsParams
|
|||
}
|
||||
}
|
||||
|
||||
/* PutContactsParams contains all the parameters to send to the API endpoint
|
||||
for the put contacts operation.
|
||||
/*
|
||||
PutContactsParams contains all the parameters to send to the API endpoint
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
for the put contacts operation.
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
*/
|
||||
type PutContactsParams struct {
|
||||
|
||||
|
|
|
@ -73,7 +73,8 @@ func NewPutContactsOK() *PutContactsOK {
|
|||
return &PutContactsOK{}
|
||||
}
|
||||
|
||||
/* PutContactsOK describes a response with status code 200, with default header values.
|
||||
/*
|
||||
PutContactsOK describes a response with status code 200, with default header values.
|
||||
|
||||
Taxnexus Response with an array of Contact objects
|
||||
*/
|
||||
|
@ -84,9 +85,44 @@ type PutContactsOK struct {
|
|||
Payload *crm_models.ContactResponse
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this put contacts o k response has a 2xx status code
|
||||
func (o *PutContactsOK) IsSuccess() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this put contacts o k response has a 3xx status code
|
||||
func (o *PutContactsOK) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this put contacts o k response has a 4xx status code
|
||||
func (o *PutContactsOK) IsClientError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsServerError returns true when this put contacts o k response has a 5xx status code
|
||||
func (o *PutContactsOK) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this put contacts o k response a status code equal to that given
|
||||
func (o *PutContactsOK) IsCode(code int) bool {
|
||||
return code == 200
|
||||
}
|
||||
|
||||
// Code gets the status code for the put contacts o k response
|
||||
func (o *PutContactsOK) Code() int {
|
||||
return 200
|
||||
}
|
||||
|
||||
func (o *PutContactsOK) Error() string {
|
||||
return fmt.Sprintf("[PUT /contacts][%d] putContactsOK %+v", 200, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PutContactsOK) String() string {
|
||||
return fmt.Sprintf("[PUT /contacts][%d] putContactsOK %+v", 200, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PutContactsOK) GetPayload() *crm_models.ContactResponse {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -122,7 +158,8 @@ func NewPutContactsUnauthorized() *PutContactsUnauthorized {
|
|||
return &PutContactsUnauthorized{}
|
||||
}
|
||||
|
||||
/* PutContactsUnauthorized describes a response with status code 401, with default header values.
|
||||
/*
|
||||
PutContactsUnauthorized describes a response with status code 401, with default header values.
|
||||
|
||||
Access unauthorized, invalid API-KEY was used
|
||||
*/
|
||||
|
@ -132,9 +169,44 @@ type PutContactsUnauthorized struct {
|
|||
Payload *crm_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this put contacts unauthorized response has a 2xx status code
|
||||
func (o *PutContactsUnauthorized) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this put contacts unauthorized response has a 3xx status code
|
||||
func (o *PutContactsUnauthorized) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this put contacts unauthorized response has a 4xx status code
|
||||
func (o *PutContactsUnauthorized) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this put contacts unauthorized response has a 5xx status code
|
||||
func (o *PutContactsUnauthorized) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this put contacts unauthorized response a status code equal to that given
|
||||
func (o *PutContactsUnauthorized) IsCode(code int) bool {
|
||||
return code == 401
|
||||
}
|
||||
|
||||
// Code gets the status code for the put contacts unauthorized response
|
||||
func (o *PutContactsUnauthorized) Code() int {
|
||||
return 401
|
||||
}
|
||||
|
||||
func (o *PutContactsUnauthorized) Error() string {
|
||||
return fmt.Sprintf("[PUT /contacts][%d] putContactsUnauthorized %+v", 401, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PutContactsUnauthorized) String() string {
|
||||
return fmt.Sprintf("[PUT /contacts][%d] putContactsUnauthorized %+v", 401, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PutContactsUnauthorized) GetPayload() *crm_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -163,7 +235,8 @@ func NewPutContactsForbidden() *PutContactsForbidden {
|
|||
return &PutContactsForbidden{}
|
||||
}
|
||||
|
||||
/* PutContactsForbidden describes a response with status code 403, with default header values.
|
||||
/*
|
||||
PutContactsForbidden describes a response with status code 403, with default header values.
|
||||
|
||||
Access forbidden, account lacks access
|
||||
*/
|
||||
|
@ -173,9 +246,44 @@ type PutContactsForbidden struct {
|
|||
Payload *crm_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this put contacts forbidden response has a 2xx status code
|
||||
func (o *PutContactsForbidden) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this put contacts forbidden response has a 3xx status code
|
||||
func (o *PutContactsForbidden) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this put contacts forbidden response has a 4xx status code
|
||||
func (o *PutContactsForbidden) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this put contacts forbidden response has a 5xx status code
|
||||
func (o *PutContactsForbidden) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this put contacts forbidden response a status code equal to that given
|
||||
func (o *PutContactsForbidden) IsCode(code int) bool {
|
||||
return code == 403
|
||||
}
|
||||
|
||||
// Code gets the status code for the put contacts forbidden response
|
||||
func (o *PutContactsForbidden) Code() int {
|
||||
return 403
|
||||
}
|
||||
|
||||
func (o *PutContactsForbidden) Error() string {
|
||||
return fmt.Sprintf("[PUT /contacts][%d] putContactsForbidden %+v", 403, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PutContactsForbidden) String() string {
|
||||
return fmt.Sprintf("[PUT /contacts][%d] putContactsForbidden %+v", 403, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PutContactsForbidden) GetPayload() *crm_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -204,7 +312,8 @@ func NewPutContactsNotFound() *PutContactsNotFound {
|
|||
return &PutContactsNotFound{}
|
||||
}
|
||||
|
||||
/* PutContactsNotFound describes a response with status code 404, with default header values.
|
||||
/*
|
||||
PutContactsNotFound describes a response with status code 404, with default header values.
|
||||
|
||||
Resource was not found
|
||||
*/
|
||||
|
@ -214,9 +323,44 @@ type PutContactsNotFound struct {
|
|||
Payload *crm_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this put contacts not found response has a 2xx status code
|
||||
func (o *PutContactsNotFound) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this put contacts not found response has a 3xx status code
|
||||
func (o *PutContactsNotFound) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this put contacts not found response has a 4xx status code
|
||||
func (o *PutContactsNotFound) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this put contacts not found response has a 5xx status code
|
||||
func (o *PutContactsNotFound) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this put contacts not found response a status code equal to that given
|
||||
func (o *PutContactsNotFound) IsCode(code int) bool {
|
||||
return code == 404
|
||||
}
|
||||
|
||||
// Code gets the status code for the put contacts not found response
|
||||
func (o *PutContactsNotFound) Code() int {
|
||||
return 404
|
||||
}
|
||||
|
||||
func (o *PutContactsNotFound) Error() string {
|
||||
return fmt.Sprintf("[PUT /contacts][%d] putContactsNotFound %+v", 404, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PutContactsNotFound) String() string {
|
||||
return fmt.Sprintf("[PUT /contacts][%d] putContactsNotFound %+v", 404, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PutContactsNotFound) GetPayload() *crm_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -245,7 +389,8 @@ func NewPutContactsUnprocessableEntity() *PutContactsUnprocessableEntity {
|
|||
return &PutContactsUnprocessableEntity{}
|
||||
}
|
||||
|
||||
/* PutContactsUnprocessableEntity describes a response with status code 422, with default header values.
|
||||
/*
|
||||
PutContactsUnprocessableEntity describes a response with status code 422, with default header values.
|
||||
|
||||
Unprocessable Entity, likely a bad parameter
|
||||
*/
|
||||
|
@ -255,9 +400,44 @@ type PutContactsUnprocessableEntity struct {
|
|||
Payload *crm_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this put contacts unprocessable entity response has a 2xx status code
|
||||
func (o *PutContactsUnprocessableEntity) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this put contacts unprocessable entity response has a 3xx status code
|
||||
func (o *PutContactsUnprocessableEntity) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this put contacts unprocessable entity response has a 4xx status code
|
||||
func (o *PutContactsUnprocessableEntity) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this put contacts unprocessable entity response has a 5xx status code
|
||||
func (o *PutContactsUnprocessableEntity) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this put contacts unprocessable entity response a status code equal to that given
|
||||
func (o *PutContactsUnprocessableEntity) IsCode(code int) bool {
|
||||
return code == 422
|
||||
}
|
||||
|
||||
// Code gets the status code for the put contacts unprocessable entity response
|
||||
func (o *PutContactsUnprocessableEntity) Code() int {
|
||||
return 422
|
||||
}
|
||||
|
||||
func (o *PutContactsUnprocessableEntity) Error() string {
|
||||
return fmt.Sprintf("[PUT /contacts][%d] putContactsUnprocessableEntity %+v", 422, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PutContactsUnprocessableEntity) String() string {
|
||||
return fmt.Sprintf("[PUT /contacts][%d] putContactsUnprocessableEntity %+v", 422, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PutContactsUnprocessableEntity) GetPayload() *crm_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -286,7 +466,8 @@ func NewPutContactsInternalServerError() *PutContactsInternalServerError {
|
|||
return &PutContactsInternalServerError{}
|
||||
}
|
||||
|
||||
/* PutContactsInternalServerError describes a response with status code 500, with default header values.
|
||||
/*
|
||||
PutContactsInternalServerError describes a response with status code 500, with default header values.
|
||||
|
||||
Server Internal Error
|
||||
*/
|
||||
|
@ -296,9 +477,44 @@ type PutContactsInternalServerError struct {
|
|||
Payload *crm_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this put contacts internal server error response has a 2xx status code
|
||||
func (o *PutContactsInternalServerError) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this put contacts internal server error response has a 3xx status code
|
||||
func (o *PutContactsInternalServerError) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this put contacts internal server error response has a 4xx status code
|
||||
func (o *PutContactsInternalServerError) IsClientError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsServerError returns true when this put contacts internal server error response has a 5xx status code
|
||||
func (o *PutContactsInternalServerError) IsServerError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsCode returns true when this put contacts internal server error response a status code equal to that given
|
||||
func (o *PutContactsInternalServerError) IsCode(code int) bool {
|
||||
return code == 500
|
||||
}
|
||||
|
||||
// Code gets the status code for the put contacts internal server error response
|
||||
func (o *PutContactsInternalServerError) Code() int {
|
||||
return 500
|
||||
}
|
||||
|
||||
func (o *PutContactsInternalServerError) Error() string {
|
||||
return fmt.Sprintf("[PUT /contacts][%d] putContactsInternalServerError %+v", 500, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PutContactsInternalServerError) String() string {
|
||||
return fmt.Sprintf("[PUT /contacts][%d] putContactsInternalServerError %+v", 500, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PutContactsInternalServerError) GetPayload() *crm_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
|
|
@ -48,9 +48,9 @@ type ClientService interface {
|
|||
}
|
||||
|
||||
/*
|
||||
DeleteContract deletes an contract
|
||||
DeleteContract deletes an contract
|
||||
|
||||
Delete Taxnexus Contract record
|
||||
Delete Taxnexus Contract record
|
||||
*/
|
||||
func (a *Client) DeleteContract(params *DeleteContractParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteContractOK, error) {
|
||||
// TODO: Validate the params before sending
|
||||
|
@ -89,9 +89,9 @@ func (a *Client) DeleteContract(params *DeleteContractParams, authInfo runtime.C
|
|||
}
|
||||
|
||||
/*
|
||||
GetContracts gets a list of contracts
|
||||
GetContracts gets a list of contracts
|
||||
|
||||
Return a list of all available Contracts
|
||||
Return a list of all available Contracts
|
||||
*/
|
||||
func (a *Client) GetContracts(params *GetContractsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetContractsOK, error) {
|
||||
// TODO: Validate the params before sending
|
||||
|
@ -130,9 +130,9 @@ func (a *Client) GetContracts(params *GetContractsParams, authInfo runtime.Clien
|
|||
}
|
||||
|
||||
/*
|
||||
GetContractsObservable gets taxnexus contracts in an observable array
|
||||
GetContractsObservable gets taxnexus contracts in an observable array
|
||||
|
||||
A list of contracts in a simple JSON array
|
||||
A list of contracts in a simple JSON array
|
||||
*/
|
||||
func (a *Client) GetContractsObservable(params *GetContractsObservableParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetContractsObservableOK, error) {
|
||||
// TODO: Validate the params before sending
|
||||
|
@ -171,9 +171,9 @@ func (a *Client) GetContractsObservable(params *GetContractsObservableParams, au
|
|||
}
|
||||
|
||||
/*
|
||||
PostContracts adds a new contract to taxnexus
|
||||
PostContracts adds a new contract to taxnexus
|
||||
|
||||
Contract record to be added
|
||||
Contract record to be added
|
||||
*/
|
||||
func (a *Client) PostContracts(params *PostContractsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostContractsOK, error) {
|
||||
// TODO: Validate the params before sending
|
||||
|
@ -212,9 +212,9 @@ func (a *Client) PostContracts(params *PostContractsParams, authInfo runtime.Cli
|
|||
}
|
||||
|
||||
/*
|
||||
PutContract updates a single contract
|
||||
PutContract updates a single contract
|
||||
|
||||
Update a single contract specified by contractId
|
||||
Update a single contract specified by contractId
|
||||
*/
|
||||
func (a *Client) PutContract(params *PutContractParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PutContractOK, error) {
|
||||
// TODO: Validate the params before sending
|
||||
|
|
|
@ -56,10 +56,12 @@ func NewDeleteContractParamsWithHTTPClient(client *http.Client) *DeleteContractP
|
|||
}
|
||||
}
|
||||
|
||||
/* DeleteContractParams contains all the parameters to send to the API endpoint
|
||||
for the delete contract operation.
|
||||
/*
|
||||
DeleteContractParams contains all the parameters to send to the API endpoint
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
for the delete contract operation.
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
*/
|
||||
type DeleteContractParams struct {
|
||||
|
||||
|
|
|
@ -73,7 +73,8 @@ func NewDeleteContractOK() *DeleteContractOK {
|
|||
return &DeleteContractOK{}
|
||||
}
|
||||
|
||||
/* DeleteContractOK describes a response with status code 200, with default header values.
|
||||
/*
|
||||
DeleteContractOK describes a response with status code 200, with default header values.
|
||||
|
||||
Taxnexus Response with Message Objects with Delete Status
|
||||
*/
|
||||
|
@ -83,9 +84,44 @@ type DeleteContractOK struct {
|
|||
Payload *crm_models.DeleteResponse
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this delete contract o k response has a 2xx status code
|
||||
func (o *DeleteContractOK) IsSuccess() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this delete contract o k response has a 3xx status code
|
||||
func (o *DeleteContractOK) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this delete contract o k response has a 4xx status code
|
||||
func (o *DeleteContractOK) IsClientError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsServerError returns true when this delete contract o k response has a 5xx status code
|
||||
func (o *DeleteContractOK) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this delete contract o k response a status code equal to that given
|
||||
func (o *DeleteContractOK) IsCode(code int) bool {
|
||||
return code == 200
|
||||
}
|
||||
|
||||
// Code gets the status code for the delete contract o k response
|
||||
func (o *DeleteContractOK) Code() int {
|
||||
return 200
|
||||
}
|
||||
|
||||
func (o *DeleteContractOK) Error() string {
|
||||
return fmt.Sprintf("[DELETE /contracts][%d] deleteContractOK %+v", 200, o.Payload)
|
||||
}
|
||||
|
||||
func (o *DeleteContractOK) String() string {
|
||||
return fmt.Sprintf("[DELETE /contracts][%d] deleteContractOK %+v", 200, o.Payload)
|
||||
}
|
||||
|
||||
func (o *DeleteContractOK) GetPayload() *crm_models.DeleteResponse {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -114,7 +150,8 @@ func NewDeleteContractUnauthorized() *DeleteContractUnauthorized {
|
|||
return &DeleteContractUnauthorized{}
|
||||
}
|
||||
|
||||
/* DeleteContractUnauthorized describes a response with status code 401, with default header values.
|
||||
/*
|
||||
DeleteContractUnauthorized describes a response with status code 401, with default header values.
|
||||
|
||||
Access unauthorized, invalid API-KEY was used
|
||||
*/
|
||||
|
@ -124,9 +161,44 @@ type DeleteContractUnauthorized struct {
|
|||
Payload *crm_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this delete contract unauthorized response has a 2xx status code
|
||||
func (o *DeleteContractUnauthorized) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this delete contract unauthorized response has a 3xx status code
|
||||
func (o *DeleteContractUnauthorized) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this delete contract unauthorized response has a 4xx status code
|
||||
func (o *DeleteContractUnauthorized) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this delete contract unauthorized response has a 5xx status code
|
||||
func (o *DeleteContractUnauthorized) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this delete contract unauthorized response a status code equal to that given
|
||||
func (o *DeleteContractUnauthorized) IsCode(code int) bool {
|
||||
return code == 401
|
||||
}
|
||||
|
||||
// Code gets the status code for the delete contract unauthorized response
|
||||
func (o *DeleteContractUnauthorized) Code() int {
|
||||
return 401
|
||||
}
|
||||
|
||||
func (o *DeleteContractUnauthorized) Error() string {
|
||||
return fmt.Sprintf("[DELETE /contracts][%d] deleteContractUnauthorized %+v", 401, o.Payload)
|
||||
}
|
||||
|
||||
func (o *DeleteContractUnauthorized) String() string {
|
||||
return fmt.Sprintf("[DELETE /contracts][%d] deleteContractUnauthorized %+v", 401, o.Payload)
|
||||
}
|
||||
|
||||
func (o *DeleteContractUnauthorized) GetPayload() *crm_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -155,7 +227,8 @@ func NewDeleteContractForbidden() *DeleteContractForbidden {
|
|||
return &DeleteContractForbidden{}
|
||||
}
|
||||
|
||||
/* DeleteContractForbidden describes a response with status code 403, with default header values.
|
||||
/*
|
||||
DeleteContractForbidden describes a response with status code 403, with default header values.
|
||||
|
||||
Access forbidden, account lacks access
|
||||
*/
|
||||
|
@ -165,9 +238,44 @@ type DeleteContractForbidden struct {
|
|||
Payload *crm_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this delete contract forbidden response has a 2xx status code
|
||||
func (o *DeleteContractForbidden) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this delete contract forbidden response has a 3xx status code
|
||||
func (o *DeleteContractForbidden) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this delete contract forbidden response has a 4xx status code
|
||||
func (o *DeleteContractForbidden) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this delete contract forbidden response has a 5xx status code
|
||||
func (o *DeleteContractForbidden) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this delete contract forbidden response a status code equal to that given
|
||||
func (o *DeleteContractForbidden) IsCode(code int) bool {
|
||||
return code == 403
|
||||
}
|
||||
|
||||
// Code gets the status code for the delete contract forbidden response
|
||||
func (o *DeleteContractForbidden) Code() int {
|
||||
return 403
|
||||
}
|
||||
|
||||
func (o *DeleteContractForbidden) Error() string {
|
||||
return fmt.Sprintf("[DELETE /contracts][%d] deleteContractForbidden %+v", 403, o.Payload)
|
||||
}
|
||||
|
||||
func (o *DeleteContractForbidden) String() string {
|
||||
return fmt.Sprintf("[DELETE /contracts][%d] deleteContractForbidden %+v", 403, o.Payload)
|
||||
}
|
||||
|
||||
func (o *DeleteContractForbidden) GetPayload() *crm_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -196,7 +304,8 @@ func NewDeleteContractNotFound() *DeleteContractNotFound {
|
|||
return &DeleteContractNotFound{}
|
||||
}
|
||||
|
||||
/* DeleteContractNotFound describes a response with status code 404, with default header values.
|
||||
/*
|
||||
DeleteContractNotFound describes a response with status code 404, with default header values.
|
||||
|
||||
Resource was not found
|
||||
*/
|
||||
|
@ -206,9 +315,44 @@ type DeleteContractNotFound struct {
|
|||
Payload *crm_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this delete contract not found response has a 2xx status code
|
||||
func (o *DeleteContractNotFound) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this delete contract not found response has a 3xx status code
|
||||
func (o *DeleteContractNotFound) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this delete contract not found response has a 4xx status code
|
||||
func (o *DeleteContractNotFound) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this delete contract not found response has a 5xx status code
|
||||
func (o *DeleteContractNotFound) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this delete contract not found response a status code equal to that given
|
||||
func (o *DeleteContractNotFound) IsCode(code int) bool {
|
||||
return code == 404
|
||||
}
|
||||
|
||||
// Code gets the status code for the delete contract not found response
|
||||
func (o *DeleteContractNotFound) Code() int {
|
||||
return 404
|
||||
}
|
||||
|
||||
func (o *DeleteContractNotFound) Error() string {
|
||||
return fmt.Sprintf("[DELETE /contracts][%d] deleteContractNotFound %+v", 404, o.Payload)
|
||||
}
|
||||
|
||||
func (o *DeleteContractNotFound) String() string {
|
||||
return fmt.Sprintf("[DELETE /contracts][%d] deleteContractNotFound %+v", 404, o.Payload)
|
||||
}
|
||||
|
||||
func (o *DeleteContractNotFound) GetPayload() *crm_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -237,7 +381,8 @@ func NewDeleteContractUnprocessableEntity() *DeleteContractUnprocessableEntity {
|
|||
return &DeleteContractUnprocessableEntity{}
|
||||
}
|
||||
|
||||
/* DeleteContractUnprocessableEntity describes a response with status code 422, with default header values.
|
||||
/*
|
||||
DeleteContractUnprocessableEntity describes a response with status code 422, with default header values.
|
||||
|
||||
Unprocessable Entity, likely a bad parameter
|
||||
*/
|
||||
|
@ -247,9 +392,44 @@ type DeleteContractUnprocessableEntity struct {
|
|||
Payload *crm_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this delete contract unprocessable entity response has a 2xx status code
|
||||
func (o *DeleteContractUnprocessableEntity) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this delete contract unprocessable entity response has a 3xx status code
|
||||
func (o *DeleteContractUnprocessableEntity) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this delete contract unprocessable entity response has a 4xx status code
|
||||
func (o *DeleteContractUnprocessableEntity) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this delete contract unprocessable entity response has a 5xx status code
|
||||
func (o *DeleteContractUnprocessableEntity) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this delete contract unprocessable entity response a status code equal to that given
|
||||
func (o *DeleteContractUnprocessableEntity) IsCode(code int) bool {
|
||||
return code == 422
|
||||
}
|
||||
|
||||
// Code gets the status code for the delete contract unprocessable entity response
|
||||
func (o *DeleteContractUnprocessableEntity) Code() int {
|
||||
return 422
|
||||
}
|
||||
|
||||
func (o *DeleteContractUnprocessableEntity) Error() string {
|
||||
return fmt.Sprintf("[DELETE /contracts][%d] deleteContractUnprocessableEntity %+v", 422, o.Payload)
|
||||
}
|
||||
|
||||
func (o *DeleteContractUnprocessableEntity) String() string {
|
||||
return fmt.Sprintf("[DELETE /contracts][%d] deleteContractUnprocessableEntity %+v", 422, o.Payload)
|
||||
}
|
||||
|
||||
func (o *DeleteContractUnprocessableEntity) GetPayload() *crm_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -278,7 +458,8 @@ func NewDeleteContractInternalServerError() *DeleteContractInternalServerError {
|
|||
return &DeleteContractInternalServerError{}
|
||||
}
|
||||
|
||||
/* DeleteContractInternalServerError describes a response with status code 500, with default header values.
|
||||
/*
|
||||
DeleteContractInternalServerError describes a response with status code 500, with default header values.
|
||||
|
||||
Server Internal Error
|
||||
*/
|
||||
|
@ -288,9 +469,44 @@ type DeleteContractInternalServerError struct {
|
|||
Payload *crm_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this delete contract internal server error response has a 2xx status code
|
||||
func (o *DeleteContractInternalServerError) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this delete contract internal server error response has a 3xx status code
|
||||
func (o *DeleteContractInternalServerError) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this delete contract internal server error response has a 4xx status code
|
||||
func (o *DeleteContractInternalServerError) IsClientError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsServerError returns true when this delete contract internal server error response has a 5xx status code
|
||||
func (o *DeleteContractInternalServerError) IsServerError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsCode returns true when this delete contract internal server error response a status code equal to that given
|
||||
func (o *DeleteContractInternalServerError) IsCode(code int) bool {
|
||||
return code == 500
|
||||
}
|
||||
|
||||
// Code gets the status code for the delete contract internal server error response
|
||||
func (o *DeleteContractInternalServerError) Code() int {
|
||||
return 500
|
||||
}
|
||||
|
||||
func (o *DeleteContractInternalServerError) Error() string {
|
||||
return fmt.Sprintf("[DELETE /contracts][%d] deleteContractInternalServerError %+v", 500, o.Payload)
|
||||
}
|
||||
|
||||
func (o *DeleteContractInternalServerError) String() string {
|
||||
return fmt.Sprintf("[DELETE /contracts][%d] deleteContractInternalServerError %+v", 500, o.Payload)
|
||||
}
|
||||
|
||||
func (o *DeleteContractInternalServerError) GetPayload() *crm_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
|
|
@ -57,10 +57,12 @@ func NewGetContractsObservableParamsWithHTTPClient(client *http.Client) *GetCont
|
|||
}
|
||||
}
|
||||
|
||||
/* GetContractsObservableParams contains all the parameters to send to the API endpoint
|
||||
for the get contracts observable operation.
|
||||
/*
|
||||
GetContractsObservableParams contains all the parameters to send to the API endpoint
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
for the get contracts observable operation.
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
*/
|
||||
type GetContractsObservableParams struct {
|
||||
|
||||
|
|
|
@ -73,7 +73,8 @@ func NewGetContractsObservableOK() *GetContractsObservableOK {
|
|||
return &GetContractsObservableOK{}
|
||||
}
|
||||
|
||||
/* GetContractsObservableOK describes a response with status code 200, with default header values.
|
||||
/*
|
||||
GetContractsObservableOK describes a response with status code 200, with default header values.
|
||||
|
||||
Taxnexus Response with an array of Contract objects
|
||||
*/
|
||||
|
@ -84,9 +85,44 @@ type GetContractsObservableOK struct {
|
|||
Payload []*crm_models.Contract
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this get contracts observable o k response has a 2xx status code
|
||||
func (o *GetContractsObservableOK) IsSuccess() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this get contracts observable o k response has a 3xx status code
|
||||
func (o *GetContractsObservableOK) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this get contracts observable o k response has a 4xx status code
|
||||
func (o *GetContractsObservableOK) IsClientError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsServerError returns true when this get contracts observable o k response has a 5xx status code
|
||||
func (o *GetContractsObservableOK) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this get contracts observable o k response a status code equal to that given
|
||||
func (o *GetContractsObservableOK) IsCode(code int) bool {
|
||||
return code == 200
|
||||
}
|
||||
|
||||
// Code gets the status code for the get contracts observable o k response
|
||||
func (o *GetContractsObservableOK) Code() int {
|
||||
return 200
|
||||
}
|
||||
|
||||
func (o *GetContractsObservableOK) Error() string {
|
||||
return fmt.Sprintf("[GET /contracts/observable][%d] getContractsObservableOK %+v", 200, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetContractsObservableOK) String() string {
|
||||
return fmt.Sprintf("[GET /contracts/observable][%d] getContractsObservableOK %+v", 200, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetContractsObservableOK) GetPayload() []*crm_models.Contract {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -120,7 +156,8 @@ func NewGetContractsObservableUnauthorized() *GetContractsObservableUnauthorized
|
|||
return &GetContractsObservableUnauthorized{}
|
||||
}
|
||||
|
||||
/* GetContractsObservableUnauthorized describes a response with status code 401, with default header values.
|
||||
/*
|
||||
GetContractsObservableUnauthorized describes a response with status code 401, with default header values.
|
||||
|
||||
Access unauthorized, invalid API-KEY was used
|
||||
*/
|
||||
|
@ -130,9 +167,44 @@ type GetContractsObservableUnauthorized struct {
|
|||
Payload *crm_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this get contracts observable unauthorized response has a 2xx status code
|
||||
func (o *GetContractsObservableUnauthorized) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this get contracts observable unauthorized response has a 3xx status code
|
||||
func (o *GetContractsObservableUnauthorized) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this get contracts observable unauthorized response has a 4xx status code
|
||||
func (o *GetContractsObservableUnauthorized) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this get contracts observable unauthorized response has a 5xx status code
|
||||
func (o *GetContractsObservableUnauthorized) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this get contracts observable unauthorized response a status code equal to that given
|
||||
func (o *GetContractsObservableUnauthorized) IsCode(code int) bool {
|
||||
return code == 401
|
||||
}
|
||||
|
||||
// Code gets the status code for the get contracts observable unauthorized response
|
||||
func (o *GetContractsObservableUnauthorized) Code() int {
|
||||
return 401
|
||||
}
|
||||
|
||||
func (o *GetContractsObservableUnauthorized) Error() string {
|
||||
return fmt.Sprintf("[GET /contracts/observable][%d] getContractsObservableUnauthorized %+v", 401, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetContractsObservableUnauthorized) String() string {
|
||||
return fmt.Sprintf("[GET /contracts/observable][%d] getContractsObservableUnauthorized %+v", 401, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetContractsObservableUnauthorized) GetPayload() *crm_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -161,7 +233,8 @@ func NewGetContractsObservableForbidden() *GetContractsObservableForbidden {
|
|||
return &GetContractsObservableForbidden{}
|
||||
}
|
||||
|
||||
/* GetContractsObservableForbidden describes a response with status code 403, with default header values.
|
||||
/*
|
||||
GetContractsObservableForbidden describes a response with status code 403, with default header values.
|
||||
|
||||
Access forbidden, account lacks access
|
||||
*/
|
||||
|
@ -171,9 +244,44 @@ type GetContractsObservableForbidden struct {
|
|||
Payload *crm_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this get contracts observable forbidden response has a 2xx status code
|
||||
func (o *GetContractsObservableForbidden) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this get contracts observable forbidden response has a 3xx status code
|
||||
func (o *GetContractsObservableForbidden) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this get contracts observable forbidden response has a 4xx status code
|
||||
func (o *GetContractsObservableForbidden) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this get contracts observable forbidden response has a 5xx status code
|
||||
func (o *GetContractsObservableForbidden) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this get contracts observable forbidden response a status code equal to that given
|
||||
func (o *GetContractsObservableForbidden) IsCode(code int) bool {
|
||||
return code == 403
|
||||
}
|
||||
|
||||
// Code gets the status code for the get contracts observable forbidden response
|
||||
func (o *GetContractsObservableForbidden) Code() int {
|
||||
return 403
|
||||
}
|
||||
|
||||
func (o *GetContractsObservableForbidden) Error() string {
|
||||
return fmt.Sprintf("[GET /contracts/observable][%d] getContractsObservableForbidden %+v", 403, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetContractsObservableForbidden) String() string {
|
||||
return fmt.Sprintf("[GET /contracts/observable][%d] getContractsObservableForbidden %+v", 403, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetContractsObservableForbidden) GetPayload() *crm_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -202,7 +310,8 @@ func NewGetContractsObservableNotFound() *GetContractsObservableNotFound {
|
|||
return &GetContractsObservableNotFound{}
|
||||
}
|
||||
|
||||
/* GetContractsObservableNotFound describes a response with status code 404, with default header values.
|
||||
/*
|
||||
GetContractsObservableNotFound describes a response with status code 404, with default header values.
|
||||
|
||||
Resource was not found
|
||||
*/
|
||||
|
@ -212,9 +321,44 @@ type GetContractsObservableNotFound struct {
|
|||
Payload *crm_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this get contracts observable not found response has a 2xx status code
|
||||
func (o *GetContractsObservableNotFound) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this get contracts observable not found response has a 3xx status code
|
||||
func (o *GetContractsObservableNotFound) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this get contracts observable not found response has a 4xx status code
|
||||
func (o *GetContractsObservableNotFound) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this get contracts observable not found response has a 5xx status code
|
||||
func (o *GetContractsObservableNotFound) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this get contracts observable not found response a status code equal to that given
|
||||
func (o *GetContractsObservableNotFound) IsCode(code int) bool {
|
||||
return code == 404
|
||||
}
|
||||
|
||||
// Code gets the status code for the get contracts observable not found response
|
||||
func (o *GetContractsObservableNotFound) Code() int {
|
||||
return 404
|
||||
}
|
||||
|
||||
func (o *GetContractsObservableNotFound) Error() string {
|
||||
return fmt.Sprintf("[GET /contracts/observable][%d] getContractsObservableNotFound %+v", 404, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetContractsObservableNotFound) String() string {
|
||||
return fmt.Sprintf("[GET /contracts/observable][%d] getContractsObservableNotFound %+v", 404, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetContractsObservableNotFound) GetPayload() *crm_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -243,7 +387,8 @@ func NewGetContractsObservableUnprocessableEntity() *GetContractsObservableUnpro
|
|||
return &GetContractsObservableUnprocessableEntity{}
|
||||
}
|
||||
|
||||
/* GetContractsObservableUnprocessableEntity describes a response with status code 422, with default header values.
|
||||
/*
|
||||
GetContractsObservableUnprocessableEntity describes a response with status code 422, with default header values.
|
||||
|
||||
Unprocessable Entity, likely a bad parameter
|
||||
*/
|
||||
|
@ -253,9 +398,44 @@ type GetContractsObservableUnprocessableEntity struct {
|
|||
Payload *crm_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this get contracts observable unprocessable entity response has a 2xx status code
|
||||
func (o *GetContractsObservableUnprocessableEntity) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this get contracts observable unprocessable entity response has a 3xx status code
|
||||
func (o *GetContractsObservableUnprocessableEntity) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this get contracts observable unprocessable entity response has a 4xx status code
|
||||
func (o *GetContractsObservableUnprocessableEntity) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this get contracts observable unprocessable entity response has a 5xx status code
|
||||
func (o *GetContractsObservableUnprocessableEntity) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this get contracts observable unprocessable entity response a status code equal to that given
|
||||
func (o *GetContractsObservableUnprocessableEntity) IsCode(code int) bool {
|
||||
return code == 422
|
||||
}
|
||||
|
||||
// Code gets the status code for the get contracts observable unprocessable entity response
|
||||
func (o *GetContractsObservableUnprocessableEntity) Code() int {
|
||||
return 422
|
||||
}
|
||||
|
||||
func (o *GetContractsObservableUnprocessableEntity) Error() string {
|
||||
return fmt.Sprintf("[GET /contracts/observable][%d] getContractsObservableUnprocessableEntity %+v", 422, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetContractsObservableUnprocessableEntity) String() string {
|
||||
return fmt.Sprintf("[GET /contracts/observable][%d] getContractsObservableUnprocessableEntity %+v", 422, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetContractsObservableUnprocessableEntity) GetPayload() *crm_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -284,7 +464,8 @@ func NewGetContractsObservableInternalServerError() *GetContractsObservableInter
|
|||
return &GetContractsObservableInternalServerError{}
|
||||
}
|
||||
|
||||
/* GetContractsObservableInternalServerError describes a response with status code 500, with default header values.
|
||||
/*
|
||||
GetContractsObservableInternalServerError describes a response with status code 500, with default header values.
|
||||
|
||||
Server Internal Error
|
||||
*/
|
||||
|
@ -294,9 +475,44 @@ type GetContractsObservableInternalServerError struct {
|
|||
Payload *crm_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this get contracts observable internal server error response has a 2xx status code
|
||||
func (o *GetContractsObservableInternalServerError) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this get contracts observable internal server error response has a 3xx status code
|
||||
func (o *GetContractsObservableInternalServerError) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this get contracts observable internal server error response has a 4xx status code
|
||||
func (o *GetContractsObservableInternalServerError) IsClientError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsServerError returns true when this get contracts observable internal server error response has a 5xx status code
|
||||
func (o *GetContractsObservableInternalServerError) IsServerError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsCode returns true when this get contracts observable internal server error response a status code equal to that given
|
||||
func (o *GetContractsObservableInternalServerError) IsCode(code int) bool {
|
||||
return code == 500
|
||||
}
|
||||
|
||||
// Code gets the status code for the get contracts observable internal server error response
|
||||
func (o *GetContractsObservableInternalServerError) Code() int {
|
||||
return 500
|
||||
}
|
||||
|
||||
func (o *GetContractsObservableInternalServerError) Error() string {
|
||||
return fmt.Sprintf("[GET /contracts/observable][%d] getContractsObservableInternalServerError %+v", 500, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetContractsObservableInternalServerError) String() string {
|
||||
return fmt.Sprintf("[GET /contracts/observable][%d] getContractsObservableInternalServerError %+v", 500, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetContractsObservableInternalServerError) GetPayload() *crm_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
|
|
@ -57,10 +57,12 @@ func NewGetContractsParamsWithHTTPClient(client *http.Client) *GetContractsParam
|
|||
}
|
||||
}
|
||||
|
||||
/* GetContractsParams contains all the parameters to send to the API endpoint
|
||||
for the get contracts operation.
|
||||
/*
|
||||
GetContractsParams contains all the parameters to send to the API endpoint
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
for the get contracts operation.
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
*/
|
||||
type GetContractsParams struct {
|
||||
|
||||
|
|
|
@ -73,7 +73,8 @@ func NewGetContractsOK() *GetContractsOK {
|
|||
return &GetContractsOK{}
|
||||
}
|
||||
|
||||
/* GetContractsOK describes a response with status code 200, with default header values.
|
||||
/*
|
||||
GetContractsOK describes a response with status code 200, with default header values.
|
||||
|
||||
Taxnexus Response with an array of Contract objects
|
||||
*/
|
||||
|
@ -84,9 +85,44 @@ type GetContractsOK struct {
|
|||
Payload *crm_models.ContractResponse
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this get contracts o k response has a 2xx status code
|
||||
func (o *GetContractsOK) IsSuccess() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this get contracts o k response has a 3xx status code
|
||||
func (o *GetContractsOK) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this get contracts o k response has a 4xx status code
|
||||
func (o *GetContractsOK) IsClientError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsServerError returns true when this get contracts o k response has a 5xx status code
|
||||
func (o *GetContractsOK) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this get contracts o k response a status code equal to that given
|
||||
func (o *GetContractsOK) IsCode(code int) bool {
|
||||
return code == 200
|
||||
}
|
||||
|
||||
// Code gets the status code for the get contracts o k response
|
||||
func (o *GetContractsOK) Code() int {
|
||||
return 200
|
||||
}
|
||||
|
||||
func (o *GetContractsOK) Error() string {
|
||||
return fmt.Sprintf("[GET /contracts][%d] getContractsOK %+v", 200, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetContractsOK) String() string {
|
||||
return fmt.Sprintf("[GET /contracts][%d] getContractsOK %+v", 200, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetContractsOK) GetPayload() *crm_models.ContractResponse {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -122,7 +158,8 @@ func NewGetContractsUnauthorized() *GetContractsUnauthorized {
|
|||
return &GetContractsUnauthorized{}
|
||||
}
|
||||
|
||||
/* GetContractsUnauthorized describes a response with status code 401, with default header values.
|
||||
/*
|
||||
GetContractsUnauthorized describes a response with status code 401, with default header values.
|
||||
|
||||
Access unauthorized, invalid API-KEY was used
|
||||
*/
|
||||
|
@ -132,9 +169,44 @@ type GetContractsUnauthorized struct {
|
|||
Payload *crm_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this get contracts unauthorized response has a 2xx status code
|
||||
func (o *GetContractsUnauthorized) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this get contracts unauthorized response has a 3xx status code
|
||||
func (o *GetContractsUnauthorized) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this get contracts unauthorized response has a 4xx status code
|
||||
func (o *GetContractsUnauthorized) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this get contracts unauthorized response has a 5xx status code
|
||||
func (o *GetContractsUnauthorized) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this get contracts unauthorized response a status code equal to that given
|
||||
func (o *GetContractsUnauthorized) IsCode(code int) bool {
|
||||
return code == 401
|
||||
}
|
||||
|
||||
// Code gets the status code for the get contracts unauthorized response
|
||||
func (o *GetContractsUnauthorized) Code() int {
|
||||
return 401
|
||||
}
|
||||
|
||||
func (o *GetContractsUnauthorized) Error() string {
|
||||
return fmt.Sprintf("[GET /contracts][%d] getContractsUnauthorized %+v", 401, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetContractsUnauthorized) String() string {
|
||||
return fmt.Sprintf("[GET /contracts][%d] getContractsUnauthorized %+v", 401, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetContractsUnauthorized) GetPayload() *crm_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -163,7 +235,8 @@ func NewGetContractsForbidden() *GetContractsForbidden {
|
|||
return &GetContractsForbidden{}
|
||||
}
|
||||
|
||||
/* GetContractsForbidden describes a response with status code 403, with default header values.
|
||||
/*
|
||||
GetContractsForbidden describes a response with status code 403, with default header values.
|
||||
|
||||
Access forbidden, account lacks access
|
||||
*/
|
||||
|
@ -173,9 +246,44 @@ type GetContractsForbidden struct {
|
|||
Payload *crm_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this get contracts forbidden response has a 2xx status code
|
||||
func (o *GetContractsForbidden) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this get contracts forbidden response has a 3xx status code
|
||||
func (o *GetContractsForbidden) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this get contracts forbidden response has a 4xx status code
|
||||
func (o *GetContractsForbidden) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this get contracts forbidden response has a 5xx status code
|
||||
func (o *GetContractsForbidden) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this get contracts forbidden response a status code equal to that given
|
||||
func (o *GetContractsForbidden) IsCode(code int) bool {
|
||||
return code == 403
|
||||
}
|
||||
|
||||
// Code gets the status code for the get contracts forbidden response
|
||||
func (o *GetContractsForbidden) Code() int {
|
||||
return 403
|
||||
}
|
||||
|
||||
func (o *GetContractsForbidden) Error() string {
|
||||
return fmt.Sprintf("[GET /contracts][%d] getContractsForbidden %+v", 403, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetContractsForbidden) String() string {
|
||||
return fmt.Sprintf("[GET /contracts][%d] getContractsForbidden %+v", 403, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetContractsForbidden) GetPayload() *crm_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -204,7 +312,8 @@ func NewGetContractsNotFound() *GetContractsNotFound {
|
|||
return &GetContractsNotFound{}
|
||||
}
|
||||
|
||||
/* GetContractsNotFound describes a response with status code 404, with default header values.
|
||||
/*
|
||||
GetContractsNotFound describes a response with status code 404, with default header values.
|
||||
|
||||
Resource was not found
|
||||
*/
|
||||
|
@ -214,9 +323,44 @@ type GetContractsNotFound struct {
|
|||
Payload *crm_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this get contracts not found response has a 2xx status code
|
||||
func (o *GetContractsNotFound) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this get contracts not found response has a 3xx status code
|
||||
func (o *GetContractsNotFound) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this get contracts not found response has a 4xx status code
|
||||
func (o *GetContractsNotFound) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this get contracts not found response has a 5xx status code
|
||||
func (o *GetContractsNotFound) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this get contracts not found response a status code equal to that given
|
||||
func (o *GetContractsNotFound) IsCode(code int) bool {
|
||||
return code == 404
|
||||
}
|
||||
|
||||
// Code gets the status code for the get contracts not found response
|
||||
func (o *GetContractsNotFound) Code() int {
|
||||
return 404
|
||||
}
|
||||
|
||||
func (o *GetContractsNotFound) Error() string {
|
||||
return fmt.Sprintf("[GET /contracts][%d] getContractsNotFound %+v", 404, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetContractsNotFound) String() string {
|
||||
return fmt.Sprintf("[GET /contracts][%d] getContractsNotFound %+v", 404, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetContractsNotFound) GetPayload() *crm_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -245,7 +389,8 @@ func NewGetContractsUnprocessableEntity() *GetContractsUnprocessableEntity {
|
|||
return &GetContractsUnprocessableEntity{}
|
||||
}
|
||||
|
||||
/* GetContractsUnprocessableEntity describes a response with status code 422, with default header values.
|
||||
/*
|
||||
GetContractsUnprocessableEntity describes a response with status code 422, with default header values.
|
||||
|
||||
Unprocessable Entity, likely a bad parameter
|
||||
*/
|
||||
|
@ -255,9 +400,44 @@ type GetContractsUnprocessableEntity struct {
|
|||
Payload *crm_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this get contracts unprocessable entity response has a 2xx status code
|
||||
func (o *GetContractsUnprocessableEntity) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this get contracts unprocessable entity response has a 3xx status code
|
||||
func (o *GetContractsUnprocessableEntity) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this get contracts unprocessable entity response has a 4xx status code
|
||||
func (o *GetContractsUnprocessableEntity) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this get contracts unprocessable entity response has a 5xx status code
|
||||
func (o *GetContractsUnprocessableEntity) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this get contracts unprocessable entity response a status code equal to that given
|
||||
func (o *GetContractsUnprocessableEntity) IsCode(code int) bool {
|
||||
return code == 422
|
||||
}
|
||||
|
||||
// Code gets the status code for the get contracts unprocessable entity response
|
||||
func (o *GetContractsUnprocessableEntity) Code() int {
|
||||
return 422
|
||||
}
|
||||
|
||||
func (o *GetContractsUnprocessableEntity) Error() string {
|
||||
return fmt.Sprintf("[GET /contracts][%d] getContractsUnprocessableEntity %+v", 422, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetContractsUnprocessableEntity) String() string {
|
||||
return fmt.Sprintf("[GET /contracts][%d] getContractsUnprocessableEntity %+v", 422, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetContractsUnprocessableEntity) GetPayload() *crm_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -286,7 +466,8 @@ func NewGetContractsInternalServerError() *GetContractsInternalServerError {
|
|||
return &GetContractsInternalServerError{}
|
||||
}
|
||||
|
||||
/* GetContractsInternalServerError describes a response with status code 500, with default header values.
|
||||
/*
|
||||
GetContractsInternalServerError describes a response with status code 500, with default header values.
|
||||
|
||||
Server Internal Error
|
||||
*/
|
||||
|
@ -296,9 +477,44 @@ type GetContractsInternalServerError struct {
|
|||
Payload *crm_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this get contracts internal server error response has a 2xx status code
|
||||
func (o *GetContractsInternalServerError) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this get contracts internal server error response has a 3xx status code
|
||||
func (o *GetContractsInternalServerError) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this get contracts internal server error response has a 4xx status code
|
||||
func (o *GetContractsInternalServerError) IsClientError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsServerError returns true when this get contracts internal server error response has a 5xx status code
|
||||
func (o *GetContractsInternalServerError) IsServerError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsCode returns true when this get contracts internal server error response a status code equal to that given
|
||||
func (o *GetContractsInternalServerError) IsCode(code int) bool {
|
||||
return code == 500
|
||||
}
|
||||
|
||||
// Code gets the status code for the get contracts internal server error response
|
||||
func (o *GetContractsInternalServerError) Code() int {
|
||||
return 500
|
||||
}
|
||||
|
||||
func (o *GetContractsInternalServerError) Error() string {
|
||||
return fmt.Sprintf("[GET /contracts][%d] getContractsInternalServerError %+v", 500, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetContractsInternalServerError) String() string {
|
||||
return fmt.Sprintf("[GET /contracts][%d] getContractsInternalServerError %+v", 500, o.Payload)
|
||||
}
|
||||
|
||||
func (o *GetContractsInternalServerError) GetPayload() *crm_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
|
|
@ -58,10 +58,12 @@ func NewPostContractsParamsWithHTTPClient(client *http.Client) *PostContractsPar
|
|||
}
|
||||
}
|
||||
|
||||
/* PostContractsParams contains all the parameters to send to the API endpoint
|
||||
for the post contracts operation.
|
||||
/*
|
||||
PostContractsParams contains all the parameters to send to the API endpoint
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
for the post contracts operation.
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
*/
|
||||
type PostContractsParams struct {
|
||||
|
||||
|
|
|
@ -73,7 +73,8 @@ func NewPostContractsOK() *PostContractsOK {
|
|||
return &PostContractsOK{}
|
||||
}
|
||||
|
||||
/* PostContractsOK describes a response with status code 200, with default header values.
|
||||
/*
|
||||
PostContractsOK describes a response with status code 200, with default header values.
|
||||
|
||||
Taxnexus Response with an array of Contract objects
|
||||
*/
|
||||
|
@ -84,9 +85,44 @@ type PostContractsOK struct {
|
|||
Payload *crm_models.ContractResponse
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this post contracts o k response has a 2xx status code
|
||||
func (o *PostContractsOK) IsSuccess() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this post contracts o k response has a 3xx status code
|
||||
func (o *PostContractsOK) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this post contracts o k response has a 4xx status code
|
||||
func (o *PostContractsOK) IsClientError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsServerError returns true when this post contracts o k response has a 5xx status code
|
||||
func (o *PostContractsOK) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this post contracts o k response a status code equal to that given
|
||||
func (o *PostContractsOK) IsCode(code int) bool {
|
||||
return code == 200
|
||||
}
|
||||
|
||||
// Code gets the status code for the post contracts o k response
|
||||
func (o *PostContractsOK) Code() int {
|
||||
return 200
|
||||
}
|
||||
|
||||
func (o *PostContractsOK) Error() string {
|
||||
return fmt.Sprintf("[POST /contracts][%d] postContractsOK %+v", 200, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PostContractsOK) String() string {
|
||||
return fmt.Sprintf("[POST /contracts][%d] postContractsOK %+v", 200, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PostContractsOK) GetPayload() *crm_models.ContractResponse {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -122,7 +158,8 @@ func NewPostContractsUnauthorized() *PostContractsUnauthorized {
|
|||
return &PostContractsUnauthorized{}
|
||||
}
|
||||
|
||||
/* PostContractsUnauthorized describes a response with status code 401, with default header values.
|
||||
/*
|
||||
PostContractsUnauthorized describes a response with status code 401, with default header values.
|
||||
|
||||
Access unauthorized, invalid API-KEY was used
|
||||
*/
|
||||
|
@ -132,9 +169,44 @@ type PostContractsUnauthorized struct {
|
|||
Payload *crm_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this post contracts unauthorized response has a 2xx status code
|
||||
func (o *PostContractsUnauthorized) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this post contracts unauthorized response has a 3xx status code
|
||||
func (o *PostContractsUnauthorized) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this post contracts unauthorized response has a 4xx status code
|
||||
func (o *PostContractsUnauthorized) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this post contracts unauthorized response has a 5xx status code
|
||||
func (o *PostContractsUnauthorized) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this post contracts unauthorized response a status code equal to that given
|
||||
func (o *PostContractsUnauthorized) IsCode(code int) bool {
|
||||
return code == 401
|
||||
}
|
||||
|
||||
// Code gets the status code for the post contracts unauthorized response
|
||||
func (o *PostContractsUnauthorized) Code() int {
|
||||
return 401
|
||||
}
|
||||
|
||||
func (o *PostContractsUnauthorized) Error() string {
|
||||
return fmt.Sprintf("[POST /contracts][%d] postContractsUnauthorized %+v", 401, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PostContractsUnauthorized) String() string {
|
||||
return fmt.Sprintf("[POST /contracts][%d] postContractsUnauthorized %+v", 401, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PostContractsUnauthorized) GetPayload() *crm_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -163,7 +235,8 @@ func NewPostContractsForbidden() *PostContractsForbidden {
|
|||
return &PostContractsForbidden{}
|
||||
}
|
||||
|
||||
/* PostContractsForbidden describes a response with status code 403, with default header values.
|
||||
/*
|
||||
PostContractsForbidden describes a response with status code 403, with default header values.
|
||||
|
||||
Access forbidden, account lacks access
|
||||
*/
|
||||
|
@ -173,9 +246,44 @@ type PostContractsForbidden struct {
|
|||
Payload *crm_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this post contracts forbidden response has a 2xx status code
|
||||
func (o *PostContractsForbidden) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this post contracts forbidden response has a 3xx status code
|
||||
func (o *PostContractsForbidden) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this post contracts forbidden response has a 4xx status code
|
||||
func (o *PostContractsForbidden) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this post contracts forbidden response has a 5xx status code
|
||||
func (o *PostContractsForbidden) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this post contracts forbidden response a status code equal to that given
|
||||
func (o *PostContractsForbidden) IsCode(code int) bool {
|
||||
return code == 403
|
||||
}
|
||||
|
||||
// Code gets the status code for the post contracts forbidden response
|
||||
func (o *PostContractsForbidden) Code() int {
|
||||
return 403
|
||||
}
|
||||
|
||||
func (o *PostContractsForbidden) Error() string {
|
||||
return fmt.Sprintf("[POST /contracts][%d] postContractsForbidden %+v", 403, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PostContractsForbidden) String() string {
|
||||
return fmt.Sprintf("[POST /contracts][%d] postContractsForbidden %+v", 403, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PostContractsForbidden) GetPayload() *crm_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -204,7 +312,8 @@ func NewPostContractsNotFound() *PostContractsNotFound {
|
|||
return &PostContractsNotFound{}
|
||||
}
|
||||
|
||||
/* PostContractsNotFound describes a response with status code 404, with default header values.
|
||||
/*
|
||||
PostContractsNotFound describes a response with status code 404, with default header values.
|
||||
|
||||
Resource was not found
|
||||
*/
|
||||
|
@ -214,9 +323,44 @@ type PostContractsNotFound struct {
|
|||
Payload *crm_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this post contracts not found response has a 2xx status code
|
||||
func (o *PostContractsNotFound) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this post contracts not found response has a 3xx status code
|
||||
func (o *PostContractsNotFound) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this post contracts not found response has a 4xx status code
|
||||
func (o *PostContractsNotFound) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this post contracts not found response has a 5xx status code
|
||||
func (o *PostContractsNotFound) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this post contracts not found response a status code equal to that given
|
||||
func (o *PostContractsNotFound) IsCode(code int) bool {
|
||||
return code == 404
|
||||
}
|
||||
|
||||
// Code gets the status code for the post contracts not found response
|
||||
func (o *PostContractsNotFound) Code() int {
|
||||
return 404
|
||||
}
|
||||
|
||||
func (o *PostContractsNotFound) Error() string {
|
||||
return fmt.Sprintf("[POST /contracts][%d] postContractsNotFound %+v", 404, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PostContractsNotFound) String() string {
|
||||
return fmt.Sprintf("[POST /contracts][%d] postContractsNotFound %+v", 404, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PostContractsNotFound) GetPayload() *crm_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -245,7 +389,8 @@ func NewPostContractsUnprocessableEntity() *PostContractsUnprocessableEntity {
|
|||
return &PostContractsUnprocessableEntity{}
|
||||
}
|
||||
|
||||
/* PostContractsUnprocessableEntity describes a response with status code 422, with default header values.
|
||||
/*
|
||||
PostContractsUnprocessableEntity describes a response with status code 422, with default header values.
|
||||
|
||||
Unprocessable Entity, likely a bad parameter
|
||||
*/
|
||||
|
@ -255,9 +400,44 @@ type PostContractsUnprocessableEntity struct {
|
|||
Payload *crm_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this post contracts unprocessable entity response has a 2xx status code
|
||||
func (o *PostContractsUnprocessableEntity) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this post contracts unprocessable entity response has a 3xx status code
|
||||
func (o *PostContractsUnprocessableEntity) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this post contracts unprocessable entity response has a 4xx status code
|
||||
func (o *PostContractsUnprocessableEntity) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this post contracts unprocessable entity response has a 5xx status code
|
||||
func (o *PostContractsUnprocessableEntity) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this post contracts unprocessable entity response a status code equal to that given
|
||||
func (o *PostContractsUnprocessableEntity) IsCode(code int) bool {
|
||||
return code == 422
|
||||
}
|
||||
|
||||
// Code gets the status code for the post contracts unprocessable entity response
|
||||
func (o *PostContractsUnprocessableEntity) Code() int {
|
||||
return 422
|
||||
}
|
||||
|
||||
func (o *PostContractsUnprocessableEntity) Error() string {
|
||||
return fmt.Sprintf("[POST /contracts][%d] postContractsUnprocessableEntity %+v", 422, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PostContractsUnprocessableEntity) String() string {
|
||||
return fmt.Sprintf("[POST /contracts][%d] postContractsUnprocessableEntity %+v", 422, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PostContractsUnprocessableEntity) GetPayload() *crm_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -286,7 +466,8 @@ func NewPostContractsInternalServerError() *PostContractsInternalServerError {
|
|||
return &PostContractsInternalServerError{}
|
||||
}
|
||||
|
||||
/* PostContractsInternalServerError describes a response with status code 500, with default header values.
|
||||
/*
|
||||
PostContractsInternalServerError describes a response with status code 500, with default header values.
|
||||
|
||||
Server Internal Error
|
||||
*/
|
||||
|
@ -296,9 +477,44 @@ type PostContractsInternalServerError struct {
|
|||
Payload *crm_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this post contracts internal server error response has a 2xx status code
|
||||
func (o *PostContractsInternalServerError) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this post contracts internal server error response has a 3xx status code
|
||||
func (o *PostContractsInternalServerError) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this post contracts internal server error response has a 4xx status code
|
||||
func (o *PostContractsInternalServerError) IsClientError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsServerError returns true when this post contracts internal server error response has a 5xx status code
|
||||
func (o *PostContractsInternalServerError) IsServerError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsCode returns true when this post contracts internal server error response a status code equal to that given
|
||||
func (o *PostContractsInternalServerError) IsCode(code int) bool {
|
||||
return code == 500
|
||||
}
|
||||
|
||||
// Code gets the status code for the post contracts internal server error response
|
||||
func (o *PostContractsInternalServerError) Code() int {
|
||||
return 500
|
||||
}
|
||||
|
||||
func (o *PostContractsInternalServerError) Error() string {
|
||||
return fmt.Sprintf("[POST /contracts][%d] postContractsInternalServerError %+v", 500, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PostContractsInternalServerError) String() string {
|
||||
return fmt.Sprintf("[POST /contracts][%d] postContractsInternalServerError %+v", 500, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PostContractsInternalServerError) GetPayload() *crm_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
|
|
@ -58,10 +58,12 @@ func NewPutContractParamsWithHTTPClient(client *http.Client) *PutContractParams
|
|||
}
|
||||
}
|
||||
|
||||
/* PutContractParams contains all the parameters to send to the API endpoint
|
||||
for the put contract operation.
|
||||
/*
|
||||
PutContractParams contains all the parameters to send to the API endpoint
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
for the put contract operation.
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
*/
|
||||
type PutContractParams struct {
|
||||
|
||||
|
|
|
@ -73,7 +73,8 @@ func NewPutContractOK() *PutContractOK {
|
|||
return &PutContractOK{}
|
||||
}
|
||||
|
||||
/* PutContractOK describes a response with status code 200, with default header values.
|
||||
/*
|
||||
PutContractOK describes a response with status code 200, with default header values.
|
||||
|
||||
Taxnexus Response with an array of Contract objects
|
||||
*/
|
||||
|
@ -84,9 +85,44 @@ type PutContractOK struct {
|
|||
Payload *crm_models.ContractResponse
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this put contract o k response has a 2xx status code
|
||||
func (o *PutContractOK) IsSuccess() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this put contract o k response has a 3xx status code
|
||||
func (o *PutContractOK) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this put contract o k response has a 4xx status code
|
||||
func (o *PutContractOK) IsClientError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsServerError returns true when this put contract o k response has a 5xx status code
|
||||
func (o *PutContractOK) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this put contract o k response a status code equal to that given
|
||||
func (o *PutContractOK) IsCode(code int) bool {
|
||||
return code == 200
|
||||
}
|
||||
|
||||
// Code gets the status code for the put contract o k response
|
||||
func (o *PutContractOK) Code() int {
|
||||
return 200
|
||||
}
|
||||
|
||||
func (o *PutContractOK) Error() string {
|
||||
return fmt.Sprintf("[PUT /contracts][%d] putContractOK %+v", 200, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PutContractOK) String() string {
|
||||
return fmt.Sprintf("[PUT /contracts][%d] putContractOK %+v", 200, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PutContractOK) GetPayload() *crm_models.ContractResponse {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -122,7 +158,8 @@ func NewPutContractUnauthorized() *PutContractUnauthorized {
|
|||
return &PutContractUnauthorized{}
|
||||
}
|
||||
|
||||
/* PutContractUnauthorized describes a response with status code 401, with default header values.
|
||||
/*
|
||||
PutContractUnauthorized describes a response with status code 401, with default header values.
|
||||
|
||||
Access unauthorized, invalid API-KEY was used
|
||||
*/
|
||||
|
@ -132,9 +169,44 @@ type PutContractUnauthorized struct {
|
|||
Payload *crm_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this put contract unauthorized response has a 2xx status code
|
||||
func (o *PutContractUnauthorized) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this put contract unauthorized response has a 3xx status code
|
||||
func (o *PutContractUnauthorized) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this put contract unauthorized response has a 4xx status code
|
||||
func (o *PutContractUnauthorized) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this put contract unauthorized response has a 5xx status code
|
||||
func (o *PutContractUnauthorized) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this put contract unauthorized response a status code equal to that given
|
||||
func (o *PutContractUnauthorized) IsCode(code int) bool {
|
||||
return code == 401
|
||||
}
|
||||
|
||||
// Code gets the status code for the put contract unauthorized response
|
||||
func (o *PutContractUnauthorized) Code() int {
|
||||
return 401
|
||||
}
|
||||
|
||||
func (o *PutContractUnauthorized) Error() string {
|
||||
return fmt.Sprintf("[PUT /contracts][%d] putContractUnauthorized %+v", 401, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PutContractUnauthorized) String() string {
|
||||
return fmt.Sprintf("[PUT /contracts][%d] putContractUnauthorized %+v", 401, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PutContractUnauthorized) GetPayload() *crm_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -163,7 +235,8 @@ func NewPutContractForbidden() *PutContractForbidden {
|
|||
return &PutContractForbidden{}
|
||||
}
|
||||
|
||||
/* PutContractForbidden describes a response with status code 403, with default header values.
|
||||
/*
|
||||
PutContractForbidden describes a response with status code 403, with default header values.
|
||||
|
||||
Access forbidden, account lacks access
|
||||
*/
|
||||
|
@ -173,9 +246,44 @@ type PutContractForbidden struct {
|
|||
Payload *crm_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this put contract forbidden response has a 2xx status code
|
||||
func (o *PutContractForbidden) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this put contract forbidden response has a 3xx status code
|
||||
func (o *PutContractForbidden) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this put contract forbidden response has a 4xx status code
|
||||
func (o *PutContractForbidden) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this put contract forbidden response has a 5xx status code
|
||||
func (o *PutContractForbidden) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this put contract forbidden response a status code equal to that given
|
||||
func (o *PutContractForbidden) IsCode(code int) bool {
|
||||
return code == 403
|
||||
}
|
||||
|
||||
// Code gets the status code for the put contract forbidden response
|
||||
func (o *PutContractForbidden) Code() int {
|
||||
return 403
|
||||
}
|
||||
|
||||
func (o *PutContractForbidden) Error() string {
|
||||
return fmt.Sprintf("[PUT /contracts][%d] putContractForbidden %+v", 403, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PutContractForbidden) String() string {
|
||||
return fmt.Sprintf("[PUT /contracts][%d] putContractForbidden %+v", 403, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PutContractForbidden) GetPayload() *crm_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -204,7 +312,8 @@ func NewPutContractNotFound() *PutContractNotFound {
|
|||
return &PutContractNotFound{}
|
||||
}
|
||||
|
||||
/* PutContractNotFound describes a response with status code 404, with default header values.
|
||||
/*
|
||||
PutContractNotFound describes a response with status code 404, with default header values.
|
||||
|
||||
Resource was not found
|
||||
*/
|
||||
|
@ -214,9 +323,44 @@ type PutContractNotFound struct {
|
|||
Payload *crm_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this put contract not found response has a 2xx status code
|
||||
func (o *PutContractNotFound) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this put contract not found response has a 3xx status code
|
||||
func (o *PutContractNotFound) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this put contract not found response has a 4xx status code
|
||||
func (o *PutContractNotFound) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this put contract not found response has a 5xx status code
|
||||
func (o *PutContractNotFound) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this put contract not found response a status code equal to that given
|
||||
func (o *PutContractNotFound) IsCode(code int) bool {
|
||||
return code == 404
|
||||
}
|
||||
|
||||
// Code gets the status code for the put contract not found response
|
||||
func (o *PutContractNotFound) Code() int {
|
||||
return 404
|
||||
}
|
||||
|
||||
func (o *PutContractNotFound) Error() string {
|
||||
return fmt.Sprintf("[PUT /contracts][%d] putContractNotFound %+v", 404, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PutContractNotFound) String() string {
|
||||
return fmt.Sprintf("[PUT /contracts][%d] putContractNotFound %+v", 404, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PutContractNotFound) GetPayload() *crm_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -245,7 +389,8 @@ func NewPutContractUnprocessableEntity() *PutContractUnprocessableEntity {
|
|||
return &PutContractUnprocessableEntity{}
|
||||
}
|
||||
|
||||
/* PutContractUnprocessableEntity describes a response with status code 422, with default header values.
|
||||
/*
|
||||
PutContractUnprocessableEntity describes a response with status code 422, with default header values.
|
||||
|
||||
Unprocessable Entity, likely a bad parameter
|
||||
*/
|
||||
|
@ -255,9 +400,44 @@ type PutContractUnprocessableEntity struct {
|
|||
Payload *crm_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this put contract unprocessable entity response has a 2xx status code
|
||||
func (o *PutContractUnprocessableEntity) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this put contract unprocessable entity response has a 3xx status code
|
||||
func (o *PutContractUnprocessableEntity) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this put contract unprocessable entity response has a 4xx status code
|
||||
func (o *PutContractUnprocessableEntity) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this put contract unprocessable entity response has a 5xx status code
|
||||
func (o *PutContractUnprocessableEntity) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this put contract unprocessable entity response a status code equal to that given
|
||||
func (o *PutContractUnprocessableEntity) IsCode(code int) bool {
|
||||
return code == 422
|
||||
}
|
||||
|
||||
// Code gets the status code for the put contract unprocessable entity response
|
||||
func (o *PutContractUnprocessableEntity) Code() int {
|
||||
return 422
|
||||
}
|
||||
|
||||
func (o *PutContractUnprocessableEntity) Error() string {
|
||||
return fmt.Sprintf("[PUT /contracts][%d] putContractUnprocessableEntity %+v", 422, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PutContractUnprocessableEntity) String() string {
|
||||
return fmt.Sprintf("[PUT /contracts][%d] putContractUnprocessableEntity %+v", 422, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PutContractUnprocessableEntity) GetPayload() *crm_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -286,7 +466,8 @@ func NewPutContractInternalServerError() *PutContractInternalServerError {
|
|||
return &PutContractInternalServerError{}
|
||||
}
|
||||
|
||||
/* PutContractInternalServerError describes a response with status code 500, with default header values.
|
||||
/*
|
||||
PutContractInternalServerError describes a response with status code 500, with default header values.
|
||||
|
||||
Server Internal Error
|
||||
*/
|
||||
|
@ -296,9 +477,44 @@ type PutContractInternalServerError struct {
|
|||
Payload *crm_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this put contract internal server error response has a 2xx status code
|
||||
func (o *PutContractInternalServerError) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this put contract internal server error response has a 3xx status code
|
||||
func (o *PutContractInternalServerError) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this put contract internal server error response has a 4xx status code
|
||||
func (o *PutContractInternalServerError) IsClientError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsServerError returns true when this put contract internal server error response has a 5xx status code
|
||||
func (o *PutContractInternalServerError) IsServerError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsCode returns true when this put contract internal server error response a status code equal to that given
|
||||
func (o *PutContractInternalServerError) IsCode(code int) bool {
|
||||
return code == 500
|
||||
}
|
||||
|
||||
// Code gets the status code for the put contract internal server error response
|
||||
func (o *PutContractInternalServerError) Code() int {
|
||||
return 500
|
||||
}
|
||||
|
||||
func (o *PutContractInternalServerError) Error() string {
|
||||
return fmt.Sprintf("[PUT /contracts][%d] putContractInternalServerError %+v", 500, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PutContractInternalServerError) String() string {
|
||||
return fmt.Sprintf("[PUT /contracts][%d] putContractInternalServerError %+v", 500, o.Payload)
|
||||
}
|
||||
|
||||
func (o *PutContractInternalServerError) GetPayload() *crm_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
|
|
@ -56,10 +56,12 @@ func NewAccountOptionsObservableParamsWithHTTPClient(client *http.Client) *Accou
|
|||
}
|
||||
}
|
||||
|
||||
/* AccountOptionsObservableParams contains all the parameters to send to the API endpoint
|
||||
for the account options observable operation.
|
||||
/*
|
||||
AccountOptionsObservableParams contains all the parameters to send to the API endpoint
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
for the account options observable operation.
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
*/
|
||||
type AccountOptionsObservableParams struct {
|
||||
timeout time.Duration
|
||||
|
|
|
@ -40,7 +40,8 @@ func NewAccountOptionsObservableOK() *AccountOptionsObservableOK {
|
|||
return &AccountOptionsObservableOK{}
|
||||
}
|
||||
|
||||
/* AccountOptionsObservableOK describes a response with status code 200, with default header values.
|
||||
/*
|
||||
AccountOptionsObservableOK describes a response with status code 200, with default header values.
|
||||
|
||||
CORS OPTIONS response
|
||||
*/
|
||||
|
@ -54,10 +55,44 @@ type AccountOptionsObservableOK struct {
|
|||
CacheControl string
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this account options observable o k response has a 2xx status code
|
||||
func (o *AccountOptionsObservableOK) IsSuccess() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this account options observable o k response has a 3xx status code
|
||||
func (o *AccountOptionsObservableOK) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this account options observable o k response has a 4xx status code
|
||||
func (o *AccountOptionsObservableOK) IsClientError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsServerError returns true when this account options observable o k response has a 5xx status code
|
||||
func (o *AccountOptionsObservableOK) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this account options observable o k response a status code equal to that given
|
||||
func (o *AccountOptionsObservableOK) IsCode(code int) bool {
|
||||
return code == 200
|
||||
}
|
||||
|
||||
// Code gets the status code for the account options observable o k response
|
||||
func (o *AccountOptionsObservableOK) Code() int {
|
||||
return 200
|
||||
}
|
||||
|
||||
func (o *AccountOptionsObservableOK) Error() string {
|
||||
return fmt.Sprintf("[OPTIONS /accounts/observable][%d] accountOptionsObservableOK ", 200)
|
||||
}
|
||||
|
||||
func (o *AccountOptionsObservableOK) String() string {
|
||||
return fmt.Sprintf("[OPTIONS /accounts/observable][%d] accountOptionsObservableOK ", 200)
|
||||
}
|
||||
|
||||
func (o *AccountOptionsObservableOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
||||
|
||||
// hydrates response header Access-Control-Allow-Credentials
|
||||
|
|
|
@ -56,10 +56,12 @@ func NewAccountOptionsParamsWithHTTPClient(client *http.Client) *AccountOptionsP
|
|||
}
|
||||
}
|
||||
|
||||
/* AccountOptionsParams contains all the parameters to send to the API endpoint
|
||||
for the account options operation.
|
||||
/*
|
||||
AccountOptionsParams contains all the parameters to send to the API endpoint
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
for the account options operation.
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
*/
|
||||
type AccountOptionsParams struct {
|
||||
timeout time.Duration
|
||||
|
|
|
@ -40,7 +40,8 @@ func NewAccountOptionsOK() *AccountOptionsOK {
|
|||
return &AccountOptionsOK{}
|
||||
}
|
||||
|
||||
/* AccountOptionsOK describes a response with status code 200, with default header values.
|
||||
/*
|
||||
AccountOptionsOK describes a response with status code 200, with default header values.
|
||||
|
||||
CORS OPTIONS response
|
||||
*/
|
||||
|
@ -54,10 +55,44 @@ type AccountOptionsOK struct {
|
|||
CacheControl string
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this account options o k response has a 2xx status code
|
||||
func (o *AccountOptionsOK) IsSuccess() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this account options o k response has a 3xx status code
|
||||
func (o *AccountOptionsOK) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this account options o k response has a 4xx status code
|
||||
func (o *AccountOptionsOK) IsClientError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsServerError returns true when this account options o k response has a 5xx status code
|
||||
func (o *AccountOptionsOK) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this account options o k response a status code equal to that given
|
||||
func (o *AccountOptionsOK) IsCode(code int) bool {
|
||||
return code == 200
|
||||
}
|
||||
|
||||
// Code gets the status code for the account options o k response
|
||||
func (o *AccountOptionsOK) Code() int {
|
||||
return 200
|
||||
}
|
||||
|
||||
func (o *AccountOptionsOK) Error() string {
|
||||
return fmt.Sprintf("[OPTIONS /accounts][%d] accountOptionsOK ", 200)
|
||||
}
|
||||
|
||||
func (o *AccountOptionsOK) String() string {
|
||||
return fmt.Sprintf("[OPTIONS /accounts][%d] accountOptionsOK ", 200)
|
||||
}
|
||||
|
||||
func (o *AccountOptionsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
||||
|
||||
// hydrates response header Access-Control-Allow-Credentials
|
||||
|
|
|
@ -56,10 +56,12 @@ func NewAssetOptionsObservableParamsWithHTTPClient(client *http.Client) *AssetOp
|
|||
}
|
||||
}
|
||||
|
||||
/* AssetOptionsObservableParams contains all the parameters to send to the API endpoint
|
||||
for the asset options observable operation.
|
||||
/*
|
||||
AssetOptionsObservableParams contains all the parameters to send to the API endpoint
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
for the asset options observable operation.
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
*/
|
||||
type AssetOptionsObservableParams struct {
|
||||
timeout time.Duration
|
||||
|
|
|
@ -40,7 +40,8 @@ func NewAssetOptionsObservableOK() *AssetOptionsObservableOK {
|
|||
return &AssetOptionsObservableOK{}
|
||||
}
|
||||
|
||||
/* AssetOptionsObservableOK describes a response with status code 200, with default header values.
|
||||
/*
|
||||
AssetOptionsObservableOK describes a response with status code 200, with default header values.
|
||||
|
||||
CORS OPTIONS response
|
||||
*/
|
||||
|
@ -54,10 +55,44 @@ type AssetOptionsObservableOK struct {
|
|||
CacheControl string
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this asset options observable o k response has a 2xx status code
|
||||
func (o *AssetOptionsObservableOK) IsSuccess() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this asset options observable o k response has a 3xx status code
|
||||
func (o *AssetOptionsObservableOK) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this asset options observable o k response has a 4xx status code
|
||||
func (o *AssetOptionsObservableOK) IsClientError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsServerError returns true when this asset options observable o k response has a 5xx status code
|
||||
func (o *AssetOptionsObservableOK) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this asset options observable o k response a status code equal to that given
|
||||
func (o *AssetOptionsObservableOK) IsCode(code int) bool {
|
||||
return code == 200
|
||||
}
|
||||
|
||||
// Code gets the status code for the asset options observable o k response
|
||||
func (o *AssetOptionsObservableOK) Code() int {
|
||||
return 200
|
||||
}
|
||||
|
||||
func (o *AssetOptionsObservableOK) Error() string {
|
||||
return fmt.Sprintf("[OPTIONS /assets/observable][%d] assetOptionsObservableOK ", 200)
|
||||
}
|
||||
|
||||
func (o *AssetOptionsObservableOK) String() string {
|
||||
return fmt.Sprintf("[OPTIONS /assets/observable][%d] assetOptionsObservableOK ", 200)
|
||||
}
|
||||
|
||||
func (o *AssetOptionsObservableOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
||||
|
||||
// hydrates response header Access-Control-Allow-Credentials
|
||||
|
|
|
@ -56,10 +56,12 @@ func NewAssetOptionsParamsWithHTTPClient(client *http.Client) *AssetOptionsParam
|
|||
}
|
||||
}
|
||||
|
||||
/* AssetOptionsParams contains all the parameters to send to the API endpoint
|
||||
for the asset options operation.
|
||||
/*
|
||||
AssetOptionsParams contains all the parameters to send to the API endpoint
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
for the asset options operation.
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
*/
|
||||
type AssetOptionsParams struct {
|
||||
timeout time.Duration
|
||||
|
|
|
@ -40,7 +40,8 @@ func NewAssetOptionsOK() *AssetOptionsOK {
|
|||
return &AssetOptionsOK{}
|
||||
}
|
||||
|
||||
/* AssetOptionsOK describes a response with status code 200, with default header values.
|
||||
/*
|
||||
AssetOptionsOK describes a response with status code 200, with default header values.
|
||||
|
||||
CORS OPTIONS response
|
||||
*/
|
||||
|
@ -54,10 +55,44 @@ type AssetOptionsOK struct {
|
|||
CacheControl string
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this asset options o k response has a 2xx status code
|
||||
func (o *AssetOptionsOK) IsSuccess() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this asset options o k response has a 3xx status code
|
||||
func (o *AssetOptionsOK) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this asset options o k response has a 4xx status code
|
||||
func (o *AssetOptionsOK) IsClientError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsServerError returns true when this asset options o k response has a 5xx status code
|
||||
func (o *AssetOptionsOK) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this asset options o k response a status code equal to that given
|
||||
func (o *AssetOptionsOK) IsCode(code int) bool {
|
||||
return code == 200
|
||||
}
|
||||
|
||||
// Code gets the status code for the asset options o k response
|
||||
func (o *AssetOptionsOK) Code() int {
|
||||
return 200
|
||||
}
|
||||
|
||||
func (o *AssetOptionsOK) Error() string {
|
||||
return fmt.Sprintf("[OPTIONS /assets][%d] assetOptionsOK ", 200)
|
||||
}
|
||||
|
||||
func (o *AssetOptionsOK) String() string {
|
||||
return fmt.Sprintf("[OPTIONS /assets][%d] assetOptionsOK ", 200)
|
||||
}
|
||||
|
||||
func (o *AssetOptionsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
||||
|
||||
// hydrates response header Access-Control-Allow-Credentials
|
||||
|
|
|
@ -56,10 +56,12 @@ func NewContactOptionsObservableParamsWithHTTPClient(client *http.Client) *Conta
|
|||
}
|
||||
}
|
||||
|
||||
/* ContactOptionsObservableParams contains all the parameters to send to the API endpoint
|
||||
for the contact options observable operation.
|
||||
/*
|
||||
ContactOptionsObservableParams contains all the parameters to send to the API endpoint
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
for the contact options observable operation.
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
*/
|
||||
type ContactOptionsObservableParams struct {
|
||||
timeout time.Duration
|
||||
|
|
|
@ -40,7 +40,8 @@ func NewContactOptionsObservableOK() *ContactOptionsObservableOK {
|
|||
return &ContactOptionsObservableOK{}
|
||||
}
|
||||
|
||||
/* ContactOptionsObservableOK describes a response with status code 200, with default header values.
|
||||
/*
|
||||
ContactOptionsObservableOK describes a response with status code 200, with default header values.
|
||||
|
||||
CORS OPTIONS response
|
||||
*/
|
||||
|
@ -54,10 +55,44 @@ type ContactOptionsObservableOK struct {
|
|||
CacheControl string
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this contact options observable o k response has a 2xx status code
|
||||
func (o *ContactOptionsObservableOK) IsSuccess() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this contact options observable o k response has a 3xx status code
|
||||
func (o *ContactOptionsObservableOK) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this contact options observable o k response has a 4xx status code
|
||||
func (o *ContactOptionsObservableOK) IsClientError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsServerError returns true when this contact options observable o k response has a 5xx status code
|
||||
func (o *ContactOptionsObservableOK) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this contact options observable o k response a status code equal to that given
|
||||
func (o *ContactOptionsObservableOK) IsCode(code int) bool {
|
||||
return code == 200
|
||||
}
|
||||
|
||||
// Code gets the status code for the contact options observable o k response
|
||||
func (o *ContactOptionsObservableOK) Code() int {
|
||||
return 200
|
||||
}
|
||||
|
||||
func (o *ContactOptionsObservableOK) Error() string {
|
||||
return fmt.Sprintf("[OPTIONS /contacts/observable][%d] contactOptionsObservableOK ", 200)
|
||||
}
|
||||
|
||||
func (o *ContactOptionsObservableOK) String() string {
|
||||
return fmt.Sprintf("[OPTIONS /contacts/observable][%d] contactOptionsObservableOK ", 200)
|
||||
}
|
||||
|
||||
func (o *ContactOptionsObservableOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
||||
|
||||
// hydrates response header Access-Control-Allow-Credentials
|
||||
|
|
|
@ -56,10 +56,12 @@ func NewContactOptionsParamsWithHTTPClient(client *http.Client) *ContactOptionsP
|
|||
}
|
||||
}
|
||||
|
||||
/* ContactOptionsParams contains all the parameters to send to the API endpoint
|
||||
for the contact options operation.
|
||||
/*
|
||||
ContactOptionsParams contains all the parameters to send to the API endpoint
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
for the contact options operation.
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
*/
|
||||
type ContactOptionsParams struct {
|
||||
timeout time.Duration
|
||||
|
|
|
@ -40,7 +40,8 @@ func NewContactOptionsOK() *ContactOptionsOK {
|
|||
return &ContactOptionsOK{}
|
||||
}
|
||||
|
||||
/* ContactOptionsOK describes a response with status code 200, with default header values.
|
||||
/*
|
||||
ContactOptionsOK describes a response with status code 200, with default header values.
|
||||
|
||||
CORS OPTIONS response
|
||||
*/
|
||||
|
@ -54,10 +55,44 @@ type ContactOptionsOK struct {
|
|||
CacheControl string
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this contact options o k response has a 2xx status code
|
||||
func (o *ContactOptionsOK) IsSuccess() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this contact options o k response has a 3xx status code
|
||||
func (o *ContactOptionsOK) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this contact options o k response has a 4xx status code
|
||||
func (o *ContactOptionsOK) IsClientError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsServerError returns true when this contact options o k response has a 5xx status code
|
||||
func (o *ContactOptionsOK) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this contact options o k response a status code equal to that given
|
||||
func (o *ContactOptionsOK) IsCode(code int) bool {
|
||||
return code == 200
|
||||
}
|
||||
|
||||
// Code gets the status code for the contact options o k response
|
||||
func (o *ContactOptionsOK) Code() int {
|
||||
return 200
|
||||
}
|
||||
|
||||
func (o *ContactOptionsOK) Error() string {
|
||||
return fmt.Sprintf("[OPTIONS /contacts][%d] contactOptionsOK ", 200)
|
||||
}
|
||||
|
||||
func (o *ContactOptionsOK) String() string {
|
||||
return fmt.Sprintf("[OPTIONS /contacts][%d] contactOptionsOK ", 200)
|
||||
}
|
||||
|
||||
func (o *ContactOptionsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
||||
|
||||
// hydrates response header Access-Control-Allow-Credentials
|
||||
|
|
|
@ -56,10 +56,12 @@ func NewContractOptionsObservableParamsWithHTTPClient(client *http.Client) *Cont
|
|||
}
|
||||
}
|
||||
|
||||
/* ContractOptionsObservableParams contains all the parameters to send to the API endpoint
|
||||
for the contract options observable operation.
|
||||
/*
|
||||
ContractOptionsObservableParams contains all the parameters to send to the API endpoint
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
for the contract options observable operation.
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
*/
|
||||
type ContractOptionsObservableParams struct {
|
||||
timeout time.Duration
|
||||
|
|
|
@ -40,7 +40,8 @@ func NewContractOptionsObservableOK() *ContractOptionsObservableOK {
|
|||
return &ContractOptionsObservableOK{}
|
||||
}
|
||||
|
||||
/* ContractOptionsObservableOK describes a response with status code 200, with default header values.
|
||||
/*
|
||||
ContractOptionsObservableOK describes a response with status code 200, with default header values.
|
||||
|
||||
CORS OPTIONS response
|
||||
*/
|
||||
|
@ -54,10 +55,44 @@ type ContractOptionsObservableOK struct {
|
|||
CacheControl string
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this contract options observable o k response has a 2xx status code
|
||||
func (o *ContractOptionsObservableOK) IsSuccess() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this contract options observable o k response has a 3xx status code
|
||||
func (o *ContractOptionsObservableOK) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this contract options observable o k response has a 4xx status code
|
||||
func (o *ContractOptionsObservableOK) IsClientError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsServerError returns true when this contract options observable o k response has a 5xx status code
|
||||
func (o *ContractOptionsObservableOK) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this contract options observable o k response a status code equal to that given
|
||||
func (o *ContractOptionsObservableOK) IsCode(code int) bool {
|
||||
return code == 200
|
||||
}
|
||||
|
||||
// Code gets the status code for the contract options observable o k response
|
||||
func (o *ContractOptionsObservableOK) Code() int {
|
||||
return 200
|
||||
}
|
||||
|
||||
func (o *ContractOptionsObservableOK) Error() string {
|
||||
return fmt.Sprintf("[OPTIONS /contracts/observable][%d] contractOptionsObservableOK ", 200)
|
||||
}
|
||||
|
||||
func (o *ContractOptionsObservableOK) String() string {
|
||||
return fmt.Sprintf("[OPTIONS /contracts/observable][%d] contractOptionsObservableOK ", 200)
|
||||
}
|
||||
|
||||
func (o *ContractOptionsObservableOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
||||
|
||||
// hydrates response header Access-Control-Allow-Credentials
|
||||
|
|
|
@ -56,10 +56,12 @@ func NewContractOptionsParamsWithHTTPClient(client *http.Client) *ContractOption
|
|||
}
|
||||
}
|
||||
|
||||
/* ContractOptionsParams contains all the parameters to send to the API endpoint
|
||||
for the contract options operation.
|
||||
/*
|
||||
ContractOptionsParams contains all the parameters to send to the API endpoint
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
for the contract options operation.
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
*/
|
||||
type ContractOptionsParams struct {
|
||||
timeout time.Duration
|
||||
|
|
|
@ -40,7 +40,8 @@ func NewContractOptionsOK() *ContractOptionsOK {
|
|||
return &ContractOptionsOK{}
|
||||
}
|
||||
|
||||
/* ContractOptionsOK describes a response with status code 200, with default header values.
|
||||
/*
|
||||
ContractOptionsOK describes a response with status code 200, with default header values.
|
||||
|
||||
CORS OPTIONS response
|
||||
*/
|
||||
|
@ -54,10 +55,44 @@ type ContractOptionsOK struct {
|
|||
CacheControl string
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this contract options o k response has a 2xx status code
|
||||
func (o *ContractOptionsOK) IsSuccess() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this contract options o k response has a 3xx status code
|
||||
func (o *ContractOptionsOK) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this contract options o k response has a 4xx status code
|
||||
func (o *ContractOptionsOK) IsClientError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsServerError returns true when this contract options o k response has a 5xx status code
|
||||
func (o *ContractOptionsOK) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this contract options o k response a status code equal to that given
|
||||
func (o *ContractOptionsOK) IsCode(code int) bool {
|
||||
return code == 200
|
||||
}
|
||||
|
||||
// Code gets the status code for the contract options o k response
|
||||
func (o *ContractOptionsOK) Code() int {
|
||||
return 200
|
||||
}
|
||||
|
||||
func (o *ContractOptionsOK) Error() string {
|
||||
return fmt.Sprintf("[OPTIONS /contracts][%d] contractOptionsOK ", 200)
|
||||
}
|
||||
|
||||
func (o *ContractOptionsOK) String() string {
|
||||
return fmt.Sprintf("[OPTIONS /contracts][%d] contractOptionsOK ", 200)
|
||||
}
|
||||
|
||||
func (o *ContractOptionsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
||||
|
||||
// hydrates response header Access-Control-Allow-Credentials
|
||||
|
|
|
@ -58,7 +58,7 @@ type ClientService interface {
|
|||
}
|
||||
|
||||
/*
|
||||
AccountOptions CORS support
|
||||
AccountOptions CORS support
|
||||
*/
|
||||
func (a *Client) AccountOptions(params *AccountOptionsParams, opts ...ClientOption) (*AccountOptionsOK, error) {
|
||||
// TODO: Validate the params before sending
|
||||
|
@ -96,7 +96,7 @@ func (a *Client) AccountOptions(params *AccountOptionsParams, opts ...ClientOpti
|
|||
}
|
||||
|
||||
/*
|
||||
AccountOptionsObservable CORS support
|
||||
AccountOptionsObservable CORS support
|
||||
*/
|
||||
func (a *Client) AccountOptionsObservable(params *AccountOptionsObservableParams, opts ...ClientOption) (*AccountOptionsObservableOK, error) {
|
||||
// TODO: Validate the params before sending
|
||||
|
@ -134,7 +134,7 @@ func (a *Client) AccountOptionsObservable(params *AccountOptionsObservableParams
|
|||
}
|
||||
|
||||
/*
|
||||
AssetOptions CORS support
|
||||
AssetOptions CORS support
|
||||
*/
|
||||
func (a *Client) AssetOptions(params *AssetOptionsParams, opts ...ClientOption) (*AssetOptionsOK, error) {
|
||||
// TODO: Validate the params before sending
|
||||
|
@ -172,7 +172,7 @@ func (a *Client) AssetOptions(params *AssetOptionsParams, opts ...ClientOption)
|
|||
}
|
||||
|
||||
/*
|
||||
AssetOptionsObservable CORS support
|
||||
AssetOptionsObservable CORS support
|
||||
*/
|
||||
func (a *Client) AssetOptionsObservable(params *AssetOptionsObservableParams, opts ...ClientOption) (*AssetOptionsObservableOK, error) {
|
||||
// TODO: Validate the params before sending
|
||||
|
@ -210,7 +210,7 @@ func (a *Client) AssetOptionsObservable(params *AssetOptionsObservableParams, op
|
|||
}
|
||||
|
||||
/*
|
||||
ContactOptions CORS support
|
||||
ContactOptions CORS support
|
||||
*/
|
||||
func (a *Client) ContactOptions(params *ContactOptionsParams, opts ...ClientOption) (*ContactOptionsOK, error) {
|
||||
// TODO: Validate the params before sending
|
||||
|
@ -248,7 +248,7 @@ func (a *Client) ContactOptions(params *ContactOptionsParams, opts ...ClientOpti
|
|||
}
|
||||
|
||||
/*
|
||||
ContactOptionsObservable CORS support
|
||||
ContactOptionsObservable CORS support
|
||||
*/
|
||||
func (a *Client) ContactOptionsObservable(params *ContactOptionsObservableParams, opts ...ClientOption) (*ContactOptionsObservableOK, error) {
|
||||
// TODO: Validate the params before sending
|
||||
|
@ -286,7 +286,7 @@ func (a *Client) ContactOptionsObservable(params *ContactOptionsObservableParams
|
|||
}
|
||||
|
||||
/*
|
||||
ContractOptions CORS support
|
||||
ContractOptions CORS support
|
||||
*/
|
||||
func (a *Client) ContractOptions(params *ContractOptionsParams, opts ...ClientOption) (*ContractOptionsOK, error) {
|
||||
// TODO: Validate the params before sending
|
||||
|
@ -324,7 +324,7 @@ func (a *Client) ContractOptions(params *ContractOptionsParams, opts ...ClientOp
|
|||
}
|
||||
|
||||
/*
|
||||
ContractOptionsObservable CORS support
|
||||
ContractOptionsObservable CORS support
|
||||
*/
|
||||
func (a *Client) ContractOptionsObservable(params *ContractOptionsObservableParams, opts ...ClientOption) (*ContractOptionsObservableOK, error) {
|
||||
// TODO: Validate the params before sending
|
||||
|
@ -362,7 +362,7 @@ func (a *Client) ContractOptionsObservable(params *ContractOptionsObservablePara
|
|||
}
|
||||
|
||||
/*
|
||||
LeadOptions CORS support
|
||||
LeadOptions CORS support
|
||||
*/
|
||||
func (a *Client) LeadOptions(params *LeadOptionsParams, opts ...ClientOption) (*LeadOptionsOK, error) {
|
||||
// TODO: Validate the params before sending
|
||||
|
@ -400,7 +400,7 @@ func (a *Client) LeadOptions(params *LeadOptionsParams, opts ...ClientOption) (*
|
|||
}
|
||||
|
||||
/*
|
||||
LeadOptionsObservable CORS support
|
||||
LeadOptionsObservable CORS support
|
||||
*/
|
||||
func (a *Client) LeadOptionsObservable(params *LeadOptionsObservableParams, opts ...ClientOption) (*LeadOptionsObservableOK, error) {
|
||||
// TODO: Validate the params before sending
|
||||
|
|
|
@ -56,10 +56,12 @@ func NewLeadOptionsObservableParamsWithHTTPClient(client *http.Client) *LeadOpti
|
|||
}
|
||||
}
|
||||
|
||||
/* LeadOptionsObservableParams contains all the parameters to send to the API endpoint
|
||||
for the lead options observable operation.
|
||||
/*
|
||||
LeadOptionsObservableParams contains all the parameters to send to the API endpoint
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
for the lead options observable operation.
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
*/
|
||||
type LeadOptionsObservableParams struct {
|
||||
timeout time.Duration
|
||||
|
|
|
@ -40,7 +40,8 @@ func NewLeadOptionsObservableOK() *LeadOptionsObservableOK {
|
|||
return &LeadOptionsObservableOK{}
|
||||
}
|
||||
|
||||
/* LeadOptionsObservableOK describes a response with status code 200, with default header values.
|
||||
/*
|
||||
LeadOptionsObservableOK describes a response with status code 200, with default header values.
|
||||
|
||||
CORS OPTIONS response
|
||||
*/
|
||||
|
@ -54,10 +55,44 @@ type LeadOptionsObservableOK struct {
|
|||
CacheControl string
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this lead options observable o k response has a 2xx status code
|
||||
func (o *LeadOptionsObservableOK) IsSuccess() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this lead options observable o k response has a 3xx status code
|
||||
func (o *LeadOptionsObservableOK) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this lead options observable o k response has a 4xx status code
|
||||
func (o *LeadOptionsObservableOK) IsClientError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsServerError returns true when this lead options observable o k response has a 5xx status code
|
||||
func (o *LeadOptionsObservableOK) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this lead options observable o k response a status code equal to that given
|
||||
func (o *LeadOptionsObservableOK) IsCode(code int) bool {
|
||||
return code == 200
|
||||
}
|
||||
|
||||
// Code gets the status code for the lead options observable o k response
|
||||
func (o *LeadOptionsObservableOK) Code() int {
|
||||
return 200
|
||||
}
|
||||
|
||||
func (o *LeadOptionsObservableOK) Error() string {
|
||||
return fmt.Sprintf("[OPTIONS /leads/observable][%d] leadOptionsObservableOK ", 200)
|
||||
}
|
||||
|
||||
func (o *LeadOptionsObservableOK) String() string {
|
||||
return fmt.Sprintf("[OPTIONS /leads/observable][%d] leadOptionsObservableOK ", 200)
|
||||
}
|
||||
|
||||
func (o *LeadOptionsObservableOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
||||
|
||||
// hydrates response header Access-Control-Allow-Credentials
|
||||
|
|
|
@ -56,10 +56,12 @@ func NewLeadOptionsParamsWithHTTPClient(client *http.Client) *LeadOptionsParams
|
|||
}
|
||||
}
|
||||
|
||||
/* LeadOptionsParams contains all the parameters to send to the API endpoint
|
||||
for the lead options operation.
|
||||
/*
|
||||
LeadOptionsParams contains all the parameters to send to the API endpoint
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
for the lead options operation.
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
*/
|
||||
type LeadOptionsParams struct {
|
||||
timeout time.Duration
|
||||
|
|
|
@ -40,7 +40,8 @@ func NewLeadOptionsOK() *LeadOptionsOK {
|
|||
return &LeadOptionsOK{}
|
||||
}
|
||||
|
||||
/* LeadOptionsOK describes a response with status code 200, with default header values.
|
||||
/*
|
||||
LeadOptionsOK describes a response with status code 200, with default header values.
|
||||
|
||||
CORS OPTIONS response
|
||||
*/
|
||||
|
@ -54,10 +55,44 @@ type LeadOptionsOK struct {
|
|||
CacheControl string
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this lead options o k response has a 2xx status code
|
||||
func (o *LeadOptionsOK) IsSuccess() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this lead options o k response has a 3xx status code
|
||||
func (o *LeadOptionsOK) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this lead options o k response has a 4xx status code
|
||||
func (o *LeadOptionsOK) IsClientError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsServerError returns true when this lead options o k response has a 5xx status code
|
||||
func (o *LeadOptionsOK) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this lead options o k response a status code equal to that given
|
||||
func (o *LeadOptionsOK) IsCode(code int) bool {
|
||||
return code == 200
|
||||
}
|
||||
|
||||
// Code gets the status code for the lead options o k response
|
||||
func (o *LeadOptionsOK) Code() int {
|
||||
return 200
|
||||
}
|
||||
|
||||
func (o *LeadOptionsOK) Error() string {
|
||||
return fmt.Sprintf("[OPTIONS /leads][%d] leadOptionsOK ", 200)
|
||||
}
|
||||
|
||||
func (o *LeadOptionsOK) String() string {
|
||||
return fmt.Sprintf("[OPTIONS /leads][%d] leadOptionsOK ", 200)
|
||||
}
|
||||
|
||||
func (o *LeadOptionsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
|
||||
|
||||
// hydrates response header Access-Control-Allow-Credentials
|
||||
|
|
|
@ -56,10 +56,12 @@ func NewDeleteLeadParamsWithHTTPClient(client *http.Client) *DeleteLeadParams {
|
|||
}
|
||||
}
|
||||
|
||||
/* DeleteLeadParams contains all the parameters to send to the API endpoint
|
||||
for the delete lead operation.
|
||||
/*
|
||||
DeleteLeadParams contains all the parameters to send to the API endpoint
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
for the delete lead operation.
|
||||
|
||||
Typically these are written to a http.Request.
|
||||
*/
|
||||
type DeleteLeadParams struct {
|
||||
|
||||
|
|
|
@ -73,7 +73,8 @@ func NewDeleteLeadOK() *DeleteLeadOK {
|
|||
return &DeleteLeadOK{}
|
||||
}
|
||||
|
||||
/* DeleteLeadOK describes a response with status code 200, with default header values.
|
||||
/*
|
||||
DeleteLeadOK describes a response with status code 200, with default header values.
|
||||
|
||||
Taxnexus Response with Message Objects with Delete Status
|
||||
*/
|
||||
|
@ -83,9 +84,44 @@ type DeleteLeadOK struct {
|
|||
Payload *crm_models.DeleteResponse
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this delete lead o k response has a 2xx status code
|
||||
func (o *DeleteLeadOK) IsSuccess() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this delete lead o k response has a 3xx status code
|
||||
func (o *DeleteLeadOK) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this delete lead o k response has a 4xx status code
|
||||
func (o *DeleteLeadOK) IsClientError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsServerError returns true when this delete lead o k response has a 5xx status code
|
||||
func (o *DeleteLeadOK) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this delete lead o k response a status code equal to that given
|
||||
func (o *DeleteLeadOK) IsCode(code int) bool {
|
||||
return code == 200
|
||||
}
|
||||
|
||||
// Code gets the status code for the delete lead o k response
|
||||
func (o *DeleteLeadOK) Code() int {
|
||||
return 200
|
||||
}
|
||||
|
||||
func (o *DeleteLeadOK) Error() string {
|
||||
return fmt.Sprintf("[DELETE /leads][%d] deleteLeadOK %+v", 200, o.Payload)
|
||||
}
|
||||
|
||||
func (o *DeleteLeadOK) String() string {
|
||||
return fmt.Sprintf("[DELETE /leads][%d] deleteLeadOK %+v", 200, o.Payload)
|
||||
}
|
||||
|
||||
func (o *DeleteLeadOK) GetPayload() *crm_models.DeleteResponse {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -114,7 +150,8 @@ func NewDeleteLeadUnauthorized() *DeleteLeadUnauthorized {
|
|||
return &DeleteLeadUnauthorized{}
|
||||
}
|
||||
|
||||
/* DeleteLeadUnauthorized describes a response with status code 401, with default header values.
|
||||
/*
|
||||
DeleteLeadUnauthorized describes a response with status code 401, with default header values.
|
||||
|
||||
Access unauthorized, invalid API-KEY was used
|
||||
*/
|
||||
|
@ -124,9 +161,44 @@ type DeleteLeadUnauthorized struct {
|
|||
Payload *crm_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this delete lead unauthorized response has a 2xx status code
|
||||
func (o *DeleteLeadUnauthorized) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this delete lead unauthorized response has a 3xx status code
|
||||
func (o *DeleteLeadUnauthorized) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this delete lead unauthorized response has a 4xx status code
|
||||
func (o *DeleteLeadUnauthorized) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this delete lead unauthorized response has a 5xx status code
|
||||
func (o *DeleteLeadUnauthorized) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this delete lead unauthorized response a status code equal to that given
|
||||
func (o *DeleteLeadUnauthorized) IsCode(code int) bool {
|
||||
return code == 401
|
||||
}
|
||||
|
||||
// Code gets the status code for the delete lead unauthorized response
|
||||
func (o *DeleteLeadUnauthorized) Code() int {
|
||||
return 401
|
||||
}
|
||||
|
||||
func (o *DeleteLeadUnauthorized) Error() string {
|
||||
return fmt.Sprintf("[DELETE /leads][%d] deleteLeadUnauthorized %+v", 401, o.Payload)
|
||||
}
|
||||
|
||||
func (o *DeleteLeadUnauthorized) String() string {
|
||||
return fmt.Sprintf("[DELETE /leads][%d] deleteLeadUnauthorized %+v", 401, o.Payload)
|
||||
}
|
||||
|
||||
func (o *DeleteLeadUnauthorized) GetPayload() *crm_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -155,7 +227,8 @@ func NewDeleteLeadForbidden() *DeleteLeadForbidden {
|
|||
return &DeleteLeadForbidden{}
|
||||
}
|
||||
|
||||
/* DeleteLeadForbidden describes a response with status code 403, with default header values.
|
||||
/*
|
||||
DeleteLeadForbidden describes a response with status code 403, with default header values.
|
||||
|
||||
Access forbidden, account lacks access
|
||||
*/
|
||||
|
@ -165,9 +238,44 @@ type DeleteLeadForbidden struct {
|
|||
Payload *crm_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this delete lead forbidden response has a 2xx status code
|
||||
func (o *DeleteLeadForbidden) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this delete lead forbidden response has a 3xx status code
|
||||
func (o *DeleteLeadForbidden) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this delete lead forbidden response has a 4xx status code
|
||||
func (o *DeleteLeadForbidden) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this delete lead forbidden response has a 5xx status code
|
||||
func (o *DeleteLeadForbidden) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this delete lead forbidden response a status code equal to that given
|
||||
func (o *DeleteLeadForbidden) IsCode(code int) bool {
|
||||
return code == 403
|
||||
}
|
||||
|
||||
// Code gets the status code for the delete lead forbidden response
|
||||
func (o *DeleteLeadForbidden) Code() int {
|
||||
return 403
|
||||
}
|
||||
|
||||
func (o *DeleteLeadForbidden) Error() string {
|
||||
return fmt.Sprintf("[DELETE /leads][%d] deleteLeadForbidden %+v", 403, o.Payload)
|
||||
}
|
||||
|
||||
func (o *DeleteLeadForbidden) String() string {
|
||||
return fmt.Sprintf("[DELETE /leads][%d] deleteLeadForbidden %+v", 403, o.Payload)
|
||||
}
|
||||
|
||||
func (o *DeleteLeadForbidden) GetPayload() *crm_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -196,7 +304,8 @@ func NewDeleteLeadNotFound() *DeleteLeadNotFound {
|
|||
return &DeleteLeadNotFound{}
|
||||
}
|
||||
|
||||
/* DeleteLeadNotFound describes a response with status code 404, with default header values.
|
||||
/*
|
||||
DeleteLeadNotFound describes a response with status code 404, with default header values.
|
||||
|
||||
Resource was not found
|
||||
*/
|
||||
|
@ -206,9 +315,44 @@ type DeleteLeadNotFound struct {
|
|||
Payload *crm_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this delete lead not found response has a 2xx status code
|
||||
func (o *DeleteLeadNotFound) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this delete lead not found response has a 3xx status code
|
||||
func (o *DeleteLeadNotFound) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this delete lead not found response has a 4xx status code
|
||||
func (o *DeleteLeadNotFound) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this delete lead not found response has a 5xx status code
|
||||
func (o *DeleteLeadNotFound) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this delete lead not found response a status code equal to that given
|
||||
func (o *DeleteLeadNotFound) IsCode(code int) bool {
|
||||
return code == 404
|
||||
}
|
||||
|
||||
// Code gets the status code for the delete lead not found response
|
||||
func (o *DeleteLeadNotFound) Code() int {
|
||||
return 404
|
||||
}
|
||||
|
||||
func (o *DeleteLeadNotFound) Error() string {
|
||||
return fmt.Sprintf("[DELETE /leads][%d] deleteLeadNotFound %+v", 404, o.Payload)
|
||||
}
|
||||
|
||||
func (o *DeleteLeadNotFound) String() string {
|
||||
return fmt.Sprintf("[DELETE /leads][%d] deleteLeadNotFound %+v", 404, o.Payload)
|
||||
}
|
||||
|
||||
func (o *DeleteLeadNotFound) GetPayload() *crm_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -237,7 +381,8 @@ func NewDeleteLeadUnprocessableEntity() *DeleteLeadUnprocessableEntity {
|
|||
return &DeleteLeadUnprocessableEntity{}
|
||||
}
|
||||
|
||||
/* DeleteLeadUnprocessableEntity describes a response with status code 422, with default header values.
|
||||
/*
|
||||
DeleteLeadUnprocessableEntity describes a response with status code 422, with default header values.
|
||||
|
||||
Unprocessable Entity, likely a bad parameter
|
||||
*/
|
||||
|
@ -247,9 +392,44 @@ type DeleteLeadUnprocessableEntity struct {
|
|||
Payload *crm_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this delete lead unprocessable entity response has a 2xx status code
|
||||
func (o *DeleteLeadUnprocessableEntity) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this delete lead unprocessable entity response has a 3xx status code
|
||||
func (o *DeleteLeadUnprocessableEntity) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this delete lead unprocessable entity response has a 4xx status code
|
||||
func (o *DeleteLeadUnprocessableEntity) IsClientError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsServerError returns true when this delete lead unprocessable entity response has a 5xx status code
|
||||
func (o *DeleteLeadUnprocessableEntity) IsServerError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsCode returns true when this delete lead unprocessable entity response a status code equal to that given
|
||||
func (o *DeleteLeadUnprocessableEntity) IsCode(code int) bool {
|
||||
return code == 422
|
||||
}
|
||||
|
||||
// Code gets the status code for the delete lead unprocessable entity response
|
||||
func (o *DeleteLeadUnprocessableEntity) Code() int {
|
||||
return 422
|
||||
}
|
||||
|
||||
func (o *DeleteLeadUnprocessableEntity) Error() string {
|
||||
return fmt.Sprintf("[DELETE /leads][%d] deleteLeadUnprocessableEntity %+v", 422, o.Payload)
|
||||
}
|
||||
|
||||
func (o *DeleteLeadUnprocessableEntity) String() string {
|
||||
return fmt.Sprintf("[DELETE /leads][%d] deleteLeadUnprocessableEntity %+v", 422, o.Payload)
|
||||
}
|
||||
|
||||
func (o *DeleteLeadUnprocessableEntity) GetPayload() *crm_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
@ -278,7 +458,8 @@ func NewDeleteLeadInternalServerError() *DeleteLeadInternalServerError {
|
|||
return &DeleteLeadInternalServerError{}
|
||||
}
|
||||
|
||||
/* DeleteLeadInternalServerError describes a response with status code 500, with default header values.
|
||||
/*
|
||||
DeleteLeadInternalServerError describes a response with status code 500, with default header values.
|
||||
|
||||
Server Internal Error
|
||||
*/
|
||||
|
@ -288,9 +469,44 @@ type DeleteLeadInternalServerError struct {
|
|||
Payload *crm_models.Error
|
||||
}
|
||||
|
||||
// IsSuccess returns true when this delete lead internal server error response has a 2xx status code
|
||||
func (o *DeleteLeadInternalServerError) IsSuccess() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsRedirect returns true when this delete lead internal server error response has a 3xx status code
|
||||
func (o *DeleteLeadInternalServerError) IsRedirect() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsClientError returns true when this delete lead internal server error response has a 4xx status code
|
||||
func (o *DeleteLeadInternalServerError) IsClientError() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// IsServerError returns true when this delete lead internal server error response has a 5xx status code
|
||||
func (o *DeleteLeadInternalServerError) IsServerError() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsCode returns true when this delete lead internal server error response a status code equal to that given
|
||||
func (o *DeleteLeadInternalServerError) IsCode(code int) bool {
|
||||
return code == 500
|
||||
}
|
||||
|
||||
// Code gets the status code for the delete lead internal server error response
|
||||
func (o *DeleteLeadInternalServerError) Code() int {
|
||||
return 500
|
||||
}
|
||||
|
||||
func (o *DeleteLeadInternalServerError) Error() string {
|
||||
return fmt.Sprintf("[DELETE /leads][%d] deleteLeadInternalServerError %+v", 500, o.Payload)
|
||||
}
|
||||
|
||||
func (o *DeleteLeadInternalServerError) String() string {
|
||||
return fmt.Sprintf("[DELETE /leads][%d] deleteLeadInternalServerError %+v", 500, o.Payload)
|
||||
}
|
||||
|
||||
func (o *DeleteLeadInternalServerError) GetPayload() *crm_models.Error {
|
||||
return o.Payload
|
||||
}
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue