diff --git a/Makefile b/Makefile index df4a0ae..71b0aea 100644 --- a/Makefile +++ b/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 \ diff --git a/api/auth/auth_client/user/get_users_parameters.go b/api/auth/auth_client/user/get_users_parameters.go index f52e4c1..832d662 100644 --- a/api/auth/auth_client/user/get_users_parameters.go +++ b/api/auth/auth_client/user/get_users_parameters.go @@ -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 { diff --git a/api/auth/auth_client/user/get_users_responses.go b/api/auth/auth_client/user/get_users_responses.go index f614810..4b5679e 100644 --- a/api/auth/auth_client/user/get_users_responses.go +++ b/api/auth/auth_client/user/get_users_responses.go @@ -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 } diff --git a/api/auth/auth_client/user/user_client.go b/api/auth/auth_client/user/user_client.go index 11d1983..2947766 100644 --- a/api/auth/auth_client/user/user_client.go +++ b/api/auth/auth_client/user/user_client.go @@ -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 diff --git a/api/auth0/auth0_client/auth/auth_client.go b/api/auth0/auth0_client/auth/auth_client.go index c5ac8a8..7dc9794 100644 --- a/api/auth0/auth0_client/auth/auth_client.go +++ b/api/auth0/auth0_client/auth/auth_client.go @@ -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 } diff --git a/api/auth0/auth0_client/auth/post_credentials_parameters.go b/api/auth0/auth0_client/auth/post_credentials_parameters.go index 1c00403..15b866c 100644 --- a/api/auth0/auth0_client/auth/post_credentials_parameters.go +++ b/api/auth0/auth0_client/auth/post_credentials_parameters.go @@ -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 diff --git a/api/auth0/auth0_client/auth/post_credentials_responses.go b/api/auth0/auth0_client/auth/post_credentials_responses.go index a8b5500..791468a 100644 --- a/api/auth0/auth0_client/auth/post_credentials_responses.go +++ b/api/auth0/auth0_client/auth/post_credentials_responses.go @@ -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 } diff --git a/api/auth0/auth0_client/role/get_roles_parameters.go b/api/auth0/auth0_client/role/get_roles_parameters.go index 40328c9..e0722bb 100644 --- a/api/auth0/auth0_client/role/get_roles_parameters.go +++ b/api/auth0/auth0_client/role/get_roles_parameters.go @@ -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) diff --git a/api/auth0/auth0_client/role/get_roles_responses.go b/api/auth0/auth0_client/role/get_roles_responses.go index db2ff7d..e1be7c7 100644 --- a/api/auth0/auth0_client/role/get_roles_responses.go +++ b/api/auth0/auth0_client/role/get_roles_responses.go @@ -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 } diff --git a/api/auth0/auth0_client/role/post_role_users_parameters.go b/api/auth0/auth0_client/role/post_role_users_parameters.go index 50694f0..9ccbc4e 100644 --- a/api/auth0/auth0_client/role/post_role_users_parameters.go +++ b/api/auth0/auth0_client/role/post_role_users_parameters.go @@ -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 diff --git a/api/auth0/auth0_client/role/post_role_users_responses.go b/api/auth0/auth0_client/role/post_role_users_responses.go index d52523a..44f13d7 100644 --- a/api/auth0/auth0_client/role/post_role_users_responses.go +++ b/api/auth0/auth0_client/role/post_role_users_responses.go @@ -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 } diff --git a/api/auth0/auth0_client/role/role_client.go b/api/auth0/auth0_client/role/role_client.go index 248fa93..3a14b1a 100644 --- a/api/auth0/auth0_client/role/role_client.go +++ b/api/auth0/auth0_client/role/role_client.go @@ -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 } diff --git a/api/auth0/auth0_client/user/delete_api_v2_users_user_id_roles_parameters.go b/api/auth0/auth0_client/user/delete_api_v2_users_user_id_roles_parameters.go index 9738c91..de9a6ce 100644 --- a/api/auth0/auth0_client/user/delete_api_v2_users_user_id_roles_parameters.go +++ b/api/auth0/auth0_client/user/delete_api_v2_users_user_id_roles_parameters.go @@ -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 diff --git a/api/auth0/auth0_client/user/delete_api_v2_users_user_id_roles_responses.go b/api/auth0/auth0_client/user/delete_api_v2_users_user_id_roles_responses.go index ad3f9ed..8bd32f5 100644 --- a/api/auth0/auth0_client/user/delete_api_v2_users_user_id_roles_responses.go +++ b/api/auth0/auth0_client/user/delete_api_v2_users_user_id_roles_responses.go @@ -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 } diff --git a/api/auth0/auth0_client/user/get_user_by_email_parameters.go b/api/auth0/auth0_client/user/get_user_by_email_parameters.go index 75d5338..64c666b 100644 --- a/api/auth0/auth0_client/user/get_user_by_email_parameters.go +++ b/api/auth0/auth0_client/user/get_user_by_email_parameters.go @@ -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 } diff --git a/api/auth0/auth0_client/user/get_user_by_email_responses.go b/api/auth0/auth0_client/user/get_user_by_email_responses.go index 9156166..07e781c 100644 --- a/api/auth0/auth0_client/user/get_user_by_email_responses.go +++ b/api/auth0/auth0_client/user/get_user_by_email_responses.go @@ -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 } diff --git a/api/auth0/auth0_client/user/get_user_roles_parameters.go b/api/auth0/auth0_client/user/get_user_roles_parameters.go index 38dd7c5..303c00c 100644 --- a/api/auth0/auth0_client/user/get_user_roles_parameters.go +++ b/api/auth0/auth0_client/user/get_user_roles_parameters.go @@ -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) diff --git a/api/auth0/auth0_client/user/get_user_roles_responses.go b/api/auth0/auth0_client/user/get_user_roles_responses.go index 4e69b2a..2d34745 100644 --- a/api/auth0/auth0_client/user/get_user_roles_responses.go +++ b/api/auth0/auth0_client/user/get_user_roles_responses.go @@ -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 } diff --git a/api/auth0/auth0_client/user/get_users_parameters.go b/api/auth0/auth0_client/user/get_users_parameters.go index 9f0ddab..c573602 100644 --- a/api/auth0/auth0_client/user/get_users_parameters.go +++ b/api/auth0/auth0_client/user/get_users_parameters.go @@ -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) diff --git a/api/auth0/auth0_client/user/get_users_responses.go b/api/auth0/auth0_client/user/get_users_responses.go index 45fd811..c91b14c 100644 --- a/api/auth0/auth0_client/user/get_users_responses.go +++ b/api/auth0/auth0_client/user/get_users_responses.go @@ -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 } diff --git a/api/auth0/auth0_client/user/post_users_parameters.go b/api/auth0/auth0_client/user/post_users_parameters.go index c16cf2f..9f20fd6 100644 --- a/api/auth0/auth0_client/user/post_users_parameters.go +++ b/api/auth0/auth0_client/user/post_users_parameters.go @@ -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 diff --git a/api/auth0/auth0_client/user/post_users_responses.go b/api/auth0/auth0_client/user/post_users_responses.go index 19dd515..719bdfd 100644 --- a/api/auth0/auth0_client/user/post_users_responses.go +++ b/api/auth0/auth0_client/user/post_users_responses.go @@ -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 } diff --git a/api/auth0/auth0_client/user/user_client.go b/api/auth0/auth0_client/user/user_client.go index 4330279..71b403a 100644 --- a/api/auth0/auth0_client/user/user_client.go +++ b/api/auth0/auth0_client/user/user_client.go @@ -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 } diff --git a/api/auth0/auth0_models/credentials_request.go b/api/auth0/auth0_models/credentials_request.go index ad8d8b2..e4bde0a 100644 --- a/api/auth0/auth0_models/credentials_request.go +++ b/api/auth0/auth0_models/credentials_request.go @@ -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 { diff --git a/api/auth0/auth0_models/credentials_response.go b/api/auth0/auth0_models/credentials_response.go index 57ac7a6..0f3dacb 100644 --- a/api/auth0/auth0_models/credentials_response.go +++ b/api/auth0/auth0_models/credentials_response.go @@ -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 { diff --git a/api/auth0/auth0_models/error.go b/api/auth0/auth0_models/error.go index 8f2db18..f8628e0 100644 --- a/api/auth0/auth0_models/error.go +++ b/api/auth0/auth0_models/error.go @@ -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 { diff --git a/api/auth0/auth0_models/new_user.go b/api/auth0/auth0_models/new_user.go index 09408c7..8c9cfc8 100644 --- a/api/auth0/auth0_models/new_user.go +++ b/api/auth0/auth0_models/new_user.go @@ -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 { diff --git a/api/auth0/auth0_models/role.go b/api/auth0/auth0_models/role.go index 62507be..64a99fe 100644 --- a/api/auth0/auth0_models/role.go +++ b/api/auth0/auth0_models/role.go @@ -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 { diff --git a/api/auth0/auth0_models/role_response.go b/api/auth0/auth0_models/role_response.go index 8b5a2aa..61fa324 100644 --- a/api/auth0/auth0_models/role_response.go +++ b/api/auth0/auth0_models/role_response.go @@ -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 } diff --git a/api/auth0/auth0_models/role_users_request.go b/api/auth0/auth0_models/role_users_request.go index 48ddc63..809e610 100644 --- a/api/auth0/auth0_models/role_users_request.go +++ b/api/auth0/auth0_models/role_users_request.go @@ -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 { diff --git a/api/auth0/auth0_models/user.go b/api/auth0/auth0_models/user.go index 2fdb7c5..e991a4d 100644 --- a/api/auth0/auth0_models/user.go +++ b/api/auth0/auth0_models/user.go @@ -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 { diff --git a/api/auth0/auth0_models/user_request.go b/api/auth0/auth0_models/user_request.go index d81d54e..9f11a31 100644 --- a/api/auth0/auth0_models/user_request.go +++ b/api/auth0/auth0_models/user_request.go @@ -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 } diff --git a/api/auth0/auth0_models/user_roles_request.go b/api/auth0/auth0_models/user_roles_request.go index 81bf41c..a4523f8 100644 --- a/api/auth0/auth0_models/user_roles_request.go +++ b/api/auth0/auth0_models/user_roles_request.go @@ -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 { diff --git a/api/crm/crm_client/accounts/accounts_client.go b/api/crm/crm_client/accounts/accounts_client.go index b0e887d..fc53f61 100644 --- a/api/crm/crm_client/accounts/accounts_client.go +++ b/api/crm/crm_client/accounts/accounts_client.go @@ -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 diff --git a/api/crm/crm_client/accounts/delete_account_parameters.go b/api/crm/crm_client/accounts/delete_account_parameters.go index b255af9..0ffc96c 100644 --- a/api/crm/crm_client/accounts/delete_account_parameters.go +++ b/api/crm/crm_client/accounts/delete_account_parameters.go @@ -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 { diff --git a/api/crm/crm_client/accounts/delete_account_responses.go b/api/crm/crm_client/accounts/delete_account_responses.go index df9de05..2235374 100644 --- a/api/crm/crm_client/accounts/delete_account_responses.go +++ b/api/crm/crm_client/accounts/delete_account_responses.go @@ -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 } diff --git a/api/crm/crm_client/accounts/get_accounts_observable_parameters.go b/api/crm/crm_client/accounts/get_accounts_observable_parameters.go index 736e0c4..8391fbc 100644 --- a/api/crm/crm_client/accounts/get_accounts_observable_parameters.go +++ b/api/crm/crm_client/accounts/get_accounts_observable_parameters.go @@ -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 { diff --git a/api/crm/crm_client/accounts/get_accounts_observable_responses.go b/api/crm/crm_client/accounts/get_accounts_observable_responses.go index 27d9fdf..239e9d2 100644 --- a/api/crm/crm_client/accounts/get_accounts_observable_responses.go +++ b/api/crm/crm_client/accounts/get_accounts_observable_responses.go @@ -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 } diff --git a/api/crm/crm_client/accounts/get_accounts_parameters.go b/api/crm/crm_client/accounts/get_accounts_parameters.go index a6b261e..bf03bf6 100644 --- a/api/crm/crm_client/accounts/get_accounts_parameters.go +++ b/api/crm/crm_client/accounts/get_accounts_parameters.go @@ -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 { diff --git a/api/crm/crm_client/accounts/get_accounts_responses.go b/api/crm/crm_client/accounts/get_accounts_responses.go index c0f1a0d..8d268e4 100644 --- a/api/crm/crm_client/accounts/get_accounts_responses.go +++ b/api/crm/crm_client/accounts/get_accounts_responses.go @@ -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 } diff --git a/api/crm/crm_client/accounts/post_accounts_parameters.go b/api/crm/crm_client/accounts/post_accounts_parameters.go index 75700fd..2868827 100644 --- a/api/crm/crm_client/accounts/post_accounts_parameters.go +++ b/api/crm/crm_client/accounts/post_accounts_parameters.go @@ -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 { diff --git a/api/crm/crm_client/accounts/post_accounts_responses.go b/api/crm/crm_client/accounts/post_accounts_responses.go index dc20c33..581cc52 100644 --- a/api/crm/crm_client/accounts/post_accounts_responses.go +++ b/api/crm/crm_client/accounts/post_accounts_responses.go @@ -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 } diff --git a/api/crm/crm_client/accounts/put_account_parameters.go b/api/crm/crm_client/accounts/put_account_parameters.go index de63218..2c2abdf 100644 --- a/api/crm/crm_client/accounts/put_account_parameters.go +++ b/api/crm/crm_client/accounts/put_account_parameters.go @@ -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 { diff --git a/api/crm/crm_client/accounts/put_account_responses.go b/api/crm/crm_client/accounts/put_account_responses.go index 2b1da0d..ffdcd14 100644 --- a/api/crm/crm_client/accounts/put_account_responses.go +++ b/api/crm/crm_client/accounts/put_account_responses.go @@ -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 } diff --git a/api/crm/crm_client/assets/assets_client.go b/api/crm/crm_client/assets/assets_client.go index d7cc90a..4861a16 100644 --- a/api/crm/crm_client/assets/assets_client.go +++ b/api/crm/crm_client/assets/assets_client.go @@ -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 diff --git a/api/crm/crm_client/assets/delete_asset_parameters.go b/api/crm/crm_client/assets/delete_asset_parameters.go index e934b8a..470b8d1 100644 --- a/api/crm/crm_client/assets/delete_asset_parameters.go +++ b/api/crm/crm_client/assets/delete_asset_parameters.go @@ -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 { diff --git a/api/crm/crm_client/assets/delete_asset_responses.go b/api/crm/crm_client/assets/delete_asset_responses.go index 15547b6..a162c06 100644 --- a/api/crm/crm_client/assets/delete_asset_responses.go +++ b/api/crm/crm_client/assets/delete_asset_responses.go @@ -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 } diff --git a/api/crm/crm_client/assets/get_assets_observable_parameters.go b/api/crm/crm_client/assets/get_assets_observable_parameters.go index e150b09..f74bb8d 100644 --- a/api/crm/crm_client/assets/get_assets_observable_parameters.go +++ b/api/crm/crm_client/assets/get_assets_observable_parameters.go @@ -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 { diff --git a/api/crm/crm_client/assets/get_assets_observable_responses.go b/api/crm/crm_client/assets/get_assets_observable_responses.go index 55f2183..978f9ae 100644 --- a/api/crm/crm_client/assets/get_assets_observable_responses.go +++ b/api/crm/crm_client/assets/get_assets_observable_responses.go @@ -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 } diff --git a/api/crm/crm_client/assets/get_assets_parameters.go b/api/crm/crm_client/assets/get_assets_parameters.go index eb20146..f79057f 100644 --- a/api/crm/crm_client/assets/get_assets_parameters.go +++ b/api/crm/crm_client/assets/get_assets_parameters.go @@ -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 { diff --git a/api/crm/crm_client/assets/get_assets_responses.go b/api/crm/crm_client/assets/get_assets_responses.go index 92a0e48..7ca14e4 100644 --- a/api/crm/crm_client/assets/get_assets_responses.go +++ b/api/crm/crm_client/assets/get_assets_responses.go @@ -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 } diff --git a/api/crm/crm_client/assets/post_assets_parameters.go b/api/crm/crm_client/assets/post_assets_parameters.go index 5466bf8..63f164a 100644 --- a/api/crm/crm_client/assets/post_assets_parameters.go +++ b/api/crm/crm_client/assets/post_assets_parameters.go @@ -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 { diff --git a/api/crm/crm_client/assets/post_assets_responses.go b/api/crm/crm_client/assets/post_assets_responses.go index e308519..c80f414 100644 --- a/api/crm/crm_client/assets/post_assets_responses.go +++ b/api/crm/crm_client/assets/post_assets_responses.go @@ -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 } diff --git a/api/crm/crm_client/assets/put_asset_parameters.go b/api/crm/crm_client/assets/put_asset_parameters.go index e71b398..b63c124 100644 --- a/api/crm/crm_client/assets/put_asset_parameters.go +++ b/api/crm/crm_client/assets/put_asset_parameters.go @@ -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 { diff --git a/api/crm/crm_client/assets/put_asset_responses.go b/api/crm/crm_client/assets/put_asset_responses.go index 41b194e..ec72a22 100644 --- a/api/crm/crm_client/assets/put_asset_responses.go +++ b/api/crm/crm_client/assets/put_asset_responses.go @@ -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 } diff --git a/api/crm/crm_client/contacts/contacts_client.go b/api/crm/crm_client/contacts/contacts_client.go index 22a2387..6af3cca 100644 --- a/api/crm/crm_client/contacts/contacts_client.go +++ b/api/crm/crm_client/contacts/contacts_client.go @@ -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 diff --git a/api/crm/crm_client/contacts/delete_contact_parameters.go b/api/crm/crm_client/contacts/delete_contact_parameters.go index 9b5b48e..ea54993 100644 --- a/api/crm/crm_client/contacts/delete_contact_parameters.go +++ b/api/crm/crm_client/contacts/delete_contact_parameters.go @@ -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 { diff --git a/api/crm/crm_client/contacts/delete_contact_responses.go b/api/crm/crm_client/contacts/delete_contact_responses.go index 0964c75..1029e55 100644 --- a/api/crm/crm_client/contacts/delete_contact_responses.go +++ b/api/crm/crm_client/contacts/delete_contact_responses.go @@ -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 } diff --git a/api/crm/crm_client/contacts/get_contacts_observable_parameters.go b/api/crm/crm_client/contacts/get_contacts_observable_parameters.go index 676df33..c9ac511 100644 --- a/api/crm/crm_client/contacts/get_contacts_observable_parameters.go +++ b/api/crm/crm_client/contacts/get_contacts_observable_parameters.go @@ -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 { diff --git a/api/crm/crm_client/contacts/get_contacts_observable_responses.go b/api/crm/crm_client/contacts/get_contacts_observable_responses.go index 2bc5014..c171047 100644 --- a/api/crm/crm_client/contacts/get_contacts_observable_responses.go +++ b/api/crm/crm_client/contacts/get_contacts_observable_responses.go @@ -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 } diff --git a/api/crm/crm_client/contacts/get_contacts_parameters.go b/api/crm/crm_client/contacts/get_contacts_parameters.go index d1c7e7b..59b36ab 100644 --- a/api/crm/crm_client/contacts/get_contacts_parameters.go +++ b/api/crm/crm_client/contacts/get_contacts_parameters.go @@ -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 { diff --git a/api/crm/crm_client/contacts/get_contacts_responses.go b/api/crm/crm_client/contacts/get_contacts_responses.go index b645017..130ffb2 100644 --- a/api/crm/crm_client/contacts/get_contacts_responses.go +++ b/api/crm/crm_client/contacts/get_contacts_responses.go @@ -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 } diff --git a/api/crm/crm_client/contacts/post_contacts_parameters.go b/api/crm/crm_client/contacts/post_contacts_parameters.go index 6729fbf..d11dbba 100644 --- a/api/crm/crm_client/contacts/post_contacts_parameters.go +++ b/api/crm/crm_client/contacts/post_contacts_parameters.go @@ -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 { diff --git a/api/crm/crm_client/contacts/post_contacts_responses.go b/api/crm/crm_client/contacts/post_contacts_responses.go index 3f7d1cf..08095a2 100644 --- a/api/crm/crm_client/contacts/post_contacts_responses.go +++ b/api/crm/crm_client/contacts/post_contacts_responses.go @@ -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 } diff --git a/api/crm/crm_client/contacts/put_contacts_parameters.go b/api/crm/crm_client/contacts/put_contacts_parameters.go index 51fa9d2..2c73d33 100644 --- a/api/crm/crm_client/contacts/put_contacts_parameters.go +++ b/api/crm/crm_client/contacts/put_contacts_parameters.go @@ -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 { diff --git a/api/crm/crm_client/contacts/put_contacts_responses.go b/api/crm/crm_client/contacts/put_contacts_responses.go index c345ae3..31c2465 100644 --- a/api/crm/crm_client/contacts/put_contacts_responses.go +++ b/api/crm/crm_client/contacts/put_contacts_responses.go @@ -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 } diff --git a/api/crm/crm_client/contracts/contracts_client.go b/api/crm/crm_client/contracts/contracts_client.go index 62229df..c0f7d19 100644 --- a/api/crm/crm_client/contracts/contracts_client.go +++ b/api/crm/crm_client/contracts/contracts_client.go @@ -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 diff --git a/api/crm/crm_client/contracts/delete_contract_parameters.go b/api/crm/crm_client/contracts/delete_contract_parameters.go index 5011c98..ad9554b 100644 --- a/api/crm/crm_client/contracts/delete_contract_parameters.go +++ b/api/crm/crm_client/contracts/delete_contract_parameters.go @@ -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 { diff --git a/api/crm/crm_client/contracts/delete_contract_responses.go b/api/crm/crm_client/contracts/delete_contract_responses.go index d57b694..33a6d1a 100644 --- a/api/crm/crm_client/contracts/delete_contract_responses.go +++ b/api/crm/crm_client/contracts/delete_contract_responses.go @@ -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 } diff --git a/api/crm/crm_client/contracts/get_contracts_observable_parameters.go b/api/crm/crm_client/contracts/get_contracts_observable_parameters.go index 19b4fd6..eea6450 100644 --- a/api/crm/crm_client/contracts/get_contracts_observable_parameters.go +++ b/api/crm/crm_client/contracts/get_contracts_observable_parameters.go @@ -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 { diff --git a/api/crm/crm_client/contracts/get_contracts_observable_responses.go b/api/crm/crm_client/contracts/get_contracts_observable_responses.go index 268a79d..c621664 100644 --- a/api/crm/crm_client/contracts/get_contracts_observable_responses.go +++ b/api/crm/crm_client/contracts/get_contracts_observable_responses.go @@ -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 } diff --git a/api/crm/crm_client/contracts/get_contracts_parameters.go b/api/crm/crm_client/contracts/get_contracts_parameters.go index 6f09f33..b3aaa02 100644 --- a/api/crm/crm_client/contracts/get_contracts_parameters.go +++ b/api/crm/crm_client/contracts/get_contracts_parameters.go @@ -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 { diff --git a/api/crm/crm_client/contracts/get_contracts_responses.go b/api/crm/crm_client/contracts/get_contracts_responses.go index 0c7d8c8..4b3d103 100644 --- a/api/crm/crm_client/contracts/get_contracts_responses.go +++ b/api/crm/crm_client/contracts/get_contracts_responses.go @@ -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 } diff --git a/api/crm/crm_client/contracts/post_contracts_parameters.go b/api/crm/crm_client/contracts/post_contracts_parameters.go index 114550e..e29a1aa 100644 --- a/api/crm/crm_client/contracts/post_contracts_parameters.go +++ b/api/crm/crm_client/contracts/post_contracts_parameters.go @@ -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 { diff --git a/api/crm/crm_client/contracts/post_contracts_responses.go b/api/crm/crm_client/contracts/post_contracts_responses.go index 84dbc6b..a1a3b16 100644 --- a/api/crm/crm_client/contracts/post_contracts_responses.go +++ b/api/crm/crm_client/contracts/post_contracts_responses.go @@ -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 } diff --git a/api/crm/crm_client/contracts/put_contract_parameters.go b/api/crm/crm_client/contracts/put_contract_parameters.go index 51ad12d..88c432b 100644 --- a/api/crm/crm_client/contracts/put_contract_parameters.go +++ b/api/crm/crm_client/contracts/put_contract_parameters.go @@ -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 { diff --git a/api/crm/crm_client/contracts/put_contract_responses.go b/api/crm/crm_client/contracts/put_contract_responses.go index bc1398c..10eb258 100644 --- a/api/crm/crm_client/contracts/put_contract_responses.go +++ b/api/crm/crm_client/contracts/put_contract_responses.go @@ -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 } diff --git a/api/crm/crm_client/cors/account_options_observable_parameters.go b/api/crm/crm_client/cors/account_options_observable_parameters.go index 9f8cdd6..f9fde4e 100644 --- a/api/crm/crm_client/cors/account_options_observable_parameters.go +++ b/api/crm/crm_client/cors/account_options_observable_parameters.go @@ -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 diff --git a/api/crm/crm_client/cors/account_options_observable_responses.go b/api/crm/crm_client/cors/account_options_observable_responses.go index 790409f..f9e8666 100644 --- a/api/crm/crm_client/cors/account_options_observable_responses.go +++ b/api/crm/crm_client/cors/account_options_observable_responses.go @@ -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 diff --git a/api/crm/crm_client/cors/account_options_parameters.go b/api/crm/crm_client/cors/account_options_parameters.go index 0e79a11..ab06bd4 100644 --- a/api/crm/crm_client/cors/account_options_parameters.go +++ b/api/crm/crm_client/cors/account_options_parameters.go @@ -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 diff --git a/api/crm/crm_client/cors/account_options_responses.go b/api/crm/crm_client/cors/account_options_responses.go index b69295c..0908db6 100644 --- a/api/crm/crm_client/cors/account_options_responses.go +++ b/api/crm/crm_client/cors/account_options_responses.go @@ -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 diff --git a/api/crm/crm_client/cors/asset_options_observable_parameters.go b/api/crm/crm_client/cors/asset_options_observable_parameters.go index d48b962..46b18aa 100644 --- a/api/crm/crm_client/cors/asset_options_observable_parameters.go +++ b/api/crm/crm_client/cors/asset_options_observable_parameters.go @@ -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 diff --git a/api/crm/crm_client/cors/asset_options_observable_responses.go b/api/crm/crm_client/cors/asset_options_observable_responses.go index 53f7c4e..e21b656 100644 --- a/api/crm/crm_client/cors/asset_options_observable_responses.go +++ b/api/crm/crm_client/cors/asset_options_observable_responses.go @@ -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 diff --git a/api/crm/crm_client/cors/asset_options_parameters.go b/api/crm/crm_client/cors/asset_options_parameters.go index fc7b2dc..c93bf13 100644 --- a/api/crm/crm_client/cors/asset_options_parameters.go +++ b/api/crm/crm_client/cors/asset_options_parameters.go @@ -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 diff --git a/api/crm/crm_client/cors/asset_options_responses.go b/api/crm/crm_client/cors/asset_options_responses.go index 614c461..b983675 100644 --- a/api/crm/crm_client/cors/asset_options_responses.go +++ b/api/crm/crm_client/cors/asset_options_responses.go @@ -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 diff --git a/api/crm/crm_client/cors/contact_options_observable_parameters.go b/api/crm/crm_client/cors/contact_options_observable_parameters.go index b9a7b8c..83a0e2d 100644 --- a/api/crm/crm_client/cors/contact_options_observable_parameters.go +++ b/api/crm/crm_client/cors/contact_options_observable_parameters.go @@ -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 diff --git a/api/crm/crm_client/cors/contact_options_observable_responses.go b/api/crm/crm_client/cors/contact_options_observable_responses.go index 295bdd3..f7cfb97 100644 --- a/api/crm/crm_client/cors/contact_options_observable_responses.go +++ b/api/crm/crm_client/cors/contact_options_observable_responses.go @@ -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 diff --git a/api/crm/crm_client/cors/contact_options_parameters.go b/api/crm/crm_client/cors/contact_options_parameters.go index d47c986..d343d83 100644 --- a/api/crm/crm_client/cors/contact_options_parameters.go +++ b/api/crm/crm_client/cors/contact_options_parameters.go @@ -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 diff --git a/api/crm/crm_client/cors/contact_options_responses.go b/api/crm/crm_client/cors/contact_options_responses.go index 26f4fdf..3ac727b 100644 --- a/api/crm/crm_client/cors/contact_options_responses.go +++ b/api/crm/crm_client/cors/contact_options_responses.go @@ -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 diff --git a/api/crm/crm_client/cors/contract_options_observable_parameters.go b/api/crm/crm_client/cors/contract_options_observable_parameters.go index dfa0b91..f08dcd8 100644 --- a/api/crm/crm_client/cors/contract_options_observable_parameters.go +++ b/api/crm/crm_client/cors/contract_options_observable_parameters.go @@ -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 diff --git a/api/crm/crm_client/cors/contract_options_observable_responses.go b/api/crm/crm_client/cors/contract_options_observable_responses.go index 6323fc9..7ca9b32 100644 --- a/api/crm/crm_client/cors/contract_options_observable_responses.go +++ b/api/crm/crm_client/cors/contract_options_observable_responses.go @@ -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 diff --git a/api/crm/crm_client/cors/contract_options_parameters.go b/api/crm/crm_client/cors/contract_options_parameters.go index c38c00d..b25c65d 100644 --- a/api/crm/crm_client/cors/contract_options_parameters.go +++ b/api/crm/crm_client/cors/contract_options_parameters.go @@ -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 diff --git a/api/crm/crm_client/cors/contract_options_responses.go b/api/crm/crm_client/cors/contract_options_responses.go index 4745c40..0422e13 100644 --- a/api/crm/crm_client/cors/contract_options_responses.go +++ b/api/crm/crm_client/cors/contract_options_responses.go @@ -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 diff --git a/api/crm/crm_client/cors/cors_client.go b/api/crm/crm_client/cors/cors_client.go index b3a9b12..1b03ec0 100644 --- a/api/crm/crm_client/cors/cors_client.go +++ b/api/crm/crm_client/cors/cors_client.go @@ -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 diff --git a/api/crm/crm_client/cors/lead_options_observable_parameters.go b/api/crm/crm_client/cors/lead_options_observable_parameters.go index a11de15..e850a8b 100644 --- a/api/crm/crm_client/cors/lead_options_observable_parameters.go +++ b/api/crm/crm_client/cors/lead_options_observable_parameters.go @@ -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 diff --git a/api/crm/crm_client/cors/lead_options_observable_responses.go b/api/crm/crm_client/cors/lead_options_observable_responses.go index 09cb15e..dda7bf4 100644 --- a/api/crm/crm_client/cors/lead_options_observable_responses.go +++ b/api/crm/crm_client/cors/lead_options_observable_responses.go @@ -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 diff --git a/api/crm/crm_client/cors/lead_options_parameters.go b/api/crm/crm_client/cors/lead_options_parameters.go index 3f9d614..29b0acf 100644 --- a/api/crm/crm_client/cors/lead_options_parameters.go +++ b/api/crm/crm_client/cors/lead_options_parameters.go @@ -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 diff --git a/api/crm/crm_client/cors/lead_options_responses.go b/api/crm/crm_client/cors/lead_options_responses.go index f69fbde..41689ad 100644 --- a/api/crm/crm_client/cors/lead_options_responses.go +++ b/api/crm/crm_client/cors/lead_options_responses.go @@ -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 diff --git a/api/crm/crm_client/leads/delete_lead_parameters.go b/api/crm/crm_client/leads/delete_lead_parameters.go index 0c51db6..5a3255c 100644 --- a/api/crm/crm_client/leads/delete_lead_parameters.go +++ b/api/crm/crm_client/leads/delete_lead_parameters.go @@ -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 { diff --git a/api/crm/crm_client/leads/delete_lead_responses.go b/api/crm/crm_client/leads/delete_lead_responses.go index 5388963..3c20eaa 100644 --- a/api/crm/crm_client/leads/delete_lead_responses.go +++ b/api/crm/crm_client/leads/delete_lead_responses.go @@ -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 } diff --git a/api/crm/crm_client/leads/get_leads_observable_parameters.go b/api/crm/crm_client/leads/get_leads_observable_parameters.go index 61fe828..ba1bcdd 100644 --- a/api/crm/crm_client/leads/get_leads_observable_parameters.go +++ b/api/crm/crm_client/leads/get_leads_observable_parameters.go @@ -56,10 +56,12 @@ func NewGetLeadsObservableParamsWithHTTPClient(client *http.Client) *GetLeadsObs } } -/* GetLeadsObservableParams contains all the parameters to send to the API endpoint - for the get leads observable operation. +/* +GetLeadsObservableParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get leads observable operation. + + Typically these are written to a http.Request. */ type GetLeadsObservableParams struct { diff --git a/api/crm/crm_client/leads/get_leads_observable_responses.go b/api/crm/crm_client/leads/get_leads_observable_responses.go index 3068eec..790c331 100644 --- a/api/crm/crm_client/leads/get_leads_observable_responses.go +++ b/api/crm/crm_client/leads/get_leads_observable_responses.go @@ -73,7 +73,8 @@ func NewGetLeadsObservableOK() *GetLeadsObservableOK { return &GetLeadsObservableOK{} } -/* GetLeadsObservableOK describes a response with status code 200, with default header values. +/* +GetLeadsObservableOK describes a response with status code 200, with default header values. Taxnexus Response with an array of Lead objects */ @@ -84,9 +85,44 @@ type GetLeadsObservableOK struct { Payload []*crm_models.Lead } +// IsSuccess returns true when this get leads observable o k response has a 2xx status code +func (o *GetLeadsObservableOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get leads observable o k response has a 3xx status code +func (o *GetLeadsObservableOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get leads observable o k response has a 4xx status code +func (o *GetLeadsObservableOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get leads observable o k response has a 5xx status code +func (o *GetLeadsObservableOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get leads observable o k response a status code equal to that given +func (o *GetLeadsObservableOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get leads observable o k response +func (o *GetLeadsObservableOK) Code() int { + return 200 +} + func (o *GetLeadsObservableOK) Error() string { return fmt.Sprintf("[GET /leads/observable][%d] getLeadsObservableOK %+v", 200, o.Payload) } + +func (o *GetLeadsObservableOK) String() string { + return fmt.Sprintf("[GET /leads/observable][%d] getLeadsObservableOK %+v", 200, o.Payload) +} + func (o *GetLeadsObservableOK) GetPayload() []*crm_models.Lead { return o.Payload } @@ -120,7 +156,8 @@ func NewGetLeadsObservableUnauthorized() *GetLeadsObservableUnauthorized { return &GetLeadsObservableUnauthorized{} } -/* GetLeadsObservableUnauthorized describes a response with status code 401, with default header values. +/* +GetLeadsObservableUnauthorized describes a response with status code 401, with default header values. Access unauthorized, invalid API-KEY was used */ @@ -130,9 +167,44 @@ type GetLeadsObservableUnauthorized struct { Payload *crm_models.Error } +// IsSuccess returns true when this get leads observable unauthorized response has a 2xx status code +func (o *GetLeadsObservableUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get leads observable unauthorized response has a 3xx status code +func (o *GetLeadsObservableUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get leads observable unauthorized response has a 4xx status code +func (o *GetLeadsObservableUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this get leads observable unauthorized response has a 5xx status code +func (o *GetLeadsObservableUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this get leads observable unauthorized response a status code equal to that given +func (o *GetLeadsObservableUnauthorized) IsCode(code int) bool { + return code == 401 +} + +// Code gets the status code for the get leads observable unauthorized response +func (o *GetLeadsObservableUnauthorized) Code() int { + return 401 +} + func (o *GetLeadsObservableUnauthorized) Error() string { return fmt.Sprintf("[GET /leads/observable][%d] getLeadsObservableUnauthorized %+v", 401, o.Payload) } + +func (o *GetLeadsObservableUnauthorized) String() string { + return fmt.Sprintf("[GET /leads/observable][%d] getLeadsObservableUnauthorized %+v", 401, o.Payload) +} + func (o *GetLeadsObservableUnauthorized) GetPayload() *crm_models.Error { return o.Payload } @@ -161,7 +233,8 @@ func NewGetLeadsObservableForbidden() *GetLeadsObservableForbidden { return &GetLeadsObservableForbidden{} } -/* GetLeadsObservableForbidden describes a response with status code 403, with default header values. +/* +GetLeadsObservableForbidden describes a response with status code 403, with default header values. Access forbidden, account lacks access */ @@ -171,9 +244,44 @@ type GetLeadsObservableForbidden struct { Payload *crm_models.Error } +// IsSuccess returns true when this get leads observable forbidden response has a 2xx status code +func (o *GetLeadsObservableForbidden) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get leads observable forbidden response has a 3xx status code +func (o *GetLeadsObservableForbidden) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get leads observable forbidden response has a 4xx status code +func (o *GetLeadsObservableForbidden) IsClientError() bool { + return true +} + +// IsServerError returns true when this get leads observable forbidden response has a 5xx status code +func (o *GetLeadsObservableForbidden) IsServerError() bool { + return false +} + +// IsCode returns true when this get leads observable forbidden response a status code equal to that given +func (o *GetLeadsObservableForbidden) IsCode(code int) bool { + return code == 403 +} + +// Code gets the status code for the get leads observable forbidden response +func (o *GetLeadsObservableForbidden) Code() int { + return 403 +} + func (o *GetLeadsObservableForbidden) Error() string { return fmt.Sprintf("[GET /leads/observable][%d] getLeadsObservableForbidden %+v", 403, o.Payload) } + +func (o *GetLeadsObservableForbidden) String() string { + return fmt.Sprintf("[GET /leads/observable][%d] getLeadsObservableForbidden %+v", 403, o.Payload) +} + func (o *GetLeadsObservableForbidden) GetPayload() *crm_models.Error { return o.Payload } @@ -202,7 +310,8 @@ func NewGetLeadsObservableNotFound() *GetLeadsObservableNotFound { return &GetLeadsObservableNotFound{} } -/* GetLeadsObservableNotFound describes a response with status code 404, with default header values. +/* +GetLeadsObservableNotFound describes a response with status code 404, with default header values. Resource was not found */ @@ -212,9 +321,44 @@ type GetLeadsObservableNotFound struct { Payload *crm_models.Error } +// IsSuccess returns true when this get leads observable not found response has a 2xx status code +func (o *GetLeadsObservableNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get leads observable not found response has a 3xx status code +func (o *GetLeadsObservableNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get leads observable not found response has a 4xx status code +func (o *GetLeadsObservableNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this get leads observable not found response has a 5xx status code +func (o *GetLeadsObservableNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this get leads observable not found response a status code equal to that given +func (o *GetLeadsObservableNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the get leads observable not found response +func (o *GetLeadsObservableNotFound) Code() int { + return 404 +} + func (o *GetLeadsObservableNotFound) Error() string { return fmt.Sprintf("[GET /leads/observable][%d] getLeadsObservableNotFound %+v", 404, o.Payload) } + +func (o *GetLeadsObservableNotFound) String() string { + return fmt.Sprintf("[GET /leads/observable][%d] getLeadsObservableNotFound %+v", 404, o.Payload) +} + func (o *GetLeadsObservableNotFound) GetPayload() *crm_models.Error { return o.Payload } @@ -243,7 +387,8 @@ func NewGetLeadsObservableUnprocessableEntity() *GetLeadsObservableUnprocessable return &GetLeadsObservableUnprocessableEntity{} } -/* GetLeadsObservableUnprocessableEntity describes a response with status code 422, with default header values. +/* +GetLeadsObservableUnprocessableEntity describes a response with status code 422, with default header values. Unprocessable Entity, likely a bad parameter */ @@ -253,9 +398,44 @@ type GetLeadsObservableUnprocessableEntity struct { Payload *crm_models.Error } +// IsSuccess returns true when this get leads observable unprocessable entity response has a 2xx status code +func (o *GetLeadsObservableUnprocessableEntity) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get leads observable unprocessable entity response has a 3xx status code +func (o *GetLeadsObservableUnprocessableEntity) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get leads observable unprocessable entity response has a 4xx status code +func (o *GetLeadsObservableUnprocessableEntity) IsClientError() bool { + return true +} + +// IsServerError returns true when this get leads observable unprocessable entity response has a 5xx status code +func (o *GetLeadsObservableUnprocessableEntity) IsServerError() bool { + return false +} + +// IsCode returns true when this get leads observable unprocessable entity response a status code equal to that given +func (o *GetLeadsObservableUnprocessableEntity) IsCode(code int) bool { + return code == 422 +} + +// Code gets the status code for the get leads observable unprocessable entity response +func (o *GetLeadsObservableUnprocessableEntity) Code() int { + return 422 +} + func (o *GetLeadsObservableUnprocessableEntity) Error() string { return fmt.Sprintf("[GET /leads/observable][%d] getLeadsObservableUnprocessableEntity %+v", 422, o.Payload) } + +func (o *GetLeadsObservableUnprocessableEntity) String() string { + return fmt.Sprintf("[GET /leads/observable][%d] getLeadsObservableUnprocessableEntity %+v", 422, o.Payload) +} + func (o *GetLeadsObservableUnprocessableEntity) GetPayload() *crm_models.Error { return o.Payload } @@ -284,7 +464,8 @@ func NewGetLeadsObservableInternalServerError() *GetLeadsObservableInternalServe return &GetLeadsObservableInternalServerError{} } -/* GetLeadsObservableInternalServerError describes a response with status code 500, with default header values. +/* +GetLeadsObservableInternalServerError describes a response with status code 500, with default header values. Server Internal Error */ @@ -294,9 +475,44 @@ type GetLeadsObservableInternalServerError struct { Payload *crm_models.Error } +// IsSuccess returns true when this get leads observable internal server error response has a 2xx status code +func (o *GetLeadsObservableInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get leads observable internal server error response has a 3xx status code +func (o *GetLeadsObservableInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get leads observable internal server error response has a 4xx status code +func (o *GetLeadsObservableInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this get leads observable internal server error response has a 5xx status code +func (o *GetLeadsObservableInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this get leads observable internal server error response a status code equal to that given +func (o *GetLeadsObservableInternalServerError) IsCode(code int) bool { + return code == 500 +} + +// Code gets the status code for the get leads observable internal server error response +func (o *GetLeadsObservableInternalServerError) Code() int { + return 500 +} + func (o *GetLeadsObservableInternalServerError) Error() string { return fmt.Sprintf("[GET /leads/observable][%d] getLeadsObservableInternalServerError %+v", 500, o.Payload) } + +func (o *GetLeadsObservableInternalServerError) String() string { + return fmt.Sprintf("[GET /leads/observable][%d] getLeadsObservableInternalServerError %+v", 500, o.Payload) +} + func (o *GetLeadsObservableInternalServerError) GetPayload() *crm_models.Error { return o.Payload } diff --git a/api/crm/crm_client/leads/get_leads_parameters.go b/api/crm/crm_client/leads/get_leads_parameters.go index 3912b20..99a3e08 100644 --- a/api/crm/crm_client/leads/get_leads_parameters.go +++ b/api/crm/crm_client/leads/get_leads_parameters.go @@ -57,10 +57,12 @@ func NewGetLeadsParamsWithHTTPClient(client *http.Client) *GetLeadsParams { } } -/* GetLeadsParams contains all the parameters to send to the API endpoint - for the get leads operation. +/* +GetLeadsParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get leads operation. + + Typically these are written to a http.Request. */ type GetLeadsParams struct { diff --git a/api/crm/crm_client/leads/get_leads_responses.go b/api/crm/crm_client/leads/get_leads_responses.go index c705ee6..8c65b23 100644 --- a/api/crm/crm_client/leads/get_leads_responses.go +++ b/api/crm/crm_client/leads/get_leads_responses.go @@ -73,7 +73,8 @@ func NewGetLeadsOK() *GetLeadsOK { return &GetLeadsOK{} } -/* GetLeadsOK describes a response with status code 200, with default header values. +/* +GetLeadsOK describes a response with status code 200, with default header values. Taxnexus Response with an array of Lead objects */ @@ -84,9 +85,44 @@ type GetLeadsOK struct { Payload *crm_models.LeadResponse } +// IsSuccess returns true when this get leads o k response has a 2xx status code +func (o *GetLeadsOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get leads o k response has a 3xx status code +func (o *GetLeadsOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get leads o k response has a 4xx status code +func (o *GetLeadsOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get leads o k response has a 5xx status code +func (o *GetLeadsOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get leads o k response a status code equal to that given +func (o *GetLeadsOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get leads o k response +func (o *GetLeadsOK) Code() int { + return 200 +} + func (o *GetLeadsOK) Error() string { return fmt.Sprintf("[GET /leads][%d] getLeadsOK %+v", 200, o.Payload) } + +func (o *GetLeadsOK) String() string { + return fmt.Sprintf("[GET /leads][%d] getLeadsOK %+v", 200, o.Payload) +} + func (o *GetLeadsOK) GetPayload() *crm_models.LeadResponse { return o.Payload } @@ -122,7 +158,8 @@ func NewGetLeadsUnauthorized() *GetLeadsUnauthorized { return &GetLeadsUnauthorized{} } -/* GetLeadsUnauthorized describes a response with status code 401, with default header values. +/* +GetLeadsUnauthorized describes a response with status code 401, with default header values. Access unauthorized, invalid API-KEY was used */ @@ -132,9 +169,44 @@ type GetLeadsUnauthorized struct { Payload *crm_models.Error } +// IsSuccess returns true when this get leads unauthorized response has a 2xx status code +func (o *GetLeadsUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get leads unauthorized response has a 3xx status code +func (o *GetLeadsUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get leads unauthorized response has a 4xx status code +func (o *GetLeadsUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this get leads unauthorized response has a 5xx status code +func (o *GetLeadsUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this get leads unauthorized response a status code equal to that given +func (o *GetLeadsUnauthorized) IsCode(code int) bool { + return code == 401 +} + +// Code gets the status code for the get leads unauthorized response +func (o *GetLeadsUnauthorized) Code() int { + return 401 +} + func (o *GetLeadsUnauthorized) Error() string { return fmt.Sprintf("[GET /leads][%d] getLeadsUnauthorized %+v", 401, o.Payload) } + +func (o *GetLeadsUnauthorized) String() string { + return fmt.Sprintf("[GET /leads][%d] getLeadsUnauthorized %+v", 401, o.Payload) +} + func (o *GetLeadsUnauthorized) GetPayload() *crm_models.Error { return o.Payload } @@ -163,7 +235,8 @@ func NewGetLeadsForbidden() *GetLeadsForbidden { return &GetLeadsForbidden{} } -/* GetLeadsForbidden describes a response with status code 403, with default header values. +/* +GetLeadsForbidden describes a response with status code 403, with default header values. Access forbidden, account lacks access */ @@ -173,9 +246,44 @@ type GetLeadsForbidden struct { Payload *crm_models.Error } +// IsSuccess returns true when this get leads forbidden response has a 2xx status code +func (o *GetLeadsForbidden) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get leads forbidden response has a 3xx status code +func (o *GetLeadsForbidden) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get leads forbidden response has a 4xx status code +func (o *GetLeadsForbidden) IsClientError() bool { + return true +} + +// IsServerError returns true when this get leads forbidden response has a 5xx status code +func (o *GetLeadsForbidden) IsServerError() bool { + return false +} + +// IsCode returns true when this get leads forbidden response a status code equal to that given +func (o *GetLeadsForbidden) IsCode(code int) bool { + return code == 403 +} + +// Code gets the status code for the get leads forbidden response +func (o *GetLeadsForbidden) Code() int { + return 403 +} + func (o *GetLeadsForbidden) Error() string { return fmt.Sprintf("[GET /leads][%d] getLeadsForbidden %+v", 403, o.Payload) } + +func (o *GetLeadsForbidden) String() string { + return fmt.Sprintf("[GET /leads][%d] getLeadsForbidden %+v", 403, o.Payload) +} + func (o *GetLeadsForbidden) GetPayload() *crm_models.Error { return o.Payload } @@ -204,7 +312,8 @@ func NewGetLeadsNotFound() *GetLeadsNotFound { return &GetLeadsNotFound{} } -/* GetLeadsNotFound describes a response with status code 404, with default header values. +/* +GetLeadsNotFound describes a response with status code 404, with default header values. Resource was not found */ @@ -214,9 +323,44 @@ type GetLeadsNotFound struct { Payload *crm_models.Error } +// IsSuccess returns true when this get leads not found response has a 2xx status code +func (o *GetLeadsNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get leads not found response has a 3xx status code +func (o *GetLeadsNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get leads not found response has a 4xx status code +func (o *GetLeadsNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this get leads not found response has a 5xx status code +func (o *GetLeadsNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this get leads not found response a status code equal to that given +func (o *GetLeadsNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the get leads not found response +func (o *GetLeadsNotFound) Code() int { + return 404 +} + func (o *GetLeadsNotFound) Error() string { return fmt.Sprintf("[GET /leads][%d] getLeadsNotFound %+v", 404, o.Payload) } + +func (o *GetLeadsNotFound) String() string { + return fmt.Sprintf("[GET /leads][%d] getLeadsNotFound %+v", 404, o.Payload) +} + func (o *GetLeadsNotFound) GetPayload() *crm_models.Error { return o.Payload } @@ -245,7 +389,8 @@ func NewGetLeadsUnprocessableEntity() *GetLeadsUnprocessableEntity { return &GetLeadsUnprocessableEntity{} } -/* GetLeadsUnprocessableEntity describes a response with status code 422, with default header values. +/* +GetLeadsUnprocessableEntity describes a response with status code 422, with default header values. Unprocessable Entity, likely a bad parameter */ @@ -255,9 +400,44 @@ type GetLeadsUnprocessableEntity struct { Payload *crm_models.Error } +// IsSuccess returns true when this get leads unprocessable entity response has a 2xx status code +func (o *GetLeadsUnprocessableEntity) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get leads unprocessable entity response has a 3xx status code +func (o *GetLeadsUnprocessableEntity) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get leads unprocessable entity response has a 4xx status code +func (o *GetLeadsUnprocessableEntity) IsClientError() bool { + return true +} + +// IsServerError returns true when this get leads unprocessable entity response has a 5xx status code +func (o *GetLeadsUnprocessableEntity) IsServerError() bool { + return false +} + +// IsCode returns true when this get leads unprocessable entity response a status code equal to that given +func (o *GetLeadsUnprocessableEntity) IsCode(code int) bool { + return code == 422 +} + +// Code gets the status code for the get leads unprocessable entity response +func (o *GetLeadsUnprocessableEntity) Code() int { + return 422 +} + func (o *GetLeadsUnprocessableEntity) Error() string { return fmt.Sprintf("[GET /leads][%d] getLeadsUnprocessableEntity %+v", 422, o.Payload) } + +func (o *GetLeadsUnprocessableEntity) String() string { + return fmt.Sprintf("[GET /leads][%d] getLeadsUnprocessableEntity %+v", 422, o.Payload) +} + func (o *GetLeadsUnprocessableEntity) GetPayload() *crm_models.Error { return o.Payload } @@ -286,7 +466,8 @@ func NewGetLeadsInternalServerError() *GetLeadsInternalServerError { return &GetLeadsInternalServerError{} } -/* GetLeadsInternalServerError describes a response with status code 500, with default header values. +/* +GetLeadsInternalServerError describes a response with status code 500, with default header values. Server Internal Error */ @@ -296,9 +477,44 @@ type GetLeadsInternalServerError struct { Payload *crm_models.Error } +// IsSuccess returns true when this get leads internal server error response has a 2xx status code +func (o *GetLeadsInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get leads internal server error response has a 3xx status code +func (o *GetLeadsInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get leads internal server error response has a 4xx status code +func (o *GetLeadsInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this get leads internal server error response has a 5xx status code +func (o *GetLeadsInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this get leads internal server error response a status code equal to that given +func (o *GetLeadsInternalServerError) IsCode(code int) bool { + return code == 500 +} + +// Code gets the status code for the get leads internal server error response +func (o *GetLeadsInternalServerError) Code() int { + return 500 +} + func (o *GetLeadsInternalServerError) Error() string { return fmt.Sprintf("[GET /leads][%d] getLeadsInternalServerError %+v", 500, o.Payload) } + +func (o *GetLeadsInternalServerError) String() string { + return fmt.Sprintf("[GET /leads][%d] getLeadsInternalServerError %+v", 500, o.Payload) +} + func (o *GetLeadsInternalServerError) GetPayload() *crm_models.Error { return o.Payload } diff --git a/api/crm/crm_client/leads/leads_client.go b/api/crm/crm_client/leads/leads_client.go index 804f0d7..6285a47 100644 --- a/api/crm/crm_client/leads/leads_client.go +++ b/api/crm/crm_client/leads/leads_client.go @@ -48,9 +48,9 @@ type ClientService interface { } /* - DeleteLead deletes a contact +DeleteLead deletes a contact - Delete Taxnexus Lead record +Delete Taxnexus Lead record */ func (a *Client) DeleteLead(params *DeleteLeadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteLeadOK, error) { // TODO: Validate the params before sending @@ -89,9 +89,9 @@ func (a *Client) DeleteLead(params *DeleteLeadParams, authInfo runtime.ClientAut } /* - GetLeads gets a list of contacts +GetLeads gets a list of contacts - Return a list of all available Leads +Return a list of all available Leads */ func (a *Client) GetLeads(params *GetLeadsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetLeadsOK, error) { // TODO: Validate the params before sending @@ -130,9 +130,9 @@ func (a *Client) GetLeads(params *GetLeadsParams, authInfo runtime.ClientAuthInf } /* - GetLeadsObservable gets taxnexus leads in an observable array +GetLeadsObservable gets taxnexus leads in an observable array - A list of leads in a simple JSON array +A list of leads in a simple JSON array */ func (a *Client) GetLeadsObservable(params *GetLeadsObservableParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetLeadsObservableOK, error) { // TODO: Validate the params before sending @@ -171,9 +171,9 @@ func (a *Client) GetLeadsObservable(params *GetLeadsObservableParams, authInfo r } /* - PostLeads adds new leads +PostLeads adds new leads - Lead records to be added +Lead records to be added */ func (a *Client) PostLeads(params *PostLeadsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostLeadsOK, error) { // TODO: Validate the params before sending @@ -212,9 +212,9 @@ func (a *Client) PostLeads(params *PostLeadsParams, authInfo runtime.ClientAuthI } /* - PutLeads updates leads +PutLeads updates leads - Update Lead records +Update Lead records */ func (a *Client) PutLeads(params *PutLeadsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PutLeadsOK, error) { // TODO: Validate the params before sending diff --git a/api/crm/crm_client/leads/post_leads_parameters.go b/api/crm/crm_client/leads/post_leads_parameters.go index 4efc13a..705b93f 100644 --- a/api/crm/crm_client/leads/post_leads_parameters.go +++ b/api/crm/crm_client/leads/post_leads_parameters.go @@ -58,10 +58,12 @@ func NewPostLeadsParamsWithHTTPClient(client *http.Client) *PostLeadsParams { } } -/* PostLeadsParams contains all the parameters to send to the API endpoint - for the post leads operation. +/* +PostLeadsParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the post leads operation. + + Typically these are written to a http.Request. */ type PostLeadsParams struct { diff --git a/api/crm/crm_client/leads/post_leads_responses.go b/api/crm/crm_client/leads/post_leads_responses.go index 5a1948b..1c9e817 100644 --- a/api/crm/crm_client/leads/post_leads_responses.go +++ b/api/crm/crm_client/leads/post_leads_responses.go @@ -73,7 +73,8 @@ func NewPostLeadsOK() *PostLeadsOK { return &PostLeadsOK{} } -/* PostLeadsOK describes a response with status code 200, with default header values. +/* +PostLeadsOK describes a response with status code 200, with default header values. Taxnexus Response with an array of Lead objects */ @@ -84,9 +85,44 @@ type PostLeadsOK struct { Payload *crm_models.LeadResponse } +// IsSuccess returns true when this post leads o k response has a 2xx status code +func (o *PostLeadsOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this post leads o k response has a 3xx status code +func (o *PostLeadsOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this post leads o k response has a 4xx status code +func (o *PostLeadsOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this post leads o k response has a 5xx status code +func (o *PostLeadsOK) IsServerError() bool { + return false +} + +// IsCode returns true when this post leads o k response a status code equal to that given +func (o *PostLeadsOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the post leads o k response +func (o *PostLeadsOK) Code() int { + return 200 +} + func (o *PostLeadsOK) Error() string { return fmt.Sprintf("[POST /leads][%d] postLeadsOK %+v", 200, o.Payload) } + +func (o *PostLeadsOK) String() string { + return fmt.Sprintf("[POST /leads][%d] postLeadsOK %+v", 200, o.Payload) +} + func (o *PostLeadsOK) GetPayload() *crm_models.LeadResponse { return o.Payload } @@ -122,7 +158,8 @@ func NewPostLeadsUnauthorized() *PostLeadsUnauthorized { return &PostLeadsUnauthorized{} } -/* PostLeadsUnauthorized describes a response with status code 401, with default header values. +/* +PostLeadsUnauthorized describes a response with status code 401, with default header values. Access unauthorized, invalid API-KEY was used */ @@ -132,9 +169,44 @@ type PostLeadsUnauthorized struct { Payload *crm_models.Error } +// IsSuccess returns true when this post leads unauthorized response has a 2xx status code +func (o *PostLeadsUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this post leads unauthorized response has a 3xx status code +func (o *PostLeadsUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this post leads unauthorized response has a 4xx status code +func (o *PostLeadsUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this post leads unauthorized response has a 5xx status code +func (o *PostLeadsUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this post leads unauthorized response a status code equal to that given +func (o *PostLeadsUnauthorized) IsCode(code int) bool { + return code == 401 +} + +// Code gets the status code for the post leads unauthorized response +func (o *PostLeadsUnauthorized) Code() int { + return 401 +} + func (o *PostLeadsUnauthorized) Error() string { return fmt.Sprintf("[POST /leads][%d] postLeadsUnauthorized %+v", 401, o.Payload) } + +func (o *PostLeadsUnauthorized) String() string { + return fmt.Sprintf("[POST /leads][%d] postLeadsUnauthorized %+v", 401, o.Payload) +} + func (o *PostLeadsUnauthorized) GetPayload() *crm_models.Error { return o.Payload } @@ -163,7 +235,8 @@ func NewPostLeadsForbidden() *PostLeadsForbidden { return &PostLeadsForbidden{} } -/* PostLeadsForbidden describes a response with status code 403, with default header values. +/* +PostLeadsForbidden describes a response with status code 403, with default header values. Access forbidden, account lacks access */ @@ -173,9 +246,44 @@ type PostLeadsForbidden struct { Payload *crm_models.Error } +// IsSuccess returns true when this post leads forbidden response has a 2xx status code +func (o *PostLeadsForbidden) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this post leads forbidden response has a 3xx status code +func (o *PostLeadsForbidden) IsRedirect() bool { + return false +} + +// IsClientError returns true when this post leads forbidden response has a 4xx status code +func (o *PostLeadsForbidden) IsClientError() bool { + return true +} + +// IsServerError returns true when this post leads forbidden response has a 5xx status code +func (o *PostLeadsForbidden) IsServerError() bool { + return false +} + +// IsCode returns true when this post leads forbidden response a status code equal to that given +func (o *PostLeadsForbidden) IsCode(code int) bool { + return code == 403 +} + +// Code gets the status code for the post leads forbidden response +func (o *PostLeadsForbidden) Code() int { + return 403 +} + func (o *PostLeadsForbidden) Error() string { return fmt.Sprintf("[POST /leads][%d] postLeadsForbidden %+v", 403, o.Payload) } + +func (o *PostLeadsForbidden) String() string { + return fmt.Sprintf("[POST /leads][%d] postLeadsForbidden %+v", 403, o.Payload) +} + func (o *PostLeadsForbidden) GetPayload() *crm_models.Error { return o.Payload } @@ -204,7 +312,8 @@ func NewPostLeadsNotFound() *PostLeadsNotFound { return &PostLeadsNotFound{} } -/* PostLeadsNotFound describes a response with status code 404, with default header values. +/* +PostLeadsNotFound describes a response with status code 404, with default header values. Resource was not found */ @@ -214,9 +323,44 @@ type PostLeadsNotFound struct { Payload *crm_models.Error } +// IsSuccess returns true when this post leads not found response has a 2xx status code +func (o *PostLeadsNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this post leads not found response has a 3xx status code +func (o *PostLeadsNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this post leads not found response has a 4xx status code +func (o *PostLeadsNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this post leads not found response has a 5xx status code +func (o *PostLeadsNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this post leads not found response a status code equal to that given +func (o *PostLeadsNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the post leads not found response +func (o *PostLeadsNotFound) Code() int { + return 404 +} + func (o *PostLeadsNotFound) Error() string { return fmt.Sprintf("[POST /leads][%d] postLeadsNotFound %+v", 404, o.Payload) } + +func (o *PostLeadsNotFound) String() string { + return fmt.Sprintf("[POST /leads][%d] postLeadsNotFound %+v", 404, o.Payload) +} + func (o *PostLeadsNotFound) GetPayload() *crm_models.Error { return o.Payload } @@ -245,7 +389,8 @@ func NewPostLeadsUnprocessableEntity() *PostLeadsUnprocessableEntity { return &PostLeadsUnprocessableEntity{} } -/* PostLeadsUnprocessableEntity describes a response with status code 422, with default header values. +/* +PostLeadsUnprocessableEntity describes a response with status code 422, with default header values. Unprocessable Entity, likely a bad parameter */ @@ -255,9 +400,44 @@ type PostLeadsUnprocessableEntity struct { Payload *crm_models.Error } +// IsSuccess returns true when this post leads unprocessable entity response has a 2xx status code +func (o *PostLeadsUnprocessableEntity) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this post leads unprocessable entity response has a 3xx status code +func (o *PostLeadsUnprocessableEntity) IsRedirect() bool { + return false +} + +// IsClientError returns true when this post leads unprocessable entity response has a 4xx status code +func (o *PostLeadsUnprocessableEntity) IsClientError() bool { + return true +} + +// IsServerError returns true when this post leads unprocessable entity response has a 5xx status code +func (o *PostLeadsUnprocessableEntity) IsServerError() bool { + return false +} + +// IsCode returns true when this post leads unprocessable entity response a status code equal to that given +func (o *PostLeadsUnprocessableEntity) IsCode(code int) bool { + return code == 422 +} + +// Code gets the status code for the post leads unprocessable entity response +func (o *PostLeadsUnprocessableEntity) Code() int { + return 422 +} + func (o *PostLeadsUnprocessableEntity) Error() string { return fmt.Sprintf("[POST /leads][%d] postLeadsUnprocessableEntity %+v", 422, o.Payload) } + +func (o *PostLeadsUnprocessableEntity) String() string { + return fmt.Sprintf("[POST /leads][%d] postLeadsUnprocessableEntity %+v", 422, o.Payload) +} + func (o *PostLeadsUnprocessableEntity) GetPayload() *crm_models.Error { return o.Payload } @@ -286,7 +466,8 @@ func NewPostLeadsInternalServerError() *PostLeadsInternalServerError { return &PostLeadsInternalServerError{} } -/* PostLeadsInternalServerError describes a response with status code 500, with default header values. +/* +PostLeadsInternalServerError describes a response with status code 500, with default header values. Server Internal Error */ @@ -296,9 +477,44 @@ type PostLeadsInternalServerError struct { Payload *crm_models.Error } +// IsSuccess returns true when this post leads internal server error response has a 2xx status code +func (o *PostLeadsInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this post leads internal server error response has a 3xx status code +func (o *PostLeadsInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this post leads internal server error response has a 4xx status code +func (o *PostLeadsInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this post leads internal server error response has a 5xx status code +func (o *PostLeadsInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this post leads internal server error response a status code equal to that given +func (o *PostLeadsInternalServerError) IsCode(code int) bool { + return code == 500 +} + +// Code gets the status code for the post leads internal server error response +func (o *PostLeadsInternalServerError) Code() int { + return 500 +} + func (o *PostLeadsInternalServerError) Error() string { return fmt.Sprintf("[POST /leads][%d] postLeadsInternalServerError %+v", 500, o.Payload) } + +func (o *PostLeadsInternalServerError) String() string { + return fmt.Sprintf("[POST /leads][%d] postLeadsInternalServerError %+v", 500, o.Payload) +} + func (o *PostLeadsInternalServerError) GetPayload() *crm_models.Error { return o.Payload } diff --git a/api/crm/crm_client/leads/put_leads_parameters.go b/api/crm/crm_client/leads/put_leads_parameters.go index 480a119..e47f4a3 100644 --- a/api/crm/crm_client/leads/put_leads_parameters.go +++ b/api/crm/crm_client/leads/put_leads_parameters.go @@ -58,10 +58,12 @@ func NewPutLeadsParamsWithHTTPClient(client *http.Client) *PutLeadsParams { } } -/* PutLeadsParams contains all the parameters to send to the API endpoint - for the put leads operation. +/* +PutLeadsParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the put leads operation. + + Typically these are written to a http.Request. */ type PutLeadsParams struct { diff --git a/api/crm/crm_client/leads/put_leads_responses.go b/api/crm/crm_client/leads/put_leads_responses.go index cef148d..d16683d 100644 --- a/api/crm/crm_client/leads/put_leads_responses.go +++ b/api/crm/crm_client/leads/put_leads_responses.go @@ -73,7 +73,8 @@ func NewPutLeadsOK() *PutLeadsOK { return &PutLeadsOK{} } -/* PutLeadsOK describes a response with status code 200, with default header values. +/* +PutLeadsOK describes a response with status code 200, with default header values. Taxnexus Response with an array of Lead objects */ @@ -84,9 +85,44 @@ type PutLeadsOK struct { Payload *crm_models.LeadResponse } +// IsSuccess returns true when this put leads o k response has a 2xx status code +func (o *PutLeadsOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this put leads o k response has a 3xx status code +func (o *PutLeadsOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this put leads o k response has a 4xx status code +func (o *PutLeadsOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this put leads o k response has a 5xx status code +func (o *PutLeadsOK) IsServerError() bool { + return false +} + +// IsCode returns true when this put leads o k response a status code equal to that given +func (o *PutLeadsOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the put leads o k response +func (o *PutLeadsOK) Code() int { + return 200 +} + func (o *PutLeadsOK) Error() string { return fmt.Sprintf("[PUT /leads][%d] putLeadsOK %+v", 200, o.Payload) } + +func (o *PutLeadsOK) String() string { + return fmt.Sprintf("[PUT /leads][%d] putLeadsOK %+v", 200, o.Payload) +} + func (o *PutLeadsOK) GetPayload() *crm_models.LeadResponse { return o.Payload } @@ -122,7 +158,8 @@ func NewPutLeadsUnauthorized() *PutLeadsUnauthorized { return &PutLeadsUnauthorized{} } -/* PutLeadsUnauthorized describes a response with status code 401, with default header values. +/* +PutLeadsUnauthorized describes a response with status code 401, with default header values. Access unauthorized, invalid API-KEY was used */ @@ -132,9 +169,44 @@ type PutLeadsUnauthorized struct { Payload *crm_models.Error } +// IsSuccess returns true when this put leads unauthorized response has a 2xx status code +func (o *PutLeadsUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this put leads unauthorized response has a 3xx status code +func (o *PutLeadsUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this put leads unauthorized response has a 4xx status code +func (o *PutLeadsUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this put leads unauthorized response has a 5xx status code +func (o *PutLeadsUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this put leads unauthorized response a status code equal to that given +func (o *PutLeadsUnauthorized) IsCode(code int) bool { + return code == 401 +} + +// Code gets the status code for the put leads unauthorized response +func (o *PutLeadsUnauthorized) Code() int { + return 401 +} + func (o *PutLeadsUnauthorized) Error() string { return fmt.Sprintf("[PUT /leads][%d] putLeadsUnauthorized %+v", 401, o.Payload) } + +func (o *PutLeadsUnauthorized) String() string { + return fmt.Sprintf("[PUT /leads][%d] putLeadsUnauthorized %+v", 401, o.Payload) +} + func (o *PutLeadsUnauthorized) GetPayload() *crm_models.Error { return o.Payload } @@ -163,7 +235,8 @@ func NewPutLeadsForbidden() *PutLeadsForbidden { return &PutLeadsForbidden{} } -/* PutLeadsForbidden describes a response with status code 403, with default header values. +/* +PutLeadsForbidden describes a response with status code 403, with default header values. Access forbidden, account lacks access */ @@ -173,9 +246,44 @@ type PutLeadsForbidden struct { Payload *crm_models.Error } +// IsSuccess returns true when this put leads forbidden response has a 2xx status code +func (o *PutLeadsForbidden) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this put leads forbidden response has a 3xx status code +func (o *PutLeadsForbidden) IsRedirect() bool { + return false +} + +// IsClientError returns true when this put leads forbidden response has a 4xx status code +func (o *PutLeadsForbidden) IsClientError() bool { + return true +} + +// IsServerError returns true when this put leads forbidden response has a 5xx status code +func (o *PutLeadsForbidden) IsServerError() bool { + return false +} + +// IsCode returns true when this put leads forbidden response a status code equal to that given +func (o *PutLeadsForbidden) IsCode(code int) bool { + return code == 403 +} + +// Code gets the status code for the put leads forbidden response +func (o *PutLeadsForbidden) Code() int { + return 403 +} + func (o *PutLeadsForbidden) Error() string { return fmt.Sprintf("[PUT /leads][%d] putLeadsForbidden %+v", 403, o.Payload) } + +func (o *PutLeadsForbidden) String() string { + return fmt.Sprintf("[PUT /leads][%d] putLeadsForbidden %+v", 403, o.Payload) +} + func (o *PutLeadsForbidden) GetPayload() *crm_models.Error { return o.Payload } @@ -204,7 +312,8 @@ func NewPutLeadsNotFound() *PutLeadsNotFound { return &PutLeadsNotFound{} } -/* PutLeadsNotFound describes a response with status code 404, with default header values. +/* +PutLeadsNotFound describes a response with status code 404, with default header values. Resource was not found */ @@ -214,9 +323,44 @@ type PutLeadsNotFound struct { Payload *crm_models.Error } +// IsSuccess returns true when this put leads not found response has a 2xx status code +func (o *PutLeadsNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this put leads not found response has a 3xx status code +func (o *PutLeadsNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this put leads not found response has a 4xx status code +func (o *PutLeadsNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this put leads not found response has a 5xx status code +func (o *PutLeadsNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this put leads not found response a status code equal to that given +func (o *PutLeadsNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the put leads not found response +func (o *PutLeadsNotFound) Code() int { + return 404 +} + func (o *PutLeadsNotFound) Error() string { return fmt.Sprintf("[PUT /leads][%d] putLeadsNotFound %+v", 404, o.Payload) } + +func (o *PutLeadsNotFound) String() string { + return fmt.Sprintf("[PUT /leads][%d] putLeadsNotFound %+v", 404, o.Payload) +} + func (o *PutLeadsNotFound) GetPayload() *crm_models.Error { return o.Payload } @@ -245,7 +389,8 @@ func NewPutLeadsUnprocessableEntity() *PutLeadsUnprocessableEntity { return &PutLeadsUnprocessableEntity{} } -/* PutLeadsUnprocessableEntity describes a response with status code 422, with default header values. +/* +PutLeadsUnprocessableEntity describes a response with status code 422, with default header values. Unprocessable Entity, likely a bad parameter */ @@ -255,9 +400,44 @@ type PutLeadsUnprocessableEntity struct { Payload *crm_models.Error } +// IsSuccess returns true when this put leads unprocessable entity response has a 2xx status code +func (o *PutLeadsUnprocessableEntity) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this put leads unprocessable entity response has a 3xx status code +func (o *PutLeadsUnprocessableEntity) IsRedirect() bool { + return false +} + +// IsClientError returns true when this put leads unprocessable entity response has a 4xx status code +func (o *PutLeadsUnprocessableEntity) IsClientError() bool { + return true +} + +// IsServerError returns true when this put leads unprocessable entity response has a 5xx status code +func (o *PutLeadsUnprocessableEntity) IsServerError() bool { + return false +} + +// IsCode returns true when this put leads unprocessable entity response a status code equal to that given +func (o *PutLeadsUnprocessableEntity) IsCode(code int) bool { + return code == 422 +} + +// Code gets the status code for the put leads unprocessable entity response +func (o *PutLeadsUnprocessableEntity) Code() int { + return 422 +} + func (o *PutLeadsUnprocessableEntity) Error() string { return fmt.Sprintf("[PUT /leads][%d] putLeadsUnprocessableEntity %+v", 422, o.Payload) } + +func (o *PutLeadsUnprocessableEntity) String() string { + return fmt.Sprintf("[PUT /leads][%d] putLeadsUnprocessableEntity %+v", 422, o.Payload) +} + func (o *PutLeadsUnprocessableEntity) GetPayload() *crm_models.Error { return o.Payload } @@ -286,7 +466,8 @@ func NewPutLeadsInternalServerError() *PutLeadsInternalServerError { return &PutLeadsInternalServerError{} } -/* PutLeadsInternalServerError describes a response with status code 500, with default header values. +/* +PutLeadsInternalServerError describes a response with status code 500, with default header values. Server Internal Error */ @@ -296,9 +477,44 @@ type PutLeadsInternalServerError struct { Payload *crm_models.Error } +// IsSuccess returns true when this put leads internal server error response has a 2xx status code +func (o *PutLeadsInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this put leads internal server error response has a 3xx status code +func (o *PutLeadsInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this put leads internal server error response has a 4xx status code +func (o *PutLeadsInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this put leads internal server error response has a 5xx status code +func (o *PutLeadsInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this put leads internal server error response a status code equal to that given +func (o *PutLeadsInternalServerError) IsCode(code int) bool { + return code == 500 +} + +// Code gets the status code for the put leads internal server error response +func (o *PutLeadsInternalServerError) Code() int { + return 500 +} + func (o *PutLeadsInternalServerError) Error() string { return fmt.Sprintf("[PUT /leads][%d] putLeadsInternalServerError %+v", 500, o.Payload) } + +func (o *PutLeadsInternalServerError) String() string { + return fmt.Sprintf("[PUT /leads][%d] putLeadsInternalServerError %+v", 500, o.Payload) +} + func (o *PutLeadsInternalServerError) GetPayload() *crm_models.Error { return o.Payload } diff --git a/api/devops/devops_client/cluster/cluster_client.go b/api/devops/devops_client/cluster/cluster_client.go index 623e20a..6ef77a5 100644 --- a/api/devops/devops_client/cluster/cluster_client.go +++ b/api/devops/devops_client/cluster/cluster_client.go @@ -48,9 +48,9 @@ type ClientService interface { } /* - GetCluster gets a single cluster object +GetCluster gets a single cluster object - Return a single Cluster object from datastore as a Singleton +Return a single Cluster object from datastore as a Singleton */ func (a *Client) GetCluster(params *GetClusterParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetClusterOK, error) { // TODO: Validate the params before sending @@ -89,9 +89,9 @@ func (a *Client) GetCluster(params *GetClusterParams, authInfo runtime.ClientAut } /* - GetClusters gets a list clusters +GetClusters gets a list clusters - Return a list of Cluster records from the datastore +Return a list of Cluster records from the datastore */ func (a *Client) GetClusters(params *GetClustersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetClustersOK, error) { // TODO: Validate the params before sending @@ -130,9 +130,9 @@ func (a *Client) GetClusters(params *GetClustersParams, authInfo runtime.ClientA } /* - GetClustersObservable gets clusters in an observable array +GetClustersObservable gets clusters in an observable array - Returns a Cluster retrieval in a observable array +Returns a Cluster retrieval in a observable array */ func (a *Client) GetClustersObservable(params *GetClustersObservableParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetClustersObservableOK, error) { // TODO: Validate the params before sending @@ -171,9 +171,9 @@ func (a *Client) GetClustersObservable(params *GetClustersObservableParams, auth } /* - PostClusters creates new clusters +PostClusters creates new clusters - Create Clusters in Taxnexus +Create Clusters in Taxnexus */ func (a *Client) PostClusters(params *PostClustersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostClustersOK, error) { // TODO: Validate the params before sending @@ -212,9 +212,9 @@ func (a *Client) PostClusters(params *PostClustersParams, authInfo runtime.Clien } /* - PutClusters updates clustera +PutClusters updates clustera - Update Cluster in Taxnexus +Update Cluster in Taxnexus */ func (a *Client) PutClusters(params *PutClustersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PutClustersOK, error) { // TODO: Validate the params before sending diff --git a/api/devops/devops_client/cluster/get_cluster_parameters.go b/api/devops/devops_client/cluster/get_cluster_parameters.go index aeb5e1b..cb115d4 100644 --- a/api/devops/devops_client/cluster/get_cluster_parameters.go +++ b/api/devops/devops_client/cluster/get_cluster_parameters.go @@ -56,10 +56,12 @@ func NewGetClusterParamsWithHTTPClient(client *http.Client) *GetClusterParams { } } -/* GetClusterParams contains all the parameters to send to the API endpoint - for the get cluster operation. +/* +GetClusterParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get cluster operation. + + Typically these are written to a http.Request. */ type GetClusterParams struct { diff --git a/api/devops/devops_client/cluster/get_cluster_responses.go b/api/devops/devops_client/cluster/get_cluster_responses.go index 58335dd..df6b388 100644 --- a/api/devops/devops_client/cluster/get_cluster_responses.go +++ b/api/devops/devops_client/cluster/get_cluster_responses.go @@ -73,7 +73,8 @@ func NewGetClusterOK() *GetClusterOK { return &GetClusterOK{} } -/* GetClusterOK describes a response with status code 200, with default header values. +/* +GetClusterOK describes a response with status code 200, with default header values. Single Cluster record response */ @@ -84,9 +85,44 @@ type GetClusterOK struct { Payload *devops_models.Cluster } +// IsSuccess returns true when this get cluster o k response has a 2xx status code +func (o *GetClusterOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get cluster o k response has a 3xx status code +func (o *GetClusterOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get cluster o k response has a 4xx status code +func (o *GetClusterOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get cluster o k response has a 5xx status code +func (o *GetClusterOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get cluster o k response a status code equal to that given +func (o *GetClusterOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get cluster o k response +func (o *GetClusterOK) Code() int { + return 200 +} + func (o *GetClusterOK) Error() string { return fmt.Sprintf("[GET /clusters/{clusterIdPath}][%d] getClusterOK %+v", 200, o.Payload) } + +func (o *GetClusterOK) String() string { + return fmt.Sprintf("[GET /clusters/{clusterIdPath}][%d] getClusterOK %+v", 200, o.Payload) +} + func (o *GetClusterOK) GetPayload() *devops_models.Cluster { return o.Payload } @@ -122,7 +158,8 @@ func NewGetClusterUnauthorized() *GetClusterUnauthorized { return &GetClusterUnauthorized{} } -/* GetClusterUnauthorized describes a response with status code 401, with default header values. +/* +GetClusterUnauthorized describes a response with status code 401, with default header values. Access Unauthorized, invalid API-KEY was used */ @@ -133,9 +170,44 @@ type GetClusterUnauthorized struct { Payload *devops_models.Error } +// IsSuccess returns true when this get cluster unauthorized response has a 2xx status code +func (o *GetClusterUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get cluster unauthorized response has a 3xx status code +func (o *GetClusterUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get cluster unauthorized response has a 4xx status code +func (o *GetClusterUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this get cluster unauthorized response has a 5xx status code +func (o *GetClusterUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this get cluster unauthorized response a status code equal to that given +func (o *GetClusterUnauthorized) IsCode(code int) bool { + return code == 401 +} + +// Code gets the status code for the get cluster unauthorized response +func (o *GetClusterUnauthorized) Code() int { + return 401 +} + func (o *GetClusterUnauthorized) Error() string { return fmt.Sprintf("[GET /clusters/{clusterIdPath}][%d] getClusterUnauthorized %+v", 401, o.Payload) } + +func (o *GetClusterUnauthorized) String() string { + return fmt.Sprintf("[GET /clusters/{clusterIdPath}][%d] getClusterUnauthorized %+v", 401, o.Payload) +} + func (o *GetClusterUnauthorized) GetPayload() *devops_models.Error { return o.Payload } @@ -171,7 +243,8 @@ func NewGetClusterForbidden() *GetClusterForbidden { return &GetClusterForbidden{} } -/* GetClusterForbidden describes a response with status code 403, with default header values. +/* +GetClusterForbidden describes a response with status code 403, with default header values. Access forbidden, account lacks access */ @@ -181,9 +254,44 @@ type GetClusterForbidden struct { Payload *devops_models.Error } +// IsSuccess returns true when this get cluster forbidden response has a 2xx status code +func (o *GetClusterForbidden) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get cluster forbidden response has a 3xx status code +func (o *GetClusterForbidden) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get cluster forbidden response has a 4xx status code +func (o *GetClusterForbidden) IsClientError() bool { + return true +} + +// IsServerError returns true when this get cluster forbidden response has a 5xx status code +func (o *GetClusterForbidden) IsServerError() bool { + return false +} + +// IsCode returns true when this get cluster forbidden response a status code equal to that given +func (o *GetClusterForbidden) IsCode(code int) bool { + return code == 403 +} + +// Code gets the status code for the get cluster forbidden response +func (o *GetClusterForbidden) Code() int { + return 403 +} + func (o *GetClusterForbidden) Error() string { return fmt.Sprintf("[GET /clusters/{clusterIdPath}][%d] getClusterForbidden %+v", 403, o.Payload) } + +func (o *GetClusterForbidden) String() string { + return fmt.Sprintf("[GET /clusters/{clusterIdPath}][%d] getClusterForbidden %+v", 403, o.Payload) +} + func (o *GetClusterForbidden) GetPayload() *devops_models.Error { return o.Payload } @@ -212,7 +320,8 @@ func NewGetClusterNotFound() *GetClusterNotFound { return &GetClusterNotFound{} } -/* GetClusterNotFound describes a response with status code 404, with default header values. +/* +GetClusterNotFound describes a response with status code 404, with default header values. Resource was not found */ @@ -222,9 +331,44 @@ type GetClusterNotFound struct { Payload *devops_models.Error } +// IsSuccess returns true when this get cluster not found response has a 2xx status code +func (o *GetClusterNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get cluster not found response has a 3xx status code +func (o *GetClusterNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get cluster not found response has a 4xx status code +func (o *GetClusterNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this get cluster not found response has a 5xx status code +func (o *GetClusterNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this get cluster not found response a status code equal to that given +func (o *GetClusterNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the get cluster not found response +func (o *GetClusterNotFound) Code() int { + return 404 +} + func (o *GetClusterNotFound) Error() string { return fmt.Sprintf("[GET /clusters/{clusterIdPath}][%d] getClusterNotFound %+v", 404, o.Payload) } + +func (o *GetClusterNotFound) String() string { + return fmt.Sprintf("[GET /clusters/{clusterIdPath}][%d] getClusterNotFound %+v", 404, o.Payload) +} + func (o *GetClusterNotFound) GetPayload() *devops_models.Error { return o.Payload } @@ -253,7 +397,8 @@ func NewGetClusterUnprocessableEntity() *GetClusterUnprocessableEntity { return &GetClusterUnprocessableEntity{} } -/* GetClusterUnprocessableEntity describes a response with status code 422, with default header values. +/* +GetClusterUnprocessableEntity describes a response with status code 422, with default header values. Unprocessable Entity, likely a bad parameter */ @@ -264,9 +409,44 @@ type GetClusterUnprocessableEntity struct { Payload *devops_models.Error } +// IsSuccess returns true when this get cluster unprocessable entity response has a 2xx status code +func (o *GetClusterUnprocessableEntity) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get cluster unprocessable entity response has a 3xx status code +func (o *GetClusterUnprocessableEntity) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get cluster unprocessable entity response has a 4xx status code +func (o *GetClusterUnprocessableEntity) IsClientError() bool { + return true +} + +// IsServerError returns true when this get cluster unprocessable entity response has a 5xx status code +func (o *GetClusterUnprocessableEntity) IsServerError() bool { + return false +} + +// IsCode returns true when this get cluster unprocessable entity response a status code equal to that given +func (o *GetClusterUnprocessableEntity) IsCode(code int) bool { + return code == 422 +} + +// Code gets the status code for the get cluster unprocessable entity response +func (o *GetClusterUnprocessableEntity) Code() int { + return 422 +} + func (o *GetClusterUnprocessableEntity) Error() string { return fmt.Sprintf("[GET /clusters/{clusterIdPath}][%d] getClusterUnprocessableEntity %+v", 422, o.Payload) } + +func (o *GetClusterUnprocessableEntity) String() string { + return fmt.Sprintf("[GET /clusters/{clusterIdPath}][%d] getClusterUnprocessableEntity %+v", 422, o.Payload) +} + func (o *GetClusterUnprocessableEntity) GetPayload() *devops_models.Error { return o.Payload } @@ -302,7 +482,8 @@ func NewGetClusterInternalServerError() *GetClusterInternalServerError { return &GetClusterInternalServerError{} } -/* GetClusterInternalServerError describes a response with status code 500, with default header values. +/* +GetClusterInternalServerError describes a response with status code 500, with default header values. Server Internal Error */ @@ -312,9 +493,44 @@ type GetClusterInternalServerError struct { Payload *devops_models.Error } +// IsSuccess returns true when this get cluster internal server error response has a 2xx status code +func (o *GetClusterInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get cluster internal server error response has a 3xx status code +func (o *GetClusterInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get cluster internal server error response has a 4xx status code +func (o *GetClusterInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this get cluster internal server error response has a 5xx status code +func (o *GetClusterInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this get cluster internal server error response a status code equal to that given +func (o *GetClusterInternalServerError) IsCode(code int) bool { + return code == 500 +} + +// Code gets the status code for the get cluster internal server error response +func (o *GetClusterInternalServerError) Code() int { + return 500 +} + func (o *GetClusterInternalServerError) Error() string { return fmt.Sprintf("[GET /clusters/{clusterIdPath}][%d] getClusterInternalServerError %+v", 500, o.Payload) } + +func (o *GetClusterInternalServerError) String() string { + return fmt.Sprintf("[GET /clusters/{clusterIdPath}][%d] getClusterInternalServerError %+v", 500, o.Payload) +} + func (o *GetClusterInternalServerError) GetPayload() *devops_models.Error { return o.Payload } diff --git a/api/devops/devops_client/cluster/get_clusters_observable_parameters.go b/api/devops/devops_client/cluster/get_clusters_observable_parameters.go index 8c9867d..a30308b 100644 --- a/api/devops/devops_client/cluster/get_clusters_observable_parameters.go +++ b/api/devops/devops_client/cluster/get_clusters_observable_parameters.go @@ -56,10 +56,12 @@ func NewGetClustersObservableParamsWithHTTPClient(client *http.Client) *GetClust } } -/* GetClustersObservableParams contains all the parameters to send to the API endpoint - for the get clusters observable operation. +/* +GetClustersObservableParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get clusters observable operation. + + Typically these are written to a http.Request. */ type GetClustersObservableParams struct { timeout time.Duration diff --git a/api/devops/devops_client/cluster/get_clusters_observable_responses.go b/api/devops/devops_client/cluster/get_clusters_observable_responses.go index 573af19..8d1f365 100644 --- a/api/devops/devops_client/cluster/get_clusters_observable_responses.go +++ b/api/devops/devops_client/cluster/get_clusters_observable_responses.go @@ -73,7 +73,8 @@ func NewGetClustersObservableOK() *GetClustersObservableOK { return &GetClustersObservableOK{} } -/* GetClustersObservableOK describes a response with status code 200, with default header values. +/* +GetClustersObservableOK describes a response with status code 200, with default header values. Single Cluster record response */ @@ -84,9 +85,44 @@ type GetClustersObservableOK struct { Payload []*devops_models.Cluster } +// IsSuccess returns true when this get clusters observable o k response has a 2xx status code +func (o *GetClustersObservableOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get clusters observable o k response has a 3xx status code +func (o *GetClustersObservableOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get clusters observable o k response has a 4xx status code +func (o *GetClustersObservableOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get clusters observable o k response has a 5xx status code +func (o *GetClustersObservableOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get clusters observable o k response a status code equal to that given +func (o *GetClustersObservableOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get clusters observable o k response +func (o *GetClustersObservableOK) Code() int { + return 200 +} + func (o *GetClustersObservableOK) Error() string { return fmt.Sprintf("[GET /clusters/observable][%d] getClustersObservableOK %+v", 200, o.Payload) } + +func (o *GetClustersObservableOK) String() string { + return fmt.Sprintf("[GET /clusters/observable][%d] getClustersObservableOK %+v", 200, o.Payload) +} + func (o *GetClustersObservableOK) GetPayload() []*devops_models.Cluster { return o.Payload } @@ -120,7 +156,8 @@ func NewGetClustersObservableUnauthorized() *GetClustersObservableUnauthorized { return &GetClustersObservableUnauthorized{} } -/* GetClustersObservableUnauthorized describes a response with status code 401, with default header values. +/* +GetClustersObservableUnauthorized describes a response with status code 401, with default header values. Access Unauthorized, invalid API-KEY was used */ @@ -131,9 +168,44 @@ type GetClustersObservableUnauthorized struct { Payload *devops_models.Error } +// IsSuccess returns true when this get clusters observable unauthorized response has a 2xx status code +func (o *GetClustersObservableUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get clusters observable unauthorized response has a 3xx status code +func (o *GetClustersObservableUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get clusters observable unauthorized response has a 4xx status code +func (o *GetClustersObservableUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this get clusters observable unauthorized response has a 5xx status code +func (o *GetClustersObservableUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this get clusters observable unauthorized response a status code equal to that given +func (o *GetClustersObservableUnauthorized) IsCode(code int) bool { + return code == 401 +} + +// Code gets the status code for the get clusters observable unauthorized response +func (o *GetClustersObservableUnauthorized) Code() int { + return 401 +} + func (o *GetClustersObservableUnauthorized) Error() string { return fmt.Sprintf("[GET /clusters/observable][%d] getClustersObservableUnauthorized %+v", 401, o.Payload) } + +func (o *GetClustersObservableUnauthorized) String() string { + return fmt.Sprintf("[GET /clusters/observable][%d] getClustersObservableUnauthorized %+v", 401, o.Payload) +} + func (o *GetClustersObservableUnauthorized) GetPayload() *devops_models.Error { return o.Payload } @@ -169,7 +241,8 @@ func NewGetClustersObservableForbidden() *GetClustersObservableForbidden { return &GetClustersObservableForbidden{} } -/* GetClustersObservableForbidden describes a response with status code 403, with default header values. +/* +GetClustersObservableForbidden describes a response with status code 403, with default header values. Access forbidden, account lacks access */ @@ -179,9 +252,44 @@ type GetClustersObservableForbidden struct { Payload *devops_models.Error } +// IsSuccess returns true when this get clusters observable forbidden response has a 2xx status code +func (o *GetClustersObservableForbidden) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get clusters observable forbidden response has a 3xx status code +func (o *GetClustersObservableForbidden) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get clusters observable forbidden response has a 4xx status code +func (o *GetClustersObservableForbidden) IsClientError() bool { + return true +} + +// IsServerError returns true when this get clusters observable forbidden response has a 5xx status code +func (o *GetClustersObservableForbidden) IsServerError() bool { + return false +} + +// IsCode returns true when this get clusters observable forbidden response a status code equal to that given +func (o *GetClustersObservableForbidden) IsCode(code int) bool { + return code == 403 +} + +// Code gets the status code for the get clusters observable forbidden response +func (o *GetClustersObservableForbidden) Code() int { + return 403 +} + func (o *GetClustersObservableForbidden) Error() string { return fmt.Sprintf("[GET /clusters/observable][%d] getClustersObservableForbidden %+v", 403, o.Payload) } + +func (o *GetClustersObservableForbidden) String() string { + return fmt.Sprintf("[GET /clusters/observable][%d] getClustersObservableForbidden %+v", 403, o.Payload) +} + func (o *GetClustersObservableForbidden) GetPayload() *devops_models.Error { return o.Payload } @@ -210,7 +318,8 @@ func NewGetClustersObservableNotFound() *GetClustersObservableNotFound { return &GetClustersObservableNotFound{} } -/* GetClustersObservableNotFound describes a response with status code 404, with default header values. +/* +GetClustersObservableNotFound describes a response with status code 404, with default header values. Resource was not found */ @@ -220,9 +329,44 @@ type GetClustersObservableNotFound struct { Payload *devops_models.Error } +// IsSuccess returns true when this get clusters observable not found response has a 2xx status code +func (o *GetClustersObservableNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get clusters observable not found response has a 3xx status code +func (o *GetClustersObservableNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get clusters observable not found response has a 4xx status code +func (o *GetClustersObservableNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this get clusters observable not found response has a 5xx status code +func (o *GetClustersObservableNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this get clusters observable not found response a status code equal to that given +func (o *GetClustersObservableNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the get clusters observable not found response +func (o *GetClustersObservableNotFound) Code() int { + return 404 +} + func (o *GetClustersObservableNotFound) Error() string { return fmt.Sprintf("[GET /clusters/observable][%d] getClustersObservableNotFound %+v", 404, o.Payload) } + +func (o *GetClustersObservableNotFound) String() string { + return fmt.Sprintf("[GET /clusters/observable][%d] getClustersObservableNotFound %+v", 404, o.Payload) +} + func (o *GetClustersObservableNotFound) GetPayload() *devops_models.Error { return o.Payload } @@ -251,7 +395,8 @@ func NewGetClustersObservableUnprocessableEntity() *GetClustersObservableUnproce return &GetClustersObservableUnprocessableEntity{} } -/* GetClustersObservableUnprocessableEntity describes a response with status code 422, with default header values. +/* +GetClustersObservableUnprocessableEntity describes a response with status code 422, with default header values. Unprocessable Entity, likely a bad parameter */ @@ -262,9 +407,44 @@ type GetClustersObservableUnprocessableEntity struct { Payload *devops_models.Error } +// IsSuccess returns true when this get clusters observable unprocessable entity response has a 2xx status code +func (o *GetClustersObservableUnprocessableEntity) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get clusters observable unprocessable entity response has a 3xx status code +func (o *GetClustersObservableUnprocessableEntity) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get clusters observable unprocessable entity response has a 4xx status code +func (o *GetClustersObservableUnprocessableEntity) IsClientError() bool { + return true +} + +// IsServerError returns true when this get clusters observable unprocessable entity response has a 5xx status code +func (o *GetClustersObservableUnprocessableEntity) IsServerError() bool { + return false +} + +// IsCode returns true when this get clusters observable unprocessable entity response a status code equal to that given +func (o *GetClustersObservableUnprocessableEntity) IsCode(code int) bool { + return code == 422 +} + +// Code gets the status code for the get clusters observable unprocessable entity response +func (o *GetClustersObservableUnprocessableEntity) Code() int { + return 422 +} + func (o *GetClustersObservableUnprocessableEntity) Error() string { return fmt.Sprintf("[GET /clusters/observable][%d] getClustersObservableUnprocessableEntity %+v", 422, o.Payload) } + +func (o *GetClustersObservableUnprocessableEntity) String() string { + return fmt.Sprintf("[GET /clusters/observable][%d] getClustersObservableUnprocessableEntity %+v", 422, o.Payload) +} + func (o *GetClustersObservableUnprocessableEntity) GetPayload() *devops_models.Error { return o.Payload } @@ -300,7 +480,8 @@ func NewGetClustersObservableInternalServerError() *GetClustersObservableInterna return &GetClustersObservableInternalServerError{} } -/* GetClustersObservableInternalServerError describes a response with status code 500, with default header values. +/* +GetClustersObservableInternalServerError describes a response with status code 500, with default header values. Server Internal Error */ @@ -310,9 +491,44 @@ type GetClustersObservableInternalServerError struct { Payload *devops_models.Error } +// IsSuccess returns true when this get clusters observable internal server error response has a 2xx status code +func (o *GetClustersObservableInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get clusters observable internal server error response has a 3xx status code +func (o *GetClustersObservableInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get clusters observable internal server error response has a 4xx status code +func (o *GetClustersObservableInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this get clusters observable internal server error response has a 5xx status code +func (o *GetClustersObservableInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this get clusters observable internal server error response a status code equal to that given +func (o *GetClustersObservableInternalServerError) IsCode(code int) bool { + return code == 500 +} + +// Code gets the status code for the get clusters observable internal server error response +func (o *GetClustersObservableInternalServerError) Code() int { + return 500 +} + func (o *GetClustersObservableInternalServerError) Error() string { return fmt.Sprintf("[GET /clusters/observable][%d] getClustersObservableInternalServerError %+v", 500, o.Payload) } + +func (o *GetClustersObservableInternalServerError) String() string { + return fmt.Sprintf("[GET /clusters/observable][%d] getClustersObservableInternalServerError %+v", 500, o.Payload) +} + func (o *GetClustersObservableInternalServerError) GetPayload() *devops_models.Error { return o.Payload } diff --git a/api/devops/devops_client/cluster/get_clusters_parameters.go b/api/devops/devops_client/cluster/get_clusters_parameters.go index 5403e72..2dfee74 100644 --- a/api/devops/devops_client/cluster/get_clusters_parameters.go +++ b/api/devops/devops_client/cluster/get_clusters_parameters.go @@ -57,10 +57,12 @@ func NewGetClustersParamsWithHTTPClient(client *http.Client) *GetClustersParams } } -/* GetClustersParams contains all the parameters to send to the API endpoint - for the get clusters operation. +/* +GetClustersParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get clusters operation. + + Typically these are written to a http.Request. */ type GetClustersParams struct { diff --git a/api/devops/devops_client/cluster/get_clusters_responses.go b/api/devops/devops_client/cluster/get_clusters_responses.go index 657d35a..f64fd42 100644 --- a/api/devops/devops_client/cluster/get_clusters_responses.go +++ b/api/devops/devops_client/cluster/get_clusters_responses.go @@ -73,7 +73,8 @@ func NewGetClustersOK() *GetClustersOK { return &GetClustersOK{} } -/* GetClustersOK describes a response with status code 200, with default header values. +/* +GetClustersOK describes a response with status code 200, with default header values. Taxnexus Response with Cluster objects */ @@ -84,9 +85,44 @@ type GetClustersOK struct { Payload *devops_models.ClusterResponse } +// IsSuccess returns true when this get clusters o k response has a 2xx status code +func (o *GetClustersOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get clusters o k response has a 3xx status code +func (o *GetClustersOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get clusters o k response has a 4xx status code +func (o *GetClustersOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get clusters o k response has a 5xx status code +func (o *GetClustersOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get clusters o k response a status code equal to that given +func (o *GetClustersOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get clusters o k response +func (o *GetClustersOK) Code() int { + return 200 +} + func (o *GetClustersOK) Error() string { return fmt.Sprintf("[GET /clusters][%d] getClustersOK %+v", 200, o.Payload) } + +func (o *GetClustersOK) String() string { + return fmt.Sprintf("[GET /clusters][%d] getClustersOK %+v", 200, o.Payload) +} + func (o *GetClustersOK) GetPayload() *devops_models.ClusterResponse { return o.Payload } @@ -122,7 +158,8 @@ func NewGetClustersUnauthorized() *GetClustersUnauthorized { return &GetClustersUnauthorized{} } -/* GetClustersUnauthorized describes a response with status code 401, with default header values. +/* +GetClustersUnauthorized describes a response with status code 401, with default header values. Access Unauthorized, invalid API-KEY was used */ @@ -133,9 +170,44 @@ type GetClustersUnauthorized struct { Payload *devops_models.Error } +// IsSuccess returns true when this get clusters unauthorized response has a 2xx status code +func (o *GetClustersUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get clusters unauthorized response has a 3xx status code +func (o *GetClustersUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get clusters unauthorized response has a 4xx status code +func (o *GetClustersUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this get clusters unauthorized response has a 5xx status code +func (o *GetClustersUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this get clusters unauthorized response a status code equal to that given +func (o *GetClustersUnauthorized) IsCode(code int) bool { + return code == 401 +} + +// Code gets the status code for the get clusters unauthorized response +func (o *GetClustersUnauthorized) Code() int { + return 401 +} + func (o *GetClustersUnauthorized) Error() string { return fmt.Sprintf("[GET /clusters][%d] getClustersUnauthorized %+v", 401, o.Payload) } + +func (o *GetClustersUnauthorized) String() string { + return fmt.Sprintf("[GET /clusters][%d] getClustersUnauthorized %+v", 401, o.Payload) +} + func (o *GetClustersUnauthorized) GetPayload() *devops_models.Error { return o.Payload } @@ -171,7 +243,8 @@ func NewGetClustersForbidden() *GetClustersForbidden { return &GetClustersForbidden{} } -/* GetClustersForbidden describes a response with status code 403, with default header values. +/* +GetClustersForbidden describes a response with status code 403, with default header values. Access forbidden, account lacks access */ @@ -181,9 +254,44 @@ type GetClustersForbidden struct { Payload *devops_models.Error } +// IsSuccess returns true when this get clusters forbidden response has a 2xx status code +func (o *GetClustersForbidden) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get clusters forbidden response has a 3xx status code +func (o *GetClustersForbidden) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get clusters forbidden response has a 4xx status code +func (o *GetClustersForbidden) IsClientError() bool { + return true +} + +// IsServerError returns true when this get clusters forbidden response has a 5xx status code +func (o *GetClustersForbidden) IsServerError() bool { + return false +} + +// IsCode returns true when this get clusters forbidden response a status code equal to that given +func (o *GetClustersForbidden) IsCode(code int) bool { + return code == 403 +} + +// Code gets the status code for the get clusters forbidden response +func (o *GetClustersForbidden) Code() int { + return 403 +} + func (o *GetClustersForbidden) Error() string { return fmt.Sprintf("[GET /clusters][%d] getClustersForbidden %+v", 403, o.Payload) } + +func (o *GetClustersForbidden) String() string { + return fmt.Sprintf("[GET /clusters][%d] getClustersForbidden %+v", 403, o.Payload) +} + func (o *GetClustersForbidden) GetPayload() *devops_models.Error { return o.Payload } @@ -212,7 +320,8 @@ func NewGetClustersNotFound() *GetClustersNotFound { return &GetClustersNotFound{} } -/* GetClustersNotFound describes a response with status code 404, with default header values. +/* +GetClustersNotFound describes a response with status code 404, with default header values. Resource was not found */ @@ -222,9 +331,44 @@ type GetClustersNotFound struct { Payload *devops_models.Error } +// IsSuccess returns true when this get clusters not found response has a 2xx status code +func (o *GetClustersNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get clusters not found response has a 3xx status code +func (o *GetClustersNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get clusters not found response has a 4xx status code +func (o *GetClustersNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this get clusters not found response has a 5xx status code +func (o *GetClustersNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this get clusters not found response a status code equal to that given +func (o *GetClustersNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the get clusters not found response +func (o *GetClustersNotFound) Code() int { + return 404 +} + func (o *GetClustersNotFound) Error() string { return fmt.Sprintf("[GET /clusters][%d] getClustersNotFound %+v", 404, o.Payload) } + +func (o *GetClustersNotFound) String() string { + return fmt.Sprintf("[GET /clusters][%d] getClustersNotFound %+v", 404, o.Payload) +} + func (o *GetClustersNotFound) GetPayload() *devops_models.Error { return o.Payload } @@ -253,7 +397,8 @@ func NewGetClustersUnprocessableEntity() *GetClustersUnprocessableEntity { return &GetClustersUnprocessableEntity{} } -/* GetClustersUnprocessableEntity describes a response with status code 422, with default header values. +/* +GetClustersUnprocessableEntity describes a response with status code 422, with default header values. Unprocessable Entity, likely a bad parameter */ @@ -264,9 +409,44 @@ type GetClustersUnprocessableEntity struct { Payload *devops_models.Error } +// IsSuccess returns true when this get clusters unprocessable entity response has a 2xx status code +func (o *GetClustersUnprocessableEntity) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get clusters unprocessable entity response has a 3xx status code +func (o *GetClustersUnprocessableEntity) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get clusters unprocessable entity response has a 4xx status code +func (o *GetClustersUnprocessableEntity) IsClientError() bool { + return true +} + +// IsServerError returns true when this get clusters unprocessable entity response has a 5xx status code +func (o *GetClustersUnprocessableEntity) IsServerError() bool { + return false +} + +// IsCode returns true when this get clusters unprocessable entity response a status code equal to that given +func (o *GetClustersUnprocessableEntity) IsCode(code int) bool { + return code == 422 +} + +// Code gets the status code for the get clusters unprocessable entity response +func (o *GetClustersUnprocessableEntity) Code() int { + return 422 +} + func (o *GetClustersUnprocessableEntity) Error() string { return fmt.Sprintf("[GET /clusters][%d] getClustersUnprocessableEntity %+v", 422, o.Payload) } + +func (o *GetClustersUnprocessableEntity) String() string { + return fmt.Sprintf("[GET /clusters][%d] getClustersUnprocessableEntity %+v", 422, o.Payload) +} + func (o *GetClustersUnprocessableEntity) GetPayload() *devops_models.Error { return o.Payload } @@ -302,7 +482,8 @@ func NewGetClustersInternalServerError() *GetClustersInternalServerError { return &GetClustersInternalServerError{} } -/* GetClustersInternalServerError describes a response with status code 500, with default header values. +/* +GetClustersInternalServerError describes a response with status code 500, with default header values. Server Internal Error */ @@ -312,9 +493,44 @@ type GetClustersInternalServerError struct { Payload *devops_models.Error } +// IsSuccess returns true when this get clusters internal server error response has a 2xx status code +func (o *GetClustersInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get clusters internal server error response has a 3xx status code +func (o *GetClustersInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get clusters internal server error response has a 4xx status code +func (o *GetClustersInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this get clusters internal server error response has a 5xx status code +func (o *GetClustersInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this get clusters internal server error response a status code equal to that given +func (o *GetClustersInternalServerError) IsCode(code int) bool { + return code == 500 +} + +// Code gets the status code for the get clusters internal server error response +func (o *GetClustersInternalServerError) Code() int { + return 500 +} + func (o *GetClustersInternalServerError) Error() string { return fmt.Sprintf("[GET /clusters][%d] getClustersInternalServerError %+v", 500, o.Payload) } + +func (o *GetClustersInternalServerError) String() string { + return fmt.Sprintf("[GET /clusters][%d] getClustersInternalServerError %+v", 500, o.Payload) +} + func (o *GetClustersInternalServerError) GetPayload() *devops_models.Error { return o.Payload } diff --git a/api/devops/devops_client/cluster/post_clusters_parameters.go b/api/devops/devops_client/cluster/post_clusters_parameters.go index b4f8a61..c83d77a 100644 --- a/api/devops/devops_client/cluster/post_clusters_parameters.go +++ b/api/devops/devops_client/cluster/post_clusters_parameters.go @@ -58,10 +58,12 @@ func NewPostClustersParamsWithHTTPClient(client *http.Client) *PostClustersParam } } -/* PostClustersParams contains all the parameters to send to the API endpoint - for the post clusters operation. +/* +PostClustersParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the post clusters operation. + + Typically these are written to a http.Request. */ type PostClustersParams struct { diff --git a/api/devops/devops_client/cluster/post_clusters_responses.go b/api/devops/devops_client/cluster/post_clusters_responses.go index b2e248c..f042d6b 100644 --- a/api/devops/devops_client/cluster/post_clusters_responses.go +++ b/api/devops/devops_client/cluster/post_clusters_responses.go @@ -73,7 +73,8 @@ func NewPostClustersOK() *PostClustersOK { return &PostClustersOK{} } -/* PostClustersOK describes a response with status code 200, with default header values. +/* +PostClustersOK describes a response with status code 200, with default header values. Taxnexus Response with Cluster objects */ @@ -84,9 +85,44 @@ type PostClustersOK struct { Payload *devops_models.ClusterResponse } +// IsSuccess returns true when this post clusters o k response has a 2xx status code +func (o *PostClustersOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this post clusters o k response has a 3xx status code +func (o *PostClustersOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this post clusters o k response has a 4xx status code +func (o *PostClustersOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this post clusters o k response has a 5xx status code +func (o *PostClustersOK) IsServerError() bool { + return false +} + +// IsCode returns true when this post clusters o k response a status code equal to that given +func (o *PostClustersOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the post clusters o k response +func (o *PostClustersOK) Code() int { + return 200 +} + func (o *PostClustersOK) Error() string { return fmt.Sprintf("[POST /clusters][%d] postClustersOK %+v", 200, o.Payload) } + +func (o *PostClustersOK) String() string { + return fmt.Sprintf("[POST /clusters][%d] postClustersOK %+v", 200, o.Payload) +} + func (o *PostClustersOK) GetPayload() *devops_models.ClusterResponse { return o.Payload } @@ -122,7 +158,8 @@ func NewPostClustersUnauthorized() *PostClustersUnauthorized { return &PostClustersUnauthorized{} } -/* PostClustersUnauthorized describes a response with status code 401, with default header values. +/* +PostClustersUnauthorized describes a response with status code 401, with default header values. Access Unauthorized, invalid API-KEY was used */ @@ -133,9 +170,44 @@ type PostClustersUnauthorized struct { Payload *devops_models.Error } +// IsSuccess returns true when this post clusters unauthorized response has a 2xx status code +func (o *PostClustersUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this post clusters unauthorized response has a 3xx status code +func (o *PostClustersUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this post clusters unauthorized response has a 4xx status code +func (o *PostClustersUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this post clusters unauthorized response has a 5xx status code +func (o *PostClustersUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this post clusters unauthorized response a status code equal to that given +func (o *PostClustersUnauthorized) IsCode(code int) bool { + return code == 401 +} + +// Code gets the status code for the post clusters unauthorized response +func (o *PostClustersUnauthorized) Code() int { + return 401 +} + func (o *PostClustersUnauthorized) Error() string { return fmt.Sprintf("[POST /clusters][%d] postClustersUnauthorized %+v", 401, o.Payload) } + +func (o *PostClustersUnauthorized) String() string { + return fmt.Sprintf("[POST /clusters][%d] postClustersUnauthorized %+v", 401, o.Payload) +} + func (o *PostClustersUnauthorized) GetPayload() *devops_models.Error { return o.Payload } @@ -171,7 +243,8 @@ func NewPostClustersForbidden() *PostClustersForbidden { return &PostClustersForbidden{} } -/* PostClustersForbidden describes a response with status code 403, with default header values. +/* +PostClustersForbidden describes a response with status code 403, with default header values. Access forbidden, account lacks access */ @@ -181,9 +254,44 @@ type PostClustersForbidden struct { Payload *devops_models.Error } +// IsSuccess returns true when this post clusters forbidden response has a 2xx status code +func (o *PostClustersForbidden) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this post clusters forbidden response has a 3xx status code +func (o *PostClustersForbidden) IsRedirect() bool { + return false +} + +// IsClientError returns true when this post clusters forbidden response has a 4xx status code +func (o *PostClustersForbidden) IsClientError() bool { + return true +} + +// IsServerError returns true when this post clusters forbidden response has a 5xx status code +func (o *PostClustersForbidden) IsServerError() bool { + return false +} + +// IsCode returns true when this post clusters forbidden response a status code equal to that given +func (o *PostClustersForbidden) IsCode(code int) bool { + return code == 403 +} + +// Code gets the status code for the post clusters forbidden response +func (o *PostClustersForbidden) Code() int { + return 403 +} + func (o *PostClustersForbidden) Error() string { return fmt.Sprintf("[POST /clusters][%d] postClustersForbidden %+v", 403, o.Payload) } + +func (o *PostClustersForbidden) String() string { + return fmt.Sprintf("[POST /clusters][%d] postClustersForbidden %+v", 403, o.Payload) +} + func (o *PostClustersForbidden) GetPayload() *devops_models.Error { return o.Payload } @@ -212,7 +320,8 @@ func NewPostClustersNotFound() *PostClustersNotFound { return &PostClustersNotFound{} } -/* PostClustersNotFound describes a response with status code 404, with default header values. +/* +PostClustersNotFound describes a response with status code 404, with default header values. Resource was not found */ @@ -222,9 +331,44 @@ type PostClustersNotFound struct { Payload *devops_models.Error } +// IsSuccess returns true when this post clusters not found response has a 2xx status code +func (o *PostClustersNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this post clusters not found response has a 3xx status code +func (o *PostClustersNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this post clusters not found response has a 4xx status code +func (o *PostClustersNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this post clusters not found response has a 5xx status code +func (o *PostClustersNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this post clusters not found response a status code equal to that given +func (o *PostClustersNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the post clusters not found response +func (o *PostClustersNotFound) Code() int { + return 404 +} + func (o *PostClustersNotFound) Error() string { return fmt.Sprintf("[POST /clusters][%d] postClustersNotFound %+v", 404, o.Payload) } + +func (o *PostClustersNotFound) String() string { + return fmt.Sprintf("[POST /clusters][%d] postClustersNotFound %+v", 404, o.Payload) +} + func (o *PostClustersNotFound) GetPayload() *devops_models.Error { return o.Payload } @@ -253,7 +397,8 @@ func NewPostClustersUnprocessableEntity() *PostClustersUnprocessableEntity { return &PostClustersUnprocessableEntity{} } -/* PostClustersUnprocessableEntity describes a response with status code 422, with default header values. +/* +PostClustersUnprocessableEntity describes a response with status code 422, with default header values. Unprocessable Entity, likely a bad parameter */ @@ -264,9 +409,44 @@ type PostClustersUnprocessableEntity struct { Payload *devops_models.Error } +// IsSuccess returns true when this post clusters unprocessable entity response has a 2xx status code +func (o *PostClustersUnprocessableEntity) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this post clusters unprocessable entity response has a 3xx status code +func (o *PostClustersUnprocessableEntity) IsRedirect() bool { + return false +} + +// IsClientError returns true when this post clusters unprocessable entity response has a 4xx status code +func (o *PostClustersUnprocessableEntity) IsClientError() bool { + return true +} + +// IsServerError returns true when this post clusters unprocessable entity response has a 5xx status code +func (o *PostClustersUnprocessableEntity) IsServerError() bool { + return false +} + +// IsCode returns true when this post clusters unprocessable entity response a status code equal to that given +func (o *PostClustersUnprocessableEntity) IsCode(code int) bool { + return code == 422 +} + +// Code gets the status code for the post clusters unprocessable entity response +func (o *PostClustersUnprocessableEntity) Code() int { + return 422 +} + func (o *PostClustersUnprocessableEntity) Error() string { return fmt.Sprintf("[POST /clusters][%d] postClustersUnprocessableEntity %+v", 422, o.Payload) } + +func (o *PostClustersUnprocessableEntity) String() string { + return fmt.Sprintf("[POST /clusters][%d] postClustersUnprocessableEntity %+v", 422, o.Payload) +} + func (o *PostClustersUnprocessableEntity) GetPayload() *devops_models.Error { return o.Payload } @@ -302,7 +482,8 @@ func NewPostClustersInternalServerError() *PostClustersInternalServerError { return &PostClustersInternalServerError{} } -/* PostClustersInternalServerError describes a response with status code 500, with default header values. +/* +PostClustersInternalServerError describes a response with status code 500, with default header values. Server Internal Error */ @@ -312,9 +493,44 @@ type PostClustersInternalServerError struct { Payload *devops_models.Error } +// IsSuccess returns true when this post clusters internal server error response has a 2xx status code +func (o *PostClustersInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this post clusters internal server error response has a 3xx status code +func (o *PostClustersInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this post clusters internal server error response has a 4xx status code +func (o *PostClustersInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this post clusters internal server error response has a 5xx status code +func (o *PostClustersInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this post clusters internal server error response a status code equal to that given +func (o *PostClustersInternalServerError) IsCode(code int) bool { + return code == 500 +} + +// Code gets the status code for the post clusters internal server error response +func (o *PostClustersInternalServerError) Code() int { + return 500 +} + func (o *PostClustersInternalServerError) Error() string { return fmt.Sprintf("[POST /clusters][%d] postClustersInternalServerError %+v", 500, o.Payload) } + +func (o *PostClustersInternalServerError) String() string { + return fmt.Sprintf("[POST /clusters][%d] postClustersInternalServerError %+v", 500, o.Payload) +} + func (o *PostClustersInternalServerError) GetPayload() *devops_models.Error { return o.Payload } diff --git a/api/devops/devops_client/cluster/put_clusters_parameters.go b/api/devops/devops_client/cluster/put_clusters_parameters.go index 50fa3a2..56419bf 100644 --- a/api/devops/devops_client/cluster/put_clusters_parameters.go +++ b/api/devops/devops_client/cluster/put_clusters_parameters.go @@ -58,10 +58,12 @@ func NewPutClustersParamsWithHTTPClient(client *http.Client) *PutClustersParams } } -/* PutClustersParams contains all the parameters to send to the API endpoint - for the put clusters operation. +/* +PutClustersParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the put clusters operation. + + Typically these are written to a http.Request. */ type PutClustersParams struct { diff --git a/api/devops/devops_client/cluster/put_clusters_responses.go b/api/devops/devops_client/cluster/put_clusters_responses.go index 7f3cdb0..e0869d1 100644 --- a/api/devops/devops_client/cluster/put_clusters_responses.go +++ b/api/devops/devops_client/cluster/put_clusters_responses.go @@ -73,7 +73,8 @@ func NewPutClustersOK() *PutClustersOK { return &PutClustersOK{} } -/* PutClustersOK describes a response with status code 200, with default header values. +/* +PutClustersOK describes a response with status code 200, with default header values. Taxnexus Response with Cluster objects */ @@ -84,9 +85,44 @@ type PutClustersOK struct { Payload *devops_models.ClusterResponse } +// IsSuccess returns true when this put clusters o k response has a 2xx status code +func (o *PutClustersOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this put clusters o k response has a 3xx status code +func (o *PutClustersOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this put clusters o k response has a 4xx status code +func (o *PutClustersOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this put clusters o k response has a 5xx status code +func (o *PutClustersOK) IsServerError() bool { + return false +} + +// IsCode returns true when this put clusters o k response a status code equal to that given +func (o *PutClustersOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the put clusters o k response +func (o *PutClustersOK) Code() int { + return 200 +} + func (o *PutClustersOK) Error() string { return fmt.Sprintf("[PUT /clusters][%d] putClustersOK %+v", 200, o.Payload) } + +func (o *PutClustersOK) String() string { + return fmt.Sprintf("[PUT /clusters][%d] putClustersOK %+v", 200, o.Payload) +} + func (o *PutClustersOK) GetPayload() *devops_models.ClusterResponse { return o.Payload } @@ -122,7 +158,8 @@ func NewPutClustersUnauthorized() *PutClustersUnauthorized { return &PutClustersUnauthorized{} } -/* PutClustersUnauthorized describes a response with status code 401, with default header values. +/* +PutClustersUnauthorized describes a response with status code 401, with default header values. Access Unauthorized, invalid API-KEY was used */ @@ -133,9 +170,44 @@ type PutClustersUnauthorized struct { Payload *devops_models.Error } +// IsSuccess returns true when this put clusters unauthorized response has a 2xx status code +func (o *PutClustersUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this put clusters unauthorized response has a 3xx status code +func (o *PutClustersUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this put clusters unauthorized response has a 4xx status code +func (o *PutClustersUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this put clusters unauthorized response has a 5xx status code +func (o *PutClustersUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this put clusters unauthorized response a status code equal to that given +func (o *PutClustersUnauthorized) IsCode(code int) bool { + return code == 401 +} + +// Code gets the status code for the put clusters unauthorized response +func (o *PutClustersUnauthorized) Code() int { + return 401 +} + func (o *PutClustersUnauthorized) Error() string { return fmt.Sprintf("[PUT /clusters][%d] putClustersUnauthorized %+v", 401, o.Payload) } + +func (o *PutClustersUnauthorized) String() string { + return fmt.Sprintf("[PUT /clusters][%d] putClustersUnauthorized %+v", 401, o.Payload) +} + func (o *PutClustersUnauthorized) GetPayload() *devops_models.Error { return o.Payload } @@ -171,7 +243,8 @@ func NewPutClustersForbidden() *PutClustersForbidden { return &PutClustersForbidden{} } -/* PutClustersForbidden describes a response with status code 403, with default header values. +/* +PutClustersForbidden describes a response with status code 403, with default header values. Access forbidden, account lacks access */ @@ -181,9 +254,44 @@ type PutClustersForbidden struct { Payload *devops_models.Error } +// IsSuccess returns true when this put clusters forbidden response has a 2xx status code +func (o *PutClustersForbidden) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this put clusters forbidden response has a 3xx status code +func (o *PutClustersForbidden) IsRedirect() bool { + return false +} + +// IsClientError returns true when this put clusters forbidden response has a 4xx status code +func (o *PutClustersForbidden) IsClientError() bool { + return true +} + +// IsServerError returns true when this put clusters forbidden response has a 5xx status code +func (o *PutClustersForbidden) IsServerError() bool { + return false +} + +// IsCode returns true when this put clusters forbidden response a status code equal to that given +func (o *PutClustersForbidden) IsCode(code int) bool { + return code == 403 +} + +// Code gets the status code for the put clusters forbidden response +func (o *PutClustersForbidden) Code() int { + return 403 +} + func (o *PutClustersForbidden) Error() string { return fmt.Sprintf("[PUT /clusters][%d] putClustersForbidden %+v", 403, o.Payload) } + +func (o *PutClustersForbidden) String() string { + return fmt.Sprintf("[PUT /clusters][%d] putClustersForbidden %+v", 403, o.Payload) +} + func (o *PutClustersForbidden) GetPayload() *devops_models.Error { return o.Payload } @@ -212,7 +320,8 @@ func NewPutClustersNotFound() *PutClustersNotFound { return &PutClustersNotFound{} } -/* PutClustersNotFound describes a response with status code 404, with default header values. +/* +PutClustersNotFound describes a response with status code 404, with default header values. Resource was not found */ @@ -222,9 +331,44 @@ type PutClustersNotFound struct { Payload *devops_models.Error } +// IsSuccess returns true when this put clusters not found response has a 2xx status code +func (o *PutClustersNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this put clusters not found response has a 3xx status code +func (o *PutClustersNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this put clusters not found response has a 4xx status code +func (o *PutClustersNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this put clusters not found response has a 5xx status code +func (o *PutClustersNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this put clusters not found response a status code equal to that given +func (o *PutClustersNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the put clusters not found response +func (o *PutClustersNotFound) Code() int { + return 404 +} + func (o *PutClustersNotFound) Error() string { return fmt.Sprintf("[PUT /clusters][%d] putClustersNotFound %+v", 404, o.Payload) } + +func (o *PutClustersNotFound) String() string { + return fmt.Sprintf("[PUT /clusters][%d] putClustersNotFound %+v", 404, o.Payload) +} + func (o *PutClustersNotFound) GetPayload() *devops_models.Error { return o.Payload } @@ -253,7 +397,8 @@ func NewPutClustersUnprocessableEntity() *PutClustersUnprocessableEntity { return &PutClustersUnprocessableEntity{} } -/* PutClustersUnprocessableEntity describes a response with status code 422, with default header values. +/* +PutClustersUnprocessableEntity describes a response with status code 422, with default header values. Unprocessable Entity, likely a bad parameter */ @@ -264,9 +409,44 @@ type PutClustersUnprocessableEntity struct { Payload *devops_models.Error } +// IsSuccess returns true when this put clusters unprocessable entity response has a 2xx status code +func (o *PutClustersUnprocessableEntity) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this put clusters unprocessable entity response has a 3xx status code +func (o *PutClustersUnprocessableEntity) IsRedirect() bool { + return false +} + +// IsClientError returns true when this put clusters unprocessable entity response has a 4xx status code +func (o *PutClustersUnprocessableEntity) IsClientError() bool { + return true +} + +// IsServerError returns true when this put clusters unprocessable entity response has a 5xx status code +func (o *PutClustersUnprocessableEntity) IsServerError() bool { + return false +} + +// IsCode returns true when this put clusters unprocessable entity response a status code equal to that given +func (o *PutClustersUnprocessableEntity) IsCode(code int) bool { + return code == 422 +} + +// Code gets the status code for the put clusters unprocessable entity response +func (o *PutClustersUnprocessableEntity) Code() int { + return 422 +} + func (o *PutClustersUnprocessableEntity) Error() string { return fmt.Sprintf("[PUT /clusters][%d] putClustersUnprocessableEntity %+v", 422, o.Payload) } + +func (o *PutClustersUnprocessableEntity) String() string { + return fmt.Sprintf("[PUT /clusters][%d] putClustersUnprocessableEntity %+v", 422, o.Payload) +} + func (o *PutClustersUnprocessableEntity) GetPayload() *devops_models.Error { return o.Payload } @@ -302,7 +482,8 @@ func NewPutClustersInternalServerError() *PutClustersInternalServerError { return &PutClustersInternalServerError{} } -/* PutClustersInternalServerError describes a response with status code 500, with default header values. +/* +PutClustersInternalServerError describes a response with status code 500, with default header values. Server Internal Error */ @@ -312,9 +493,44 @@ type PutClustersInternalServerError struct { Payload *devops_models.Error } +// IsSuccess returns true when this put clusters internal server error response has a 2xx status code +func (o *PutClustersInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this put clusters internal server error response has a 3xx status code +func (o *PutClustersInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this put clusters internal server error response has a 4xx status code +func (o *PutClustersInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this put clusters internal server error response has a 5xx status code +func (o *PutClustersInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this put clusters internal server error response a status code equal to that given +func (o *PutClustersInternalServerError) IsCode(code int) bool { + return code == 500 +} + +// Code gets the status code for the put clusters internal server error response +func (o *PutClustersInternalServerError) Code() int { + return 500 +} + func (o *PutClustersInternalServerError) Error() string { return fmt.Sprintf("[PUT /clusters][%d] putClustersInternalServerError %+v", 500, o.Payload) } + +func (o *PutClustersInternalServerError) String() string { + return fmt.Sprintf("[PUT /clusters][%d] putClustersInternalServerError %+v", 500, o.Payload) +} + func (o *PutClustersInternalServerError) GetPayload() *devops_models.Error { return o.Payload } diff --git a/api/devops/devops_client/cors/cluster_options_parameters.go b/api/devops/devops_client/cors/cluster_options_parameters.go index 223a95b..55e772a 100644 --- a/api/devops/devops_client/cors/cluster_options_parameters.go +++ b/api/devops/devops_client/cors/cluster_options_parameters.go @@ -56,10 +56,12 @@ func NewClusterOptionsParamsWithHTTPClient(client *http.Client) *ClusterOptionsP } } -/* ClusterOptionsParams contains all the parameters to send to the API endpoint - for the cluster options operation. +/* +ClusterOptionsParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the cluster options operation. + + Typically these are written to a http.Request. */ type ClusterOptionsParams struct { timeout time.Duration diff --git a/api/devops/devops_client/cors/cluster_options_responses.go b/api/devops/devops_client/cors/cluster_options_responses.go index a363eaf..f3f7f67 100644 --- a/api/devops/devops_client/cors/cluster_options_responses.go +++ b/api/devops/devops_client/cors/cluster_options_responses.go @@ -40,7 +40,8 @@ func NewClusterOptionsOK() *ClusterOptionsOK { return &ClusterOptionsOK{} } -/* ClusterOptionsOK describes a response with status code 200, with default header values. +/* +ClusterOptionsOK describes a response with status code 200, with default header values. CORS OPTIONS response */ @@ -54,10 +55,44 @@ type ClusterOptionsOK struct { CacheControl string } +// IsSuccess returns true when this cluster options o k response has a 2xx status code +func (o *ClusterOptionsOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this cluster options o k response has a 3xx status code +func (o *ClusterOptionsOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this cluster options o k response has a 4xx status code +func (o *ClusterOptionsOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this cluster options o k response has a 5xx status code +func (o *ClusterOptionsOK) IsServerError() bool { + return false +} + +// IsCode returns true when this cluster options o k response a status code equal to that given +func (o *ClusterOptionsOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the cluster options o k response +func (o *ClusterOptionsOK) Code() int { + return 200 +} + func (o *ClusterOptionsOK) Error() string { return fmt.Sprintf("[OPTIONS /clusters/observable][%d] clusterOptionsOK ", 200) } +func (o *ClusterOptionsOK) String() string { + return fmt.Sprintf("[OPTIONS /clusters/observable][%d] clusterOptionsOK ", 200) +} + func (o *ClusterOptionsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { // hydrates response header Access-Control-Allow-Credentials diff --git a/api/devops/devops_client/cors/clusters_options_parameters.go b/api/devops/devops_client/cors/clusters_options_parameters.go index ab50aac..fd85f79 100644 --- a/api/devops/devops_client/cors/clusters_options_parameters.go +++ b/api/devops/devops_client/cors/clusters_options_parameters.go @@ -56,10 +56,12 @@ func NewClustersOptionsParamsWithHTTPClient(client *http.Client) *ClustersOption } } -/* ClustersOptionsParams contains all the parameters to send to the API endpoint - for the clusters options operation. +/* +ClustersOptionsParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the clusters options operation. + + Typically these are written to a http.Request. */ type ClustersOptionsParams struct { timeout time.Duration diff --git a/api/devops/devops_client/cors/clusters_options_responses.go b/api/devops/devops_client/cors/clusters_options_responses.go index 8c36f72..1a20b31 100644 --- a/api/devops/devops_client/cors/clusters_options_responses.go +++ b/api/devops/devops_client/cors/clusters_options_responses.go @@ -40,7 +40,8 @@ func NewClustersOptionsOK() *ClustersOptionsOK { return &ClustersOptionsOK{} } -/* ClustersOptionsOK describes a response with status code 200, with default header values. +/* +ClustersOptionsOK describes a response with status code 200, with default header values. CORS OPTIONS response */ @@ -54,10 +55,44 @@ type ClustersOptionsOK struct { CacheControl string } +// IsSuccess returns true when this clusters options o k response has a 2xx status code +func (o *ClustersOptionsOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this clusters options o k response has a 3xx status code +func (o *ClustersOptionsOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this clusters options o k response has a 4xx status code +func (o *ClustersOptionsOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this clusters options o k response has a 5xx status code +func (o *ClustersOptionsOK) IsServerError() bool { + return false +} + +// IsCode returns true when this clusters options o k response a status code equal to that given +func (o *ClustersOptionsOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the clusters options o k response +func (o *ClustersOptionsOK) Code() int { + return 200 +} + func (o *ClustersOptionsOK) Error() string { return fmt.Sprintf("[OPTIONS /clusters][%d] clustersOptionsOK ", 200) } +func (o *ClustersOptionsOK) String() string { + return fmt.Sprintf("[OPTIONS /clusters][%d] clustersOptionsOK ", 200) +} + func (o *ClustersOptionsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { // hydrates response header Access-Control-Allow-Credentials diff --git a/api/devops/devops_client/cors/cors_client.go b/api/devops/devops_client/cors/cors_client.go index 1a3ecc5..aedf11b 100644 --- a/api/devops/devops_client/cors/cors_client.go +++ b/api/devops/devops_client/cors/cors_client.go @@ -58,7 +58,7 @@ type ClientService interface { } /* - ClusterOptions CORS support +ClusterOptions CORS support */ func (a *Client) ClusterOptions(params *ClusterOptionsParams, opts ...ClientOption) (*ClusterOptionsOK, error) { // TODO: Validate the params before sending @@ -96,7 +96,7 @@ func (a *Client) ClusterOptions(params *ClusterOptionsParams, opts ...ClientOpti } /* - ClustersOptions CORS support +ClustersOptions CORS support */ func (a *Client) ClustersOptions(params *ClustersOptionsParams, opts ...ClientOption) (*ClustersOptionsOK, error) { // TODO: Validate the params before sending @@ -134,7 +134,7 @@ func (a *Client) ClustersOptions(params *ClustersOptionsParams, opts ...ClientOp } /* - DatabaseOptions CORS support +DatabaseOptions CORS support */ func (a *Client) DatabaseOptions(params *DatabaseOptionsParams, opts ...ClientOption) (*DatabaseOptionsOK, error) { // TODO: Validate the params before sending @@ -172,7 +172,7 @@ func (a *Client) DatabaseOptions(params *DatabaseOptionsParams, opts ...ClientOp } /* - DatabasesOptions CORS support +DatabasesOptions CORS support */ func (a *Client) DatabasesOptions(params *DatabasesOptionsParams, opts ...ClientOption) (*DatabasesOptionsOK, error) { // TODO: Validate the params before sending @@ -210,7 +210,7 @@ func (a *Client) DatabasesOptions(params *DatabasesOptionsParams, opts ...Client } /* - TemplateOptions CORS support +TemplateOptions CORS support */ func (a *Client) TemplateOptions(params *TemplateOptionsParams, opts ...ClientOption) (*TemplateOptionsOK, error) { // TODO: Validate the params before sending @@ -248,7 +248,7 @@ func (a *Client) TemplateOptions(params *TemplateOptionsParams, opts ...ClientOp } /* - TemplatesOptions CORS support +TemplatesOptions CORS support */ func (a *Client) TemplatesOptions(params *TemplatesOptionsParams, opts ...ClientOption) (*TemplatesOptionsOK, error) { // TODO: Validate the params before sending @@ -286,7 +286,7 @@ func (a *Client) TemplatesOptions(params *TemplatesOptionsParams, opts ...Client } /* - TenantOptions CORS support +TenantOptions CORS support */ func (a *Client) TenantOptions(params *TenantOptionsParams, opts ...ClientOption) (*TenantOptionsOK, error) { // TODO: Validate the params before sending @@ -324,7 +324,7 @@ func (a *Client) TenantOptions(params *TenantOptionsParams, opts ...ClientOption } /* - TenantsOptions CORS support +TenantsOptions CORS support */ func (a *Client) TenantsOptions(params *TenantsOptionsParams, opts ...ClientOption) (*TenantsOptionsOK, error) { // TODO: Validate the params before sending @@ -362,7 +362,7 @@ func (a *Client) TenantsOptions(params *TenantsOptionsParams, opts ...ClientOpti } /* - UserOptions CORS support +UserOptions CORS support */ func (a *Client) UserOptions(params *UserOptionsParams, opts ...ClientOption) (*UserOptionsOK, error) { // TODO: Validate the params before sending @@ -400,7 +400,7 @@ func (a *Client) UserOptions(params *UserOptionsParams, opts ...ClientOption) (* } /* - UsersOptions CORS support +UsersOptions CORS support */ func (a *Client) UsersOptions(params *UsersOptionsParams, opts ...ClientOption) (*UsersOptionsOK, error) { // TODO: Validate the params before sending diff --git a/api/devops/devops_client/cors/database_options_parameters.go b/api/devops/devops_client/cors/database_options_parameters.go index 144b197..a6c2dd6 100644 --- a/api/devops/devops_client/cors/database_options_parameters.go +++ b/api/devops/devops_client/cors/database_options_parameters.go @@ -56,10 +56,12 @@ func NewDatabaseOptionsParamsWithHTTPClient(client *http.Client) *DatabaseOption } } -/* DatabaseOptionsParams contains all the parameters to send to the API endpoint - for the database options operation. +/* +DatabaseOptionsParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the database options operation. + + Typically these are written to a http.Request. */ type DatabaseOptionsParams struct { timeout time.Duration diff --git a/api/devops/devops_client/cors/database_options_responses.go b/api/devops/devops_client/cors/database_options_responses.go index 4ba21d1..3a41c1e 100644 --- a/api/devops/devops_client/cors/database_options_responses.go +++ b/api/devops/devops_client/cors/database_options_responses.go @@ -40,7 +40,8 @@ func NewDatabaseOptionsOK() *DatabaseOptionsOK { return &DatabaseOptionsOK{} } -/* DatabaseOptionsOK describes a response with status code 200, with default header values. +/* +DatabaseOptionsOK describes a response with status code 200, with default header values. CORS OPTIONS response */ @@ -54,10 +55,44 @@ type DatabaseOptionsOK struct { CacheControl string } +// IsSuccess returns true when this database options o k response has a 2xx status code +func (o *DatabaseOptionsOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this database options o k response has a 3xx status code +func (o *DatabaseOptionsOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this database options o k response has a 4xx status code +func (o *DatabaseOptionsOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this database options o k response has a 5xx status code +func (o *DatabaseOptionsOK) IsServerError() bool { + return false +} + +// IsCode returns true when this database options o k response a status code equal to that given +func (o *DatabaseOptionsOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the database options o k response +func (o *DatabaseOptionsOK) Code() int { + return 200 +} + func (o *DatabaseOptionsOK) Error() string { return fmt.Sprintf("[OPTIONS /databases/observable][%d] databaseOptionsOK ", 200) } +func (o *DatabaseOptionsOK) String() string { + return fmt.Sprintf("[OPTIONS /databases/observable][%d] databaseOptionsOK ", 200) +} + func (o *DatabaseOptionsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { // hydrates response header Access-Control-Allow-Credentials diff --git a/api/devops/devops_client/cors/databases_options_parameters.go b/api/devops/devops_client/cors/databases_options_parameters.go index 9b63c86..7593faa 100644 --- a/api/devops/devops_client/cors/databases_options_parameters.go +++ b/api/devops/devops_client/cors/databases_options_parameters.go @@ -56,10 +56,12 @@ func NewDatabasesOptionsParamsWithHTTPClient(client *http.Client) *DatabasesOpti } } -/* DatabasesOptionsParams contains all the parameters to send to the API endpoint - for the databases options operation. +/* +DatabasesOptionsParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the databases options operation. + + Typically these are written to a http.Request. */ type DatabasesOptionsParams struct { timeout time.Duration diff --git a/api/devops/devops_client/cors/databases_options_responses.go b/api/devops/devops_client/cors/databases_options_responses.go index d7e4dcf..23a4c5e 100644 --- a/api/devops/devops_client/cors/databases_options_responses.go +++ b/api/devops/devops_client/cors/databases_options_responses.go @@ -40,7 +40,8 @@ func NewDatabasesOptionsOK() *DatabasesOptionsOK { return &DatabasesOptionsOK{} } -/* DatabasesOptionsOK describes a response with status code 200, with default header values. +/* +DatabasesOptionsOK describes a response with status code 200, with default header values. CORS OPTIONS response */ @@ -54,10 +55,44 @@ type DatabasesOptionsOK struct { CacheControl string } +// IsSuccess returns true when this databases options o k response has a 2xx status code +func (o *DatabasesOptionsOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this databases options o k response has a 3xx status code +func (o *DatabasesOptionsOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this databases options o k response has a 4xx status code +func (o *DatabasesOptionsOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this databases options o k response has a 5xx status code +func (o *DatabasesOptionsOK) IsServerError() bool { + return false +} + +// IsCode returns true when this databases options o k response a status code equal to that given +func (o *DatabasesOptionsOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the databases options o k response +func (o *DatabasesOptionsOK) Code() int { + return 200 +} + func (o *DatabasesOptionsOK) Error() string { return fmt.Sprintf("[OPTIONS /databases][%d] databasesOptionsOK ", 200) } +func (o *DatabasesOptionsOK) String() string { + return fmt.Sprintf("[OPTIONS /databases][%d] databasesOptionsOK ", 200) +} + func (o *DatabasesOptionsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { // hydrates response header Access-Control-Allow-Credentials diff --git a/api/devops/devops_client/cors/template_options_parameters.go b/api/devops/devops_client/cors/template_options_parameters.go index d4c5967..6ecc5c2 100644 --- a/api/devops/devops_client/cors/template_options_parameters.go +++ b/api/devops/devops_client/cors/template_options_parameters.go @@ -56,10 +56,12 @@ func NewTemplateOptionsParamsWithHTTPClient(client *http.Client) *TemplateOption } } -/* TemplateOptionsParams contains all the parameters to send to the API endpoint - for the template options operation. +/* +TemplateOptionsParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the template options operation. + + Typically these are written to a http.Request. */ type TemplateOptionsParams struct { timeout time.Duration diff --git a/api/devops/devops_client/cors/template_options_responses.go b/api/devops/devops_client/cors/template_options_responses.go index 81162ff..595f1fb 100644 --- a/api/devops/devops_client/cors/template_options_responses.go +++ b/api/devops/devops_client/cors/template_options_responses.go @@ -40,7 +40,8 @@ func NewTemplateOptionsOK() *TemplateOptionsOK { return &TemplateOptionsOK{} } -/* TemplateOptionsOK describes a response with status code 200, with default header values. +/* +TemplateOptionsOK describes a response with status code 200, with default header values. CORS OPTIONS response */ @@ -54,10 +55,44 @@ type TemplateOptionsOK struct { CacheControl string } +// IsSuccess returns true when this template options o k response has a 2xx status code +func (o *TemplateOptionsOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this template options o k response has a 3xx status code +func (o *TemplateOptionsOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this template options o k response has a 4xx status code +func (o *TemplateOptionsOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this template options o k response has a 5xx status code +func (o *TemplateOptionsOK) IsServerError() bool { + return false +} + +// IsCode returns true when this template options o k response a status code equal to that given +func (o *TemplateOptionsOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the template options o k response +func (o *TemplateOptionsOK) Code() int { + return 200 +} + func (o *TemplateOptionsOK) Error() string { return fmt.Sprintf("[OPTIONS /templates/observable][%d] templateOptionsOK ", 200) } +func (o *TemplateOptionsOK) String() string { + return fmt.Sprintf("[OPTIONS /templates/observable][%d] templateOptionsOK ", 200) +} + func (o *TemplateOptionsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { // hydrates response header Access-Control-Allow-Credentials diff --git a/api/devops/devops_client/cors/templates_options_parameters.go b/api/devops/devops_client/cors/templates_options_parameters.go index aebe1b2..e351481 100644 --- a/api/devops/devops_client/cors/templates_options_parameters.go +++ b/api/devops/devops_client/cors/templates_options_parameters.go @@ -56,10 +56,12 @@ func NewTemplatesOptionsParamsWithHTTPClient(client *http.Client) *TemplatesOpti } } -/* TemplatesOptionsParams contains all the parameters to send to the API endpoint - for the templates options operation. +/* +TemplatesOptionsParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the templates options operation. + + Typically these are written to a http.Request. */ type TemplatesOptionsParams struct { timeout time.Duration diff --git a/api/devops/devops_client/cors/templates_options_responses.go b/api/devops/devops_client/cors/templates_options_responses.go index 2573bd5..2eb2959 100644 --- a/api/devops/devops_client/cors/templates_options_responses.go +++ b/api/devops/devops_client/cors/templates_options_responses.go @@ -40,7 +40,8 @@ func NewTemplatesOptionsOK() *TemplatesOptionsOK { return &TemplatesOptionsOK{} } -/* TemplatesOptionsOK describes a response with status code 200, with default header values. +/* +TemplatesOptionsOK describes a response with status code 200, with default header values. CORS OPTIONS response */ @@ -54,10 +55,44 @@ type TemplatesOptionsOK struct { CacheControl string } +// IsSuccess returns true when this templates options o k response has a 2xx status code +func (o *TemplatesOptionsOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this templates options o k response has a 3xx status code +func (o *TemplatesOptionsOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this templates options o k response has a 4xx status code +func (o *TemplatesOptionsOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this templates options o k response has a 5xx status code +func (o *TemplatesOptionsOK) IsServerError() bool { + return false +} + +// IsCode returns true when this templates options o k response a status code equal to that given +func (o *TemplatesOptionsOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the templates options o k response +func (o *TemplatesOptionsOK) Code() int { + return 200 +} + func (o *TemplatesOptionsOK) Error() string { return fmt.Sprintf("[OPTIONS /templates][%d] templatesOptionsOK ", 200) } +func (o *TemplatesOptionsOK) String() string { + return fmt.Sprintf("[OPTIONS /templates][%d] templatesOptionsOK ", 200) +} + func (o *TemplatesOptionsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { // hydrates response header Access-Control-Allow-Credentials diff --git a/api/devops/devops_client/cors/tenant_options_parameters.go b/api/devops/devops_client/cors/tenant_options_parameters.go index ebe9343..707aff5 100644 --- a/api/devops/devops_client/cors/tenant_options_parameters.go +++ b/api/devops/devops_client/cors/tenant_options_parameters.go @@ -56,10 +56,12 @@ func NewTenantOptionsParamsWithHTTPClient(client *http.Client) *TenantOptionsPar } } -/* TenantOptionsParams contains all the parameters to send to the API endpoint - for the tenant options operation. +/* +TenantOptionsParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the tenant options operation. + + Typically these are written to a http.Request. */ type TenantOptionsParams struct { timeout time.Duration diff --git a/api/devops/devops_client/cors/tenant_options_responses.go b/api/devops/devops_client/cors/tenant_options_responses.go index 83d2e1d..84e6631 100644 --- a/api/devops/devops_client/cors/tenant_options_responses.go +++ b/api/devops/devops_client/cors/tenant_options_responses.go @@ -40,7 +40,8 @@ func NewTenantOptionsOK() *TenantOptionsOK { return &TenantOptionsOK{} } -/* TenantOptionsOK describes a response with status code 200, with default header values. +/* +TenantOptionsOK describes a response with status code 200, with default header values. CORS OPTIONS response */ @@ -54,10 +55,44 @@ type TenantOptionsOK struct { CacheControl string } +// IsSuccess returns true when this tenant options o k response has a 2xx status code +func (o *TenantOptionsOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this tenant options o k response has a 3xx status code +func (o *TenantOptionsOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this tenant options o k response has a 4xx status code +func (o *TenantOptionsOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this tenant options o k response has a 5xx status code +func (o *TenantOptionsOK) IsServerError() bool { + return false +} + +// IsCode returns true when this tenant options o k response a status code equal to that given +func (o *TenantOptionsOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the tenant options o k response +func (o *TenantOptionsOK) Code() int { + return 200 +} + func (o *TenantOptionsOK) Error() string { return fmt.Sprintf("[OPTIONS /tenants/observable][%d] tenantOptionsOK ", 200) } +func (o *TenantOptionsOK) String() string { + return fmt.Sprintf("[OPTIONS /tenants/observable][%d] tenantOptionsOK ", 200) +} + func (o *TenantOptionsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { // hydrates response header Access-Control-Allow-Credentials diff --git a/api/devops/devops_client/cors/tenants_options_parameters.go b/api/devops/devops_client/cors/tenants_options_parameters.go index 24d6512..07d0327 100644 --- a/api/devops/devops_client/cors/tenants_options_parameters.go +++ b/api/devops/devops_client/cors/tenants_options_parameters.go @@ -56,10 +56,12 @@ func NewTenantsOptionsParamsWithHTTPClient(client *http.Client) *TenantsOptionsP } } -/* TenantsOptionsParams contains all the parameters to send to the API endpoint - for the tenants options operation. +/* +TenantsOptionsParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the tenants options operation. + + Typically these are written to a http.Request. */ type TenantsOptionsParams struct { timeout time.Duration diff --git a/api/devops/devops_client/cors/tenants_options_responses.go b/api/devops/devops_client/cors/tenants_options_responses.go index 4fc5053..15c5093 100644 --- a/api/devops/devops_client/cors/tenants_options_responses.go +++ b/api/devops/devops_client/cors/tenants_options_responses.go @@ -40,7 +40,8 @@ func NewTenantsOptionsOK() *TenantsOptionsOK { return &TenantsOptionsOK{} } -/* TenantsOptionsOK describes a response with status code 200, with default header values. +/* +TenantsOptionsOK describes a response with status code 200, with default header values. CORS OPTIONS response */ @@ -54,10 +55,44 @@ type TenantsOptionsOK struct { CacheControl string } +// IsSuccess returns true when this tenants options o k response has a 2xx status code +func (o *TenantsOptionsOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this tenants options o k response has a 3xx status code +func (o *TenantsOptionsOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this tenants options o k response has a 4xx status code +func (o *TenantsOptionsOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this tenants options o k response has a 5xx status code +func (o *TenantsOptionsOK) IsServerError() bool { + return false +} + +// IsCode returns true when this tenants options o k response a status code equal to that given +func (o *TenantsOptionsOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the tenants options o k response +func (o *TenantsOptionsOK) Code() int { + return 200 +} + func (o *TenantsOptionsOK) Error() string { return fmt.Sprintf("[OPTIONS /tenants][%d] tenantsOptionsOK ", 200) } +func (o *TenantsOptionsOK) String() string { + return fmt.Sprintf("[OPTIONS /tenants][%d] tenantsOptionsOK ", 200) +} + func (o *TenantsOptionsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { // hydrates response header Access-Control-Allow-Credentials diff --git a/api/devops/devops_client/cors/user_options_parameters.go b/api/devops/devops_client/cors/user_options_parameters.go index b00ca64..49b7f67 100644 --- a/api/devops/devops_client/cors/user_options_parameters.go +++ b/api/devops/devops_client/cors/user_options_parameters.go @@ -56,10 +56,12 @@ func NewUserOptionsParamsWithHTTPClient(client *http.Client) *UserOptionsParams } } -/* UserOptionsParams contains all the parameters to send to the API endpoint - for the user options operation. +/* +UserOptionsParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the user options operation. + + Typically these are written to a http.Request. */ type UserOptionsParams struct { timeout time.Duration diff --git a/api/devops/devops_client/cors/user_options_responses.go b/api/devops/devops_client/cors/user_options_responses.go index d96db0a..8a617a8 100644 --- a/api/devops/devops_client/cors/user_options_responses.go +++ b/api/devops/devops_client/cors/user_options_responses.go @@ -40,7 +40,8 @@ func NewUserOptionsOK() *UserOptionsOK { return &UserOptionsOK{} } -/* UserOptionsOK describes a response with status code 200, with default header values. +/* +UserOptionsOK describes a response with status code 200, with default header values. CORS OPTIONS response */ @@ -54,10 +55,44 @@ type UserOptionsOK struct { CacheControl string } +// IsSuccess returns true when this user options o k response has a 2xx status code +func (o *UserOptionsOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this user options o k response has a 3xx status code +func (o *UserOptionsOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this user options o k response has a 4xx status code +func (o *UserOptionsOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this user options o k response has a 5xx status code +func (o *UserOptionsOK) IsServerError() bool { + return false +} + +// IsCode returns true when this user options o k response a status code equal to that given +func (o *UserOptionsOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the user options o k response +func (o *UserOptionsOK) Code() int { + return 200 +} + func (o *UserOptionsOK) Error() string { return fmt.Sprintf("[OPTIONS /users/observable][%d] userOptionsOK ", 200) } +func (o *UserOptionsOK) String() string { + return fmt.Sprintf("[OPTIONS /users/observable][%d] userOptionsOK ", 200) +} + func (o *UserOptionsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { // hydrates response header Access-Control-Allow-Credentials diff --git a/api/devops/devops_client/cors/users_options_parameters.go b/api/devops/devops_client/cors/users_options_parameters.go index 526a31e..54ad5ea 100644 --- a/api/devops/devops_client/cors/users_options_parameters.go +++ b/api/devops/devops_client/cors/users_options_parameters.go @@ -56,10 +56,12 @@ func NewUsersOptionsParamsWithHTTPClient(client *http.Client) *UsersOptionsParam } } -/* UsersOptionsParams contains all the parameters to send to the API endpoint - for the users options operation. +/* +UsersOptionsParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the users options operation. + + Typically these are written to a http.Request. */ type UsersOptionsParams struct { timeout time.Duration diff --git a/api/devops/devops_client/cors/users_options_responses.go b/api/devops/devops_client/cors/users_options_responses.go index 5440e78..628b72c 100644 --- a/api/devops/devops_client/cors/users_options_responses.go +++ b/api/devops/devops_client/cors/users_options_responses.go @@ -40,7 +40,8 @@ func NewUsersOptionsOK() *UsersOptionsOK { return &UsersOptionsOK{} } -/* UsersOptionsOK describes a response with status code 200, with default header values. +/* +UsersOptionsOK describes a response with status code 200, with default header values. CORS OPTIONS response */ @@ -54,10 +55,44 @@ type UsersOptionsOK struct { CacheControl string } +// IsSuccess returns true when this users options o k response has a 2xx status code +func (o *UsersOptionsOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this users options o k response has a 3xx status code +func (o *UsersOptionsOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this users options o k response has a 4xx status code +func (o *UsersOptionsOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this users options o k response has a 5xx status code +func (o *UsersOptionsOK) IsServerError() bool { + return false +} + +// IsCode returns true when this users options o k response a status code equal to that given +func (o *UsersOptionsOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the users options o k response +func (o *UsersOptionsOK) Code() int { + return 200 +} + func (o *UsersOptionsOK) Error() string { return fmt.Sprintf("[OPTIONS /users][%d] usersOptionsOK ", 200) } +func (o *UsersOptionsOK) String() string { + return fmt.Sprintf("[OPTIONS /users][%d] usersOptionsOK ", 200) +} + func (o *UsersOptionsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { // hydrates response header Access-Control-Allow-Credentials diff --git a/api/devops/devops_client/database/database_client.go b/api/devops/devops_client/database/database_client.go index 0d451c1..209a5c1 100644 --- a/api/devops/devops_client/database/database_client.go +++ b/api/devops/devops_client/database/database_client.go @@ -48,9 +48,9 @@ type ClientService interface { } /* - GetDatabase gets a single database object +GetDatabase gets a single database object - Return a single Database object from datastore as a Singleton +Return a single Database object from datastore as a Singleton */ func (a *Client) GetDatabase(params *GetDatabaseParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetDatabaseOK, error) { // TODO: Validate the params before sending @@ -89,9 +89,9 @@ func (a *Client) GetDatabase(params *GetDatabaseParams, authInfo runtime.ClientA } /* - GetDatabases gets a list databases +GetDatabases gets a list databases - Return a list of Database records from the datastore +Return a list of Database records from the datastore */ func (a *Client) GetDatabases(params *GetDatabasesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetDatabasesOK, error) { // TODO: Validate the params before sending @@ -130,9 +130,9 @@ func (a *Client) GetDatabases(params *GetDatabasesParams, authInfo runtime.Clien } /* - GetDatabasesObservable gets databases in an observable array +GetDatabasesObservable gets databases in an observable array - Returns a Database retrieval in a observable array +Returns a Database retrieval in a observable array */ func (a *Client) GetDatabasesObservable(params *GetDatabasesObservableParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetDatabasesObservableOK, error) { // TODO: Validate the params before sending @@ -171,9 +171,9 @@ func (a *Client) GetDatabasesObservable(params *GetDatabasesObservableParams, au } /* - PostDatabases creates new databases +PostDatabases creates new databases - Create Databases in Taxnexus +Create Databases in Taxnexus */ func (a *Client) PostDatabases(params *PostDatabasesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostDatabasesOK, error) { // TODO: Validate the params before sending @@ -212,9 +212,9 @@ func (a *Client) PostDatabases(params *PostDatabasesParams, authInfo runtime.Cli } /* - PutDatabases updates databases +PutDatabases updates databases - Update Database in Taxnexus +Update Database in Taxnexus */ func (a *Client) PutDatabases(params *PutDatabasesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PutDatabasesOK, error) { // TODO: Validate the params before sending diff --git a/api/devops/devops_client/database/get_database_parameters.go b/api/devops/devops_client/database/get_database_parameters.go index e82f300..2ed5914 100644 --- a/api/devops/devops_client/database/get_database_parameters.go +++ b/api/devops/devops_client/database/get_database_parameters.go @@ -56,10 +56,12 @@ func NewGetDatabaseParamsWithHTTPClient(client *http.Client) *GetDatabaseParams } } -/* GetDatabaseParams contains all the parameters to send to the API endpoint - for the get database operation. +/* +GetDatabaseParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get database operation. + + Typically these are written to a http.Request. */ type GetDatabaseParams struct { diff --git a/api/devops/devops_client/database/get_database_responses.go b/api/devops/devops_client/database/get_database_responses.go index 4d47b8f..33bbc9f 100644 --- a/api/devops/devops_client/database/get_database_responses.go +++ b/api/devops/devops_client/database/get_database_responses.go @@ -73,7 +73,8 @@ func NewGetDatabaseOK() *GetDatabaseOK { return &GetDatabaseOK{} } -/* GetDatabaseOK describes a response with status code 200, with default header values. +/* +GetDatabaseOK describes a response with status code 200, with default header values. Single Database record response */ @@ -84,9 +85,44 @@ type GetDatabaseOK struct { Payload *devops_models.Database } +// IsSuccess returns true when this get database o k response has a 2xx status code +func (o *GetDatabaseOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get database o k response has a 3xx status code +func (o *GetDatabaseOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get database o k response has a 4xx status code +func (o *GetDatabaseOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get database o k response has a 5xx status code +func (o *GetDatabaseOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get database o k response a status code equal to that given +func (o *GetDatabaseOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get database o k response +func (o *GetDatabaseOK) Code() int { + return 200 +} + func (o *GetDatabaseOK) Error() string { return fmt.Sprintf("[GET /databases/{databaseIdPath}][%d] getDatabaseOK %+v", 200, o.Payload) } + +func (o *GetDatabaseOK) String() string { + return fmt.Sprintf("[GET /databases/{databaseIdPath}][%d] getDatabaseOK %+v", 200, o.Payload) +} + func (o *GetDatabaseOK) GetPayload() *devops_models.Database { return o.Payload } @@ -122,7 +158,8 @@ func NewGetDatabaseUnauthorized() *GetDatabaseUnauthorized { return &GetDatabaseUnauthorized{} } -/* GetDatabaseUnauthorized describes a response with status code 401, with default header values. +/* +GetDatabaseUnauthorized describes a response with status code 401, with default header values. Access Unauthorized, invalid API-KEY was used */ @@ -133,9 +170,44 @@ type GetDatabaseUnauthorized struct { Payload *devops_models.Error } +// IsSuccess returns true when this get database unauthorized response has a 2xx status code +func (o *GetDatabaseUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get database unauthorized response has a 3xx status code +func (o *GetDatabaseUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get database unauthorized response has a 4xx status code +func (o *GetDatabaseUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this get database unauthorized response has a 5xx status code +func (o *GetDatabaseUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this get database unauthorized response a status code equal to that given +func (o *GetDatabaseUnauthorized) IsCode(code int) bool { + return code == 401 +} + +// Code gets the status code for the get database unauthorized response +func (o *GetDatabaseUnauthorized) Code() int { + return 401 +} + func (o *GetDatabaseUnauthorized) Error() string { return fmt.Sprintf("[GET /databases/{databaseIdPath}][%d] getDatabaseUnauthorized %+v", 401, o.Payload) } + +func (o *GetDatabaseUnauthorized) String() string { + return fmt.Sprintf("[GET /databases/{databaseIdPath}][%d] getDatabaseUnauthorized %+v", 401, o.Payload) +} + func (o *GetDatabaseUnauthorized) GetPayload() *devops_models.Error { return o.Payload } @@ -171,7 +243,8 @@ func NewGetDatabaseForbidden() *GetDatabaseForbidden { return &GetDatabaseForbidden{} } -/* GetDatabaseForbidden describes a response with status code 403, with default header values. +/* +GetDatabaseForbidden describes a response with status code 403, with default header values. Access forbidden, account lacks access */ @@ -181,9 +254,44 @@ type GetDatabaseForbidden struct { Payload *devops_models.Error } +// IsSuccess returns true when this get database forbidden response has a 2xx status code +func (o *GetDatabaseForbidden) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get database forbidden response has a 3xx status code +func (o *GetDatabaseForbidden) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get database forbidden response has a 4xx status code +func (o *GetDatabaseForbidden) IsClientError() bool { + return true +} + +// IsServerError returns true when this get database forbidden response has a 5xx status code +func (o *GetDatabaseForbidden) IsServerError() bool { + return false +} + +// IsCode returns true when this get database forbidden response a status code equal to that given +func (o *GetDatabaseForbidden) IsCode(code int) bool { + return code == 403 +} + +// Code gets the status code for the get database forbidden response +func (o *GetDatabaseForbidden) Code() int { + return 403 +} + func (o *GetDatabaseForbidden) Error() string { return fmt.Sprintf("[GET /databases/{databaseIdPath}][%d] getDatabaseForbidden %+v", 403, o.Payload) } + +func (o *GetDatabaseForbidden) String() string { + return fmt.Sprintf("[GET /databases/{databaseIdPath}][%d] getDatabaseForbidden %+v", 403, o.Payload) +} + func (o *GetDatabaseForbidden) GetPayload() *devops_models.Error { return o.Payload } @@ -212,7 +320,8 @@ func NewGetDatabaseNotFound() *GetDatabaseNotFound { return &GetDatabaseNotFound{} } -/* GetDatabaseNotFound describes a response with status code 404, with default header values. +/* +GetDatabaseNotFound describes a response with status code 404, with default header values. Resource was not found */ @@ -222,9 +331,44 @@ type GetDatabaseNotFound struct { Payload *devops_models.Error } +// IsSuccess returns true when this get database not found response has a 2xx status code +func (o *GetDatabaseNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get database not found response has a 3xx status code +func (o *GetDatabaseNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get database not found response has a 4xx status code +func (o *GetDatabaseNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this get database not found response has a 5xx status code +func (o *GetDatabaseNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this get database not found response a status code equal to that given +func (o *GetDatabaseNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the get database not found response +func (o *GetDatabaseNotFound) Code() int { + return 404 +} + func (o *GetDatabaseNotFound) Error() string { return fmt.Sprintf("[GET /databases/{databaseIdPath}][%d] getDatabaseNotFound %+v", 404, o.Payload) } + +func (o *GetDatabaseNotFound) String() string { + return fmt.Sprintf("[GET /databases/{databaseIdPath}][%d] getDatabaseNotFound %+v", 404, o.Payload) +} + func (o *GetDatabaseNotFound) GetPayload() *devops_models.Error { return o.Payload } @@ -253,7 +397,8 @@ func NewGetDatabaseUnprocessableEntity() *GetDatabaseUnprocessableEntity { return &GetDatabaseUnprocessableEntity{} } -/* GetDatabaseUnprocessableEntity describes a response with status code 422, with default header values. +/* +GetDatabaseUnprocessableEntity describes a response with status code 422, with default header values. Unprocessable Entity, likely a bad parameter */ @@ -264,9 +409,44 @@ type GetDatabaseUnprocessableEntity struct { Payload *devops_models.Error } +// IsSuccess returns true when this get database unprocessable entity response has a 2xx status code +func (o *GetDatabaseUnprocessableEntity) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get database unprocessable entity response has a 3xx status code +func (o *GetDatabaseUnprocessableEntity) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get database unprocessable entity response has a 4xx status code +func (o *GetDatabaseUnprocessableEntity) IsClientError() bool { + return true +} + +// IsServerError returns true when this get database unprocessable entity response has a 5xx status code +func (o *GetDatabaseUnprocessableEntity) IsServerError() bool { + return false +} + +// IsCode returns true when this get database unprocessable entity response a status code equal to that given +func (o *GetDatabaseUnprocessableEntity) IsCode(code int) bool { + return code == 422 +} + +// Code gets the status code for the get database unprocessable entity response +func (o *GetDatabaseUnprocessableEntity) Code() int { + return 422 +} + func (o *GetDatabaseUnprocessableEntity) Error() string { return fmt.Sprintf("[GET /databases/{databaseIdPath}][%d] getDatabaseUnprocessableEntity %+v", 422, o.Payload) } + +func (o *GetDatabaseUnprocessableEntity) String() string { + return fmt.Sprintf("[GET /databases/{databaseIdPath}][%d] getDatabaseUnprocessableEntity %+v", 422, o.Payload) +} + func (o *GetDatabaseUnprocessableEntity) GetPayload() *devops_models.Error { return o.Payload } @@ -302,7 +482,8 @@ func NewGetDatabaseInternalServerError() *GetDatabaseInternalServerError { return &GetDatabaseInternalServerError{} } -/* GetDatabaseInternalServerError describes a response with status code 500, with default header values. +/* +GetDatabaseInternalServerError describes a response with status code 500, with default header values. Server Internal Error */ @@ -312,9 +493,44 @@ type GetDatabaseInternalServerError struct { Payload *devops_models.Error } +// IsSuccess returns true when this get database internal server error response has a 2xx status code +func (o *GetDatabaseInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get database internal server error response has a 3xx status code +func (o *GetDatabaseInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get database internal server error response has a 4xx status code +func (o *GetDatabaseInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this get database internal server error response has a 5xx status code +func (o *GetDatabaseInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this get database internal server error response a status code equal to that given +func (o *GetDatabaseInternalServerError) IsCode(code int) bool { + return code == 500 +} + +// Code gets the status code for the get database internal server error response +func (o *GetDatabaseInternalServerError) Code() int { + return 500 +} + func (o *GetDatabaseInternalServerError) Error() string { return fmt.Sprintf("[GET /databases/{databaseIdPath}][%d] getDatabaseInternalServerError %+v", 500, o.Payload) } + +func (o *GetDatabaseInternalServerError) String() string { + return fmt.Sprintf("[GET /databases/{databaseIdPath}][%d] getDatabaseInternalServerError %+v", 500, o.Payload) +} + func (o *GetDatabaseInternalServerError) GetPayload() *devops_models.Error { return o.Payload } diff --git a/api/devops/devops_client/database/get_databases_observable_parameters.go b/api/devops/devops_client/database/get_databases_observable_parameters.go index 587fa63..b2bbaa4 100644 --- a/api/devops/devops_client/database/get_databases_observable_parameters.go +++ b/api/devops/devops_client/database/get_databases_observable_parameters.go @@ -56,10 +56,12 @@ func NewGetDatabasesObservableParamsWithHTTPClient(client *http.Client) *GetData } } -/* GetDatabasesObservableParams contains all the parameters to send to the API endpoint - for the get databases observable operation. +/* +GetDatabasesObservableParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get databases observable operation. + + Typically these are written to a http.Request. */ type GetDatabasesObservableParams struct { timeout time.Duration diff --git a/api/devops/devops_client/database/get_databases_observable_responses.go b/api/devops/devops_client/database/get_databases_observable_responses.go index 6110640..d4eb544 100644 --- a/api/devops/devops_client/database/get_databases_observable_responses.go +++ b/api/devops/devops_client/database/get_databases_observable_responses.go @@ -73,7 +73,8 @@ func NewGetDatabasesObservableOK() *GetDatabasesObservableOK { return &GetDatabasesObservableOK{} } -/* GetDatabasesObservableOK describes a response with status code 200, with default header values. +/* +GetDatabasesObservableOK describes a response with status code 200, with default header values. Single Database record response */ @@ -84,9 +85,44 @@ type GetDatabasesObservableOK struct { Payload []*devops_models.Database } +// IsSuccess returns true when this get databases observable o k response has a 2xx status code +func (o *GetDatabasesObservableOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get databases observable o k response has a 3xx status code +func (o *GetDatabasesObservableOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get databases observable o k response has a 4xx status code +func (o *GetDatabasesObservableOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get databases observable o k response has a 5xx status code +func (o *GetDatabasesObservableOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get databases observable o k response a status code equal to that given +func (o *GetDatabasesObservableOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get databases observable o k response +func (o *GetDatabasesObservableOK) Code() int { + return 200 +} + func (o *GetDatabasesObservableOK) Error() string { return fmt.Sprintf("[GET /databases/observable][%d] getDatabasesObservableOK %+v", 200, o.Payload) } + +func (o *GetDatabasesObservableOK) String() string { + return fmt.Sprintf("[GET /databases/observable][%d] getDatabasesObservableOK %+v", 200, o.Payload) +} + func (o *GetDatabasesObservableOK) GetPayload() []*devops_models.Database { return o.Payload } @@ -120,7 +156,8 @@ func NewGetDatabasesObservableUnauthorized() *GetDatabasesObservableUnauthorized return &GetDatabasesObservableUnauthorized{} } -/* GetDatabasesObservableUnauthorized describes a response with status code 401, with default header values. +/* +GetDatabasesObservableUnauthorized describes a response with status code 401, with default header values. Access Unauthorized, invalid API-KEY was used */ @@ -131,9 +168,44 @@ type GetDatabasesObservableUnauthorized struct { Payload *devops_models.Error } +// IsSuccess returns true when this get databases observable unauthorized response has a 2xx status code +func (o *GetDatabasesObservableUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get databases observable unauthorized response has a 3xx status code +func (o *GetDatabasesObservableUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get databases observable unauthorized response has a 4xx status code +func (o *GetDatabasesObservableUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this get databases observable unauthorized response has a 5xx status code +func (o *GetDatabasesObservableUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this get databases observable unauthorized response a status code equal to that given +func (o *GetDatabasesObservableUnauthorized) IsCode(code int) bool { + return code == 401 +} + +// Code gets the status code for the get databases observable unauthorized response +func (o *GetDatabasesObservableUnauthorized) Code() int { + return 401 +} + func (o *GetDatabasesObservableUnauthorized) Error() string { return fmt.Sprintf("[GET /databases/observable][%d] getDatabasesObservableUnauthorized %+v", 401, o.Payload) } + +func (o *GetDatabasesObservableUnauthorized) String() string { + return fmt.Sprintf("[GET /databases/observable][%d] getDatabasesObservableUnauthorized %+v", 401, o.Payload) +} + func (o *GetDatabasesObservableUnauthorized) GetPayload() *devops_models.Error { return o.Payload } @@ -169,7 +241,8 @@ func NewGetDatabasesObservableForbidden() *GetDatabasesObservableForbidden { return &GetDatabasesObservableForbidden{} } -/* GetDatabasesObservableForbidden describes a response with status code 403, with default header values. +/* +GetDatabasesObservableForbidden describes a response with status code 403, with default header values. Access forbidden, account lacks access */ @@ -179,9 +252,44 @@ type GetDatabasesObservableForbidden struct { Payload *devops_models.Error } +// IsSuccess returns true when this get databases observable forbidden response has a 2xx status code +func (o *GetDatabasesObservableForbidden) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get databases observable forbidden response has a 3xx status code +func (o *GetDatabasesObservableForbidden) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get databases observable forbidden response has a 4xx status code +func (o *GetDatabasesObservableForbidden) IsClientError() bool { + return true +} + +// IsServerError returns true when this get databases observable forbidden response has a 5xx status code +func (o *GetDatabasesObservableForbidden) IsServerError() bool { + return false +} + +// IsCode returns true when this get databases observable forbidden response a status code equal to that given +func (o *GetDatabasesObservableForbidden) IsCode(code int) bool { + return code == 403 +} + +// Code gets the status code for the get databases observable forbidden response +func (o *GetDatabasesObservableForbidden) Code() int { + return 403 +} + func (o *GetDatabasesObservableForbidden) Error() string { return fmt.Sprintf("[GET /databases/observable][%d] getDatabasesObservableForbidden %+v", 403, o.Payload) } + +func (o *GetDatabasesObservableForbidden) String() string { + return fmt.Sprintf("[GET /databases/observable][%d] getDatabasesObservableForbidden %+v", 403, o.Payload) +} + func (o *GetDatabasesObservableForbidden) GetPayload() *devops_models.Error { return o.Payload } @@ -210,7 +318,8 @@ func NewGetDatabasesObservableNotFound() *GetDatabasesObservableNotFound { return &GetDatabasesObservableNotFound{} } -/* GetDatabasesObservableNotFound describes a response with status code 404, with default header values. +/* +GetDatabasesObservableNotFound describes a response with status code 404, with default header values. Resource was not found */ @@ -220,9 +329,44 @@ type GetDatabasesObservableNotFound struct { Payload *devops_models.Error } +// IsSuccess returns true when this get databases observable not found response has a 2xx status code +func (o *GetDatabasesObservableNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get databases observable not found response has a 3xx status code +func (o *GetDatabasesObservableNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get databases observable not found response has a 4xx status code +func (o *GetDatabasesObservableNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this get databases observable not found response has a 5xx status code +func (o *GetDatabasesObservableNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this get databases observable not found response a status code equal to that given +func (o *GetDatabasesObservableNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the get databases observable not found response +func (o *GetDatabasesObservableNotFound) Code() int { + return 404 +} + func (o *GetDatabasesObservableNotFound) Error() string { return fmt.Sprintf("[GET /databases/observable][%d] getDatabasesObservableNotFound %+v", 404, o.Payload) } + +func (o *GetDatabasesObservableNotFound) String() string { + return fmt.Sprintf("[GET /databases/observable][%d] getDatabasesObservableNotFound %+v", 404, o.Payload) +} + func (o *GetDatabasesObservableNotFound) GetPayload() *devops_models.Error { return o.Payload } @@ -251,7 +395,8 @@ func NewGetDatabasesObservableUnprocessableEntity() *GetDatabasesObservableUnpro return &GetDatabasesObservableUnprocessableEntity{} } -/* GetDatabasesObservableUnprocessableEntity describes a response with status code 422, with default header values. +/* +GetDatabasesObservableUnprocessableEntity describes a response with status code 422, with default header values. Unprocessable Entity, likely a bad parameter */ @@ -262,9 +407,44 @@ type GetDatabasesObservableUnprocessableEntity struct { Payload *devops_models.Error } +// IsSuccess returns true when this get databases observable unprocessable entity response has a 2xx status code +func (o *GetDatabasesObservableUnprocessableEntity) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get databases observable unprocessable entity response has a 3xx status code +func (o *GetDatabasesObservableUnprocessableEntity) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get databases observable unprocessable entity response has a 4xx status code +func (o *GetDatabasesObservableUnprocessableEntity) IsClientError() bool { + return true +} + +// IsServerError returns true when this get databases observable unprocessable entity response has a 5xx status code +func (o *GetDatabasesObservableUnprocessableEntity) IsServerError() bool { + return false +} + +// IsCode returns true when this get databases observable unprocessable entity response a status code equal to that given +func (o *GetDatabasesObservableUnprocessableEntity) IsCode(code int) bool { + return code == 422 +} + +// Code gets the status code for the get databases observable unprocessable entity response +func (o *GetDatabasesObservableUnprocessableEntity) Code() int { + return 422 +} + func (o *GetDatabasesObservableUnprocessableEntity) Error() string { return fmt.Sprintf("[GET /databases/observable][%d] getDatabasesObservableUnprocessableEntity %+v", 422, o.Payload) } + +func (o *GetDatabasesObservableUnprocessableEntity) String() string { + return fmt.Sprintf("[GET /databases/observable][%d] getDatabasesObservableUnprocessableEntity %+v", 422, o.Payload) +} + func (o *GetDatabasesObservableUnprocessableEntity) GetPayload() *devops_models.Error { return o.Payload } @@ -300,7 +480,8 @@ func NewGetDatabasesObservableInternalServerError() *GetDatabasesObservableInter return &GetDatabasesObservableInternalServerError{} } -/* GetDatabasesObservableInternalServerError describes a response with status code 500, with default header values. +/* +GetDatabasesObservableInternalServerError describes a response with status code 500, with default header values. Server Internal Error */ @@ -310,9 +491,44 @@ type GetDatabasesObservableInternalServerError struct { Payload *devops_models.Error } +// IsSuccess returns true when this get databases observable internal server error response has a 2xx status code +func (o *GetDatabasesObservableInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get databases observable internal server error response has a 3xx status code +func (o *GetDatabasesObservableInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get databases observable internal server error response has a 4xx status code +func (o *GetDatabasesObservableInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this get databases observable internal server error response has a 5xx status code +func (o *GetDatabasesObservableInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this get databases observable internal server error response a status code equal to that given +func (o *GetDatabasesObservableInternalServerError) IsCode(code int) bool { + return code == 500 +} + +// Code gets the status code for the get databases observable internal server error response +func (o *GetDatabasesObservableInternalServerError) Code() int { + return 500 +} + func (o *GetDatabasesObservableInternalServerError) Error() string { return fmt.Sprintf("[GET /databases/observable][%d] getDatabasesObservableInternalServerError %+v", 500, o.Payload) } + +func (o *GetDatabasesObservableInternalServerError) String() string { + return fmt.Sprintf("[GET /databases/observable][%d] getDatabasesObservableInternalServerError %+v", 500, o.Payload) +} + func (o *GetDatabasesObservableInternalServerError) GetPayload() *devops_models.Error { return o.Payload } diff --git a/api/devops/devops_client/database/get_databases_parameters.go b/api/devops/devops_client/database/get_databases_parameters.go index cc45a6f..5ad4365 100644 --- a/api/devops/devops_client/database/get_databases_parameters.go +++ b/api/devops/devops_client/database/get_databases_parameters.go @@ -57,10 +57,12 @@ func NewGetDatabasesParamsWithHTTPClient(client *http.Client) *GetDatabasesParam } } -/* GetDatabasesParams contains all the parameters to send to the API endpoint - for the get databases operation. +/* +GetDatabasesParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get databases operation. + + Typically these are written to a http.Request. */ type GetDatabasesParams struct { diff --git a/api/devops/devops_client/database/get_databases_responses.go b/api/devops/devops_client/database/get_databases_responses.go index cc9966f..1ac09be 100644 --- a/api/devops/devops_client/database/get_databases_responses.go +++ b/api/devops/devops_client/database/get_databases_responses.go @@ -73,7 +73,8 @@ func NewGetDatabasesOK() *GetDatabasesOK { return &GetDatabasesOK{} } -/* GetDatabasesOK describes a response with status code 200, with default header values. +/* +GetDatabasesOK describes a response with status code 200, with default header values. Taxnexus Response with Database objects */ @@ -83,9 +84,44 @@ type GetDatabasesOK struct { Payload *devops_models.DatabaseResponse } +// IsSuccess returns true when this get databases o k response has a 2xx status code +func (o *GetDatabasesOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get databases o k response has a 3xx status code +func (o *GetDatabasesOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get databases o k response has a 4xx status code +func (o *GetDatabasesOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get databases o k response has a 5xx status code +func (o *GetDatabasesOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get databases o k response a status code equal to that given +func (o *GetDatabasesOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get databases o k response +func (o *GetDatabasesOK) Code() int { + return 200 +} + func (o *GetDatabasesOK) Error() string { return fmt.Sprintf("[GET /databases][%d] getDatabasesOK %+v", 200, o.Payload) } + +func (o *GetDatabasesOK) String() string { + return fmt.Sprintf("[GET /databases][%d] getDatabasesOK %+v", 200, o.Payload) +} + func (o *GetDatabasesOK) GetPayload() *devops_models.DatabaseResponse { return o.Payload } @@ -114,7 +150,8 @@ func NewGetDatabasesUnauthorized() *GetDatabasesUnauthorized { return &GetDatabasesUnauthorized{} } -/* GetDatabasesUnauthorized describes a response with status code 401, with default header values. +/* +GetDatabasesUnauthorized describes a response with status code 401, with default header values. Access Unauthorized, invalid API-KEY was used */ @@ -125,9 +162,44 @@ type GetDatabasesUnauthorized struct { Payload *devops_models.Error } +// IsSuccess returns true when this get databases unauthorized response has a 2xx status code +func (o *GetDatabasesUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get databases unauthorized response has a 3xx status code +func (o *GetDatabasesUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get databases unauthorized response has a 4xx status code +func (o *GetDatabasesUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this get databases unauthorized response has a 5xx status code +func (o *GetDatabasesUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this get databases unauthorized response a status code equal to that given +func (o *GetDatabasesUnauthorized) IsCode(code int) bool { + return code == 401 +} + +// Code gets the status code for the get databases unauthorized response +func (o *GetDatabasesUnauthorized) Code() int { + return 401 +} + func (o *GetDatabasesUnauthorized) Error() string { return fmt.Sprintf("[GET /databases][%d] getDatabasesUnauthorized %+v", 401, o.Payload) } + +func (o *GetDatabasesUnauthorized) String() string { + return fmt.Sprintf("[GET /databases][%d] getDatabasesUnauthorized %+v", 401, o.Payload) +} + func (o *GetDatabasesUnauthorized) GetPayload() *devops_models.Error { return o.Payload } @@ -163,7 +235,8 @@ func NewGetDatabasesForbidden() *GetDatabasesForbidden { return &GetDatabasesForbidden{} } -/* GetDatabasesForbidden describes a response with status code 403, with default header values. +/* +GetDatabasesForbidden describes a response with status code 403, with default header values. Access forbidden, account lacks access */ @@ -173,9 +246,44 @@ type GetDatabasesForbidden struct { Payload *devops_models.Error } +// IsSuccess returns true when this get databases forbidden response has a 2xx status code +func (o *GetDatabasesForbidden) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get databases forbidden response has a 3xx status code +func (o *GetDatabasesForbidden) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get databases forbidden response has a 4xx status code +func (o *GetDatabasesForbidden) IsClientError() bool { + return true +} + +// IsServerError returns true when this get databases forbidden response has a 5xx status code +func (o *GetDatabasesForbidden) IsServerError() bool { + return false +} + +// IsCode returns true when this get databases forbidden response a status code equal to that given +func (o *GetDatabasesForbidden) IsCode(code int) bool { + return code == 403 +} + +// Code gets the status code for the get databases forbidden response +func (o *GetDatabasesForbidden) Code() int { + return 403 +} + func (o *GetDatabasesForbidden) Error() string { return fmt.Sprintf("[GET /databases][%d] getDatabasesForbidden %+v", 403, o.Payload) } + +func (o *GetDatabasesForbidden) String() string { + return fmt.Sprintf("[GET /databases][%d] getDatabasesForbidden %+v", 403, o.Payload) +} + func (o *GetDatabasesForbidden) GetPayload() *devops_models.Error { return o.Payload } @@ -204,7 +312,8 @@ func NewGetDatabasesNotFound() *GetDatabasesNotFound { return &GetDatabasesNotFound{} } -/* GetDatabasesNotFound describes a response with status code 404, with default header values. +/* +GetDatabasesNotFound describes a response with status code 404, with default header values. Resource was not found */ @@ -214,9 +323,44 @@ type GetDatabasesNotFound struct { Payload *devops_models.Error } +// IsSuccess returns true when this get databases not found response has a 2xx status code +func (o *GetDatabasesNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get databases not found response has a 3xx status code +func (o *GetDatabasesNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get databases not found response has a 4xx status code +func (o *GetDatabasesNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this get databases not found response has a 5xx status code +func (o *GetDatabasesNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this get databases not found response a status code equal to that given +func (o *GetDatabasesNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the get databases not found response +func (o *GetDatabasesNotFound) Code() int { + return 404 +} + func (o *GetDatabasesNotFound) Error() string { return fmt.Sprintf("[GET /databases][%d] getDatabasesNotFound %+v", 404, o.Payload) } + +func (o *GetDatabasesNotFound) String() string { + return fmt.Sprintf("[GET /databases][%d] getDatabasesNotFound %+v", 404, o.Payload) +} + func (o *GetDatabasesNotFound) GetPayload() *devops_models.Error { return o.Payload } @@ -245,7 +389,8 @@ func NewGetDatabasesUnprocessableEntity() *GetDatabasesUnprocessableEntity { return &GetDatabasesUnprocessableEntity{} } -/* GetDatabasesUnprocessableEntity describes a response with status code 422, with default header values. +/* +GetDatabasesUnprocessableEntity describes a response with status code 422, with default header values. Unprocessable Entity, likely a bad parameter */ @@ -256,9 +401,44 @@ type GetDatabasesUnprocessableEntity struct { Payload *devops_models.Error } +// IsSuccess returns true when this get databases unprocessable entity response has a 2xx status code +func (o *GetDatabasesUnprocessableEntity) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get databases unprocessable entity response has a 3xx status code +func (o *GetDatabasesUnprocessableEntity) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get databases unprocessable entity response has a 4xx status code +func (o *GetDatabasesUnprocessableEntity) IsClientError() bool { + return true +} + +// IsServerError returns true when this get databases unprocessable entity response has a 5xx status code +func (o *GetDatabasesUnprocessableEntity) IsServerError() bool { + return false +} + +// IsCode returns true when this get databases unprocessable entity response a status code equal to that given +func (o *GetDatabasesUnprocessableEntity) IsCode(code int) bool { + return code == 422 +} + +// Code gets the status code for the get databases unprocessable entity response +func (o *GetDatabasesUnprocessableEntity) Code() int { + return 422 +} + func (o *GetDatabasesUnprocessableEntity) Error() string { return fmt.Sprintf("[GET /databases][%d] getDatabasesUnprocessableEntity %+v", 422, o.Payload) } + +func (o *GetDatabasesUnprocessableEntity) String() string { + return fmt.Sprintf("[GET /databases][%d] getDatabasesUnprocessableEntity %+v", 422, o.Payload) +} + func (o *GetDatabasesUnprocessableEntity) GetPayload() *devops_models.Error { return o.Payload } @@ -294,7 +474,8 @@ func NewGetDatabasesInternalServerError() *GetDatabasesInternalServerError { return &GetDatabasesInternalServerError{} } -/* GetDatabasesInternalServerError describes a response with status code 500, with default header values. +/* +GetDatabasesInternalServerError describes a response with status code 500, with default header values. Server Internal Error */ @@ -304,9 +485,44 @@ type GetDatabasesInternalServerError struct { Payload *devops_models.Error } +// IsSuccess returns true when this get databases internal server error response has a 2xx status code +func (o *GetDatabasesInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get databases internal server error response has a 3xx status code +func (o *GetDatabasesInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get databases internal server error response has a 4xx status code +func (o *GetDatabasesInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this get databases internal server error response has a 5xx status code +func (o *GetDatabasesInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this get databases internal server error response a status code equal to that given +func (o *GetDatabasesInternalServerError) IsCode(code int) bool { + return code == 500 +} + +// Code gets the status code for the get databases internal server error response +func (o *GetDatabasesInternalServerError) Code() int { + return 500 +} + func (o *GetDatabasesInternalServerError) Error() string { return fmt.Sprintf("[GET /databases][%d] getDatabasesInternalServerError %+v", 500, o.Payload) } + +func (o *GetDatabasesInternalServerError) String() string { + return fmt.Sprintf("[GET /databases][%d] getDatabasesInternalServerError %+v", 500, o.Payload) +} + func (o *GetDatabasesInternalServerError) GetPayload() *devops_models.Error { return o.Payload } diff --git a/api/devops/devops_client/database/post_databases_parameters.go b/api/devops/devops_client/database/post_databases_parameters.go index a37b9a2..b0eda84 100644 --- a/api/devops/devops_client/database/post_databases_parameters.go +++ b/api/devops/devops_client/database/post_databases_parameters.go @@ -58,10 +58,12 @@ func NewPostDatabasesParamsWithHTTPClient(client *http.Client) *PostDatabasesPar } } -/* PostDatabasesParams contains all the parameters to send to the API endpoint - for the post databases operation. +/* +PostDatabasesParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the post databases operation. + + Typically these are written to a http.Request. */ type PostDatabasesParams struct { diff --git a/api/devops/devops_client/database/post_databases_responses.go b/api/devops/devops_client/database/post_databases_responses.go index a48813a..44fd2d1 100644 --- a/api/devops/devops_client/database/post_databases_responses.go +++ b/api/devops/devops_client/database/post_databases_responses.go @@ -73,7 +73,8 @@ func NewPostDatabasesOK() *PostDatabasesOK { return &PostDatabasesOK{} } -/* PostDatabasesOK describes a response with status code 200, with default header values. +/* +PostDatabasesOK describes a response with status code 200, with default header values. Taxnexus Response with Database objects */ @@ -83,9 +84,44 @@ type PostDatabasesOK struct { Payload *devops_models.DatabaseResponse } +// IsSuccess returns true when this post databases o k response has a 2xx status code +func (o *PostDatabasesOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this post databases o k response has a 3xx status code +func (o *PostDatabasesOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this post databases o k response has a 4xx status code +func (o *PostDatabasesOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this post databases o k response has a 5xx status code +func (o *PostDatabasesOK) IsServerError() bool { + return false +} + +// IsCode returns true when this post databases o k response a status code equal to that given +func (o *PostDatabasesOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the post databases o k response +func (o *PostDatabasesOK) Code() int { + return 200 +} + func (o *PostDatabasesOK) Error() string { return fmt.Sprintf("[POST /databases][%d] postDatabasesOK %+v", 200, o.Payload) } + +func (o *PostDatabasesOK) String() string { + return fmt.Sprintf("[POST /databases][%d] postDatabasesOK %+v", 200, o.Payload) +} + func (o *PostDatabasesOK) GetPayload() *devops_models.DatabaseResponse { return o.Payload } @@ -114,7 +150,8 @@ func NewPostDatabasesUnauthorized() *PostDatabasesUnauthorized { return &PostDatabasesUnauthorized{} } -/* PostDatabasesUnauthorized describes a response with status code 401, with default header values. +/* +PostDatabasesUnauthorized describes a response with status code 401, with default header values. Access Unauthorized, invalid API-KEY was used */ @@ -125,9 +162,44 @@ type PostDatabasesUnauthorized struct { Payload *devops_models.Error } +// IsSuccess returns true when this post databases unauthorized response has a 2xx status code +func (o *PostDatabasesUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this post databases unauthorized response has a 3xx status code +func (o *PostDatabasesUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this post databases unauthorized response has a 4xx status code +func (o *PostDatabasesUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this post databases unauthorized response has a 5xx status code +func (o *PostDatabasesUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this post databases unauthorized response a status code equal to that given +func (o *PostDatabasesUnauthorized) IsCode(code int) bool { + return code == 401 +} + +// Code gets the status code for the post databases unauthorized response +func (o *PostDatabasesUnauthorized) Code() int { + return 401 +} + func (o *PostDatabasesUnauthorized) Error() string { return fmt.Sprintf("[POST /databases][%d] postDatabasesUnauthorized %+v", 401, o.Payload) } + +func (o *PostDatabasesUnauthorized) String() string { + return fmt.Sprintf("[POST /databases][%d] postDatabasesUnauthorized %+v", 401, o.Payload) +} + func (o *PostDatabasesUnauthorized) GetPayload() *devops_models.Error { return o.Payload } @@ -163,7 +235,8 @@ func NewPostDatabasesForbidden() *PostDatabasesForbidden { return &PostDatabasesForbidden{} } -/* PostDatabasesForbidden describes a response with status code 403, with default header values. +/* +PostDatabasesForbidden describes a response with status code 403, with default header values. Access forbidden, account lacks access */ @@ -173,9 +246,44 @@ type PostDatabasesForbidden struct { Payload *devops_models.Error } +// IsSuccess returns true when this post databases forbidden response has a 2xx status code +func (o *PostDatabasesForbidden) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this post databases forbidden response has a 3xx status code +func (o *PostDatabasesForbidden) IsRedirect() bool { + return false +} + +// IsClientError returns true when this post databases forbidden response has a 4xx status code +func (o *PostDatabasesForbidden) IsClientError() bool { + return true +} + +// IsServerError returns true when this post databases forbidden response has a 5xx status code +func (o *PostDatabasesForbidden) IsServerError() bool { + return false +} + +// IsCode returns true when this post databases forbidden response a status code equal to that given +func (o *PostDatabasesForbidden) IsCode(code int) bool { + return code == 403 +} + +// Code gets the status code for the post databases forbidden response +func (o *PostDatabasesForbidden) Code() int { + return 403 +} + func (o *PostDatabasesForbidden) Error() string { return fmt.Sprintf("[POST /databases][%d] postDatabasesForbidden %+v", 403, o.Payload) } + +func (o *PostDatabasesForbidden) String() string { + return fmt.Sprintf("[POST /databases][%d] postDatabasesForbidden %+v", 403, o.Payload) +} + func (o *PostDatabasesForbidden) GetPayload() *devops_models.Error { return o.Payload } @@ -204,7 +312,8 @@ func NewPostDatabasesNotFound() *PostDatabasesNotFound { return &PostDatabasesNotFound{} } -/* PostDatabasesNotFound describes a response with status code 404, with default header values. +/* +PostDatabasesNotFound describes a response with status code 404, with default header values. Resource was not found */ @@ -214,9 +323,44 @@ type PostDatabasesNotFound struct { Payload *devops_models.Error } +// IsSuccess returns true when this post databases not found response has a 2xx status code +func (o *PostDatabasesNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this post databases not found response has a 3xx status code +func (o *PostDatabasesNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this post databases not found response has a 4xx status code +func (o *PostDatabasesNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this post databases not found response has a 5xx status code +func (o *PostDatabasesNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this post databases not found response a status code equal to that given +func (o *PostDatabasesNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the post databases not found response +func (o *PostDatabasesNotFound) Code() int { + return 404 +} + func (o *PostDatabasesNotFound) Error() string { return fmt.Sprintf("[POST /databases][%d] postDatabasesNotFound %+v", 404, o.Payload) } + +func (o *PostDatabasesNotFound) String() string { + return fmt.Sprintf("[POST /databases][%d] postDatabasesNotFound %+v", 404, o.Payload) +} + func (o *PostDatabasesNotFound) GetPayload() *devops_models.Error { return o.Payload } @@ -245,7 +389,8 @@ func NewPostDatabasesUnprocessableEntity() *PostDatabasesUnprocessableEntity { return &PostDatabasesUnprocessableEntity{} } -/* PostDatabasesUnprocessableEntity describes a response with status code 422, with default header values. +/* +PostDatabasesUnprocessableEntity describes a response with status code 422, with default header values. Unprocessable Entity, likely a bad parameter */ @@ -256,9 +401,44 @@ type PostDatabasesUnprocessableEntity struct { Payload *devops_models.Error } +// IsSuccess returns true when this post databases unprocessable entity response has a 2xx status code +func (o *PostDatabasesUnprocessableEntity) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this post databases unprocessable entity response has a 3xx status code +func (o *PostDatabasesUnprocessableEntity) IsRedirect() bool { + return false +} + +// IsClientError returns true when this post databases unprocessable entity response has a 4xx status code +func (o *PostDatabasesUnprocessableEntity) IsClientError() bool { + return true +} + +// IsServerError returns true when this post databases unprocessable entity response has a 5xx status code +func (o *PostDatabasesUnprocessableEntity) IsServerError() bool { + return false +} + +// IsCode returns true when this post databases unprocessable entity response a status code equal to that given +func (o *PostDatabasesUnprocessableEntity) IsCode(code int) bool { + return code == 422 +} + +// Code gets the status code for the post databases unprocessable entity response +func (o *PostDatabasesUnprocessableEntity) Code() int { + return 422 +} + func (o *PostDatabasesUnprocessableEntity) Error() string { return fmt.Sprintf("[POST /databases][%d] postDatabasesUnprocessableEntity %+v", 422, o.Payload) } + +func (o *PostDatabasesUnprocessableEntity) String() string { + return fmt.Sprintf("[POST /databases][%d] postDatabasesUnprocessableEntity %+v", 422, o.Payload) +} + func (o *PostDatabasesUnprocessableEntity) GetPayload() *devops_models.Error { return o.Payload } @@ -294,7 +474,8 @@ func NewPostDatabasesInternalServerError() *PostDatabasesInternalServerError { return &PostDatabasesInternalServerError{} } -/* PostDatabasesInternalServerError describes a response with status code 500, with default header values. +/* +PostDatabasesInternalServerError describes a response with status code 500, with default header values. Server Internal Error */ @@ -304,9 +485,44 @@ type PostDatabasesInternalServerError struct { Payload *devops_models.Error } +// IsSuccess returns true when this post databases internal server error response has a 2xx status code +func (o *PostDatabasesInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this post databases internal server error response has a 3xx status code +func (o *PostDatabasesInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this post databases internal server error response has a 4xx status code +func (o *PostDatabasesInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this post databases internal server error response has a 5xx status code +func (o *PostDatabasesInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this post databases internal server error response a status code equal to that given +func (o *PostDatabasesInternalServerError) IsCode(code int) bool { + return code == 500 +} + +// Code gets the status code for the post databases internal server error response +func (o *PostDatabasesInternalServerError) Code() int { + return 500 +} + func (o *PostDatabasesInternalServerError) Error() string { return fmt.Sprintf("[POST /databases][%d] postDatabasesInternalServerError %+v", 500, o.Payload) } + +func (o *PostDatabasesInternalServerError) String() string { + return fmt.Sprintf("[POST /databases][%d] postDatabasesInternalServerError %+v", 500, o.Payload) +} + func (o *PostDatabasesInternalServerError) GetPayload() *devops_models.Error { return o.Payload } diff --git a/api/devops/devops_client/database/put_databases_parameters.go b/api/devops/devops_client/database/put_databases_parameters.go index b4d640a..a75a3f8 100644 --- a/api/devops/devops_client/database/put_databases_parameters.go +++ b/api/devops/devops_client/database/put_databases_parameters.go @@ -58,10 +58,12 @@ func NewPutDatabasesParamsWithHTTPClient(client *http.Client) *PutDatabasesParam } } -/* PutDatabasesParams contains all the parameters to send to the API endpoint - for the put databases operation. +/* +PutDatabasesParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the put databases operation. + + Typically these are written to a http.Request. */ type PutDatabasesParams struct { diff --git a/api/devops/devops_client/database/put_databases_responses.go b/api/devops/devops_client/database/put_databases_responses.go index 04c475b..4fc4cd7 100644 --- a/api/devops/devops_client/database/put_databases_responses.go +++ b/api/devops/devops_client/database/put_databases_responses.go @@ -73,7 +73,8 @@ func NewPutDatabasesOK() *PutDatabasesOK { return &PutDatabasesOK{} } -/* PutDatabasesOK describes a response with status code 200, with default header values. +/* +PutDatabasesOK describes a response with status code 200, with default header values. Taxnexus Response with Database objects */ @@ -83,9 +84,44 @@ type PutDatabasesOK struct { Payload *devops_models.DatabaseResponse } +// IsSuccess returns true when this put databases o k response has a 2xx status code +func (o *PutDatabasesOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this put databases o k response has a 3xx status code +func (o *PutDatabasesOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this put databases o k response has a 4xx status code +func (o *PutDatabasesOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this put databases o k response has a 5xx status code +func (o *PutDatabasesOK) IsServerError() bool { + return false +} + +// IsCode returns true when this put databases o k response a status code equal to that given +func (o *PutDatabasesOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the put databases o k response +func (o *PutDatabasesOK) Code() int { + return 200 +} + func (o *PutDatabasesOK) Error() string { return fmt.Sprintf("[PUT /databases][%d] putDatabasesOK %+v", 200, o.Payload) } + +func (o *PutDatabasesOK) String() string { + return fmt.Sprintf("[PUT /databases][%d] putDatabasesOK %+v", 200, o.Payload) +} + func (o *PutDatabasesOK) GetPayload() *devops_models.DatabaseResponse { return o.Payload } @@ -114,7 +150,8 @@ func NewPutDatabasesUnauthorized() *PutDatabasesUnauthorized { return &PutDatabasesUnauthorized{} } -/* PutDatabasesUnauthorized describes a response with status code 401, with default header values. +/* +PutDatabasesUnauthorized describes a response with status code 401, with default header values. Access Unauthorized, invalid API-KEY was used */ @@ -125,9 +162,44 @@ type PutDatabasesUnauthorized struct { Payload *devops_models.Error } +// IsSuccess returns true when this put databases unauthorized response has a 2xx status code +func (o *PutDatabasesUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this put databases unauthorized response has a 3xx status code +func (o *PutDatabasesUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this put databases unauthorized response has a 4xx status code +func (o *PutDatabasesUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this put databases unauthorized response has a 5xx status code +func (o *PutDatabasesUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this put databases unauthorized response a status code equal to that given +func (o *PutDatabasesUnauthorized) IsCode(code int) bool { + return code == 401 +} + +// Code gets the status code for the put databases unauthorized response +func (o *PutDatabasesUnauthorized) Code() int { + return 401 +} + func (o *PutDatabasesUnauthorized) Error() string { return fmt.Sprintf("[PUT /databases][%d] putDatabasesUnauthorized %+v", 401, o.Payload) } + +func (o *PutDatabasesUnauthorized) String() string { + return fmt.Sprintf("[PUT /databases][%d] putDatabasesUnauthorized %+v", 401, o.Payload) +} + func (o *PutDatabasesUnauthorized) GetPayload() *devops_models.Error { return o.Payload } @@ -163,7 +235,8 @@ func NewPutDatabasesForbidden() *PutDatabasesForbidden { return &PutDatabasesForbidden{} } -/* PutDatabasesForbidden describes a response with status code 403, with default header values. +/* +PutDatabasesForbidden describes a response with status code 403, with default header values. Access forbidden, account lacks access */ @@ -173,9 +246,44 @@ type PutDatabasesForbidden struct { Payload *devops_models.Error } +// IsSuccess returns true when this put databases forbidden response has a 2xx status code +func (o *PutDatabasesForbidden) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this put databases forbidden response has a 3xx status code +func (o *PutDatabasesForbidden) IsRedirect() bool { + return false +} + +// IsClientError returns true when this put databases forbidden response has a 4xx status code +func (o *PutDatabasesForbidden) IsClientError() bool { + return true +} + +// IsServerError returns true when this put databases forbidden response has a 5xx status code +func (o *PutDatabasesForbidden) IsServerError() bool { + return false +} + +// IsCode returns true when this put databases forbidden response a status code equal to that given +func (o *PutDatabasesForbidden) IsCode(code int) bool { + return code == 403 +} + +// Code gets the status code for the put databases forbidden response +func (o *PutDatabasesForbidden) Code() int { + return 403 +} + func (o *PutDatabasesForbidden) Error() string { return fmt.Sprintf("[PUT /databases][%d] putDatabasesForbidden %+v", 403, o.Payload) } + +func (o *PutDatabasesForbidden) String() string { + return fmt.Sprintf("[PUT /databases][%d] putDatabasesForbidden %+v", 403, o.Payload) +} + func (o *PutDatabasesForbidden) GetPayload() *devops_models.Error { return o.Payload } @@ -204,7 +312,8 @@ func NewPutDatabasesNotFound() *PutDatabasesNotFound { return &PutDatabasesNotFound{} } -/* PutDatabasesNotFound describes a response with status code 404, with default header values. +/* +PutDatabasesNotFound describes a response with status code 404, with default header values. Resource was not found */ @@ -214,9 +323,44 @@ type PutDatabasesNotFound struct { Payload *devops_models.Error } +// IsSuccess returns true when this put databases not found response has a 2xx status code +func (o *PutDatabasesNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this put databases not found response has a 3xx status code +func (o *PutDatabasesNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this put databases not found response has a 4xx status code +func (o *PutDatabasesNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this put databases not found response has a 5xx status code +func (o *PutDatabasesNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this put databases not found response a status code equal to that given +func (o *PutDatabasesNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the put databases not found response +func (o *PutDatabasesNotFound) Code() int { + return 404 +} + func (o *PutDatabasesNotFound) Error() string { return fmt.Sprintf("[PUT /databases][%d] putDatabasesNotFound %+v", 404, o.Payload) } + +func (o *PutDatabasesNotFound) String() string { + return fmt.Sprintf("[PUT /databases][%d] putDatabasesNotFound %+v", 404, o.Payload) +} + func (o *PutDatabasesNotFound) GetPayload() *devops_models.Error { return o.Payload } @@ -245,7 +389,8 @@ func NewPutDatabasesUnprocessableEntity() *PutDatabasesUnprocessableEntity { return &PutDatabasesUnprocessableEntity{} } -/* PutDatabasesUnprocessableEntity describes a response with status code 422, with default header values. +/* +PutDatabasesUnprocessableEntity describes a response with status code 422, with default header values. Unprocessable Entity, likely a bad parameter */ @@ -256,9 +401,44 @@ type PutDatabasesUnprocessableEntity struct { Payload *devops_models.Error } +// IsSuccess returns true when this put databases unprocessable entity response has a 2xx status code +func (o *PutDatabasesUnprocessableEntity) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this put databases unprocessable entity response has a 3xx status code +func (o *PutDatabasesUnprocessableEntity) IsRedirect() bool { + return false +} + +// IsClientError returns true when this put databases unprocessable entity response has a 4xx status code +func (o *PutDatabasesUnprocessableEntity) IsClientError() bool { + return true +} + +// IsServerError returns true when this put databases unprocessable entity response has a 5xx status code +func (o *PutDatabasesUnprocessableEntity) IsServerError() bool { + return false +} + +// IsCode returns true when this put databases unprocessable entity response a status code equal to that given +func (o *PutDatabasesUnprocessableEntity) IsCode(code int) bool { + return code == 422 +} + +// Code gets the status code for the put databases unprocessable entity response +func (o *PutDatabasesUnprocessableEntity) Code() int { + return 422 +} + func (o *PutDatabasesUnprocessableEntity) Error() string { return fmt.Sprintf("[PUT /databases][%d] putDatabasesUnprocessableEntity %+v", 422, o.Payload) } + +func (o *PutDatabasesUnprocessableEntity) String() string { + return fmt.Sprintf("[PUT /databases][%d] putDatabasesUnprocessableEntity %+v", 422, o.Payload) +} + func (o *PutDatabasesUnprocessableEntity) GetPayload() *devops_models.Error { return o.Payload } @@ -294,7 +474,8 @@ func NewPutDatabasesInternalServerError() *PutDatabasesInternalServerError { return &PutDatabasesInternalServerError{} } -/* PutDatabasesInternalServerError describes a response with status code 500, with default header values. +/* +PutDatabasesInternalServerError describes a response with status code 500, with default header values. Server Internal Error */ @@ -304,9 +485,44 @@ type PutDatabasesInternalServerError struct { Payload *devops_models.Error } +// IsSuccess returns true when this put databases internal server error response has a 2xx status code +func (o *PutDatabasesInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this put databases internal server error response has a 3xx status code +func (o *PutDatabasesInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this put databases internal server error response has a 4xx status code +func (o *PutDatabasesInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this put databases internal server error response has a 5xx status code +func (o *PutDatabasesInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this put databases internal server error response a status code equal to that given +func (o *PutDatabasesInternalServerError) IsCode(code int) bool { + return code == 500 +} + +// Code gets the status code for the put databases internal server error response +func (o *PutDatabasesInternalServerError) Code() int { + return 500 +} + func (o *PutDatabasesInternalServerError) Error() string { return fmt.Sprintf("[PUT /databases][%d] putDatabasesInternalServerError %+v", 500, o.Payload) } + +func (o *PutDatabasesInternalServerError) String() string { + return fmt.Sprintf("[PUT /databases][%d] putDatabasesInternalServerError %+v", 500, o.Payload) +} + func (o *PutDatabasesInternalServerError) GetPayload() *devops_models.Error { return o.Payload } diff --git a/api/devops/devops_client/template/get_template_parameters.go b/api/devops/devops_client/template/get_template_parameters.go index 54704b8..3352bb1 100644 --- a/api/devops/devops_client/template/get_template_parameters.go +++ b/api/devops/devops_client/template/get_template_parameters.go @@ -56,10 +56,12 @@ func NewGetTemplateParamsWithHTTPClient(client *http.Client) *GetTemplateParams } } -/* GetTemplateParams contains all the parameters to send to the API endpoint - for the get template operation. +/* +GetTemplateParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get template operation. + + Typically these are written to a http.Request. */ type GetTemplateParams struct { diff --git a/api/devops/devops_client/template/get_template_responses.go b/api/devops/devops_client/template/get_template_responses.go index 1f32d9c..df068eb 100644 --- a/api/devops/devops_client/template/get_template_responses.go +++ b/api/devops/devops_client/template/get_template_responses.go @@ -73,7 +73,8 @@ func NewGetTemplateOK() *GetTemplateOK { return &GetTemplateOK{} } -/* GetTemplateOK describes a response with status code 200, with default header values. +/* +GetTemplateOK describes a response with status code 200, with default header values. Single Template record response */ @@ -84,9 +85,44 @@ type GetTemplateOK struct { Payload *devops_models.Template } +// IsSuccess returns true when this get template o k response has a 2xx status code +func (o *GetTemplateOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get template o k response has a 3xx status code +func (o *GetTemplateOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get template o k response has a 4xx status code +func (o *GetTemplateOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get template o k response has a 5xx status code +func (o *GetTemplateOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get template o k response a status code equal to that given +func (o *GetTemplateOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get template o k response +func (o *GetTemplateOK) Code() int { + return 200 +} + func (o *GetTemplateOK) Error() string { return fmt.Sprintf("[GET /templates/{templateIdPath}][%d] getTemplateOK %+v", 200, o.Payload) } + +func (o *GetTemplateOK) String() string { + return fmt.Sprintf("[GET /templates/{templateIdPath}][%d] getTemplateOK %+v", 200, o.Payload) +} + func (o *GetTemplateOK) GetPayload() *devops_models.Template { return o.Payload } @@ -122,7 +158,8 @@ func NewGetTemplateUnauthorized() *GetTemplateUnauthorized { return &GetTemplateUnauthorized{} } -/* GetTemplateUnauthorized describes a response with status code 401, with default header values. +/* +GetTemplateUnauthorized describes a response with status code 401, with default header values. Access Unauthorized, invalid API-KEY was used */ @@ -133,9 +170,44 @@ type GetTemplateUnauthorized struct { Payload *devops_models.Error } +// IsSuccess returns true when this get template unauthorized response has a 2xx status code +func (o *GetTemplateUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get template unauthorized response has a 3xx status code +func (o *GetTemplateUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get template unauthorized response has a 4xx status code +func (o *GetTemplateUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this get template unauthorized response has a 5xx status code +func (o *GetTemplateUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this get template unauthorized response a status code equal to that given +func (o *GetTemplateUnauthorized) IsCode(code int) bool { + return code == 401 +} + +// Code gets the status code for the get template unauthorized response +func (o *GetTemplateUnauthorized) Code() int { + return 401 +} + func (o *GetTemplateUnauthorized) Error() string { return fmt.Sprintf("[GET /templates/{templateIdPath}][%d] getTemplateUnauthorized %+v", 401, o.Payload) } + +func (o *GetTemplateUnauthorized) String() string { + return fmt.Sprintf("[GET /templates/{templateIdPath}][%d] getTemplateUnauthorized %+v", 401, o.Payload) +} + func (o *GetTemplateUnauthorized) GetPayload() *devops_models.Error { return o.Payload } @@ -171,7 +243,8 @@ func NewGetTemplateForbidden() *GetTemplateForbidden { return &GetTemplateForbidden{} } -/* GetTemplateForbidden describes a response with status code 403, with default header values. +/* +GetTemplateForbidden describes a response with status code 403, with default header values. Access forbidden, account lacks access */ @@ -181,9 +254,44 @@ type GetTemplateForbidden struct { Payload *devops_models.Error } +// IsSuccess returns true when this get template forbidden response has a 2xx status code +func (o *GetTemplateForbidden) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get template forbidden response has a 3xx status code +func (o *GetTemplateForbidden) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get template forbidden response has a 4xx status code +func (o *GetTemplateForbidden) IsClientError() bool { + return true +} + +// IsServerError returns true when this get template forbidden response has a 5xx status code +func (o *GetTemplateForbidden) IsServerError() bool { + return false +} + +// IsCode returns true when this get template forbidden response a status code equal to that given +func (o *GetTemplateForbidden) IsCode(code int) bool { + return code == 403 +} + +// Code gets the status code for the get template forbidden response +func (o *GetTemplateForbidden) Code() int { + return 403 +} + func (o *GetTemplateForbidden) Error() string { return fmt.Sprintf("[GET /templates/{templateIdPath}][%d] getTemplateForbidden %+v", 403, o.Payload) } + +func (o *GetTemplateForbidden) String() string { + return fmt.Sprintf("[GET /templates/{templateIdPath}][%d] getTemplateForbidden %+v", 403, o.Payload) +} + func (o *GetTemplateForbidden) GetPayload() *devops_models.Error { return o.Payload } @@ -212,7 +320,8 @@ func NewGetTemplateNotFound() *GetTemplateNotFound { return &GetTemplateNotFound{} } -/* GetTemplateNotFound describes a response with status code 404, with default header values. +/* +GetTemplateNotFound describes a response with status code 404, with default header values. Resource was not found */ @@ -222,9 +331,44 @@ type GetTemplateNotFound struct { Payload *devops_models.Error } +// IsSuccess returns true when this get template not found response has a 2xx status code +func (o *GetTemplateNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get template not found response has a 3xx status code +func (o *GetTemplateNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get template not found response has a 4xx status code +func (o *GetTemplateNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this get template not found response has a 5xx status code +func (o *GetTemplateNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this get template not found response a status code equal to that given +func (o *GetTemplateNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the get template not found response +func (o *GetTemplateNotFound) Code() int { + return 404 +} + func (o *GetTemplateNotFound) Error() string { return fmt.Sprintf("[GET /templates/{templateIdPath}][%d] getTemplateNotFound %+v", 404, o.Payload) } + +func (o *GetTemplateNotFound) String() string { + return fmt.Sprintf("[GET /templates/{templateIdPath}][%d] getTemplateNotFound %+v", 404, o.Payload) +} + func (o *GetTemplateNotFound) GetPayload() *devops_models.Error { return o.Payload } @@ -253,7 +397,8 @@ func NewGetTemplateUnprocessableEntity() *GetTemplateUnprocessableEntity { return &GetTemplateUnprocessableEntity{} } -/* GetTemplateUnprocessableEntity describes a response with status code 422, with default header values. +/* +GetTemplateUnprocessableEntity describes a response with status code 422, with default header values. Unprocessable Entity, likely a bad parameter */ @@ -264,9 +409,44 @@ type GetTemplateUnprocessableEntity struct { Payload *devops_models.Error } +// IsSuccess returns true when this get template unprocessable entity response has a 2xx status code +func (o *GetTemplateUnprocessableEntity) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get template unprocessable entity response has a 3xx status code +func (o *GetTemplateUnprocessableEntity) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get template unprocessable entity response has a 4xx status code +func (o *GetTemplateUnprocessableEntity) IsClientError() bool { + return true +} + +// IsServerError returns true when this get template unprocessable entity response has a 5xx status code +func (o *GetTemplateUnprocessableEntity) IsServerError() bool { + return false +} + +// IsCode returns true when this get template unprocessable entity response a status code equal to that given +func (o *GetTemplateUnprocessableEntity) IsCode(code int) bool { + return code == 422 +} + +// Code gets the status code for the get template unprocessable entity response +func (o *GetTemplateUnprocessableEntity) Code() int { + return 422 +} + func (o *GetTemplateUnprocessableEntity) Error() string { return fmt.Sprintf("[GET /templates/{templateIdPath}][%d] getTemplateUnprocessableEntity %+v", 422, o.Payload) } + +func (o *GetTemplateUnprocessableEntity) String() string { + return fmt.Sprintf("[GET /templates/{templateIdPath}][%d] getTemplateUnprocessableEntity %+v", 422, o.Payload) +} + func (o *GetTemplateUnprocessableEntity) GetPayload() *devops_models.Error { return o.Payload } @@ -302,7 +482,8 @@ func NewGetTemplateInternalServerError() *GetTemplateInternalServerError { return &GetTemplateInternalServerError{} } -/* GetTemplateInternalServerError describes a response with status code 500, with default header values. +/* +GetTemplateInternalServerError describes a response with status code 500, with default header values. Server Internal Error */ @@ -312,9 +493,44 @@ type GetTemplateInternalServerError struct { Payload *devops_models.Error } +// IsSuccess returns true when this get template internal server error response has a 2xx status code +func (o *GetTemplateInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get template internal server error response has a 3xx status code +func (o *GetTemplateInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get template internal server error response has a 4xx status code +func (o *GetTemplateInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this get template internal server error response has a 5xx status code +func (o *GetTemplateInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this get template internal server error response a status code equal to that given +func (o *GetTemplateInternalServerError) IsCode(code int) bool { + return code == 500 +} + +// Code gets the status code for the get template internal server error response +func (o *GetTemplateInternalServerError) Code() int { + return 500 +} + func (o *GetTemplateInternalServerError) Error() string { return fmt.Sprintf("[GET /templates/{templateIdPath}][%d] getTemplateInternalServerError %+v", 500, o.Payload) } + +func (o *GetTemplateInternalServerError) String() string { + return fmt.Sprintf("[GET /templates/{templateIdPath}][%d] getTemplateInternalServerError %+v", 500, o.Payload) +} + func (o *GetTemplateInternalServerError) GetPayload() *devops_models.Error { return o.Payload } diff --git a/api/devops/devops_client/template/get_templates_observable_parameters.go b/api/devops/devops_client/template/get_templates_observable_parameters.go index 20ae7f1..b87d56a 100644 --- a/api/devops/devops_client/template/get_templates_observable_parameters.go +++ b/api/devops/devops_client/template/get_templates_observable_parameters.go @@ -56,10 +56,12 @@ func NewGetTemplatesObservableParamsWithHTTPClient(client *http.Client) *GetTemp } } -/* GetTemplatesObservableParams contains all the parameters to send to the API endpoint - for the get templates observable operation. +/* +GetTemplatesObservableParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get templates observable operation. + + Typically these are written to a http.Request. */ type GetTemplatesObservableParams struct { timeout time.Duration diff --git a/api/devops/devops_client/template/get_templates_observable_responses.go b/api/devops/devops_client/template/get_templates_observable_responses.go index 25ad68d..14d9538 100644 --- a/api/devops/devops_client/template/get_templates_observable_responses.go +++ b/api/devops/devops_client/template/get_templates_observable_responses.go @@ -73,7 +73,8 @@ func NewGetTemplatesObservableOK() *GetTemplatesObservableOK { return &GetTemplatesObservableOK{} } -/* GetTemplatesObservableOK describes a response with status code 200, with default header values. +/* +GetTemplatesObservableOK describes a response with status code 200, with default header values. Simple Template record response */ @@ -84,9 +85,44 @@ type GetTemplatesObservableOK struct { Payload []*devops_models.Template } +// IsSuccess returns true when this get templates observable o k response has a 2xx status code +func (o *GetTemplatesObservableOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get templates observable o k response has a 3xx status code +func (o *GetTemplatesObservableOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get templates observable o k response has a 4xx status code +func (o *GetTemplatesObservableOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get templates observable o k response has a 5xx status code +func (o *GetTemplatesObservableOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get templates observable o k response a status code equal to that given +func (o *GetTemplatesObservableOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get templates observable o k response +func (o *GetTemplatesObservableOK) Code() int { + return 200 +} + func (o *GetTemplatesObservableOK) Error() string { return fmt.Sprintf("[GET /templates/observable][%d] getTemplatesObservableOK %+v", 200, o.Payload) } + +func (o *GetTemplatesObservableOK) String() string { + return fmt.Sprintf("[GET /templates/observable][%d] getTemplatesObservableOK %+v", 200, o.Payload) +} + func (o *GetTemplatesObservableOK) GetPayload() []*devops_models.Template { return o.Payload } @@ -120,7 +156,8 @@ func NewGetTemplatesObservableUnauthorized() *GetTemplatesObservableUnauthorized return &GetTemplatesObservableUnauthorized{} } -/* GetTemplatesObservableUnauthorized describes a response with status code 401, with default header values. +/* +GetTemplatesObservableUnauthorized describes a response with status code 401, with default header values. Access Unauthorized, invalid API-KEY was used */ @@ -131,9 +168,44 @@ type GetTemplatesObservableUnauthorized struct { Payload *devops_models.Error } +// IsSuccess returns true when this get templates observable unauthorized response has a 2xx status code +func (o *GetTemplatesObservableUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get templates observable unauthorized response has a 3xx status code +func (o *GetTemplatesObservableUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get templates observable unauthorized response has a 4xx status code +func (o *GetTemplatesObservableUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this get templates observable unauthorized response has a 5xx status code +func (o *GetTemplatesObservableUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this get templates observable unauthorized response a status code equal to that given +func (o *GetTemplatesObservableUnauthorized) IsCode(code int) bool { + return code == 401 +} + +// Code gets the status code for the get templates observable unauthorized response +func (o *GetTemplatesObservableUnauthorized) Code() int { + return 401 +} + func (o *GetTemplatesObservableUnauthorized) Error() string { return fmt.Sprintf("[GET /templates/observable][%d] getTemplatesObservableUnauthorized %+v", 401, o.Payload) } + +func (o *GetTemplatesObservableUnauthorized) String() string { + return fmt.Sprintf("[GET /templates/observable][%d] getTemplatesObservableUnauthorized %+v", 401, o.Payload) +} + func (o *GetTemplatesObservableUnauthorized) GetPayload() *devops_models.Error { return o.Payload } @@ -169,7 +241,8 @@ func NewGetTemplatesObservableForbidden() *GetTemplatesObservableForbidden { return &GetTemplatesObservableForbidden{} } -/* GetTemplatesObservableForbidden describes a response with status code 403, with default header values. +/* +GetTemplatesObservableForbidden describes a response with status code 403, with default header values. Access forbidden, account lacks access */ @@ -179,9 +252,44 @@ type GetTemplatesObservableForbidden struct { Payload *devops_models.Error } +// IsSuccess returns true when this get templates observable forbidden response has a 2xx status code +func (o *GetTemplatesObservableForbidden) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get templates observable forbidden response has a 3xx status code +func (o *GetTemplatesObservableForbidden) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get templates observable forbidden response has a 4xx status code +func (o *GetTemplatesObservableForbidden) IsClientError() bool { + return true +} + +// IsServerError returns true when this get templates observable forbidden response has a 5xx status code +func (o *GetTemplatesObservableForbidden) IsServerError() bool { + return false +} + +// IsCode returns true when this get templates observable forbidden response a status code equal to that given +func (o *GetTemplatesObservableForbidden) IsCode(code int) bool { + return code == 403 +} + +// Code gets the status code for the get templates observable forbidden response +func (o *GetTemplatesObservableForbidden) Code() int { + return 403 +} + func (o *GetTemplatesObservableForbidden) Error() string { return fmt.Sprintf("[GET /templates/observable][%d] getTemplatesObservableForbidden %+v", 403, o.Payload) } + +func (o *GetTemplatesObservableForbidden) String() string { + return fmt.Sprintf("[GET /templates/observable][%d] getTemplatesObservableForbidden %+v", 403, o.Payload) +} + func (o *GetTemplatesObservableForbidden) GetPayload() *devops_models.Error { return o.Payload } @@ -210,7 +318,8 @@ func NewGetTemplatesObservableNotFound() *GetTemplatesObservableNotFound { return &GetTemplatesObservableNotFound{} } -/* GetTemplatesObservableNotFound describes a response with status code 404, with default header values. +/* +GetTemplatesObservableNotFound describes a response with status code 404, with default header values. Resource was not found */ @@ -220,9 +329,44 @@ type GetTemplatesObservableNotFound struct { Payload *devops_models.Error } +// IsSuccess returns true when this get templates observable not found response has a 2xx status code +func (o *GetTemplatesObservableNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get templates observable not found response has a 3xx status code +func (o *GetTemplatesObservableNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get templates observable not found response has a 4xx status code +func (o *GetTemplatesObservableNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this get templates observable not found response has a 5xx status code +func (o *GetTemplatesObservableNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this get templates observable not found response a status code equal to that given +func (o *GetTemplatesObservableNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the get templates observable not found response +func (o *GetTemplatesObservableNotFound) Code() int { + return 404 +} + func (o *GetTemplatesObservableNotFound) Error() string { return fmt.Sprintf("[GET /templates/observable][%d] getTemplatesObservableNotFound %+v", 404, o.Payload) } + +func (o *GetTemplatesObservableNotFound) String() string { + return fmt.Sprintf("[GET /templates/observable][%d] getTemplatesObservableNotFound %+v", 404, o.Payload) +} + func (o *GetTemplatesObservableNotFound) GetPayload() *devops_models.Error { return o.Payload } @@ -251,7 +395,8 @@ func NewGetTemplatesObservableUnprocessableEntity() *GetTemplatesObservableUnpro return &GetTemplatesObservableUnprocessableEntity{} } -/* GetTemplatesObservableUnprocessableEntity describes a response with status code 422, with default header values. +/* +GetTemplatesObservableUnprocessableEntity describes a response with status code 422, with default header values. Unprocessable Entity, likely a bad parameter */ @@ -262,9 +407,44 @@ type GetTemplatesObservableUnprocessableEntity struct { Payload *devops_models.Error } +// IsSuccess returns true when this get templates observable unprocessable entity response has a 2xx status code +func (o *GetTemplatesObservableUnprocessableEntity) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get templates observable unprocessable entity response has a 3xx status code +func (o *GetTemplatesObservableUnprocessableEntity) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get templates observable unprocessable entity response has a 4xx status code +func (o *GetTemplatesObservableUnprocessableEntity) IsClientError() bool { + return true +} + +// IsServerError returns true when this get templates observable unprocessable entity response has a 5xx status code +func (o *GetTemplatesObservableUnprocessableEntity) IsServerError() bool { + return false +} + +// IsCode returns true when this get templates observable unprocessable entity response a status code equal to that given +func (o *GetTemplatesObservableUnprocessableEntity) IsCode(code int) bool { + return code == 422 +} + +// Code gets the status code for the get templates observable unprocessable entity response +func (o *GetTemplatesObservableUnprocessableEntity) Code() int { + return 422 +} + func (o *GetTemplatesObservableUnprocessableEntity) Error() string { return fmt.Sprintf("[GET /templates/observable][%d] getTemplatesObservableUnprocessableEntity %+v", 422, o.Payload) } + +func (o *GetTemplatesObservableUnprocessableEntity) String() string { + return fmt.Sprintf("[GET /templates/observable][%d] getTemplatesObservableUnprocessableEntity %+v", 422, o.Payload) +} + func (o *GetTemplatesObservableUnprocessableEntity) GetPayload() *devops_models.Error { return o.Payload } @@ -300,7 +480,8 @@ func NewGetTemplatesObservableInternalServerError() *GetTemplatesObservableInter return &GetTemplatesObservableInternalServerError{} } -/* GetTemplatesObservableInternalServerError describes a response with status code 500, with default header values. +/* +GetTemplatesObservableInternalServerError describes a response with status code 500, with default header values. Server Internal Error */ @@ -310,9 +491,44 @@ type GetTemplatesObservableInternalServerError struct { Payload *devops_models.Error } +// IsSuccess returns true when this get templates observable internal server error response has a 2xx status code +func (o *GetTemplatesObservableInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get templates observable internal server error response has a 3xx status code +func (o *GetTemplatesObservableInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get templates observable internal server error response has a 4xx status code +func (o *GetTemplatesObservableInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this get templates observable internal server error response has a 5xx status code +func (o *GetTemplatesObservableInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this get templates observable internal server error response a status code equal to that given +func (o *GetTemplatesObservableInternalServerError) IsCode(code int) bool { + return code == 500 +} + +// Code gets the status code for the get templates observable internal server error response +func (o *GetTemplatesObservableInternalServerError) Code() int { + return 500 +} + func (o *GetTemplatesObservableInternalServerError) Error() string { return fmt.Sprintf("[GET /templates/observable][%d] getTemplatesObservableInternalServerError %+v", 500, o.Payload) } + +func (o *GetTemplatesObservableInternalServerError) String() string { + return fmt.Sprintf("[GET /templates/observable][%d] getTemplatesObservableInternalServerError %+v", 500, o.Payload) +} + func (o *GetTemplatesObservableInternalServerError) GetPayload() *devops_models.Error { return o.Payload } diff --git a/api/devops/devops_client/template/get_templates_parameters.go b/api/devops/devops_client/template/get_templates_parameters.go index bfa8a23..34fb058 100644 --- a/api/devops/devops_client/template/get_templates_parameters.go +++ b/api/devops/devops_client/template/get_templates_parameters.go @@ -57,10 +57,12 @@ func NewGetTemplatesParamsWithHTTPClient(client *http.Client) *GetTemplatesParam } } -/* GetTemplatesParams contains all the parameters to send to the API endpoint - for the get templates operation. +/* +GetTemplatesParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get templates operation. + + Typically these are written to a http.Request. */ type GetTemplatesParams struct { diff --git a/api/devops/devops_client/template/get_templates_responses.go b/api/devops/devops_client/template/get_templates_responses.go index 2f8cf01..ea639f7 100644 --- a/api/devops/devops_client/template/get_templates_responses.go +++ b/api/devops/devops_client/template/get_templates_responses.go @@ -73,7 +73,8 @@ func NewGetTemplatesOK() *GetTemplatesOK { return &GetTemplatesOK{} } -/* GetTemplatesOK describes a response with status code 200, with default header values. +/* +GetTemplatesOK describes a response with status code 200, with default header values. Taxnexus Response with Template objects */ @@ -84,9 +85,44 @@ type GetTemplatesOK struct { Payload *devops_models.TemplateResponse } +// IsSuccess returns true when this get templates o k response has a 2xx status code +func (o *GetTemplatesOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get templates o k response has a 3xx status code +func (o *GetTemplatesOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get templates o k response has a 4xx status code +func (o *GetTemplatesOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get templates o k response has a 5xx status code +func (o *GetTemplatesOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get templates o k response a status code equal to that given +func (o *GetTemplatesOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get templates o k response +func (o *GetTemplatesOK) Code() int { + return 200 +} + func (o *GetTemplatesOK) Error() string { return fmt.Sprintf("[GET /templates][%d] getTemplatesOK %+v", 200, o.Payload) } + +func (o *GetTemplatesOK) String() string { + return fmt.Sprintf("[GET /templates][%d] getTemplatesOK %+v", 200, o.Payload) +} + func (o *GetTemplatesOK) GetPayload() *devops_models.TemplateResponse { return o.Payload } @@ -122,7 +158,8 @@ func NewGetTemplatesUnauthorized() *GetTemplatesUnauthorized { return &GetTemplatesUnauthorized{} } -/* GetTemplatesUnauthorized describes a response with status code 401, with default header values. +/* +GetTemplatesUnauthorized describes a response with status code 401, with default header values. Access Unauthorized, invalid API-KEY was used */ @@ -133,9 +170,44 @@ type GetTemplatesUnauthorized struct { Payload *devops_models.Error } +// IsSuccess returns true when this get templates unauthorized response has a 2xx status code +func (o *GetTemplatesUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get templates unauthorized response has a 3xx status code +func (o *GetTemplatesUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get templates unauthorized response has a 4xx status code +func (o *GetTemplatesUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this get templates unauthorized response has a 5xx status code +func (o *GetTemplatesUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this get templates unauthorized response a status code equal to that given +func (o *GetTemplatesUnauthorized) IsCode(code int) bool { + return code == 401 +} + +// Code gets the status code for the get templates unauthorized response +func (o *GetTemplatesUnauthorized) Code() int { + return 401 +} + func (o *GetTemplatesUnauthorized) Error() string { return fmt.Sprintf("[GET /templates][%d] getTemplatesUnauthorized %+v", 401, o.Payload) } + +func (o *GetTemplatesUnauthorized) String() string { + return fmt.Sprintf("[GET /templates][%d] getTemplatesUnauthorized %+v", 401, o.Payload) +} + func (o *GetTemplatesUnauthorized) GetPayload() *devops_models.Error { return o.Payload } @@ -171,7 +243,8 @@ func NewGetTemplatesForbidden() *GetTemplatesForbidden { return &GetTemplatesForbidden{} } -/* GetTemplatesForbidden describes a response with status code 403, with default header values. +/* +GetTemplatesForbidden describes a response with status code 403, with default header values. Access forbidden, account lacks access */ @@ -181,9 +254,44 @@ type GetTemplatesForbidden struct { Payload *devops_models.Error } +// IsSuccess returns true when this get templates forbidden response has a 2xx status code +func (o *GetTemplatesForbidden) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get templates forbidden response has a 3xx status code +func (o *GetTemplatesForbidden) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get templates forbidden response has a 4xx status code +func (o *GetTemplatesForbidden) IsClientError() bool { + return true +} + +// IsServerError returns true when this get templates forbidden response has a 5xx status code +func (o *GetTemplatesForbidden) IsServerError() bool { + return false +} + +// IsCode returns true when this get templates forbidden response a status code equal to that given +func (o *GetTemplatesForbidden) IsCode(code int) bool { + return code == 403 +} + +// Code gets the status code for the get templates forbidden response +func (o *GetTemplatesForbidden) Code() int { + return 403 +} + func (o *GetTemplatesForbidden) Error() string { return fmt.Sprintf("[GET /templates][%d] getTemplatesForbidden %+v", 403, o.Payload) } + +func (o *GetTemplatesForbidden) String() string { + return fmt.Sprintf("[GET /templates][%d] getTemplatesForbidden %+v", 403, o.Payload) +} + func (o *GetTemplatesForbidden) GetPayload() *devops_models.Error { return o.Payload } @@ -212,7 +320,8 @@ func NewGetTemplatesNotFound() *GetTemplatesNotFound { return &GetTemplatesNotFound{} } -/* GetTemplatesNotFound describes a response with status code 404, with default header values. +/* +GetTemplatesNotFound describes a response with status code 404, with default header values. Resource was not found */ @@ -222,9 +331,44 @@ type GetTemplatesNotFound struct { Payload *devops_models.Error } +// IsSuccess returns true when this get templates not found response has a 2xx status code +func (o *GetTemplatesNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get templates not found response has a 3xx status code +func (o *GetTemplatesNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get templates not found response has a 4xx status code +func (o *GetTemplatesNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this get templates not found response has a 5xx status code +func (o *GetTemplatesNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this get templates not found response a status code equal to that given +func (o *GetTemplatesNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the get templates not found response +func (o *GetTemplatesNotFound) Code() int { + return 404 +} + func (o *GetTemplatesNotFound) Error() string { return fmt.Sprintf("[GET /templates][%d] getTemplatesNotFound %+v", 404, o.Payload) } + +func (o *GetTemplatesNotFound) String() string { + return fmt.Sprintf("[GET /templates][%d] getTemplatesNotFound %+v", 404, o.Payload) +} + func (o *GetTemplatesNotFound) GetPayload() *devops_models.Error { return o.Payload } @@ -253,7 +397,8 @@ func NewGetTemplatesUnprocessableEntity() *GetTemplatesUnprocessableEntity { return &GetTemplatesUnprocessableEntity{} } -/* GetTemplatesUnprocessableEntity describes a response with status code 422, with default header values. +/* +GetTemplatesUnprocessableEntity describes a response with status code 422, with default header values. Unprocessable Entity, likely a bad parameter */ @@ -264,9 +409,44 @@ type GetTemplatesUnprocessableEntity struct { Payload *devops_models.Error } +// IsSuccess returns true when this get templates unprocessable entity response has a 2xx status code +func (o *GetTemplatesUnprocessableEntity) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get templates unprocessable entity response has a 3xx status code +func (o *GetTemplatesUnprocessableEntity) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get templates unprocessable entity response has a 4xx status code +func (o *GetTemplatesUnprocessableEntity) IsClientError() bool { + return true +} + +// IsServerError returns true when this get templates unprocessable entity response has a 5xx status code +func (o *GetTemplatesUnprocessableEntity) IsServerError() bool { + return false +} + +// IsCode returns true when this get templates unprocessable entity response a status code equal to that given +func (o *GetTemplatesUnprocessableEntity) IsCode(code int) bool { + return code == 422 +} + +// Code gets the status code for the get templates unprocessable entity response +func (o *GetTemplatesUnprocessableEntity) Code() int { + return 422 +} + func (o *GetTemplatesUnprocessableEntity) Error() string { return fmt.Sprintf("[GET /templates][%d] getTemplatesUnprocessableEntity %+v", 422, o.Payload) } + +func (o *GetTemplatesUnprocessableEntity) String() string { + return fmt.Sprintf("[GET /templates][%d] getTemplatesUnprocessableEntity %+v", 422, o.Payload) +} + func (o *GetTemplatesUnprocessableEntity) GetPayload() *devops_models.Error { return o.Payload } @@ -302,7 +482,8 @@ func NewGetTemplatesInternalServerError() *GetTemplatesInternalServerError { return &GetTemplatesInternalServerError{} } -/* GetTemplatesInternalServerError describes a response with status code 500, with default header values. +/* +GetTemplatesInternalServerError describes a response with status code 500, with default header values. Server Internal Error */ @@ -312,9 +493,44 @@ type GetTemplatesInternalServerError struct { Payload *devops_models.Error } +// IsSuccess returns true when this get templates internal server error response has a 2xx status code +func (o *GetTemplatesInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get templates internal server error response has a 3xx status code +func (o *GetTemplatesInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get templates internal server error response has a 4xx status code +func (o *GetTemplatesInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this get templates internal server error response has a 5xx status code +func (o *GetTemplatesInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this get templates internal server error response a status code equal to that given +func (o *GetTemplatesInternalServerError) IsCode(code int) bool { + return code == 500 +} + +// Code gets the status code for the get templates internal server error response +func (o *GetTemplatesInternalServerError) Code() int { + return 500 +} + func (o *GetTemplatesInternalServerError) Error() string { return fmt.Sprintf("[GET /templates][%d] getTemplatesInternalServerError %+v", 500, o.Payload) } + +func (o *GetTemplatesInternalServerError) String() string { + return fmt.Sprintf("[GET /templates][%d] getTemplatesInternalServerError %+v", 500, o.Payload) +} + func (o *GetTemplatesInternalServerError) GetPayload() *devops_models.Error { return o.Payload } diff --git a/api/devops/devops_client/template/post_templates_parameters.go b/api/devops/devops_client/template/post_templates_parameters.go index d9501ab..8094e2d 100644 --- a/api/devops/devops_client/template/post_templates_parameters.go +++ b/api/devops/devops_client/template/post_templates_parameters.go @@ -58,10 +58,12 @@ func NewPostTemplatesParamsWithHTTPClient(client *http.Client) *PostTemplatesPar } } -/* PostTemplatesParams contains all the parameters to send to the API endpoint - for the post templates operation. +/* +PostTemplatesParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the post templates operation. + + Typically these are written to a http.Request. */ type PostTemplatesParams struct { diff --git a/api/devops/devops_client/template/post_templates_responses.go b/api/devops/devops_client/template/post_templates_responses.go index 68cce0f..6398a64 100644 --- a/api/devops/devops_client/template/post_templates_responses.go +++ b/api/devops/devops_client/template/post_templates_responses.go @@ -73,7 +73,8 @@ func NewPostTemplatesOK() *PostTemplatesOK { return &PostTemplatesOK{} } -/* PostTemplatesOK describes a response with status code 200, with default header values. +/* +PostTemplatesOK describes a response with status code 200, with default header values. Taxnexus Response with Template objects */ @@ -84,9 +85,44 @@ type PostTemplatesOK struct { Payload *devops_models.TemplateResponse } +// IsSuccess returns true when this post templates o k response has a 2xx status code +func (o *PostTemplatesOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this post templates o k response has a 3xx status code +func (o *PostTemplatesOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this post templates o k response has a 4xx status code +func (o *PostTemplatesOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this post templates o k response has a 5xx status code +func (o *PostTemplatesOK) IsServerError() bool { + return false +} + +// IsCode returns true when this post templates o k response a status code equal to that given +func (o *PostTemplatesOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the post templates o k response +func (o *PostTemplatesOK) Code() int { + return 200 +} + func (o *PostTemplatesOK) Error() string { return fmt.Sprintf("[POST /templates][%d] postTemplatesOK %+v", 200, o.Payload) } + +func (o *PostTemplatesOK) String() string { + return fmt.Sprintf("[POST /templates][%d] postTemplatesOK %+v", 200, o.Payload) +} + func (o *PostTemplatesOK) GetPayload() *devops_models.TemplateResponse { return o.Payload } @@ -122,7 +158,8 @@ func NewPostTemplatesUnauthorized() *PostTemplatesUnauthorized { return &PostTemplatesUnauthorized{} } -/* PostTemplatesUnauthorized describes a response with status code 401, with default header values. +/* +PostTemplatesUnauthorized describes a response with status code 401, with default header values. Access Unauthorized, invalid API-KEY was used */ @@ -133,9 +170,44 @@ type PostTemplatesUnauthorized struct { Payload *devops_models.Error } +// IsSuccess returns true when this post templates unauthorized response has a 2xx status code +func (o *PostTemplatesUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this post templates unauthorized response has a 3xx status code +func (o *PostTemplatesUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this post templates unauthorized response has a 4xx status code +func (o *PostTemplatesUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this post templates unauthorized response has a 5xx status code +func (o *PostTemplatesUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this post templates unauthorized response a status code equal to that given +func (o *PostTemplatesUnauthorized) IsCode(code int) bool { + return code == 401 +} + +// Code gets the status code for the post templates unauthorized response +func (o *PostTemplatesUnauthorized) Code() int { + return 401 +} + func (o *PostTemplatesUnauthorized) Error() string { return fmt.Sprintf("[POST /templates][%d] postTemplatesUnauthorized %+v", 401, o.Payload) } + +func (o *PostTemplatesUnauthorized) String() string { + return fmt.Sprintf("[POST /templates][%d] postTemplatesUnauthorized %+v", 401, o.Payload) +} + func (o *PostTemplatesUnauthorized) GetPayload() *devops_models.Error { return o.Payload } @@ -171,7 +243,8 @@ func NewPostTemplatesForbidden() *PostTemplatesForbidden { return &PostTemplatesForbidden{} } -/* PostTemplatesForbidden describes a response with status code 403, with default header values. +/* +PostTemplatesForbidden describes a response with status code 403, with default header values. Access forbidden, account lacks access */ @@ -181,9 +254,44 @@ type PostTemplatesForbidden struct { Payload *devops_models.Error } +// IsSuccess returns true when this post templates forbidden response has a 2xx status code +func (o *PostTemplatesForbidden) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this post templates forbidden response has a 3xx status code +func (o *PostTemplatesForbidden) IsRedirect() bool { + return false +} + +// IsClientError returns true when this post templates forbidden response has a 4xx status code +func (o *PostTemplatesForbidden) IsClientError() bool { + return true +} + +// IsServerError returns true when this post templates forbidden response has a 5xx status code +func (o *PostTemplatesForbidden) IsServerError() bool { + return false +} + +// IsCode returns true when this post templates forbidden response a status code equal to that given +func (o *PostTemplatesForbidden) IsCode(code int) bool { + return code == 403 +} + +// Code gets the status code for the post templates forbidden response +func (o *PostTemplatesForbidden) Code() int { + return 403 +} + func (o *PostTemplatesForbidden) Error() string { return fmt.Sprintf("[POST /templates][%d] postTemplatesForbidden %+v", 403, o.Payload) } + +func (o *PostTemplatesForbidden) String() string { + return fmt.Sprintf("[POST /templates][%d] postTemplatesForbidden %+v", 403, o.Payload) +} + func (o *PostTemplatesForbidden) GetPayload() *devops_models.Error { return o.Payload } @@ -212,7 +320,8 @@ func NewPostTemplatesNotFound() *PostTemplatesNotFound { return &PostTemplatesNotFound{} } -/* PostTemplatesNotFound describes a response with status code 404, with default header values. +/* +PostTemplatesNotFound describes a response with status code 404, with default header values. Resource was not found */ @@ -222,9 +331,44 @@ type PostTemplatesNotFound struct { Payload *devops_models.Error } +// IsSuccess returns true when this post templates not found response has a 2xx status code +func (o *PostTemplatesNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this post templates not found response has a 3xx status code +func (o *PostTemplatesNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this post templates not found response has a 4xx status code +func (o *PostTemplatesNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this post templates not found response has a 5xx status code +func (o *PostTemplatesNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this post templates not found response a status code equal to that given +func (o *PostTemplatesNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the post templates not found response +func (o *PostTemplatesNotFound) Code() int { + return 404 +} + func (o *PostTemplatesNotFound) Error() string { return fmt.Sprintf("[POST /templates][%d] postTemplatesNotFound %+v", 404, o.Payload) } + +func (o *PostTemplatesNotFound) String() string { + return fmt.Sprintf("[POST /templates][%d] postTemplatesNotFound %+v", 404, o.Payload) +} + func (o *PostTemplatesNotFound) GetPayload() *devops_models.Error { return o.Payload } @@ -253,7 +397,8 @@ func NewPostTemplatesUnprocessableEntity() *PostTemplatesUnprocessableEntity { return &PostTemplatesUnprocessableEntity{} } -/* PostTemplatesUnprocessableEntity describes a response with status code 422, with default header values. +/* +PostTemplatesUnprocessableEntity describes a response with status code 422, with default header values. Unprocessable Entity, likely a bad parameter */ @@ -264,9 +409,44 @@ type PostTemplatesUnprocessableEntity struct { Payload *devops_models.Error } +// IsSuccess returns true when this post templates unprocessable entity response has a 2xx status code +func (o *PostTemplatesUnprocessableEntity) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this post templates unprocessable entity response has a 3xx status code +func (o *PostTemplatesUnprocessableEntity) IsRedirect() bool { + return false +} + +// IsClientError returns true when this post templates unprocessable entity response has a 4xx status code +func (o *PostTemplatesUnprocessableEntity) IsClientError() bool { + return true +} + +// IsServerError returns true when this post templates unprocessable entity response has a 5xx status code +func (o *PostTemplatesUnprocessableEntity) IsServerError() bool { + return false +} + +// IsCode returns true when this post templates unprocessable entity response a status code equal to that given +func (o *PostTemplatesUnprocessableEntity) IsCode(code int) bool { + return code == 422 +} + +// Code gets the status code for the post templates unprocessable entity response +func (o *PostTemplatesUnprocessableEntity) Code() int { + return 422 +} + func (o *PostTemplatesUnprocessableEntity) Error() string { return fmt.Sprintf("[POST /templates][%d] postTemplatesUnprocessableEntity %+v", 422, o.Payload) } + +func (o *PostTemplatesUnprocessableEntity) String() string { + return fmt.Sprintf("[POST /templates][%d] postTemplatesUnprocessableEntity %+v", 422, o.Payload) +} + func (o *PostTemplatesUnprocessableEntity) GetPayload() *devops_models.Error { return o.Payload } @@ -302,7 +482,8 @@ func NewPostTemplatesInternalServerError() *PostTemplatesInternalServerError { return &PostTemplatesInternalServerError{} } -/* PostTemplatesInternalServerError describes a response with status code 500, with default header values. +/* +PostTemplatesInternalServerError describes a response with status code 500, with default header values. Server Internal Error */ @@ -312,9 +493,44 @@ type PostTemplatesInternalServerError struct { Payload *devops_models.Error } +// IsSuccess returns true when this post templates internal server error response has a 2xx status code +func (o *PostTemplatesInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this post templates internal server error response has a 3xx status code +func (o *PostTemplatesInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this post templates internal server error response has a 4xx status code +func (o *PostTemplatesInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this post templates internal server error response has a 5xx status code +func (o *PostTemplatesInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this post templates internal server error response a status code equal to that given +func (o *PostTemplatesInternalServerError) IsCode(code int) bool { + return code == 500 +} + +// Code gets the status code for the post templates internal server error response +func (o *PostTemplatesInternalServerError) Code() int { + return 500 +} + func (o *PostTemplatesInternalServerError) Error() string { return fmt.Sprintf("[POST /templates][%d] postTemplatesInternalServerError %+v", 500, o.Payload) } + +func (o *PostTemplatesInternalServerError) String() string { + return fmt.Sprintf("[POST /templates][%d] postTemplatesInternalServerError %+v", 500, o.Payload) +} + func (o *PostTemplatesInternalServerError) GetPayload() *devops_models.Error { return o.Payload } diff --git a/api/devops/devops_client/template/template_client.go b/api/devops/devops_client/template/template_client.go index daae50f..46eda40 100644 --- a/api/devops/devops_client/template/template_client.go +++ b/api/devops/devops_client/template/template_client.go @@ -46,9 +46,9 @@ type ClientService interface { } /* - GetTemplate gets a single template object +GetTemplate gets a single template object - Return a single Template object from datastore as a Singleton +Return a single Template object from datastore as a Singleton */ func (a *Client) GetTemplate(params *GetTemplateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetTemplateOK, error) { // TODO: Validate the params before sending @@ -87,9 +87,9 @@ func (a *Client) GetTemplate(params *GetTemplateParams, authInfo runtime.ClientA } /* - GetTemplates gets a list templates +GetTemplates gets a list templates - Return a list of Templates from the datastore +Return a list of Templates from the datastore */ func (a *Client) GetTemplates(params *GetTemplatesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetTemplatesOK, error) { // TODO: Validate the params before sending @@ -128,9 +128,9 @@ func (a *Client) GetTemplates(params *GetTemplatesParams, authInfo runtime.Clien } /* - GetTemplatesObservable gets templates in an observable array +GetTemplatesObservable gets templates in an observable array - Returns a Template retrieval in a observable array +Returns a Template retrieval in a observable array */ func (a *Client) GetTemplatesObservable(params *GetTemplatesObservableParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetTemplatesObservableOK, error) { // TODO: Validate the params before sending @@ -169,9 +169,9 @@ func (a *Client) GetTemplatesObservable(params *GetTemplatesObservableParams, au } /* - PostTemplates creates new templates +PostTemplates creates new templates - Create new Templates +Create new Templates */ func (a *Client) PostTemplates(params *PostTemplatesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostTemplatesOK, error) { // TODO: Validate the params before sending diff --git a/api/devops/devops_client/tenant/get_tenant_parameters.go b/api/devops/devops_client/tenant/get_tenant_parameters.go index 6fdef24..f6fd369 100644 --- a/api/devops/devops_client/tenant/get_tenant_parameters.go +++ b/api/devops/devops_client/tenant/get_tenant_parameters.go @@ -56,10 +56,12 @@ func NewGetTenantParamsWithHTTPClient(client *http.Client) *GetTenantParams { } } -/* GetTenantParams contains all the parameters to send to the API endpoint - for the get tenant operation. +/* +GetTenantParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get tenant operation. + + Typically these are written to a http.Request. */ type GetTenantParams struct { diff --git a/api/devops/devops_client/tenant/get_tenant_responses.go b/api/devops/devops_client/tenant/get_tenant_responses.go index 14798af..2789b57 100644 --- a/api/devops/devops_client/tenant/get_tenant_responses.go +++ b/api/devops/devops_client/tenant/get_tenant_responses.go @@ -73,7 +73,8 @@ func NewGetTenantOK() *GetTenantOK { return &GetTenantOK{} } -/* GetTenantOK describes a response with status code 200, with default header values. +/* +GetTenantOK describes a response with status code 200, with default header values. Single Tenant record response */ @@ -84,9 +85,44 @@ type GetTenantOK struct { Payload *devops_models.Tenant } +// IsSuccess returns true when this get tenant o k response has a 2xx status code +func (o *GetTenantOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get tenant o k response has a 3xx status code +func (o *GetTenantOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get tenant o k response has a 4xx status code +func (o *GetTenantOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get tenant o k response has a 5xx status code +func (o *GetTenantOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get tenant o k response a status code equal to that given +func (o *GetTenantOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get tenant o k response +func (o *GetTenantOK) Code() int { + return 200 +} + func (o *GetTenantOK) Error() string { return fmt.Sprintf("[GET /tenants/{tenantIdPath}][%d] getTenantOK %+v", 200, o.Payload) } + +func (o *GetTenantOK) String() string { + return fmt.Sprintf("[GET /tenants/{tenantIdPath}][%d] getTenantOK %+v", 200, o.Payload) +} + func (o *GetTenantOK) GetPayload() *devops_models.Tenant { return o.Payload } @@ -122,7 +158,8 @@ func NewGetTenantUnauthorized() *GetTenantUnauthorized { return &GetTenantUnauthorized{} } -/* GetTenantUnauthorized describes a response with status code 401, with default header values. +/* +GetTenantUnauthorized describes a response with status code 401, with default header values. Access Unauthorized, invalid API-KEY was used */ @@ -133,9 +170,44 @@ type GetTenantUnauthorized struct { Payload *devops_models.Error } +// IsSuccess returns true when this get tenant unauthorized response has a 2xx status code +func (o *GetTenantUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get tenant unauthorized response has a 3xx status code +func (o *GetTenantUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get tenant unauthorized response has a 4xx status code +func (o *GetTenantUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this get tenant unauthorized response has a 5xx status code +func (o *GetTenantUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this get tenant unauthorized response a status code equal to that given +func (o *GetTenantUnauthorized) IsCode(code int) bool { + return code == 401 +} + +// Code gets the status code for the get tenant unauthorized response +func (o *GetTenantUnauthorized) Code() int { + return 401 +} + func (o *GetTenantUnauthorized) Error() string { return fmt.Sprintf("[GET /tenants/{tenantIdPath}][%d] getTenantUnauthorized %+v", 401, o.Payload) } + +func (o *GetTenantUnauthorized) String() string { + return fmt.Sprintf("[GET /tenants/{tenantIdPath}][%d] getTenantUnauthorized %+v", 401, o.Payload) +} + func (o *GetTenantUnauthorized) GetPayload() *devops_models.Error { return o.Payload } @@ -171,7 +243,8 @@ func NewGetTenantForbidden() *GetTenantForbidden { return &GetTenantForbidden{} } -/* GetTenantForbidden describes a response with status code 403, with default header values. +/* +GetTenantForbidden describes a response with status code 403, with default header values. Access forbidden, account lacks access */ @@ -181,9 +254,44 @@ type GetTenantForbidden struct { Payload *devops_models.Error } +// IsSuccess returns true when this get tenant forbidden response has a 2xx status code +func (o *GetTenantForbidden) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get tenant forbidden response has a 3xx status code +func (o *GetTenantForbidden) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get tenant forbidden response has a 4xx status code +func (o *GetTenantForbidden) IsClientError() bool { + return true +} + +// IsServerError returns true when this get tenant forbidden response has a 5xx status code +func (o *GetTenantForbidden) IsServerError() bool { + return false +} + +// IsCode returns true when this get tenant forbidden response a status code equal to that given +func (o *GetTenantForbidden) IsCode(code int) bool { + return code == 403 +} + +// Code gets the status code for the get tenant forbidden response +func (o *GetTenantForbidden) Code() int { + return 403 +} + func (o *GetTenantForbidden) Error() string { return fmt.Sprintf("[GET /tenants/{tenantIdPath}][%d] getTenantForbidden %+v", 403, o.Payload) } + +func (o *GetTenantForbidden) String() string { + return fmt.Sprintf("[GET /tenants/{tenantIdPath}][%d] getTenantForbidden %+v", 403, o.Payload) +} + func (o *GetTenantForbidden) GetPayload() *devops_models.Error { return o.Payload } @@ -212,7 +320,8 @@ func NewGetTenantNotFound() *GetTenantNotFound { return &GetTenantNotFound{} } -/* GetTenantNotFound describes a response with status code 404, with default header values. +/* +GetTenantNotFound describes a response with status code 404, with default header values. Resource was not found */ @@ -222,9 +331,44 @@ type GetTenantNotFound struct { Payload *devops_models.Error } +// IsSuccess returns true when this get tenant not found response has a 2xx status code +func (o *GetTenantNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get tenant not found response has a 3xx status code +func (o *GetTenantNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get tenant not found response has a 4xx status code +func (o *GetTenantNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this get tenant not found response has a 5xx status code +func (o *GetTenantNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this get tenant not found response a status code equal to that given +func (o *GetTenantNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the get tenant not found response +func (o *GetTenantNotFound) Code() int { + return 404 +} + func (o *GetTenantNotFound) Error() string { return fmt.Sprintf("[GET /tenants/{tenantIdPath}][%d] getTenantNotFound %+v", 404, o.Payload) } + +func (o *GetTenantNotFound) String() string { + return fmt.Sprintf("[GET /tenants/{tenantIdPath}][%d] getTenantNotFound %+v", 404, o.Payload) +} + func (o *GetTenantNotFound) GetPayload() *devops_models.Error { return o.Payload } @@ -253,7 +397,8 @@ func NewGetTenantUnprocessableEntity() *GetTenantUnprocessableEntity { return &GetTenantUnprocessableEntity{} } -/* GetTenantUnprocessableEntity describes a response with status code 422, with default header values. +/* +GetTenantUnprocessableEntity describes a response with status code 422, with default header values. Unprocessable Entity, likely a bad parameter */ @@ -264,9 +409,44 @@ type GetTenantUnprocessableEntity struct { Payload *devops_models.Error } +// IsSuccess returns true when this get tenant unprocessable entity response has a 2xx status code +func (o *GetTenantUnprocessableEntity) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get tenant unprocessable entity response has a 3xx status code +func (o *GetTenantUnprocessableEntity) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get tenant unprocessable entity response has a 4xx status code +func (o *GetTenantUnprocessableEntity) IsClientError() bool { + return true +} + +// IsServerError returns true when this get tenant unprocessable entity response has a 5xx status code +func (o *GetTenantUnprocessableEntity) IsServerError() bool { + return false +} + +// IsCode returns true when this get tenant unprocessable entity response a status code equal to that given +func (o *GetTenantUnprocessableEntity) IsCode(code int) bool { + return code == 422 +} + +// Code gets the status code for the get tenant unprocessable entity response +func (o *GetTenantUnprocessableEntity) Code() int { + return 422 +} + func (o *GetTenantUnprocessableEntity) Error() string { return fmt.Sprintf("[GET /tenants/{tenantIdPath}][%d] getTenantUnprocessableEntity %+v", 422, o.Payload) } + +func (o *GetTenantUnprocessableEntity) String() string { + return fmt.Sprintf("[GET /tenants/{tenantIdPath}][%d] getTenantUnprocessableEntity %+v", 422, o.Payload) +} + func (o *GetTenantUnprocessableEntity) GetPayload() *devops_models.Error { return o.Payload } @@ -302,7 +482,8 @@ func NewGetTenantInternalServerError() *GetTenantInternalServerError { return &GetTenantInternalServerError{} } -/* GetTenantInternalServerError describes a response with status code 500, with default header values. +/* +GetTenantInternalServerError describes a response with status code 500, with default header values. Server Internal Error */ @@ -312,9 +493,44 @@ type GetTenantInternalServerError struct { Payload *devops_models.Error } +// IsSuccess returns true when this get tenant internal server error response has a 2xx status code +func (o *GetTenantInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get tenant internal server error response has a 3xx status code +func (o *GetTenantInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get tenant internal server error response has a 4xx status code +func (o *GetTenantInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this get tenant internal server error response has a 5xx status code +func (o *GetTenantInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this get tenant internal server error response a status code equal to that given +func (o *GetTenantInternalServerError) IsCode(code int) bool { + return code == 500 +} + +// Code gets the status code for the get tenant internal server error response +func (o *GetTenantInternalServerError) Code() int { + return 500 +} + func (o *GetTenantInternalServerError) Error() string { return fmt.Sprintf("[GET /tenants/{tenantIdPath}][%d] getTenantInternalServerError %+v", 500, o.Payload) } + +func (o *GetTenantInternalServerError) String() string { + return fmt.Sprintf("[GET /tenants/{tenantIdPath}][%d] getTenantInternalServerError %+v", 500, o.Payload) +} + func (o *GetTenantInternalServerError) GetPayload() *devops_models.Error { return o.Payload } diff --git a/api/devops/devops_client/tenant/get_tenants_observable_parameters.go b/api/devops/devops_client/tenant/get_tenants_observable_parameters.go index acc7c00..7b01a05 100644 --- a/api/devops/devops_client/tenant/get_tenants_observable_parameters.go +++ b/api/devops/devops_client/tenant/get_tenants_observable_parameters.go @@ -56,10 +56,12 @@ func NewGetTenantsObservableParamsWithHTTPClient(client *http.Client) *GetTenant } } -/* GetTenantsObservableParams contains all the parameters to send to the API endpoint - for the get tenants observable operation. +/* +GetTenantsObservableParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get tenants observable operation. + + Typically these are written to a http.Request. */ type GetTenantsObservableParams struct { timeout time.Duration diff --git a/api/devops/devops_client/tenant/get_tenants_observable_responses.go b/api/devops/devops_client/tenant/get_tenants_observable_responses.go index d770556..8b66deb 100644 --- a/api/devops/devops_client/tenant/get_tenants_observable_responses.go +++ b/api/devops/devops_client/tenant/get_tenants_observable_responses.go @@ -73,7 +73,8 @@ func NewGetTenantsObservableOK() *GetTenantsObservableOK { return &GetTenantsObservableOK{} } -/* GetTenantsObservableOK describes a response with status code 200, with default header values. +/* +GetTenantsObservableOK describes a response with status code 200, with default header values. Single Tenant record response */ @@ -84,9 +85,44 @@ type GetTenantsObservableOK struct { Payload []*devops_models.Tenant } +// IsSuccess returns true when this get tenants observable o k response has a 2xx status code +func (o *GetTenantsObservableOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get tenants observable o k response has a 3xx status code +func (o *GetTenantsObservableOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get tenants observable o k response has a 4xx status code +func (o *GetTenantsObservableOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get tenants observable o k response has a 5xx status code +func (o *GetTenantsObservableOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get tenants observable o k response a status code equal to that given +func (o *GetTenantsObservableOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get tenants observable o k response +func (o *GetTenantsObservableOK) Code() int { + return 200 +} + func (o *GetTenantsObservableOK) Error() string { return fmt.Sprintf("[GET /tenants/observable][%d] getTenantsObservableOK %+v", 200, o.Payload) } + +func (o *GetTenantsObservableOK) String() string { + return fmt.Sprintf("[GET /tenants/observable][%d] getTenantsObservableOK %+v", 200, o.Payload) +} + func (o *GetTenantsObservableOK) GetPayload() []*devops_models.Tenant { return o.Payload } @@ -120,7 +156,8 @@ func NewGetTenantsObservableUnauthorized() *GetTenantsObservableUnauthorized { return &GetTenantsObservableUnauthorized{} } -/* GetTenantsObservableUnauthorized describes a response with status code 401, with default header values. +/* +GetTenantsObservableUnauthorized describes a response with status code 401, with default header values. Access Unauthorized, invalid API-KEY was used */ @@ -131,9 +168,44 @@ type GetTenantsObservableUnauthorized struct { Payload *devops_models.Error } +// IsSuccess returns true when this get tenants observable unauthorized response has a 2xx status code +func (o *GetTenantsObservableUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get tenants observable unauthorized response has a 3xx status code +func (o *GetTenantsObservableUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get tenants observable unauthorized response has a 4xx status code +func (o *GetTenantsObservableUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this get tenants observable unauthorized response has a 5xx status code +func (o *GetTenantsObservableUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this get tenants observable unauthorized response a status code equal to that given +func (o *GetTenantsObservableUnauthorized) IsCode(code int) bool { + return code == 401 +} + +// Code gets the status code for the get tenants observable unauthorized response +func (o *GetTenantsObservableUnauthorized) Code() int { + return 401 +} + func (o *GetTenantsObservableUnauthorized) Error() string { return fmt.Sprintf("[GET /tenants/observable][%d] getTenantsObservableUnauthorized %+v", 401, o.Payload) } + +func (o *GetTenantsObservableUnauthorized) String() string { + return fmt.Sprintf("[GET /tenants/observable][%d] getTenantsObservableUnauthorized %+v", 401, o.Payload) +} + func (o *GetTenantsObservableUnauthorized) GetPayload() *devops_models.Error { return o.Payload } @@ -169,7 +241,8 @@ func NewGetTenantsObservableForbidden() *GetTenantsObservableForbidden { return &GetTenantsObservableForbidden{} } -/* GetTenantsObservableForbidden describes a response with status code 403, with default header values. +/* +GetTenantsObservableForbidden describes a response with status code 403, with default header values. Access forbidden, account lacks access */ @@ -179,9 +252,44 @@ type GetTenantsObservableForbidden struct { Payload *devops_models.Error } +// IsSuccess returns true when this get tenants observable forbidden response has a 2xx status code +func (o *GetTenantsObservableForbidden) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get tenants observable forbidden response has a 3xx status code +func (o *GetTenantsObservableForbidden) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get tenants observable forbidden response has a 4xx status code +func (o *GetTenantsObservableForbidden) IsClientError() bool { + return true +} + +// IsServerError returns true when this get tenants observable forbidden response has a 5xx status code +func (o *GetTenantsObservableForbidden) IsServerError() bool { + return false +} + +// IsCode returns true when this get tenants observable forbidden response a status code equal to that given +func (o *GetTenantsObservableForbidden) IsCode(code int) bool { + return code == 403 +} + +// Code gets the status code for the get tenants observable forbidden response +func (o *GetTenantsObservableForbidden) Code() int { + return 403 +} + func (o *GetTenantsObservableForbidden) Error() string { return fmt.Sprintf("[GET /tenants/observable][%d] getTenantsObservableForbidden %+v", 403, o.Payload) } + +func (o *GetTenantsObservableForbidden) String() string { + return fmt.Sprintf("[GET /tenants/observable][%d] getTenantsObservableForbidden %+v", 403, o.Payload) +} + func (o *GetTenantsObservableForbidden) GetPayload() *devops_models.Error { return o.Payload } @@ -210,7 +318,8 @@ func NewGetTenantsObservableNotFound() *GetTenantsObservableNotFound { return &GetTenantsObservableNotFound{} } -/* GetTenantsObservableNotFound describes a response with status code 404, with default header values. +/* +GetTenantsObservableNotFound describes a response with status code 404, with default header values. Resource was not found */ @@ -220,9 +329,44 @@ type GetTenantsObservableNotFound struct { Payload *devops_models.Error } +// IsSuccess returns true when this get tenants observable not found response has a 2xx status code +func (o *GetTenantsObservableNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get tenants observable not found response has a 3xx status code +func (o *GetTenantsObservableNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get tenants observable not found response has a 4xx status code +func (o *GetTenantsObservableNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this get tenants observable not found response has a 5xx status code +func (o *GetTenantsObservableNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this get tenants observable not found response a status code equal to that given +func (o *GetTenantsObservableNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the get tenants observable not found response +func (o *GetTenantsObservableNotFound) Code() int { + return 404 +} + func (o *GetTenantsObservableNotFound) Error() string { return fmt.Sprintf("[GET /tenants/observable][%d] getTenantsObservableNotFound %+v", 404, o.Payload) } + +func (o *GetTenantsObservableNotFound) String() string { + return fmt.Sprintf("[GET /tenants/observable][%d] getTenantsObservableNotFound %+v", 404, o.Payload) +} + func (o *GetTenantsObservableNotFound) GetPayload() *devops_models.Error { return o.Payload } @@ -251,7 +395,8 @@ func NewGetTenantsObservableUnprocessableEntity() *GetTenantsObservableUnprocess return &GetTenantsObservableUnprocessableEntity{} } -/* GetTenantsObservableUnprocessableEntity describes a response with status code 422, with default header values. +/* +GetTenantsObservableUnprocessableEntity describes a response with status code 422, with default header values. Unprocessable Entity, likely a bad parameter */ @@ -262,9 +407,44 @@ type GetTenantsObservableUnprocessableEntity struct { Payload *devops_models.Error } +// IsSuccess returns true when this get tenants observable unprocessable entity response has a 2xx status code +func (o *GetTenantsObservableUnprocessableEntity) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get tenants observable unprocessable entity response has a 3xx status code +func (o *GetTenantsObservableUnprocessableEntity) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get tenants observable unprocessable entity response has a 4xx status code +func (o *GetTenantsObservableUnprocessableEntity) IsClientError() bool { + return true +} + +// IsServerError returns true when this get tenants observable unprocessable entity response has a 5xx status code +func (o *GetTenantsObservableUnprocessableEntity) IsServerError() bool { + return false +} + +// IsCode returns true when this get tenants observable unprocessable entity response a status code equal to that given +func (o *GetTenantsObservableUnprocessableEntity) IsCode(code int) bool { + return code == 422 +} + +// Code gets the status code for the get tenants observable unprocessable entity response +func (o *GetTenantsObservableUnprocessableEntity) Code() int { + return 422 +} + func (o *GetTenantsObservableUnprocessableEntity) Error() string { return fmt.Sprintf("[GET /tenants/observable][%d] getTenantsObservableUnprocessableEntity %+v", 422, o.Payload) } + +func (o *GetTenantsObservableUnprocessableEntity) String() string { + return fmt.Sprintf("[GET /tenants/observable][%d] getTenantsObservableUnprocessableEntity %+v", 422, o.Payload) +} + func (o *GetTenantsObservableUnprocessableEntity) GetPayload() *devops_models.Error { return o.Payload } @@ -300,7 +480,8 @@ func NewGetTenantsObservableInternalServerError() *GetTenantsObservableInternalS return &GetTenantsObservableInternalServerError{} } -/* GetTenantsObservableInternalServerError describes a response with status code 500, with default header values. +/* +GetTenantsObservableInternalServerError describes a response with status code 500, with default header values. Server Internal Error */ @@ -310,9 +491,44 @@ type GetTenantsObservableInternalServerError struct { Payload *devops_models.Error } +// IsSuccess returns true when this get tenants observable internal server error response has a 2xx status code +func (o *GetTenantsObservableInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get tenants observable internal server error response has a 3xx status code +func (o *GetTenantsObservableInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get tenants observable internal server error response has a 4xx status code +func (o *GetTenantsObservableInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this get tenants observable internal server error response has a 5xx status code +func (o *GetTenantsObservableInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this get tenants observable internal server error response a status code equal to that given +func (o *GetTenantsObservableInternalServerError) IsCode(code int) bool { + return code == 500 +} + +// Code gets the status code for the get tenants observable internal server error response +func (o *GetTenantsObservableInternalServerError) Code() int { + return 500 +} + func (o *GetTenantsObservableInternalServerError) Error() string { return fmt.Sprintf("[GET /tenants/observable][%d] getTenantsObservableInternalServerError %+v", 500, o.Payload) } + +func (o *GetTenantsObservableInternalServerError) String() string { + return fmt.Sprintf("[GET /tenants/observable][%d] getTenantsObservableInternalServerError %+v", 500, o.Payload) +} + func (o *GetTenantsObservableInternalServerError) GetPayload() *devops_models.Error { return o.Payload } diff --git a/api/devops/devops_client/tenant/get_tenants_parameters.go b/api/devops/devops_client/tenant/get_tenants_parameters.go index 0bc7b69..5073137 100644 --- a/api/devops/devops_client/tenant/get_tenants_parameters.go +++ b/api/devops/devops_client/tenant/get_tenants_parameters.go @@ -57,10 +57,12 @@ func NewGetTenantsParamsWithHTTPClient(client *http.Client) *GetTenantsParams { } } -/* GetTenantsParams contains all the parameters to send to the API endpoint - for the get tenants operation. +/* +GetTenantsParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get tenants operation. + + Typically these are written to a http.Request. */ type GetTenantsParams struct { diff --git a/api/devops/devops_client/tenant/get_tenants_responses.go b/api/devops/devops_client/tenant/get_tenants_responses.go index ae6fcf0..08d8974 100644 --- a/api/devops/devops_client/tenant/get_tenants_responses.go +++ b/api/devops/devops_client/tenant/get_tenants_responses.go @@ -73,7 +73,8 @@ func NewGetTenantsOK() *GetTenantsOK { return &GetTenantsOK{} } -/* GetTenantsOK describes a response with status code 200, with default header values. +/* +GetTenantsOK describes a response with status code 200, with default header values. Taxnexus Response with Tenant objects */ @@ -83,9 +84,44 @@ type GetTenantsOK struct { Payload *devops_models.TenantResponse } +// IsSuccess returns true when this get tenants o k response has a 2xx status code +func (o *GetTenantsOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get tenants o k response has a 3xx status code +func (o *GetTenantsOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get tenants o k response has a 4xx status code +func (o *GetTenantsOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get tenants o k response has a 5xx status code +func (o *GetTenantsOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get tenants o k response a status code equal to that given +func (o *GetTenantsOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get tenants o k response +func (o *GetTenantsOK) Code() int { + return 200 +} + func (o *GetTenantsOK) Error() string { return fmt.Sprintf("[GET /tenants][%d] getTenantsOK %+v", 200, o.Payload) } + +func (o *GetTenantsOK) String() string { + return fmt.Sprintf("[GET /tenants][%d] getTenantsOK %+v", 200, o.Payload) +} + func (o *GetTenantsOK) GetPayload() *devops_models.TenantResponse { return o.Payload } @@ -114,7 +150,8 @@ func NewGetTenantsUnauthorized() *GetTenantsUnauthorized { return &GetTenantsUnauthorized{} } -/* GetTenantsUnauthorized describes a response with status code 401, with default header values. +/* +GetTenantsUnauthorized describes a response with status code 401, with default header values. Access Unauthorized, invalid API-KEY was used */ @@ -125,9 +162,44 @@ type GetTenantsUnauthorized struct { Payload *devops_models.Error } +// IsSuccess returns true when this get tenants unauthorized response has a 2xx status code +func (o *GetTenantsUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get tenants unauthorized response has a 3xx status code +func (o *GetTenantsUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get tenants unauthorized response has a 4xx status code +func (o *GetTenantsUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this get tenants unauthorized response has a 5xx status code +func (o *GetTenantsUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this get tenants unauthorized response a status code equal to that given +func (o *GetTenantsUnauthorized) IsCode(code int) bool { + return code == 401 +} + +// Code gets the status code for the get tenants unauthorized response +func (o *GetTenantsUnauthorized) Code() int { + return 401 +} + func (o *GetTenantsUnauthorized) Error() string { return fmt.Sprintf("[GET /tenants][%d] getTenantsUnauthorized %+v", 401, o.Payload) } + +func (o *GetTenantsUnauthorized) String() string { + return fmt.Sprintf("[GET /tenants][%d] getTenantsUnauthorized %+v", 401, o.Payload) +} + func (o *GetTenantsUnauthorized) GetPayload() *devops_models.Error { return o.Payload } @@ -163,7 +235,8 @@ func NewGetTenantsForbidden() *GetTenantsForbidden { return &GetTenantsForbidden{} } -/* GetTenantsForbidden describes a response with status code 403, with default header values. +/* +GetTenantsForbidden describes a response with status code 403, with default header values. Access forbidden, account lacks access */ @@ -173,9 +246,44 @@ type GetTenantsForbidden struct { Payload *devops_models.Error } +// IsSuccess returns true when this get tenants forbidden response has a 2xx status code +func (o *GetTenantsForbidden) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get tenants forbidden response has a 3xx status code +func (o *GetTenantsForbidden) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get tenants forbidden response has a 4xx status code +func (o *GetTenantsForbidden) IsClientError() bool { + return true +} + +// IsServerError returns true when this get tenants forbidden response has a 5xx status code +func (o *GetTenantsForbidden) IsServerError() bool { + return false +} + +// IsCode returns true when this get tenants forbidden response a status code equal to that given +func (o *GetTenantsForbidden) IsCode(code int) bool { + return code == 403 +} + +// Code gets the status code for the get tenants forbidden response +func (o *GetTenantsForbidden) Code() int { + return 403 +} + func (o *GetTenantsForbidden) Error() string { return fmt.Sprintf("[GET /tenants][%d] getTenantsForbidden %+v", 403, o.Payload) } + +func (o *GetTenantsForbidden) String() string { + return fmt.Sprintf("[GET /tenants][%d] getTenantsForbidden %+v", 403, o.Payload) +} + func (o *GetTenantsForbidden) GetPayload() *devops_models.Error { return o.Payload } @@ -204,7 +312,8 @@ func NewGetTenantsNotFound() *GetTenantsNotFound { return &GetTenantsNotFound{} } -/* GetTenantsNotFound describes a response with status code 404, with default header values. +/* +GetTenantsNotFound describes a response with status code 404, with default header values. Resource was not found */ @@ -214,9 +323,44 @@ type GetTenantsNotFound struct { Payload *devops_models.Error } +// IsSuccess returns true when this get tenants not found response has a 2xx status code +func (o *GetTenantsNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get tenants not found response has a 3xx status code +func (o *GetTenantsNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get tenants not found response has a 4xx status code +func (o *GetTenantsNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this get tenants not found response has a 5xx status code +func (o *GetTenantsNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this get tenants not found response a status code equal to that given +func (o *GetTenantsNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the get tenants not found response +func (o *GetTenantsNotFound) Code() int { + return 404 +} + func (o *GetTenantsNotFound) Error() string { return fmt.Sprintf("[GET /tenants][%d] getTenantsNotFound %+v", 404, o.Payload) } + +func (o *GetTenantsNotFound) String() string { + return fmt.Sprintf("[GET /tenants][%d] getTenantsNotFound %+v", 404, o.Payload) +} + func (o *GetTenantsNotFound) GetPayload() *devops_models.Error { return o.Payload } @@ -245,7 +389,8 @@ func NewGetTenantsUnprocessableEntity() *GetTenantsUnprocessableEntity { return &GetTenantsUnprocessableEntity{} } -/* GetTenantsUnprocessableEntity describes a response with status code 422, with default header values. +/* +GetTenantsUnprocessableEntity describes a response with status code 422, with default header values. Unprocessable Entity, likely a bad parameter */ @@ -256,9 +401,44 @@ type GetTenantsUnprocessableEntity struct { Payload *devops_models.Error } +// IsSuccess returns true when this get tenants unprocessable entity response has a 2xx status code +func (o *GetTenantsUnprocessableEntity) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get tenants unprocessable entity response has a 3xx status code +func (o *GetTenantsUnprocessableEntity) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get tenants unprocessable entity response has a 4xx status code +func (o *GetTenantsUnprocessableEntity) IsClientError() bool { + return true +} + +// IsServerError returns true when this get tenants unprocessable entity response has a 5xx status code +func (o *GetTenantsUnprocessableEntity) IsServerError() bool { + return false +} + +// IsCode returns true when this get tenants unprocessable entity response a status code equal to that given +func (o *GetTenantsUnprocessableEntity) IsCode(code int) bool { + return code == 422 +} + +// Code gets the status code for the get tenants unprocessable entity response +func (o *GetTenantsUnprocessableEntity) Code() int { + return 422 +} + func (o *GetTenantsUnprocessableEntity) Error() string { return fmt.Sprintf("[GET /tenants][%d] getTenantsUnprocessableEntity %+v", 422, o.Payload) } + +func (o *GetTenantsUnprocessableEntity) String() string { + return fmt.Sprintf("[GET /tenants][%d] getTenantsUnprocessableEntity %+v", 422, o.Payload) +} + func (o *GetTenantsUnprocessableEntity) GetPayload() *devops_models.Error { return o.Payload } @@ -294,7 +474,8 @@ func NewGetTenantsInternalServerError() *GetTenantsInternalServerError { return &GetTenantsInternalServerError{} } -/* GetTenantsInternalServerError describes a response with status code 500, with default header values. +/* +GetTenantsInternalServerError describes a response with status code 500, with default header values. Server Internal Error */ @@ -304,9 +485,44 @@ type GetTenantsInternalServerError struct { Payload *devops_models.Error } +// IsSuccess returns true when this get tenants internal server error response has a 2xx status code +func (o *GetTenantsInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get tenants internal server error response has a 3xx status code +func (o *GetTenantsInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get tenants internal server error response has a 4xx status code +func (o *GetTenantsInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this get tenants internal server error response has a 5xx status code +func (o *GetTenantsInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this get tenants internal server error response a status code equal to that given +func (o *GetTenantsInternalServerError) IsCode(code int) bool { + return code == 500 +} + +// Code gets the status code for the get tenants internal server error response +func (o *GetTenantsInternalServerError) Code() int { + return 500 +} + func (o *GetTenantsInternalServerError) Error() string { return fmt.Sprintf("[GET /tenants][%d] getTenantsInternalServerError %+v", 500, o.Payload) } + +func (o *GetTenantsInternalServerError) String() string { + return fmt.Sprintf("[GET /tenants][%d] getTenantsInternalServerError %+v", 500, o.Payload) +} + func (o *GetTenantsInternalServerError) GetPayload() *devops_models.Error { return o.Payload } diff --git a/api/devops/devops_client/tenant/post_tenants_parameters.go b/api/devops/devops_client/tenant/post_tenants_parameters.go index 92d0b07..5e6d98b 100644 --- a/api/devops/devops_client/tenant/post_tenants_parameters.go +++ b/api/devops/devops_client/tenant/post_tenants_parameters.go @@ -58,10 +58,12 @@ func NewPostTenantsParamsWithHTTPClient(client *http.Client) *PostTenantsParams } } -/* PostTenantsParams contains all the parameters to send to the API endpoint - for the post tenants operation. +/* +PostTenantsParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the post tenants operation. + + Typically these are written to a http.Request. */ type PostTenantsParams struct { diff --git a/api/devops/devops_client/tenant/post_tenants_responses.go b/api/devops/devops_client/tenant/post_tenants_responses.go index 66a67dc..ad53ac7 100644 --- a/api/devops/devops_client/tenant/post_tenants_responses.go +++ b/api/devops/devops_client/tenant/post_tenants_responses.go @@ -73,7 +73,8 @@ func NewPostTenantsOK() *PostTenantsOK { return &PostTenantsOK{} } -/* PostTenantsOK describes a response with status code 200, with default header values. +/* +PostTenantsOK describes a response with status code 200, with default header values. Taxnexus Response with Tenant objects */ @@ -83,9 +84,44 @@ type PostTenantsOK struct { Payload *devops_models.TenantResponse } +// IsSuccess returns true when this post tenants o k response has a 2xx status code +func (o *PostTenantsOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this post tenants o k response has a 3xx status code +func (o *PostTenantsOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this post tenants o k response has a 4xx status code +func (o *PostTenantsOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this post tenants o k response has a 5xx status code +func (o *PostTenantsOK) IsServerError() bool { + return false +} + +// IsCode returns true when this post tenants o k response a status code equal to that given +func (o *PostTenantsOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the post tenants o k response +func (o *PostTenantsOK) Code() int { + return 200 +} + func (o *PostTenantsOK) Error() string { return fmt.Sprintf("[POST /tenants][%d] postTenantsOK %+v", 200, o.Payload) } + +func (o *PostTenantsOK) String() string { + return fmt.Sprintf("[POST /tenants][%d] postTenantsOK %+v", 200, o.Payload) +} + func (o *PostTenantsOK) GetPayload() *devops_models.TenantResponse { return o.Payload } @@ -114,7 +150,8 @@ func NewPostTenantsUnauthorized() *PostTenantsUnauthorized { return &PostTenantsUnauthorized{} } -/* PostTenantsUnauthorized describes a response with status code 401, with default header values. +/* +PostTenantsUnauthorized describes a response with status code 401, with default header values. Access Unauthorized, invalid API-KEY was used */ @@ -125,9 +162,44 @@ type PostTenantsUnauthorized struct { Payload *devops_models.Error } +// IsSuccess returns true when this post tenants unauthorized response has a 2xx status code +func (o *PostTenantsUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this post tenants unauthorized response has a 3xx status code +func (o *PostTenantsUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this post tenants unauthorized response has a 4xx status code +func (o *PostTenantsUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this post tenants unauthorized response has a 5xx status code +func (o *PostTenantsUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this post tenants unauthorized response a status code equal to that given +func (o *PostTenantsUnauthorized) IsCode(code int) bool { + return code == 401 +} + +// Code gets the status code for the post tenants unauthorized response +func (o *PostTenantsUnauthorized) Code() int { + return 401 +} + func (o *PostTenantsUnauthorized) Error() string { return fmt.Sprintf("[POST /tenants][%d] postTenantsUnauthorized %+v", 401, o.Payload) } + +func (o *PostTenantsUnauthorized) String() string { + return fmt.Sprintf("[POST /tenants][%d] postTenantsUnauthorized %+v", 401, o.Payload) +} + func (o *PostTenantsUnauthorized) GetPayload() *devops_models.Error { return o.Payload } @@ -163,7 +235,8 @@ func NewPostTenantsForbidden() *PostTenantsForbidden { return &PostTenantsForbidden{} } -/* PostTenantsForbidden describes a response with status code 403, with default header values. +/* +PostTenantsForbidden describes a response with status code 403, with default header values. Access forbidden, account lacks access */ @@ -173,9 +246,44 @@ type PostTenantsForbidden struct { Payload *devops_models.Error } +// IsSuccess returns true when this post tenants forbidden response has a 2xx status code +func (o *PostTenantsForbidden) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this post tenants forbidden response has a 3xx status code +func (o *PostTenantsForbidden) IsRedirect() bool { + return false +} + +// IsClientError returns true when this post tenants forbidden response has a 4xx status code +func (o *PostTenantsForbidden) IsClientError() bool { + return true +} + +// IsServerError returns true when this post tenants forbidden response has a 5xx status code +func (o *PostTenantsForbidden) IsServerError() bool { + return false +} + +// IsCode returns true when this post tenants forbidden response a status code equal to that given +func (o *PostTenantsForbidden) IsCode(code int) bool { + return code == 403 +} + +// Code gets the status code for the post tenants forbidden response +func (o *PostTenantsForbidden) Code() int { + return 403 +} + func (o *PostTenantsForbidden) Error() string { return fmt.Sprintf("[POST /tenants][%d] postTenantsForbidden %+v", 403, o.Payload) } + +func (o *PostTenantsForbidden) String() string { + return fmt.Sprintf("[POST /tenants][%d] postTenantsForbidden %+v", 403, o.Payload) +} + func (o *PostTenantsForbidden) GetPayload() *devops_models.Error { return o.Payload } @@ -204,7 +312,8 @@ func NewPostTenantsNotFound() *PostTenantsNotFound { return &PostTenantsNotFound{} } -/* PostTenantsNotFound describes a response with status code 404, with default header values. +/* +PostTenantsNotFound describes a response with status code 404, with default header values. Resource was not found */ @@ -214,9 +323,44 @@ type PostTenantsNotFound struct { Payload *devops_models.Error } +// IsSuccess returns true when this post tenants not found response has a 2xx status code +func (o *PostTenantsNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this post tenants not found response has a 3xx status code +func (o *PostTenantsNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this post tenants not found response has a 4xx status code +func (o *PostTenantsNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this post tenants not found response has a 5xx status code +func (o *PostTenantsNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this post tenants not found response a status code equal to that given +func (o *PostTenantsNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the post tenants not found response +func (o *PostTenantsNotFound) Code() int { + return 404 +} + func (o *PostTenantsNotFound) Error() string { return fmt.Sprintf("[POST /tenants][%d] postTenantsNotFound %+v", 404, o.Payload) } + +func (o *PostTenantsNotFound) String() string { + return fmt.Sprintf("[POST /tenants][%d] postTenantsNotFound %+v", 404, o.Payload) +} + func (o *PostTenantsNotFound) GetPayload() *devops_models.Error { return o.Payload } @@ -245,7 +389,8 @@ func NewPostTenantsUnprocessableEntity() *PostTenantsUnprocessableEntity { return &PostTenantsUnprocessableEntity{} } -/* PostTenantsUnprocessableEntity describes a response with status code 422, with default header values. +/* +PostTenantsUnprocessableEntity describes a response with status code 422, with default header values. Unprocessable Entity, likely a bad parameter */ @@ -256,9 +401,44 @@ type PostTenantsUnprocessableEntity struct { Payload *devops_models.Error } +// IsSuccess returns true when this post tenants unprocessable entity response has a 2xx status code +func (o *PostTenantsUnprocessableEntity) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this post tenants unprocessable entity response has a 3xx status code +func (o *PostTenantsUnprocessableEntity) IsRedirect() bool { + return false +} + +// IsClientError returns true when this post tenants unprocessable entity response has a 4xx status code +func (o *PostTenantsUnprocessableEntity) IsClientError() bool { + return true +} + +// IsServerError returns true when this post tenants unprocessable entity response has a 5xx status code +func (o *PostTenantsUnprocessableEntity) IsServerError() bool { + return false +} + +// IsCode returns true when this post tenants unprocessable entity response a status code equal to that given +func (o *PostTenantsUnprocessableEntity) IsCode(code int) bool { + return code == 422 +} + +// Code gets the status code for the post tenants unprocessable entity response +func (o *PostTenantsUnprocessableEntity) Code() int { + return 422 +} + func (o *PostTenantsUnprocessableEntity) Error() string { return fmt.Sprintf("[POST /tenants][%d] postTenantsUnprocessableEntity %+v", 422, o.Payload) } + +func (o *PostTenantsUnprocessableEntity) String() string { + return fmt.Sprintf("[POST /tenants][%d] postTenantsUnprocessableEntity %+v", 422, o.Payload) +} + func (o *PostTenantsUnprocessableEntity) GetPayload() *devops_models.Error { return o.Payload } @@ -294,7 +474,8 @@ func NewPostTenantsInternalServerError() *PostTenantsInternalServerError { return &PostTenantsInternalServerError{} } -/* PostTenantsInternalServerError describes a response with status code 500, with default header values. +/* +PostTenantsInternalServerError describes a response with status code 500, with default header values. Server Internal Error */ @@ -304,9 +485,44 @@ type PostTenantsInternalServerError struct { Payload *devops_models.Error } +// IsSuccess returns true when this post tenants internal server error response has a 2xx status code +func (o *PostTenantsInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this post tenants internal server error response has a 3xx status code +func (o *PostTenantsInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this post tenants internal server error response has a 4xx status code +func (o *PostTenantsInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this post tenants internal server error response has a 5xx status code +func (o *PostTenantsInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this post tenants internal server error response a status code equal to that given +func (o *PostTenantsInternalServerError) IsCode(code int) bool { + return code == 500 +} + +// Code gets the status code for the post tenants internal server error response +func (o *PostTenantsInternalServerError) Code() int { + return 500 +} + func (o *PostTenantsInternalServerError) Error() string { return fmt.Sprintf("[POST /tenants][%d] postTenantsInternalServerError %+v", 500, o.Payload) } + +func (o *PostTenantsInternalServerError) String() string { + return fmt.Sprintf("[POST /tenants][%d] postTenantsInternalServerError %+v", 500, o.Payload) +} + func (o *PostTenantsInternalServerError) GetPayload() *devops_models.Error { return o.Payload } diff --git a/api/devops/devops_client/tenant/put_tenants_parameters.go b/api/devops/devops_client/tenant/put_tenants_parameters.go index 61bb9b5..094eb4a 100644 --- a/api/devops/devops_client/tenant/put_tenants_parameters.go +++ b/api/devops/devops_client/tenant/put_tenants_parameters.go @@ -58,10 +58,12 @@ func NewPutTenantsParamsWithHTTPClient(client *http.Client) *PutTenantsParams { } } -/* PutTenantsParams contains all the parameters to send to the API endpoint - for the put tenants operation. +/* +PutTenantsParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the put tenants operation. + + Typically these are written to a http.Request. */ type PutTenantsParams struct { diff --git a/api/devops/devops_client/tenant/put_tenants_responses.go b/api/devops/devops_client/tenant/put_tenants_responses.go index 95dc807..7f34c28 100644 --- a/api/devops/devops_client/tenant/put_tenants_responses.go +++ b/api/devops/devops_client/tenant/put_tenants_responses.go @@ -73,7 +73,8 @@ func NewPutTenantsOK() *PutTenantsOK { return &PutTenantsOK{} } -/* PutTenantsOK describes a response with status code 200, with default header values. +/* +PutTenantsOK describes a response with status code 200, with default header values. Taxnexus Response with Tenant objects */ @@ -83,9 +84,44 @@ type PutTenantsOK struct { Payload *devops_models.TenantResponse } +// IsSuccess returns true when this put tenants o k response has a 2xx status code +func (o *PutTenantsOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this put tenants o k response has a 3xx status code +func (o *PutTenantsOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this put tenants o k response has a 4xx status code +func (o *PutTenantsOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this put tenants o k response has a 5xx status code +func (o *PutTenantsOK) IsServerError() bool { + return false +} + +// IsCode returns true when this put tenants o k response a status code equal to that given +func (o *PutTenantsOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the put tenants o k response +func (o *PutTenantsOK) Code() int { + return 200 +} + func (o *PutTenantsOK) Error() string { return fmt.Sprintf("[PUT /tenants][%d] putTenantsOK %+v", 200, o.Payload) } + +func (o *PutTenantsOK) String() string { + return fmt.Sprintf("[PUT /tenants][%d] putTenantsOK %+v", 200, o.Payload) +} + func (o *PutTenantsOK) GetPayload() *devops_models.TenantResponse { return o.Payload } @@ -114,7 +150,8 @@ func NewPutTenantsUnauthorized() *PutTenantsUnauthorized { return &PutTenantsUnauthorized{} } -/* PutTenantsUnauthorized describes a response with status code 401, with default header values. +/* +PutTenantsUnauthorized describes a response with status code 401, with default header values. Access Unauthorized, invalid API-KEY was used */ @@ -125,9 +162,44 @@ type PutTenantsUnauthorized struct { Payload *devops_models.Error } +// IsSuccess returns true when this put tenants unauthorized response has a 2xx status code +func (o *PutTenantsUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this put tenants unauthorized response has a 3xx status code +func (o *PutTenantsUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this put tenants unauthorized response has a 4xx status code +func (o *PutTenantsUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this put tenants unauthorized response has a 5xx status code +func (o *PutTenantsUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this put tenants unauthorized response a status code equal to that given +func (o *PutTenantsUnauthorized) IsCode(code int) bool { + return code == 401 +} + +// Code gets the status code for the put tenants unauthorized response +func (o *PutTenantsUnauthorized) Code() int { + return 401 +} + func (o *PutTenantsUnauthorized) Error() string { return fmt.Sprintf("[PUT /tenants][%d] putTenantsUnauthorized %+v", 401, o.Payload) } + +func (o *PutTenantsUnauthorized) String() string { + return fmt.Sprintf("[PUT /tenants][%d] putTenantsUnauthorized %+v", 401, o.Payload) +} + func (o *PutTenantsUnauthorized) GetPayload() *devops_models.Error { return o.Payload } @@ -163,7 +235,8 @@ func NewPutTenantsForbidden() *PutTenantsForbidden { return &PutTenantsForbidden{} } -/* PutTenantsForbidden describes a response with status code 403, with default header values. +/* +PutTenantsForbidden describes a response with status code 403, with default header values. Access forbidden, account lacks access */ @@ -173,9 +246,44 @@ type PutTenantsForbidden struct { Payload *devops_models.Error } +// IsSuccess returns true when this put tenants forbidden response has a 2xx status code +func (o *PutTenantsForbidden) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this put tenants forbidden response has a 3xx status code +func (o *PutTenantsForbidden) IsRedirect() bool { + return false +} + +// IsClientError returns true when this put tenants forbidden response has a 4xx status code +func (o *PutTenantsForbidden) IsClientError() bool { + return true +} + +// IsServerError returns true when this put tenants forbidden response has a 5xx status code +func (o *PutTenantsForbidden) IsServerError() bool { + return false +} + +// IsCode returns true when this put tenants forbidden response a status code equal to that given +func (o *PutTenantsForbidden) IsCode(code int) bool { + return code == 403 +} + +// Code gets the status code for the put tenants forbidden response +func (o *PutTenantsForbidden) Code() int { + return 403 +} + func (o *PutTenantsForbidden) Error() string { return fmt.Sprintf("[PUT /tenants][%d] putTenantsForbidden %+v", 403, o.Payload) } + +func (o *PutTenantsForbidden) String() string { + return fmt.Sprintf("[PUT /tenants][%d] putTenantsForbidden %+v", 403, o.Payload) +} + func (o *PutTenantsForbidden) GetPayload() *devops_models.Error { return o.Payload } @@ -204,7 +312,8 @@ func NewPutTenantsNotFound() *PutTenantsNotFound { return &PutTenantsNotFound{} } -/* PutTenantsNotFound describes a response with status code 404, with default header values. +/* +PutTenantsNotFound describes a response with status code 404, with default header values. Resource was not found */ @@ -214,9 +323,44 @@ type PutTenantsNotFound struct { Payload *devops_models.Error } +// IsSuccess returns true when this put tenants not found response has a 2xx status code +func (o *PutTenantsNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this put tenants not found response has a 3xx status code +func (o *PutTenantsNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this put tenants not found response has a 4xx status code +func (o *PutTenantsNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this put tenants not found response has a 5xx status code +func (o *PutTenantsNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this put tenants not found response a status code equal to that given +func (o *PutTenantsNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the put tenants not found response +func (o *PutTenantsNotFound) Code() int { + return 404 +} + func (o *PutTenantsNotFound) Error() string { return fmt.Sprintf("[PUT /tenants][%d] putTenantsNotFound %+v", 404, o.Payload) } + +func (o *PutTenantsNotFound) String() string { + return fmt.Sprintf("[PUT /tenants][%d] putTenantsNotFound %+v", 404, o.Payload) +} + func (o *PutTenantsNotFound) GetPayload() *devops_models.Error { return o.Payload } @@ -245,7 +389,8 @@ func NewPutTenantsUnprocessableEntity() *PutTenantsUnprocessableEntity { return &PutTenantsUnprocessableEntity{} } -/* PutTenantsUnprocessableEntity describes a response with status code 422, with default header values. +/* +PutTenantsUnprocessableEntity describes a response with status code 422, with default header values. Unprocessable Entity, likely a bad parameter */ @@ -256,9 +401,44 @@ type PutTenantsUnprocessableEntity struct { Payload *devops_models.Error } +// IsSuccess returns true when this put tenants unprocessable entity response has a 2xx status code +func (o *PutTenantsUnprocessableEntity) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this put tenants unprocessable entity response has a 3xx status code +func (o *PutTenantsUnprocessableEntity) IsRedirect() bool { + return false +} + +// IsClientError returns true when this put tenants unprocessable entity response has a 4xx status code +func (o *PutTenantsUnprocessableEntity) IsClientError() bool { + return true +} + +// IsServerError returns true when this put tenants unprocessable entity response has a 5xx status code +func (o *PutTenantsUnprocessableEntity) IsServerError() bool { + return false +} + +// IsCode returns true when this put tenants unprocessable entity response a status code equal to that given +func (o *PutTenantsUnprocessableEntity) IsCode(code int) bool { + return code == 422 +} + +// Code gets the status code for the put tenants unprocessable entity response +func (o *PutTenantsUnprocessableEntity) Code() int { + return 422 +} + func (o *PutTenantsUnprocessableEntity) Error() string { return fmt.Sprintf("[PUT /tenants][%d] putTenantsUnprocessableEntity %+v", 422, o.Payload) } + +func (o *PutTenantsUnprocessableEntity) String() string { + return fmt.Sprintf("[PUT /tenants][%d] putTenantsUnprocessableEntity %+v", 422, o.Payload) +} + func (o *PutTenantsUnprocessableEntity) GetPayload() *devops_models.Error { return o.Payload } @@ -294,7 +474,8 @@ func NewPutTenantsInternalServerError() *PutTenantsInternalServerError { return &PutTenantsInternalServerError{} } -/* PutTenantsInternalServerError describes a response with status code 500, with default header values. +/* +PutTenantsInternalServerError describes a response with status code 500, with default header values. Server Internal Error */ @@ -304,9 +485,44 @@ type PutTenantsInternalServerError struct { Payload *devops_models.Error } +// IsSuccess returns true when this put tenants internal server error response has a 2xx status code +func (o *PutTenantsInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this put tenants internal server error response has a 3xx status code +func (o *PutTenantsInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this put tenants internal server error response has a 4xx status code +func (o *PutTenantsInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this put tenants internal server error response has a 5xx status code +func (o *PutTenantsInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this put tenants internal server error response a status code equal to that given +func (o *PutTenantsInternalServerError) IsCode(code int) bool { + return code == 500 +} + +// Code gets the status code for the put tenants internal server error response +func (o *PutTenantsInternalServerError) Code() int { + return 500 +} + func (o *PutTenantsInternalServerError) Error() string { return fmt.Sprintf("[PUT /tenants][%d] putTenantsInternalServerError %+v", 500, o.Payload) } + +func (o *PutTenantsInternalServerError) String() string { + return fmt.Sprintf("[PUT /tenants][%d] putTenantsInternalServerError %+v", 500, o.Payload) +} + func (o *PutTenantsInternalServerError) GetPayload() *devops_models.Error { return o.Payload } diff --git a/api/devops/devops_client/tenant/tenant_client.go b/api/devops/devops_client/tenant/tenant_client.go index 6a46542..496a01c 100644 --- a/api/devops/devops_client/tenant/tenant_client.go +++ b/api/devops/devops_client/tenant/tenant_client.go @@ -48,9 +48,9 @@ type ClientService interface { } /* - GetTenant gets a single tenant object +GetTenant gets a single tenant object - Return a single Tenant object from datastore as a Singleton +Return a single Tenant object from datastore as a Singleton */ func (a *Client) GetTenant(params *GetTenantParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetTenantOK, error) { // TODO: Validate the params before sending @@ -89,9 +89,9 @@ func (a *Client) GetTenant(params *GetTenantParams, authInfo runtime.ClientAuthI } /* - GetTenants gets a list tenants +GetTenants gets a list tenants - Return a list of Tenant records from the datastore +Return a list of Tenant records from the datastore */ func (a *Client) GetTenants(params *GetTenantsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetTenantsOK, error) { // TODO: Validate the params before sending @@ -130,9 +130,9 @@ func (a *Client) GetTenants(params *GetTenantsParams, authInfo runtime.ClientAut } /* - GetTenantsObservable gets tenants in an observable array +GetTenantsObservable gets tenants in an observable array - Returns a Tenant retrieval in a observable array +Returns a Tenant retrieval in a observable array */ func (a *Client) GetTenantsObservable(params *GetTenantsObservableParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetTenantsObservableOK, error) { // TODO: Validate the params before sending @@ -171,9 +171,9 @@ func (a *Client) GetTenantsObservable(params *GetTenantsObservableParams, authIn } /* - PostTenants creates new tenants +PostTenants creates new tenants - Create Tenants in Taxnexus +Create Tenants in Taxnexus */ func (a *Client) PostTenants(params *PostTenantsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostTenantsOK, error) { // TODO: Validate the params before sending @@ -212,9 +212,9 @@ func (a *Client) PostTenants(params *PostTenantsParams, authInfo runtime.ClientA } /* - PutTenants updates tenants +PutTenants updates tenants - Update Tenant in Taxnexus +Update Tenant in Taxnexus */ func (a *Client) PutTenants(params *PutTenantsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PutTenantsOK, error) { // TODO: Validate the params before sending diff --git a/api/devops/devops_client/user/get_user_parameters.go b/api/devops/devops_client/user/get_user_parameters.go index 799d96f..538545b 100644 --- a/api/devops/devops_client/user/get_user_parameters.go +++ b/api/devops/devops_client/user/get_user_parameters.go @@ -56,10 +56,12 @@ func NewGetUserParamsWithHTTPClient(client *http.Client) *GetUserParams { } } -/* GetUserParams contains all the parameters to send to the API endpoint - for the get user operation. +/* +GetUserParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get user operation. + + Typically these are written to a http.Request. */ type GetUserParams struct { diff --git a/api/devops/devops_client/user/get_user_responses.go b/api/devops/devops_client/user/get_user_responses.go index 8b4b273..5f12076 100644 --- a/api/devops/devops_client/user/get_user_responses.go +++ b/api/devops/devops_client/user/get_user_responses.go @@ -73,7 +73,8 @@ func NewGetUserOK() *GetUserOK { return &GetUserOK{} } -/* GetUserOK describes a response with status code 200, with default header values. +/* +GetUserOK describes a response with status code 200, with default header values. Single User record response */ @@ -84,9 +85,44 @@ type GetUserOK struct { Payload *devops_models.User } +// IsSuccess returns true when this get user o k response has a 2xx status code +func (o *GetUserOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get user o k response has a 3xx status code +func (o *GetUserOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get user o k response has a 4xx status code +func (o *GetUserOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get user o k response has a 5xx status code +func (o *GetUserOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get user o k response a status code equal to that given +func (o *GetUserOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get user o k response +func (o *GetUserOK) Code() int { + return 200 +} + func (o *GetUserOK) Error() string { return fmt.Sprintf("[GET /users/{userIdPath}][%d] getUserOK %+v", 200, o.Payload) } + +func (o *GetUserOK) String() string { + return fmt.Sprintf("[GET /users/{userIdPath}][%d] getUserOK %+v", 200, o.Payload) +} + func (o *GetUserOK) GetPayload() *devops_models.User { return o.Payload } @@ -122,7 +158,8 @@ func NewGetUserUnauthorized() *GetUserUnauthorized { return &GetUserUnauthorized{} } -/* GetUserUnauthorized describes a response with status code 401, with default header values. +/* +GetUserUnauthorized describes a response with status code 401, with default header values. Access Unauthorized, invalid API-KEY was used */ @@ -133,9 +170,44 @@ type GetUserUnauthorized struct { Payload *devops_models.Error } +// IsSuccess returns true when this get user unauthorized response has a 2xx status code +func (o *GetUserUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get user unauthorized response has a 3xx status code +func (o *GetUserUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get user unauthorized response has a 4xx status code +func (o *GetUserUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this get user unauthorized response has a 5xx status code +func (o *GetUserUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this get user unauthorized response a status code equal to that given +func (o *GetUserUnauthorized) IsCode(code int) bool { + return code == 401 +} + +// Code gets the status code for the get user unauthorized response +func (o *GetUserUnauthorized) Code() int { + return 401 +} + func (o *GetUserUnauthorized) Error() string { return fmt.Sprintf("[GET /users/{userIdPath}][%d] getUserUnauthorized %+v", 401, o.Payload) } + +func (o *GetUserUnauthorized) String() string { + return fmt.Sprintf("[GET /users/{userIdPath}][%d] getUserUnauthorized %+v", 401, o.Payload) +} + func (o *GetUserUnauthorized) GetPayload() *devops_models.Error { return o.Payload } @@ -171,7 +243,8 @@ func NewGetUserForbidden() *GetUserForbidden { return &GetUserForbidden{} } -/* GetUserForbidden describes a response with status code 403, with default header values. +/* +GetUserForbidden describes a response with status code 403, with default header values. Access forbidden, account lacks access */ @@ -181,9 +254,44 @@ type GetUserForbidden struct { Payload *devops_models.Error } +// IsSuccess returns true when this get user forbidden response has a 2xx status code +func (o *GetUserForbidden) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get user forbidden response has a 3xx status code +func (o *GetUserForbidden) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get user forbidden response has a 4xx status code +func (o *GetUserForbidden) IsClientError() bool { + return true +} + +// IsServerError returns true when this get user forbidden response has a 5xx status code +func (o *GetUserForbidden) IsServerError() bool { + return false +} + +// IsCode returns true when this get user forbidden response a status code equal to that given +func (o *GetUserForbidden) IsCode(code int) bool { + return code == 403 +} + +// Code gets the status code for the get user forbidden response +func (o *GetUserForbidden) Code() int { + return 403 +} + func (o *GetUserForbidden) Error() string { return fmt.Sprintf("[GET /users/{userIdPath}][%d] getUserForbidden %+v", 403, o.Payload) } + +func (o *GetUserForbidden) String() string { + return fmt.Sprintf("[GET /users/{userIdPath}][%d] getUserForbidden %+v", 403, o.Payload) +} + func (o *GetUserForbidden) GetPayload() *devops_models.Error { return o.Payload } @@ -212,7 +320,8 @@ func NewGetUserNotFound() *GetUserNotFound { return &GetUserNotFound{} } -/* GetUserNotFound describes a response with status code 404, with default header values. +/* +GetUserNotFound describes a response with status code 404, with default header values. Resource was not found */ @@ -222,9 +331,44 @@ type GetUserNotFound struct { Payload *devops_models.Error } +// IsSuccess returns true when this get user not found response has a 2xx status code +func (o *GetUserNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get user not found response has a 3xx status code +func (o *GetUserNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get user not found response has a 4xx status code +func (o *GetUserNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this get user not found response has a 5xx status code +func (o *GetUserNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this get user not found response a status code equal to that given +func (o *GetUserNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the get user not found response +func (o *GetUserNotFound) Code() int { + return 404 +} + func (o *GetUserNotFound) Error() string { return fmt.Sprintf("[GET /users/{userIdPath}][%d] getUserNotFound %+v", 404, o.Payload) } + +func (o *GetUserNotFound) String() string { + return fmt.Sprintf("[GET /users/{userIdPath}][%d] getUserNotFound %+v", 404, o.Payload) +} + func (o *GetUserNotFound) GetPayload() *devops_models.Error { return o.Payload } @@ -253,7 +397,8 @@ func NewGetUserUnprocessableEntity() *GetUserUnprocessableEntity { return &GetUserUnprocessableEntity{} } -/* GetUserUnprocessableEntity describes a response with status code 422, with default header values. +/* +GetUserUnprocessableEntity describes a response with status code 422, with default header values. Unprocessable Entity, likely a bad parameter */ @@ -264,9 +409,44 @@ type GetUserUnprocessableEntity struct { Payload *devops_models.Error } +// IsSuccess returns true when this get user unprocessable entity response has a 2xx status code +func (o *GetUserUnprocessableEntity) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get user unprocessable entity response has a 3xx status code +func (o *GetUserUnprocessableEntity) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get user unprocessable entity response has a 4xx status code +func (o *GetUserUnprocessableEntity) IsClientError() bool { + return true +} + +// IsServerError returns true when this get user unprocessable entity response has a 5xx status code +func (o *GetUserUnprocessableEntity) IsServerError() bool { + return false +} + +// IsCode returns true when this get user unprocessable entity response a status code equal to that given +func (o *GetUserUnprocessableEntity) IsCode(code int) bool { + return code == 422 +} + +// Code gets the status code for the get user unprocessable entity response +func (o *GetUserUnprocessableEntity) Code() int { + return 422 +} + func (o *GetUserUnprocessableEntity) Error() string { return fmt.Sprintf("[GET /users/{userIdPath}][%d] getUserUnprocessableEntity %+v", 422, o.Payload) } + +func (o *GetUserUnprocessableEntity) String() string { + return fmt.Sprintf("[GET /users/{userIdPath}][%d] getUserUnprocessableEntity %+v", 422, o.Payload) +} + func (o *GetUserUnprocessableEntity) GetPayload() *devops_models.Error { return o.Payload } @@ -302,7 +482,8 @@ func NewGetUserInternalServerError() *GetUserInternalServerError { return &GetUserInternalServerError{} } -/* GetUserInternalServerError describes a response with status code 500, with default header values. +/* +GetUserInternalServerError describes a response with status code 500, with default header values. Server Internal Error */ @@ -312,9 +493,44 @@ type GetUserInternalServerError struct { Payload *devops_models.Error } +// IsSuccess returns true when this get user internal server error response has a 2xx status code +func (o *GetUserInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get user internal server error response has a 3xx status code +func (o *GetUserInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get user internal server error response has a 4xx status code +func (o *GetUserInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this get user internal server error response has a 5xx status code +func (o *GetUserInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this get user internal server error response a status code equal to that given +func (o *GetUserInternalServerError) IsCode(code int) bool { + return code == 500 +} + +// Code gets the status code for the get user internal server error response +func (o *GetUserInternalServerError) Code() int { + return 500 +} + func (o *GetUserInternalServerError) Error() string { return fmt.Sprintf("[GET /users/{userIdPath}][%d] getUserInternalServerError %+v", 500, o.Payload) } + +func (o *GetUserInternalServerError) String() string { + return fmt.Sprintf("[GET /users/{userIdPath}][%d] getUserInternalServerError %+v", 500, o.Payload) +} + func (o *GetUserInternalServerError) GetPayload() *devops_models.Error { return o.Payload } diff --git a/api/devops/devops_client/user/get_users_observable_parameters.go b/api/devops/devops_client/user/get_users_observable_parameters.go index 1dc18a4..e891386 100644 --- a/api/devops/devops_client/user/get_users_observable_parameters.go +++ b/api/devops/devops_client/user/get_users_observable_parameters.go @@ -56,10 +56,12 @@ func NewGetUsersObservableParamsWithHTTPClient(client *http.Client) *GetUsersObs } } -/* GetUsersObservableParams contains all the parameters to send to the API endpoint - for the get users observable operation. +/* +GetUsersObservableParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get users observable operation. + + Typically these are written to a http.Request. */ type GetUsersObservableParams struct { timeout time.Duration diff --git a/api/devops/devops_client/user/get_users_observable_responses.go b/api/devops/devops_client/user/get_users_observable_responses.go index d89a76f..9ebca7d 100644 --- a/api/devops/devops_client/user/get_users_observable_responses.go +++ b/api/devops/devops_client/user/get_users_observable_responses.go @@ -73,7 +73,8 @@ func NewGetUsersObservableOK() *GetUsersObservableOK { return &GetUsersObservableOK{} } -/* GetUsersObservableOK describes a response with status code 200, with default header values. +/* +GetUsersObservableOK describes a response with status code 200, with default header values. Simple User record response */ @@ -84,9 +85,44 @@ type GetUsersObservableOK struct { Payload []*devops_models.User } +// IsSuccess returns true when this get users observable o k response has a 2xx status code +func (o *GetUsersObservableOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get users observable o k response has a 3xx status code +func (o *GetUsersObservableOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get users observable o k response has a 4xx status code +func (o *GetUsersObservableOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get users observable o k response has a 5xx status code +func (o *GetUsersObservableOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get users observable o k response a status code equal to that given +func (o *GetUsersObservableOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get users observable o k response +func (o *GetUsersObservableOK) Code() int { + return 200 +} + func (o *GetUsersObservableOK) Error() string { return fmt.Sprintf("[GET /users/observable][%d] getUsersObservableOK %+v", 200, o.Payload) } + +func (o *GetUsersObservableOK) String() string { + return fmt.Sprintf("[GET /users/observable][%d] getUsersObservableOK %+v", 200, o.Payload) +} + func (o *GetUsersObservableOK) GetPayload() []*devops_models.User { return o.Payload } @@ -120,7 +156,8 @@ func NewGetUsersObservableUnauthorized() *GetUsersObservableUnauthorized { return &GetUsersObservableUnauthorized{} } -/* GetUsersObservableUnauthorized describes a response with status code 401, with default header values. +/* +GetUsersObservableUnauthorized describes a response with status code 401, with default header values. Access Unauthorized, invalid API-KEY was used */ @@ -131,9 +168,44 @@ type GetUsersObservableUnauthorized struct { Payload *devops_models.Error } +// IsSuccess returns true when this get users observable unauthorized response has a 2xx status code +func (o *GetUsersObservableUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get users observable unauthorized response has a 3xx status code +func (o *GetUsersObservableUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get users observable unauthorized response has a 4xx status code +func (o *GetUsersObservableUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this get users observable unauthorized response has a 5xx status code +func (o *GetUsersObservableUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this get users observable unauthorized response a status code equal to that given +func (o *GetUsersObservableUnauthorized) IsCode(code int) bool { + return code == 401 +} + +// Code gets the status code for the get users observable unauthorized response +func (o *GetUsersObservableUnauthorized) Code() int { + return 401 +} + func (o *GetUsersObservableUnauthorized) Error() string { return fmt.Sprintf("[GET /users/observable][%d] getUsersObservableUnauthorized %+v", 401, o.Payload) } + +func (o *GetUsersObservableUnauthorized) String() string { + return fmt.Sprintf("[GET /users/observable][%d] getUsersObservableUnauthorized %+v", 401, o.Payload) +} + func (o *GetUsersObservableUnauthorized) GetPayload() *devops_models.Error { return o.Payload } @@ -169,7 +241,8 @@ func NewGetUsersObservableForbidden() *GetUsersObservableForbidden { return &GetUsersObservableForbidden{} } -/* GetUsersObservableForbidden describes a response with status code 403, with default header values. +/* +GetUsersObservableForbidden describes a response with status code 403, with default header values. Access forbidden, account lacks access */ @@ -179,9 +252,44 @@ type GetUsersObservableForbidden struct { Payload *devops_models.Error } +// IsSuccess returns true when this get users observable forbidden response has a 2xx status code +func (o *GetUsersObservableForbidden) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get users observable forbidden response has a 3xx status code +func (o *GetUsersObservableForbidden) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get users observable forbidden response has a 4xx status code +func (o *GetUsersObservableForbidden) IsClientError() bool { + return true +} + +// IsServerError returns true when this get users observable forbidden response has a 5xx status code +func (o *GetUsersObservableForbidden) IsServerError() bool { + return false +} + +// IsCode returns true when this get users observable forbidden response a status code equal to that given +func (o *GetUsersObservableForbidden) IsCode(code int) bool { + return code == 403 +} + +// Code gets the status code for the get users observable forbidden response +func (o *GetUsersObservableForbidden) Code() int { + return 403 +} + func (o *GetUsersObservableForbidden) Error() string { return fmt.Sprintf("[GET /users/observable][%d] getUsersObservableForbidden %+v", 403, o.Payload) } + +func (o *GetUsersObservableForbidden) String() string { + return fmt.Sprintf("[GET /users/observable][%d] getUsersObservableForbidden %+v", 403, o.Payload) +} + func (o *GetUsersObservableForbidden) GetPayload() *devops_models.Error { return o.Payload } @@ -210,7 +318,8 @@ func NewGetUsersObservableNotFound() *GetUsersObservableNotFound { return &GetUsersObservableNotFound{} } -/* GetUsersObservableNotFound describes a response with status code 404, with default header values. +/* +GetUsersObservableNotFound describes a response with status code 404, with default header values. Resource was not found */ @@ -220,9 +329,44 @@ type GetUsersObservableNotFound struct { Payload *devops_models.Error } +// IsSuccess returns true when this get users observable not found response has a 2xx status code +func (o *GetUsersObservableNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get users observable not found response has a 3xx status code +func (o *GetUsersObservableNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get users observable not found response has a 4xx status code +func (o *GetUsersObservableNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this get users observable not found response has a 5xx status code +func (o *GetUsersObservableNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this get users observable not found response a status code equal to that given +func (o *GetUsersObservableNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the get users observable not found response +func (o *GetUsersObservableNotFound) Code() int { + return 404 +} + func (o *GetUsersObservableNotFound) Error() string { return fmt.Sprintf("[GET /users/observable][%d] getUsersObservableNotFound %+v", 404, o.Payload) } + +func (o *GetUsersObservableNotFound) String() string { + return fmt.Sprintf("[GET /users/observable][%d] getUsersObservableNotFound %+v", 404, o.Payload) +} + func (o *GetUsersObservableNotFound) GetPayload() *devops_models.Error { return o.Payload } @@ -251,7 +395,8 @@ func NewGetUsersObservableUnprocessableEntity() *GetUsersObservableUnprocessable return &GetUsersObservableUnprocessableEntity{} } -/* GetUsersObservableUnprocessableEntity describes a response with status code 422, with default header values. +/* +GetUsersObservableUnprocessableEntity describes a response with status code 422, with default header values. Unprocessable Entity, likely a bad parameter */ @@ -262,9 +407,44 @@ type GetUsersObservableUnprocessableEntity struct { Payload *devops_models.Error } +// IsSuccess returns true when this get users observable unprocessable entity response has a 2xx status code +func (o *GetUsersObservableUnprocessableEntity) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get users observable unprocessable entity response has a 3xx status code +func (o *GetUsersObservableUnprocessableEntity) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get users observable unprocessable entity response has a 4xx status code +func (o *GetUsersObservableUnprocessableEntity) IsClientError() bool { + return true +} + +// IsServerError returns true when this get users observable unprocessable entity response has a 5xx status code +func (o *GetUsersObservableUnprocessableEntity) IsServerError() bool { + return false +} + +// IsCode returns true when this get users observable unprocessable entity response a status code equal to that given +func (o *GetUsersObservableUnprocessableEntity) IsCode(code int) bool { + return code == 422 +} + +// Code gets the status code for the get users observable unprocessable entity response +func (o *GetUsersObservableUnprocessableEntity) Code() int { + return 422 +} + func (o *GetUsersObservableUnprocessableEntity) Error() string { return fmt.Sprintf("[GET /users/observable][%d] getUsersObservableUnprocessableEntity %+v", 422, o.Payload) } + +func (o *GetUsersObservableUnprocessableEntity) String() string { + return fmt.Sprintf("[GET /users/observable][%d] getUsersObservableUnprocessableEntity %+v", 422, o.Payload) +} + func (o *GetUsersObservableUnprocessableEntity) GetPayload() *devops_models.Error { return o.Payload } @@ -300,7 +480,8 @@ func NewGetUsersObservableInternalServerError() *GetUsersObservableInternalServe return &GetUsersObservableInternalServerError{} } -/* GetUsersObservableInternalServerError describes a response with status code 500, with default header values. +/* +GetUsersObservableInternalServerError describes a response with status code 500, with default header values. Server Internal Error */ @@ -310,9 +491,44 @@ type GetUsersObservableInternalServerError struct { Payload *devops_models.Error } +// IsSuccess returns true when this get users observable internal server error response has a 2xx status code +func (o *GetUsersObservableInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get users observable internal server error response has a 3xx status code +func (o *GetUsersObservableInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get users observable internal server error response has a 4xx status code +func (o *GetUsersObservableInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this get users observable internal server error response has a 5xx status code +func (o *GetUsersObservableInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this get users observable internal server error response a status code equal to that given +func (o *GetUsersObservableInternalServerError) IsCode(code int) bool { + return code == 500 +} + +// Code gets the status code for the get users observable internal server error response +func (o *GetUsersObservableInternalServerError) Code() int { + return 500 +} + func (o *GetUsersObservableInternalServerError) Error() string { return fmt.Sprintf("[GET /users/observable][%d] getUsersObservableInternalServerError %+v", 500, o.Payload) } + +func (o *GetUsersObservableInternalServerError) String() string { + return fmt.Sprintf("[GET /users/observable][%d] getUsersObservableInternalServerError %+v", 500, o.Payload) +} + func (o *GetUsersObservableInternalServerError) GetPayload() *devops_models.Error { return o.Payload } diff --git a/api/devops/devops_client/user/get_users_parameters.go b/api/devops/devops_client/user/get_users_parameters.go index db19d3f..3557138 100644 --- a/api/devops/devops_client/user/get_users_parameters.go +++ b/api/devops/devops_client/user/get_users_parameters.go @@ -57,10 +57,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 { diff --git a/api/devops/devops_client/user/get_users_responses.go b/api/devops/devops_client/user/get_users_responses.go index 530a80e..1ce4b3e 100644 --- a/api/devops/devops_client/user/get_users_responses.go +++ b/api/devops/devops_client/user/get_users_responses.go @@ -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 */ @@ -84,9 +85,44 @@ type GetUsersOK struct { Payload *devops_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() *devops_models.UserResponse { return o.Payload } @@ -122,7 +158,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 */ @@ -133,9 +170,44 @@ type GetUsersUnauthorized struct { Payload *devops_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() *devops_models.Error { return o.Payload } @@ -171,7 +243,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 */ @@ -181,9 +254,44 @@ type GetUsersForbidden struct { Payload *devops_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() *devops_models.Error { return o.Payload } @@ -212,7 +320,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 */ @@ -222,9 +331,44 @@ type GetUsersNotFound struct { Payload *devops_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() *devops_models.Error { return o.Payload } @@ -253,7 +397,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 */ @@ -264,9 +409,44 @@ type GetUsersUnprocessableEntity struct { Payload *devops_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() *devops_models.Error { return o.Payload } @@ -302,7 +482,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 */ @@ -312,9 +493,44 @@ type GetUsersInternalServerError struct { Payload *devops_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() *devops_models.Error { return o.Payload } diff --git a/api/devops/devops_client/user/post_users_parameters.go b/api/devops/devops_client/user/post_users_parameters.go index b80400f..5b04c9d 100644 --- a/api/devops/devops_client/user/post_users_parameters.go +++ b/api/devops/devops_client/user/post_users_parameters.go @@ -58,10 +58,12 @@ func NewPostUsersParamsWithHTTPClient(client *http.Client) *PostUsersParams { } } -/* PostUsersParams contains all the parameters to send to the API endpoint - for the post users operation. +/* +PostUsersParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the post users operation. + + Typically these are written to a http.Request. */ type PostUsersParams struct { diff --git a/api/devops/devops_client/user/post_users_responses.go b/api/devops/devops_client/user/post_users_responses.go index da23a35..2cc1ef7 100644 --- a/api/devops/devops_client/user/post_users_responses.go +++ b/api/devops/devops_client/user/post_users_responses.go @@ -73,7 +73,8 @@ func NewPostUsersOK() *PostUsersOK { return &PostUsersOK{} } -/* PostUsersOK describes a response with status code 200, with default header values. +/* +PostUsersOK describes a response with status code 200, with default header values. Taxnexus Response with User objects */ @@ -84,9 +85,44 @@ type PostUsersOK struct { Payload *devops_models.UserResponse } +// IsSuccess returns true when this post users o k response has a 2xx status code +func (o *PostUsersOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this post users o k response has a 3xx status code +func (o *PostUsersOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this post users o k response has a 4xx status code +func (o *PostUsersOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this post users o k response has a 5xx status code +func (o *PostUsersOK) IsServerError() bool { + return false +} + +// IsCode returns true when this post users o k response a status code equal to that given +func (o *PostUsersOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the post users o k response +func (o *PostUsersOK) Code() int { + return 200 +} + func (o *PostUsersOK) Error() string { return fmt.Sprintf("[POST /users][%d] postUsersOK %+v", 200, o.Payload) } + +func (o *PostUsersOK) String() string { + return fmt.Sprintf("[POST /users][%d] postUsersOK %+v", 200, o.Payload) +} + func (o *PostUsersOK) GetPayload() *devops_models.UserResponse { return o.Payload } @@ -122,7 +158,8 @@ func NewPostUsersUnauthorized() *PostUsersUnauthorized { return &PostUsersUnauthorized{} } -/* PostUsersUnauthorized describes a response with status code 401, with default header values. +/* +PostUsersUnauthorized describes a response with status code 401, with default header values. Access Unauthorized, invalid API-KEY was used */ @@ -133,9 +170,44 @@ type PostUsersUnauthorized struct { Payload *devops_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 /users][%d] postUsersUnauthorized %+v", 401, o.Payload) } + +func (o *PostUsersUnauthorized) String() string { + return fmt.Sprintf("[POST /users][%d] postUsersUnauthorized %+v", 401, o.Payload) +} + func (o *PostUsersUnauthorized) GetPayload() *devops_models.Error { return o.Payload } @@ -171,7 +243,8 @@ func NewPostUsersForbidden() *PostUsersForbidden { return &PostUsersForbidden{} } -/* PostUsersForbidden describes a response with status code 403, with default header values. +/* +PostUsersForbidden describes a response with status code 403, with default header values. Access forbidden, account lacks access */ @@ -181,9 +254,44 @@ type PostUsersForbidden struct { Payload *devops_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 /users][%d] postUsersForbidden %+v", 403, o.Payload) } + +func (o *PostUsersForbidden) String() string { + return fmt.Sprintf("[POST /users][%d] postUsersForbidden %+v", 403, o.Payload) +} + func (o *PostUsersForbidden) GetPayload() *devops_models.Error { return o.Payload } @@ -212,7 +320,8 @@ func NewPostUsersNotFound() *PostUsersNotFound { return &PostUsersNotFound{} } -/* PostUsersNotFound describes a response with status code 404, with default header values. +/* +PostUsersNotFound describes a response with status code 404, with default header values. Resource was not found */ @@ -222,9 +331,44 @@ type PostUsersNotFound struct { Payload *devops_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 /users][%d] postUsersNotFound %+v", 404, o.Payload) } + +func (o *PostUsersNotFound) String() string { + return fmt.Sprintf("[POST /users][%d] postUsersNotFound %+v", 404, o.Payload) +} + func (o *PostUsersNotFound) GetPayload() *devops_models.Error { return o.Payload } @@ -253,7 +397,8 @@ func NewPostUsersUnprocessableEntity() *PostUsersUnprocessableEntity { return &PostUsersUnprocessableEntity{} } -/* PostUsersUnprocessableEntity describes a response with status code 422, with default header values. +/* +PostUsersUnprocessableEntity describes a response with status code 422, with default header values. Unprocessable Entity, likely a bad parameter */ @@ -264,9 +409,44 @@ type PostUsersUnprocessableEntity struct { Payload *devops_models.Error } +// IsSuccess returns true when this post users unprocessable entity response has a 2xx status code +func (o *PostUsersUnprocessableEntity) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this post users unprocessable entity response has a 3xx status code +func (o *PostUsersUnprocessableEntity) IsRedirect() bool { + return false +} + +// IsClientError returns true when this post users unprocessable entity response has a 4xx status code +func (o *PostUsersUnprocessableEntity) IsClientError() bool { + return true +} + +// IsServerError returns true when this post users unprocessable entity response has a 5xx status code +func (o *PostUsersUnprocessableEntity) IsServerError() bool { + return false +} + +// IsCode returns true when this post users unprocessable entity response a status code equal to that given +func (o *PostUsersUnprocessableEntity) IsCode(code int) bool { + return code == 422 +} + +// Code gets the status code for the post users unprocessable entity response +func (o *PostUsersUnprocessableEntity) Code() int { + return 422 +} + func (o *PostUsersUnprocessableEntity) Error() string { return fmt.Sprintf("[POST /users][%d] postUsersUnprocessableEntity %+v", 422, o.Payload) } + +func (o *PostUsersUnprocessableEntity) String() string { + return fmt.Sprintf("[POST /users][%d] postUsersUnprocessableEntity %+v", 422, o.Payload) +} + func (o *PostUsersUnprocessableEntity) GetPayload() *devops_models.Error { return o.Payload } @@ -302,7 +482,8 @@ func NewPostUsersInternalServerError() *PostUsersInternalServerError { return &PostUsersInternalServerError{} } -/* PostUsersInternalServerError describes a response with status code 500, with default header values. +/* +PostUsersInternalServerError describes a response with status code 500, with default header values. Server Internal Error */ @@ -312,9 +493,44 @@ type PostUsersInternalServerError struct { Payload *devops_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 /users][%d] postUsersInternalServerError %+v", 500, o.Payload) } + +func (o *PostUsersInternalServerError) String() string { + return fmt.Sprintf("[POST /users][%d] postUsersInternalServerError %+v", 500, o.Payload) +} + func (o *PostUsersInternalServerError) GetPayload() *devops_models.Error { return o.Payload } diff --git a/api/devops/devops_client/user/put_users_parameters.go b/api/devops/devops_client/user/put_users_parameters.go index a128e8b..1078778 100644 --- a/api/devops/devops_client/user/put_users_parameters.go +++ b/api/devops/devops_client/user/put_users_parameters.go @@ -58,10 +58,12 @@ func NewPutUsersParamsWithHTTPClient(client *http.Client) *PutUsersParams { } } -/* PutUsersParams contains all the parameters to send to the API endpoint - for the put users operation. +/* +PutUsersParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the put users operation. + + Typically these are written to a http.Request. */ type PutUsersParams struct { diff --git a/api/devops/devops_client/user/put_users_responses.go b/api/devops/devops_client/user/put_users_responses.go index 66ee1cc..f8a99c9 100644 --- a/api/devops/devops_client/user/put_users_responses.go +++ b/api/devops/devops_client/user/put_users_responses.go @@ -73,7 +73,8 @@ func NewPutUsersOK() *PutUsersOK { return &PutUsersOK{} } -/* PutUsersOK describes a response with status code 200, with default header values. +/* +PutUsersOK describes a response with status code 200, with default header values. Taxnexus Response with User objects */ @@ -84,9 +85,44 @@ type PutUsersOK struct { Payload *devops_models.UserResponse } +// IsSuccess returns true when this put users o k response has a 2xx status code +func (o *PutUsersOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this put users o k response has a 3xx status code +func (o *PutUsersOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this put users o k response has a 4xx status code +func (o *PutUsersOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this put users o k response has a 5xx status code +func (o *PutUsersOK) IsServerError() bool { + return false +} + +// IsCode returns true when this put users o k response a status code equal to that given +func (o *PutUsersOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the put users o k response +func (o *PutUsersOK) Code() int { + return 200 +} + func (o *PutUsersOK) Error() string { return fmt.Sprintf("[PUT /users][%d] putUsersOK %+v", 200, o.Payload) } + +func (o *PutUsersOK) String() string { + return fmt.Sprintf("[PUT /users][%d] putUsersOK %+v", 200, o.Payload) +} + func (o *PutUsersOK) GetPayload() *devops_models.UserResponse { return o.Payload } @@ -122,7 +158,8 @@ func NewPutUsersUnauthorized() *PutUsersUnauthorized { return &PutUsersUnauthorized{} } -/* PutUsersUnauthorized describes a response with status code 401, with default header values. +/* +PutUsersUnauthorized describes a response with status code 401, with default header values. Access Unauthorized, invalid API-KEY was used */ @@ -133,9 +170,44 @@ type PutUsersUnauthorized struct { Payload *devops_models.Error } +// IsSuccess returns true when this put users unauthorized response has a 2xx status code +func (o *PutUsersUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this put users unauthorized response has a 3xx status code +func (o *PutUsersUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this put users unauthorized response has a 4xx status code +func (o *PutUsersUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this put users unauthorized response has a 5xx status code +func (o *PutUsersUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this put users unauthorized response a status code equal to that given +func (o *PutUsersUnauthorized) IsCode(code int) bool { + return code == 401 +} + +// Code gets the status code for the put users unauthorized response +func (o *PutUsersUnauthorized) Code() int { + return 401 +} + func (o *PutUsersUnauthorized) Error() string { return fmt.Sprintf("[PUT /users][%d] putUsersUnauthorized %+v", 401, o.Payload) } + +func (o *PutUsersUnauthorized) String() string { + return fmt.Sprintf("[PUT /users][%d] putUsersUnauthorized %+v", 401, o.Payload) +} + func (o *PutUsersUnauthorized) GetPayload() *devops_models.Error { return o.Payload } @@ -171,7 +243,8 @@ func NewPutUsersForbidden() *PutUsersForbidden { return &PutUsersForbidden{} } -/* PutUsersForbidden describes a response with status code 403, with default header values. +/* +PutUsersForbidden describes a response with status code 403, with default header values. Access forbidden, account lacks access */ @@ -181,9 +254,44 @@ type PutUsersForbidden struct { Payload *devops_models.Error } +// IsSuccess returns true when this put users forbidden response has a 2xx status code +func (o *PutUsersForbidden) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this put users forbidden response has a 3xx status code +func (o *PutUsersForbidden) IsRedirect() bool { + return false +} + +// IsClientError returns true when this put users forbidden response has a 4xx status code +func (o *PutUsersForbidden) IsClientError() bool { + return true +} + +// IsServerError returns true when this put users forbidden response has a 5xx status code +func (o *PutUsersForbidden) IsServerError() bool { + return false +} + +// IsCode returns true when this put users forbidden response a status code equal to that given +func (o *PutUsersForbidden) IsCode(code int) bool { + return code == 403 +} + +// Code gets the status code for the put users forbidden response +func (o *PutUsersForbidden) Code() int { + return 403 +} + func (o *PutUsersForbidden) Error() string { return fmt.Sprintf("[PUT /users][%d] putUsersForbidden %+v", 403, o.Payload) } + +func (o *PutUsersForbidden) String() string { + return fmt.Sprintf("[PUT /users][%d] putUsersForbidden %+v", 403, o.Payload) +} + func (o *PutUsersForbidden) GetPayload() *devops_models.Error { return o.Payload } @@ -212,7 +320,8 @@ func NewPutUsersNotFound() *PutUsersNotFound { return &PutUsersNotFound{} } -/* PutUsersNotFound describes a response with status code 404, with default header values. +/* +PutUsersNotFound describes a response with status code 404, with default header values. Resource was not found */ @@ -222,9 +331,44 @@ type PutUsersNotFound struct { Payload *devops_models.Error } +// IsSuccess returns true when this put users not found response has a 2xx status code +func (o *PutUsersNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this put users not found response has a 3xx status code +func (o *PutUsersNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this put users not found response has a 4xx status code +func (o *PutUsersNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this put users not found response has a 5xx status code +func (o *PutUsersNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this put users not found response a status code equal to that given +func (o *PutUsersNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the put users not found response +func (o *PutUsersNotFound) Code() int { + return 404 +} + func (o *PutUsersNotFound) Error() string { return fmt.Sprintf("[PUT /users][%d] putUsersNotFound %+v", 404, o.Payload) } + +func (o *PutUsersNotFound) String() string { + return fmt.Sprintf("[PUT /users][%d] putUsersNotFound %+v", 404, o.Payload) +} + func (o *PutUsersNotFound) GetPayload() *devops_models.Error { return o.Payload } @@ -253,7 +397,8 @@ func NewPutUsersUnprocessableEntity() *PutUsersUnprocessableEntity { return &PutUsersUnprocessableEntity{} } -/* PutUsersUnprocessableEntity describes a response with status code 422, with default header values. +/* +PutUsersUnprocessableEntity describes a response with status code 422, with default header values. Unprocessable Entity, likely a bad parameter */ @@ -264,9 +409,44 @@ type PutUsersUnprocessableEntity struct { Payload *devops_models.Error } +// IsSuccess returns true when this put users unprocessable entity response has a 2xx status code +func (o *PutUsersUnprocessableEntity) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this put users unprocessable entity response has a 3xx status code +func (o *PutUsersUnprocessableEntity) IsRedirect() bool { + return false +} + +// IsClientError returns true when this put users unprocessable entity response has a 4xx status code +func (o *PutUsersUnprocessableEntity) IsClientError() bool { + return true +} + +// IsServerError returns true when this put users unprocessable entity response has a 5xx status code +func (o *PutUsersUnprocessableEntity) IsServerError() bool { + return false +} + +// IsCode returns true when this put users unprocessable entity response a status code equal to that given +func (o *PutUsersUnprocessableEntity) IsCode(code int) bool { + return code == 422 +} + +// Code gets the status code for the put users unprocessable entity response +func (o *PutUsersUnprocessableEntity) Code() int { + return 422 +} + func (o *PutUsersUnprocessableEntity) Error() string { return fmt.Sprintf("[PUT /users][%d] putUsersUnprocessableEntity %+v", 422, o.Payload) } + +func (o *PutUsersUnprocessableEntity) String() string { + return fmt.Sprintf("[PUT /users][%d] putUsersUnprocessableEntity %+v", 422, o.Payload) +} + func (o *PutUsersUnprocessableEntity) GetPayload() *devops_models.Error { return o.Payload } @@ -302,7 +482,8 @@ func NewPutUsersInternalServerError() *PutUsersInternalServerError { return &PutUsersInternalServerError{} } -/* PutUsersInternalServerError describes a response with status code 500, with default header values. +/* +PutUsersInternalServerError describes a response with status code 500, with default header values. Server Internal Error */ @@ -312,9 +493,44 @@ type PutUsersInternalServerError struct { Payload *devops_models.Error } +// IsSuccess returns true when this put users internal server error response has a 2xx status code +func (o *PutUsersInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this put users internal server error response has a 3xx status code +func (o *PutUsersInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this put users internal server error response has a 4xx status code +func (o *PutUsersInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this put users internal server error response has a 5xx status code +func (o *PutUsersInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this put users internal server error response a status code equal to that given +func (o *PutUsersInternalServerError) IsCode(code int) bool { + return code == 500 +} + +// Code gets the status code for the put users internal server error response +func (o *PutUsersInternalServerError) Code() int { + return 500 +} + func (o *PutUsersInternalServerError) Error() string { return fmt.Sprintf("[PUT /users][%d] putUsersInternalServerError %+v", 500, o.Payload) } + +func (o *PutUsersInternalServerError) String() string { + return fmt.Sprintf("[PUT /users][%d] putUsersInternalServerError %+v", 500, o.Payload) +} + func (o *PutUsersInternalServerError) GetPayload() *devops_models.Error { return o.Payload } diff --git a/api/devops/devops_client/user/user_client.go b/api/devops/devops_client/user/user_client.go index 777fe95..76b14c8 100644 --- a/api/devops/devops_client/user/user_client.go +++ b/api/devops/devops_client/user/user_client.go @@ -48,9 +48,9 @@ type ClientService interface { } /* - GetUser gets a single user object +GetUser gets a single user object - Return a single User object from datastore as a Singleton +Return a single User object from datastore as a Singleton */ func (a *Client) GetUser(params *GetUserParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetUserOK, error) { // TODO: Validate the params before sending @@ -89,9 +89,9 @@ func (a *Client) GetUser(params *GetUserParams, authInfo runtime.ClientAuthInfoW } /* - GetUsers gets a list users +GetUsers gets a list users - Return a list of User records from the datastore +Return a list of User records from the datastore */ func (a *Client) GetUsers(params *GetUsersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetUsersOK, error) { // TODO: Validate the params before sending @@ -130,9 +130,9 @@ func (a *Client) GetUsers(params *GetUsersParams, authInfo runtime.ClientAuthInf } /* - GetUsersObservable gets users in an observable array +GetUsersObservable gets users in an observable array - Returns a User retrieval in a observable array +Returns a User retrieval in a observable array */ func (a *Client) GetUsersObservable(params *GetUsersObservableParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetUsersObservableOK, error) { // TODO: Validate the params before sending @@ -171,9 +171,9 @@ func (a *Client) GetUsersObservable(params *GetUsersObservableParams, authInfo r } /* - PostUsers creates new users +PostUsers creates new users - Create new Users +Create new Users */ func (a *Client) PostUsers(params *PostUsersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostUsersOK, error) { // TODO: Validate the params before sending @@ -212,9 +212,9 @@ func (a *Client) PostUsers(params *PostUsersParams, authInfo runtime.ClientAuthI } /* - PutUsers updates existing users +PutUsers updates existing users - Update existing users +Update existing users */ func (a *Client) PutUsers(params *PutUsersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PutUsersOK, error) { // TODO: Validate the params before sending diff --git a/api/research/research_client/cors/cors_client.go b/api/research/research_client/cors/cors_client.go index 42d9bd9..3f0c44c 100644 --- a/api/research/research_client/cors/cors_client.go +++ b/api/research/research_client/cors/cors_client.go @@ -46,7 +46,7 @@ type ClientService interface { } /* - IndustryObservableOptions CORS support +IndustryObservableOptions CORS support */ func (a *Client) IndustryObservableOptions(params *IndustryObservableOptionsParams, opts ...ClientOption) (*IndustryObservableOptionsOK, error) { // TODO: Validate the params before sending @@ -84,7 +84,7 @@ func (a *Client) IndustryObservableOptions(params *IndustryObservableOptionsPara } /* - IndustryOptions CORS support +IndustryOptions CORS support */ func (a *Client) IndustryOptions(params *IndustryOptionsParams, opts ...ClientOption) (*IndustryOptionsOK, error) { // TODO: Validate the params before sending @@ -122,7 +122,7 @@ func (a *Client) IndustryOptions(params *IndustryOptionsParams, opts ...ClientOp } /* - TopicObservableOptions CORS support +TopicObservableOptions CORS support */ func (a *Client) TopicObservableOptions(params *TopicObservableOptionsParams, opts ...ClientOption) (*TopicObservableOptionsOK, error) { // TODO: Validate the params before sending @@ -160,7 +160,7 @@ func (a *Client) TopicObservableOptions(params *TopicObservableOptionsParams, op } /* - TopicOptions CORS support +TopicOptions CORS support */ func (a *Client) TopicOptions(params *TopicOptionsParams, opts ...ClientOption) (*TopicOptionsOK, error) { // TODO: Validate the params before sending diff --git a/api/research/research_client/cors/industry_observable_options_parameters.go b/api/research/research_client/cors/industry_observable_options_parameters.go index 969d73b..dfb7b61 100644 --- a/api/research/research_client/cors/industry_observable_options_parameters.go +++ b/api/research/research_client/cors/industry_observable_options_parameters.go @@ -56,10 +56,12 @@ func NewIndustryObservableOptionsParamsWithHTTPClient(client *http.Client) *Indu } } -/* IndustryObservableOptionsParams contains all the parameters to send to the API endpoint - for the industry observable options operation. +/* +IndustryObservableOptionsParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the industry observable options operation. + + Typically these are written to a http.Request. */ type IndustryObservableOptionsParams struct { timeout time.Duration diff --git a/api/research/research_client/cors/industry_observable_options_responses.go b/api/research/research_client/cors/industry_observable_options_responses.go index 0bb46d3..f8dd5cc 100644 --- a/api/research/research_client/cors/industry_observable_options_responses.go +++ b/api/research/research_client/cors/industry_observable_options_responses.go @@ -40,7 +40,8 @@ func NewIndustryObservableOptionsOK() *IndustryObservableOptionsOK { return &IndustryObservableOptionsOK{} } -/* IndustryObservableOptionsOK describes a response with status code 200, with default header values. +/* +IndustryObservableOptionsOK describes a response with status code 200, with default header values. CORS OPTIONS response */ @@ -54,10 +55,44 @@ type IndustryObservableOptionsOK struct { CacheControl string } +// IsSuccess returns true when this industry observable options o k response has a 2xx status code +func (o *IndustryObservableOptionsOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this industry observable options o k response has a 3xx status code +func (o *IndustryObservableOptionsOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this industry observable options o k response has a 4xx status code +func (o *IndustryObservableOptionsOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this industry observable options o k response has a 5xx status code +func (o *IndustryObservableOptionsOK) IsServerError() bool { + return false +} + +// IsCode returns true when this industry observable options o k response a status code equal to that given +func (o *IndustryObservableOptionsOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the industry observable options o k response +func (o *IndustryObservableOptionsOK) Code() int { + return 200 +} + func (o *IndustryObservableOptionsOK) Error() string { return fmt.Sprintf("[OPTIONS /industries/observable][%d] industryObservableOptionsOK ", 200) } +func (o *IndustryObservableOptionsOK) String() string { + return fmt.Sprintf("[OPTIONS /industries/observable][%d] industryObservableOptionsOK ", 200) +} + func (o *IndustryObservableOptionsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { // hydrates response header Access-Control-Allow-Credentials diff --git a/api/research/research_client/cors/industry_options_parameters.go b/api/research/research_client/cors/industry_options_parameters.go index 81669fd..0fc5c90 100644 --- a/api/research/research_client/cors/industry_options_parameters.go +++ b/api/research/research_client/cors/industry_options_parameters.go @@ -56,10 +56,12 @@ func NewIndustryOptionsParamsWithHTTPClient(client *http.Client) *IndustryOption } } -/* IndustryOptionsParams contains all the parameters to send to the API endpoint - for the industry options operation. +/* +IndustryOptionsParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the industry options operation. + + Typically these are written to a http.Request. */ type IndustryOptionsParams struct { timeout time.Duration diff --git a/api/research/research_client/cors/industry_options_responses.go b/api/research/research_client/cors/industry_options_responses.go index 4f7de0f..c19b8d0 100644 --- a/api/research/research_client/cors/industry_options_responses.go +++ b/api/research/research_client/cors/industry_options_responses.go @@ -40,7 +40,8 @@ func NewIndustryOptionsOK() *IndustryOptionsOK { return &IndustryOptionsOK{} } -/* IndustryOptionsOK describes a response with status code 200, with default header values. +/* +IndustryOptionsOK describes a response with status code 200, with default header values. CORS OPTIONS response */ @@ -54,10 +55,44 @@ type IndustryOptionsOK struct { CacheControl string } +// IsSuccess returns true when this industry options o k response has a 2xx status code +func (o *IndustryOptionsOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this industry options o k response has a 3xx status code +func (o *IndustryOptionsOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this industry options o k response has a 4xx status code +func (o *IndustryOptionsOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this industry options o k response has a 5xx status code +func (o *IndustryOptionsOK) IsServerError() bool { + return false +} + +// IsCode returns true when this industry options o k response a status code equal to that given +func (o *IndustryOptionsOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the industry options o k response +func (o *IndustryOptionsOK) Code() int { + return 200 +} + func (o *IndustryOptionsOK) Error() string { return fmt.Sprintf("[OPTIONS /industries][%d] industryOptionsOK ", 200) } +func (o *IndustryOptionsOK) String() string { + return fmt.Sprintf("[OPTIONS /industries][%d] industryOptionsOK ", 200) +} + func (o *IndustryOptionsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { // hydrates response header Access-Control-Allow-Credentials diff --git a/api/research/research_client/cors/topic_observable_options_parameters.go b/api/research/research_client/cors/topic_observable_options_parameters.go index b5f8375..5ebdc61 100644 --- a/api/research/research_client/cors/topic_observable_options_parameters.go +++ b/api/research/research_client/cors/topic_observable_options_parameters.go @@ -56,10 +56,12 @@ func NewTopicObservableOptionsParamsWithHTTPClient(client *http.Client) *TopicOb } } -/* TopicObservableOptionsParams contains all the parameters to send to the API endpoint - for the topic observable options operation. +/* +TopicObservableOptionsParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the topic observable options operation. + + Typically these are written to a http.Request. */ type TopicObservableOptionsParams struct { timeout time.Duration diff --git a/api/research/research_client/cors/topic_observable_options_responses.go b/api/research/research_client/cors/topic_observable_options_responses.go index ca3004d..b25c626 100644 --- a/api/research/research_client/cors/topic_observable_options_responses.go +++ b/api/research/research_client/cors/topic_observable_options_responses.go @@ -40,7 +40,8 @@ func NewTopicObservableOptionsOK() *TopicObservableOptionsOK { return &TopicObservableOptionsOK{} } -/* TopicObservableOptionsOK describes a response with status code 200, with default header values. +/* +TopicObservableOptionsOK describes a response with status code 200, with default header values. CORS OPTIONS response */ @@ -54,10 +55,44 @@ type TopicObservableOptionsOK struct { CacheControl string } +// IsSuccess returns true when this topic observable options o k response has a 2xx status code +func (o *TopicObservableOptionsOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this topic observable options o k response has a 3xx status code +func (o *TopicObservableOptionsOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this topic observable options o k response has a 4xx status code +func (o *TopicObservableOptionsOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this topic observable options o k response has a 5xx status code +func (o *TopicObservableOptionsOK) IsServerError() bool { + return false +} + +// IsCode returns true when this topic observable options o k response a status code equal to that given +func (o *TopicObservableOptionsOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the topic observable options o k response +func (o *TopicObservableOptionsOK) Code() int { + return 200 +} + func (o *TopicObservableOptionsOK) Error() string { return fmt.Sprintf("[OPTIONS /topics/observable][%d] topicObservableOptionsOK ", 200) } +func (o *TopicObservableOptionsOK) String() string { + return fmt.Sprintf("[OPTIONS /topics/observable][%d] topicObservableOptionsOK ", 200) +} + func (o *TopicObservableOptionsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { // hydrates response header Access-Control-Allow-Credentials diff --git a/api/research/research_client/cors/topic_options_parameters.go b/api/research/research_client/cors/topic_options_parameters.go index b1f18fb..8b43c5d 100644 --- a/api/research/research_client/cors/topic_options_parameters.go +++ b/api/research/research_client/cors/topic_options_parameters.go @@ -56,10 +56,12 @@ func NewTopicOptionsParamsWithHTTPClient(client *http.Client) *TopicOptionsParam } } -/* TopicOptionsParams contains all the parameters to send to the API endpoint - for the topic options operation. +/* +TopicOptionsParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the topic options operation. + + Typically these are written to a http.Request. */ type TopicOptionsParams struct { timeout time.Duration diff --git a/api/research/research_client/cors/topic_options_responses.go b/api/research/research_client/cors/topic_options_responses.go index d3f278b..e68e9c0 100644 --- a/api/research/research_client/cors/topic_options_responses.go +++ b/api/research/research_client/cors/topic_options_responses.go @@ -40,7 +40,8 @@ func NewTopicOptionsOK() *TopicOptionsOK { return &TopicOptionsOK{} } -/* TopicOptionsOK describes a response with status code 200, with default header values. +/* +TopicOptionsOK describes a response with status code 200, with default header values. CORS OPTIONS response */ @@ -54,10 +55,44 @@ type TopicOptionsOK struct { CacheControl string } +// IsSuccess returns true when this topic options o k response has a 2xx status code +func (o *TopicOptionsOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this topic options o k response has a 3xx status code +func (o *TopicOptionsOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this topic options o k response has a 4xx status code +func (o *TopicOptionsOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this topic options o k response has a 5xx status code +func (o *TopicOptionsOK) IsServerError() bool { + return false +} + +// IsCode returns true when this topic options o k response a status code equal to that given +func (o *TopicOptionsOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the topic options o k response +func (o *TopicOptionsOK) Code() int { + return 200 +} + func (o *TopicOptionsOK) Error() string { return fmt.Sprintf("[OPTIONS /topics][%d] topicOptionsOK ", 200) } +func (o *TopicOptionsOK) String() string { + return fmt.Sprintf("[OPTIONS /topics][%d] topicOptionsOK ", 200) +} + func (o *TopicOptionsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { // hydrates response header Access-Control-Allow-Credentials diff --git a/api/research/research_client/industry/get_industries_observable_parameters.go b/api/research/research_client/industry/get_industries_observable_parameters.go index 5796771..8eead7f 100644 --- a/api/research/research_client/industry/get_industries_observable_parameters.go +++ b/api/research/research_client/industry/get_industries_observable_parameters.go @@ -56,10 +56,12 @@ func NewGetIndustriesObservableParamsWithHTTPClient(client *http.Client) *GetInd } } -/* GetIndustriesObservableParams contains all the parameters to send to the API endpoint - for the get industries observable operation. +/* +GetIndustriesObservableParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get industries observable operation. + + Typically these are written to a http.Request. */ type GetIndustriesObservableParams struct { diff --git a/api/research/research_client/industry/get_industries_observable_responses.go b/api/research/research_client/industry/get_industries_observable_responses.go index b6fd069..74172ee 100644 --- a/api/research/research_client/industry/get_industries_observable_responses.go +++ b/api/research/research_client/industry/get_industries_observable_responses.go @@ -73,7 +73,8 @@ func NewGetIndustriesObservableOK() *GetIndustriesObservableOK { return &GetIndustriesObservableOK{} } -/* GetIndustriesObservableOK describes a response with status code 200, with default header values. +/* +GetIndustriesObservableOK describes a response with status code 200, with default header values. Taxnexus Response with an array of Industry objects */ @@ -84,9 +85,44 @@ type GetIndustriesObservableOK struct { Payload []*research_models.Industry } +// IsSuccess returns true when this get industries observable o k response has a 2xx status code +func (o *GetIndustriesObservableOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get industries observable o k response has a 3xx status code +func (o *GetIndustriesObservableOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get industries observable o k response has a 4xx status code +func (o *GetIndustriesObservableOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get industries observable o k response has a 5xx status code +func (o *GetIndustriesObservableOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get industries observable o k response a status code equal to that given +func (o *GetIndustriesObservableOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get industries observable o k response +func (o *GetIndustriesObservableOK) Code() int { + return 200 +} + func (o *GetIndustriesObservableOK) Error() string { return fmt.Sprintf("[GET /industries/observable][%d] getIndustriesObservableOK %+v", 200, o.Payload) } + +func (o *GetIndustriesObservableOK) String() string { + return fmt.Sprintf("[GET /industries/observable][%d] getIndustriesObservableOK %+v", 200, o.Payload) +} + func (o *GetIndustriesObservableOK) GetPayload() []*research_models.Industry { return o.Payload } @@ -120,7 +156,8 @@ func NewGetIndustriesObservableUnauthorized() *GetIndustriesObservableUnauthoriz return &GetIndustriesObservableUnauthorized{} } -/* GetIndustriesObservableUnauthorized describes a response with status code 401, with default header values. +/* +GetIndustriesObservableUnauthorized describes a response with status code 401, with default header values. Access unauthorized, invalid API-KEY was used */ @@ -130,9 +167,44 @@ type GetIndustriesObservableUnauthorized struct { Payload *research_models.Error } +// IsSuccess returns true when this get industries observable unauthorized response has a 2xx status code +func (o *GetIndustriesObservableUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get industries observable unauthorized response has a 3xx status code +func (o *GetIndustriesObservableUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get industries observable unauthorized response has a 4xx status code +func (o *GetIndustriesObservableUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this get industries observable unauthorized response has a 5xx status code +func (o *GetIndustriesObservableUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this get industries observable unauthorized response a status code equal to that given +func (o *GetIndustriesObservableUnauthorized) IsCode(code int) bool { + return code == 401 +} + +// Code gets the status code for the get industries observable unauthorized response +func (o *GetIndustriesObservableUnauthorized) Code() int { + return 401 +} + func (o *GetIndustriesObservableUnauthorized) Error() string { return fmt.Sprintf("[GET /industries/observable][%d] getIndustriesObservableUnauthorized %+v", 401, o.Payload) } + +func (o *GetIndustriesObservableUnauthorized) String() string { + return fmt.Sprintf("[GET /industries/observable][%d] getIndustriesObservableUnauthorized %+v", 401, o.Payload) +} + func (o *GetIndustriesObservableUnauthorized) GetPayload() *research_models.Error { return o.Payload } @@ -161,7 +233,8 @@ func NewGetIndustriesObservableForbidden() *GetIndustriesObservableForbidden { return &GetIndustriesObservableForbidden{} } -/* GetIndustriesObservableForbidden describes a response with status code 403, with default header values. +/* +GetIndustriesObservableForbidden describes a response with status code 403, with default header values. Access forbidden, account lacks access */ @@ -171,9 +244,44 @@ type GetIndustriesObservableForbidden struct { Payload *research_models.Error } +// IsSuccess returns true when this get industries observable forbidden response has a 2xx status code +func (o *GetIndustriesObservableForbidden) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get industries observable forbidden response has a 3xx status code +func (o *GetIndustriesObservableForbidden) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get industries observable forbidden response has a 4xx status code +func (o *GetIndustriesObservableForbidden) IsClientError() bool { + return true +} + +// IsServerError returns true when this get industries observable forbidden response has a 5xx status code +func (o *GetIndustriesObservableForbidden) IsServerError() bool { + return false +} + +// IsCode returns true when this get industries observable forbidden response a status code equal to that given +func (o *GetIndustriesObservableForbidden) IsCode(code int) bool { + return code == 403 +} + +// Code gets the status code for the get industries observable forbidden response +func (o *GetIndustriesObservableForbidden) Code() int { + return 403 +} + func (o *GetIndustriesObservableForbidden) Error() string { return fmt.Sprintf("[GET /industries/observable][%d] getIndustriesObservableForbidden %+v", 403, o.Payload) } + +func (o *GetIndustriesObservableForbidden) String() string { + return fmt.Sprintf("[GET /industries/observable][%d] getIndustriesObservableForbidden %+v", 403, o.Payload) +} + func (o *GetIndustriesObservableForbidden) GetPayload() *research_models.Error { return o.Payload } @@ -202,7 +310,8 @@ func NewGetIndustriesObservableNotFound() *GetIndustriesObservableNotFound { return &GetIndustriesObservableNotFound{} } -/* GetIndustriesObservableNotFound describes a response with status code 404, with default header values. +/* +GetIndustriesObservableNotFound describes a response with status code 404, with default header values. Resource was not found */ @@ -212,9 +321,44 @@ type GetIndustriesObservableNotFound struct { Payload *research_models.Error } +// IsSuccess returns true when this get industries observable not found response has a 2xx status code +func (o *GetIndustriesObservableNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get industries observable not found response has a 3xx status code +func (o *GetIndustriesObservableNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get industries observable not found response has a 4xx status code +func (o *GetIndustriesObservableNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this get industries observable not found response has a 5xx status code +func (o *GetIndustriesObservableNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this get industries observable not found response a status code equal to that given +func (o *GetIndustriesObservableNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the get industries observable not found response +func (o *GetIndustriesObservableNotFound) Code() int { + return 404 +} + func (o *GetIndustriesObservableNotFound) Error() string { return fmt.Sprintf("[GET /industries/observable][%d] getIndustriesObservableNotFound %+v", 404, o.Payload) } + +func (o *GetIndustriesObservableNotFound) String() string { + return fmt.Sprintf("[GET /industries/observable][%d] getIndustriesObservableNotFound %+v", 404, o.Payload) +} + func (o *GetIndustriesObservableNotFound) GetPayload() *research_models.Error { return o.Payload } @@ -243,7 +387,8 @@ func NewGetIndustriesObservableUnprocessableEntity() *GetIndustriesObservableUnp return &GetIndustriesObservableUnprocessableEntity{} } -/* GetIndustriesObservableUnprocessableEntity describes a response with status code 422, with default header values. +/* +GetIndustriesObservableUnprocessableEntity describes a response with status code 422, with default header values. Unprocessable Entity, likely a bad parameter */ @@ -253,9 +398,44 @@ type GetIndustriesObservableUnprocessableEntity struct { Payload *research_models.Error } +// IsSuccess returns true when this get industries observable unprocessable entity response has a 2xx status code +func (o *GetIndustriesObservableUnprocessableEntity) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get industries observable unprocessable entity response has a 3xx status code +func (o *GetIndustriesObservableUnprocessableEntity) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get industries observable unprocessable entity response has a 4xx status code +func (o *GetIndustriesObservableUnprocessableEntity) IsClientError() bool { + return true +} + +// IsServerError returns true when this get industries observable unprocessable entity response has a 5xx status code +func (o *GetIndustriesObservableUnprocessableEntity) IsServerError() bool { + return false +} + +// IsCode returns true when this get industries observable unprocessable entity response a status code equal to that given +func (o *GetIndustriesObservableUnprocessableEntity) IsCode(code int) bool { + return code == 422 +} + +// Code gets the status code for the get industries observable unprocessable entity response +func (o *GetIndustriesObservableUnprocessableEntity) Code() int { + return 422 +} + func (o *GetIndustriesObservableUnprocessableEntity) Error() string { return fmt.Sprintf("[GET /industries/observable][%d] getIndustriesObservableUnprocessableEntity %+v", 422, o.Payload) } + +func (o *GetIndustriesObservableUnprocessableEntity) String() string { + return fmt.Sprintf("[GET /industries/observable][%d] getIndustriesObservableUnprocessableEntity %+v", 422, o.Payload) +} + func (o *GetIndustriesObservableUnprocessableEntity) GetPayload() *research_models.Error { return o.Payload } @@ -284,7 +464,8 @@ func NewGetIndustriesObservableInternalServerError() *GetIndustriesObservableInt return &GetIndustriesObservableInternalServerError{} } -/* GetIndustriesObservableInternalServerError describes a response with status code 500, with default header values. +/* +GetIndustriesObservableInternalServerError describes a response with status code 500, with default header values. Server Internal Error */ @@ -294,9 +475,44 @@ type GetIndustriesObservableInternalServerError struct { Payload *research_models.Error } +// IsSuccess returns true when this get industries observable internal server error response has a 2xx status code +func (o *GetIndustriesObservableInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get industries observable internal server error response has a 3xx status code +func (o *GetIndustriesObservableInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get industries observable internal server error response has a 4xx status code +func (o *GetIndustriesObservableInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this get industries observable internal server error response has a 5xx status code +func (o *GetIndustriesObservableInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this get industries observable internal server error response a status code equal to that given +func (o *GetIndustriesObservableInternalServerError) IsCode(code int) bool { + return code == 500 +} + +// Code gets the status code for the get industries observable internal server error response +func (o *GetIndustriesObservableInternalServerError) Code() int { + return 500 +} + func (o *GetIndustriesObservableInternalServerError) Error() string { return fmt.Sprintf("[GET /industries/observable][%d] getIndustriesObservableInternalServerError %+v", 500, o.Payload) } + +func (o *GetIndustriesObservableInternalServerError) String() string { + return fmt.Sprintf("[GET /industries/observable][%d] getIndustriesObservableInternalServerError %+v", 500, o.Payload) +} + func (o *GetIndustriesObservableInternalServerError) GetPayload() *research_models.Error { return o.Payload } diff --git a/api/research/research_client/industry/get_industries_parameters.go b/api/research/research_client/industry/get_industries_parameters.go index 0b3931b..8184ef5 100644 --- a/api/research/research_client/industry/get_industries_parameters.go +++ b/api/research/research_client/industry/get_industries_parameters.go @@ -56,10 +56,12 @@ func NewGetIndustriesParamsWithHTTPClient(client *http.Client) *GetIndustriesPar } } -/* GetIndustriesParams contains all the parameters to send to the API endpoint - for the get industries operation. +/* +GetIndustriesParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get industries operation. + + Typically these are written to a http.Request. */ type GetIndustriesParams struct { diff --git a/api/research/research_client/industry/get_industries_responses.go b/api/research/research_client/industry/get_industries_responses.go index 727551d..d4be010 100644 --- a/api/research/research_client/industry/get_industries_responses.go +++ b/api/research/research_client/industry/get_industries_responses.go @@ -73,7 +73,8 @@ func NewGetIndustriesOK() *GetIndustriesOK { return &GetIndustriesOK{} } -/* GetIndustriesOK describes a response with status code 200, with default header values. +/* +GetIndustriesOK describes a response with status code 200, with default header values. Taxnexus Response with Industry objects */ @@ -84,9 +85,44 @@ type GetIndustriesOK struct { Payload *research_models.IndustryResponse } +// IsSuccess returns true when this get industries o k response has a 2xx status code +func (o *GetIndustriesOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get industries o k response has a 3xx status code +func (o *GetIndustriesOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get industries o k response has a 4xx status code +func (o *GetIndustriesOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get industries o k response has a 5xx status code +func (o *GetIndustriesOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get industries o k response a status code equal to that given +func (o *GetIndustriesOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get industries o k response +func (o *GetIndustriesOK) Code() int { + return 200 +} + func (o *GetIndustriesOK) Error() string { return fmt.Sprintf("[GET /industries][%d] getIndustriesOK %+v", 200, o.Payload) } + +func (o *GetIndustriesOK) String() string { + return fmt.Sprintf("[GET /industries][%d] getIndustriesOK %+v", 200, o.Payload) +} + func (o *GetIndustriesOK) GetPayload() *research_models.IndustryResponse { return o.Payload } @@ -122,7 +158,8 @@ func NewGetIndustriesUnauthorized() *GetIndustriesUnauthorized { return &GetIndustriesUnauthorized{} } -/* GetIndustriesUnauthorized describes a response with status code 401, with default header values. +/* +GetIndustriesUnauthorized describes a response with status code 401, with default header values. Access unauthorized, invalid API-KEY was used */ @@ -132,9 +169,44 @@ type GetIndustriesUnauthorized struct { Payload *research_models.Error } +// IsSuccess returns true when this get industries unauthorized response has a 2xx status code +func (o *GetIndustriesUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get industries unauthorized response has a 3xx status code +func (o *GetIndustriesUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get industries unauthorized response has a 4xx status code +func (o *GetIndustriesUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this get industries unauthorized response has a 5xx status code +func (o *GetIndustriesUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this get industries unauthorized response a status code equal to that given +func (o *GetIndustriesUnauthorized) IsCode(code int) bool { + return code == 401 +} + +// Code gets the status code for the get industries unauthorized response +func (o *GetIndustriesUnauthorized) Code() int { + return 401 +} + func (o *GetIndustriesUnauthorized) Error() string { return fmt.Sprintf("[GET /industries][%d] getIndustriesUnauthorized %+v", 401, o.Payload) } + +func (o *GetIndustriesUnauthorized) String() string { + return fmt.Sprintf("[GET /industries][%d] getIndustriesUnauthorized %+v", 401, o.Payload) +} + func (o *GetIndustriesUnauthorized) GetPayload() *research_models.Error { return o.Payload } @@ -163,7 +235,8 @@ func NewGetIndustriesForbidden() *GetIndustriesForbidden { return &GetIndustriesForbidden{} } -/* GetIndustriesForbidden describes a response with status code 403, with default header values. +/* +GetIndustriesForbidden describes a response with status code 403, with default header values. Access forbidden, account lacks access */ @@ -173,9 +246,44 @@ type GetIndustriesForbidden struct { Payload *research_models.Error } +// IsSuccess returns true when this get industries forbidden response has a 2xx status code +func (o *GetIndustriesForbidden) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get industries forbidden response has a 3xx status code +func (o *GetIndustriesForbidden) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get industries forbidden response has a 4xx status code +func (o *GetIndustriesForbidden) IsClientError() bool { + return true +} + +// IsServerError returns true when this get industries forbidden response has a 5xx status code +func (o *GetIndustriesForbidden) IsServerError() bool { + return false +} + +// IsCode returns true when this get industries forbidden response a status code equal to that given +func (o *GetIndustriesForbidden) IsCode(code int) bool { + return code == 403 +} + +// Code gets the status code for the get industries forbidden response +func (o *GetIndustriesForbidden) Code() int { + return 403 +} + func (o *GetIndustriesForbidden) Error() string { return fmt.Sprintf("[GET /industries][%d] getIndustriesForbidden %+v", 403, o.Payload) } + +func (o *GetIndustriesForbidden) String() string { + return fmt.Sprintf("[GET /industries][%d] getIndustriesForbidden %+v", 403, o.Payload) +} + func (o *GetIndustriesForbidden) GetPayload() *research_models.Error { return o.Payload } @@ -204,7 +312,8 @@ func NewGetIndustriesNotFound() *GetIndustriesNotFound { return &GetIndustriesNotFound{} } -/* GetIndustriesNotFound describes a response with status code 404, with default header values. +/* +GetIndustriesNotFound describes a response with status code 404, with default header values. Resource was not found */ @@ -214,9 +323,44 @@ type GetIndustriesNotFound struct { Payload *research_models.Error } +// IsSuccess returns true when this get industries not found response has a 2xx status code +func (o *GetIndustriesNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get industries not found response has a 3xx status code +func (o *GetIndustriesNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get industries not found response has a 4xx status code +func (o *GetIndustriesNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this get industries not found response has a 5xx status code +func (o *GetIndustriesNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this get industries not found response a status code equal to that given +func (o *GetIndustriesNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the get industries not found response +func (o *GetIndustriesNotFound) Code() int { + return 404 +} + func (o *GetIndustriesNotFound) Error() string { return fmt.Sprintf("[GET /industries][%d] getIndustriesNotFound %+v", 404, o.Payload) } + +func (o *GetIndustriesNotFound) String() string { + return fmt.Sprintf("[GET /industries][%d] getIndustriesNotFound %+v", 404, o.Payload) +} + func (o *GetIndustriesNotFound) GetPayload() *research_models.Error { return o.Payload } @@ -245,7 +389,8 @@ func NewGetIndustriesUnprocessableEntity() *GetIndustriesUnprocessableEntity { return &GetIndustriesUnprocessableEntity{} } -/* GetIndustriesUnprocessableEntity describes a response with status code 422, with default header values. +/* +GetIndustriesUnprocessableEntity describes a response with status code 422, with default header values. Unprocessable Entity, likely a bad parameter */ @@ -255,9 +400,44 @@ type GetIndustriesUnprocessableEntity struct { Payload *research_models.Error } +// IsSuccess returns true when this get industries unprocessable entity response has a 2xx status code +func (o *GetIndustriesUnprocessableEntity) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get industries unprocessable entity response has a 3xx status code +func (o *GetIndustriesUnprocessableEntity) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get industries unprocessable entity response has a 4xx status code +func (o *GetIndustriesUnprocessableEntity) IsClientError() bool { + return true +} + +// IsServerError returns true when this get industries unprocessable entity response has a 5xx status code +func (o *GetIndustriesUnprocessableEntity) IsServerError() bool { + return false +} + +// IsCode returns true when this get industries unprocessable entity response a status code equal to that given +func (o *GetIndustriesUnprocessableEntity) IsCode(code int) bool { + return code == 422 +} + +// Code gets the status code for the get industries unprocessable entity response +func (o *GetIndustriesUnprocessableEntity) Code() int { + return 422 +} + func (o *GetIndustriesUnprocessableEntity) Error() string { return fmt.Sprintf("[GET /industries][%d] getIndustriesUnprocessableEntity %+v", 422, o.Payload) } + +func (o *GetIndustriesUnprocessableEntity) String() string { + return fmt.Sprintf("[GET /industries][%d] getIndustriesUnprocessableEntity %+v", 422, o.Payload) +} + func (o *GetIndustriesUnprocessableEntity) GetPayload() *research_models.Error { return o.Payload } @@ -286,7 +466,8 @@ func NewGetIndustriesInternalServerError() *GetIndustriesInternalServerError { return &GetIndustriesInternalServerError{} } -/* GetIndustriesInternalServerError describes a response with status code 500, with default header values. +/* +GetIndustriesInternalServerError describes a response with status code 500, with default header values. Server Internal Error */ @@ -296,9 +477,44 @@ type GetIndustriesInternalServerError struct { Payload *research_models.Error } +// IsSuccess returns true when this get industries internal server error response has a 2xx status code +func (o *GetIndustriesInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get industries internal server error response has a 3xx status code +func (o *GetIndustriesInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get industries internal server error response has a 4xx status code +func (o *GetIndustriesInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this get industries internal server error response has a 5xx status code +func (o *GetIndustriesInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this get industries internal server error response a status code equal to that given +func (o *GetIndustriesInternalServerError) IsCode(code int) bool { + return code == 500 +} + +// Code gets the status code for the get industries internal server error response +func (o *GetIndustriesInternalServerError) Code() int { + return 500 +} + func (o *GetIndustriesInternalServerError) Error() string { return fmt.Sprintf("[GET /industries][%d] getIndustriesInternalServerError %+v", 500, o.Payload) } + +func (o *GetIndustriesInternalServerError) String() string { + return fmt.Sprintf("[GET /industries][%d] getIndustriesInternalServerError %+v", 500, o.Payload) +} + func (o *GetIndustriesInternalServerError) GetPayload() *research_models.Error { return o.Payload } diff --git a/api/research/research_client/industry/industry_client.go b/api/research/research_client/industry/industry_client.go index 065981e..dd85635 100644 --- a/api/research/research_client/industry/industry_client.go +++ b/api/research/research_client/industry/industry_client.go @@ -44,9 +44,9 @@ type ClientService interface { } /* - GetIndustries gets industry records +GetIndustries gets industry records - Retrieve Industry records from the datastore +Retrieve Industry records from the datastore */ func (a *Client) GetIndustries(params *GetIndustriesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetIndustriesOK, error) { // TODO: Validate the params before sending @@ -85,9 +85,9 @@ func (a *Client) GetIndustries(params *GetIndustriesParams, authInfo runtime.Cli } /* - GetIndustriesObservable gets taxnexus companies in an observable array +GetIndustriesObservable gets taxnexus companies in an observable array - A list of companies in a simple JSON array +A list of companies in a simple JSON array */ func (a *Client) GetIndustriesObservable(params *GetIndustriesObservableParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetIndustriesObservableOK, error) { // TODO: Validate the params before sending @@ -126,9 +126,9 @@ func (a *Client) GetIndustriesObservable(params *GetIndustriesObservableParams, } /* - PostIndustries adds new companies +PostIndustries adds new companies - Add new companies +Add new companies */ func (a *Client) PostIndustries(params *PostIndustriesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostIndustriesOK, error) { // TODO: Validate the params before sending diff --git a/api/research/research_client/industry/post_industries_parameters.go b/api/research/research_client/industry/post_industries_parameters.go index 6459bf5..8ab3c72 100644 --- a/api/research/research_client/industry/post_industries_parameters.go +++ b/api/research/research_client/industry/post_industries_parameters.go @@ -58,10 +58,12 @@ func NewPostIndustriesParamsWithHTTPClient(client *http.Client) *PostIndustriesP } } -/* PostIndustriesParams contains all the parameters to send to the API endpoint - for the post industries operation. +/* +PostIndustriesParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the post industries operation. + + Typically these are written to a http.Request. */ type PostIndustriesParams struct { diff --git a/api/research/research_client/industry/post_industries_responses.go b/api/research/research_client/industry/post_industries_responses.go index 7fda330..2adb93f 100644 --- a/api/research/research_client/industry/post_industries_responses.go +++ b/api/research/research_client/industry/post_industries_responses.go @@ -73,7 +73,8 @@ func NewPostIndustriesOK() *PostIndustriesOK { return &PostIndustriesOK{} } -/* PostIndustriesOK describes a response with status code 200, with default header values. +/* +PostIndustriesOK describes a response with status code 200, with default header values. Taxnexus Response with Industry objects */ @@ -84,9 +85,44 @@ type PostIndustriesOK struct { Payload *research_models.IndustryResponse } +// IsSuccess returns true when this post industries o k response has a 2xx status code +func (o *PostIndustriesOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this post industries o k response has a 3xx status code +func (o *PostIndustriesOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this post industries o k response has a 4xx status code +func (o *PostIndustriesOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this post industries o k response has a 5xx status code +func (o *PostIndustriesOK) IsServerError() bool { + return false +} + +// IsCode returns true when this post industries o k response a status code equal to that given +func (o *PostIndustriesOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the post industries o k response +func (o *PostIndustriesOK) Code() int { + return 200 +} + func (o *PostIndustriesOK) Error() string { return fmt.Sprintf("[POST /industries][%d] postIndustriesOK %+v", 200, o.Payload) } + +func (o *PostIndustriesOK) String() string { + return fmt.Sprintf("[POST /industries][%d] postIndustriesOK %+v", 200, o.Payload) +} + func (o *PostIndustriesOK) GetPayload() *research_models.IndustryResponse { return o.Payload } @@ -122,7 +158,8 @@ func NewPostIndustriesUnauthorized() *PostIndustriesUnauthorized { return &PostIndustriesUnauthorized{} } -/* PostIndustriesUnauthorized describes a response with status code 401, with default header values. +/* +PostIndustriesUnauthorized describes a response with status code 401, with default header values. Access unauthorized, invalid API-KEY was used */ @@ -132,9 +169,44 @@ type PostIndustriesUnauthorized struct { Payload *research_models.Error } +// IsSuccess returns true when this post industries unauthorized response has a 2xx status code +func (o *PostIndustriesUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this post industries unauthorized response has a 3xx status code +func (o *PostIndustriesUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this post industries unauthorized response has a 4xx status code +func (o *PostIndustriesUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this post industries unauthorized response has a 5xx status code +func (o *PostIndustriesUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this post industries unauthorized response a status code equal to that given +func (o *PostIndustriesUnauthorized) IsCode(code int) bool { + return code == 401 +} + +// Code gets the status code for the post industries unauthorized response +func (o *PostIndustriesUnauthorized) Code() int { + return 401 +} + func (o *PostIndustriesUnauthorized) Error() string { return fmt.Sprintf("[POST /industries][%d] postIndustriesUnauthorized %+v", 401, o.Payload) } + +func (o *PostIndustriesUnauthorized) String() string { + return fmt.Sprintf("[POST /industries][%d] postIndustriesUnauthorized %+v", 401, o.Payload) +} + func (o *PostIndustriesUnauthorized) GetPayload() *research_models.Error { return o.Payload } @@ -163,7 +235,8 @@ func NewPostIndustriesForbidden() *PostIndustriesForbidden { return &PostIndustriesForbidden{} } -/* PostIndustriesForbidden describes a response with status code 403, with default header values. +/* +PostIndustriesForbidden describes a response with status code 403, with default header values. Access forbidden, account lacks access */ @@ -173,9 +246,44 @@ type PostIndustriesForbidden struct { Payload *research_models.Error } +// IsSuccess returns true when this post industries forbidden response has a 2xx status code +func (o *PostIndustriesForbidden) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this post industries forbidden response has a 3xx status code +func (o *PostIndustriesForbidden) IsRedirect() bool { + return false +} + +// IsClientError returns true when this post industries forbidden response has a 4xx status code +func (o *PostIndustriesForbidden) IsClientError() bool { + return true +} + +// IsServerError returns true when this post industries forbidden response has a 5xx status code +func (o *PostIndustriesForbidden) IsServerError() bool { + return false +} + +// IsCode returns true when this post industries forbidden response a status code equal to that given +func (o *PostIndustriesForbidden) IsCode(code int) bool { + return code == 403 +} + +// Code gets the status code for the post industries forbidden response +func (o *PostIndustriesForbidden) Code() int { + return 403 +} + func (o *PostIndustriesForbidden) Error() string { return fmt.Sprintf("[POST /industries][%d] postIndustriesForbidden %+v", 403, o.Payload) } + +func (o *PostIndustriesForbidden) String() string { + return fmt.Sprintf("[POST /industries][%d] postIndustriesForbidden %+v", 403, o.Payload) +} + func (o *PostIndustriesForbidden) GetPayload() *research_models.Error { return o.Payload } @@ -204,7 +312,8 @@ func NewPostIndustriesNotFound() *PostIndustriesNotFound { return &PostIndustriesNotFound{} } -/* PostIndustriesNotFound describes a response with status code 404, with default header values. +/* +PostIndustriesNotFound describes a response with status code 404, with default header values. Resource was not found */ @@ -214,9 +323,44 @@ type PostIndustriesNotFound struct { Payload *research_models.Error } +// IsSuccess returns true when this post industries not found response has a 2xx status code +func (o *PostIndustriesNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this post industries not found response has a 3xx status code +func (o *PostIndustriesNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this post industries not found response has a 4xx status code +func (o *PostIndustriesNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this post industries not found response has a 5xx status code +func (o *PostIndustriesNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this post industries not found response a status code equal to that given +func (o *PostIndustriesNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the post industries not found response +func (o *PostIndustriesNotFound) Code() int { + return 404 +} + func (o *PostIndustriesNotFound) Error() string { return fmt.Sprintf("[POST /industries][%d] postIndustriesNotFound %+v", 404, o.Payload) } + +func (o *PostIndustriesNotFound) String() string { + return fmt.Sprintf("[POST /industries][%d] postIndustriesNotFound %+v", 404, o.Payload) +} + func (o *PostIndustriesNotFound) GetPayload() *research_models.Error { return o.Payload } @@ -245,7 +389,8 @@ func NewPostIndustriesUnprocessableEntity() *PostIndustriesUnprocessableEntity { return &PostIndustriesUnprocessableEntity{} } -/* PostIndustriesUnprocessableEntity describes a response with status code 422, with default header values. +/* +PostIndustriesUnprocessableEntity describes a response with status code 422, with default header values. Unprocessable Entity, likely a bad parameter */ @@ -255,9 +400,44 @@ type PostIndustriesUnprocessableEntity struct { Payload *research_models.Error } +// IsSuccess returns true when this post industries unprocessable entity response has a 2xx status code +func (o *PostIndustriesUnprocessableEntity) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this post industries unprocessable entity response has a 3xx status code +func (o *PostIndustriesUnprocessableEntity) IsRedirect() bool { + return false +} + +// IsClientError returns true when this post industries unprocessable entity response has a 4xx status code +func (o *PostIndustriesUnprocessableEntity) IsClientError() bool { + return true +} + +// IsServerError returns true when this post industries unprocessable entity response has a 5xx status code +func (o *PostIndustriesUnprocessableEntity) IsServerError() bool { + return false +} + +// IsCode returns true when this post industries unprocessable entity response a status code equal to that given +func (o *PostIndustriesUnprocessableEntity) IsCode(code int) bool { + return code == 422 +} + +// Code gets the status code for the post industries unprocessable entity response +func (o *PostIndustriesUnprocessableEntity) Code() int { + return 422 +} + func (o *PostIndustriesUnprocessableEntity) Error() string { return fmt.Sprintf("[POST /industries][%d] postIndustriesUnprocessableEntity %+v", 422, o.Payload) } + +func (o *PostIndustriesUnprocessableEntity) String() string { + return fmt.Sprintf("[POST /industries][%d] postIndustriesUnprocessableEntity %+v", 422, o.Payload) +} + func (o *PostIndustriesUnprocessableEntity) GetPayload() *research_models.Error { return o.Payload } @@ -286,7 +466,8 @@ func NewPostIndustriesInternalServerError() *PostIndustriesInternalServerError { return &PostIndustriesInternalServerError{} } -/* PostIndustriesInternalServerError describes a response with status code 500, with default header values. +/* +PostIndustriesInternalServerError describes a response with status code 500, with default header values. Server Internal Error */ @@ -296,9 +477,44 @@ type PostIndustriesInternalServerError struct { Payload *research_models.Error } +// IsSuccess returns true when this post industries internal server error response has a 2xx status code +func (o *PostIndustriesInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this post industries internal server error response has a 3xx status code +func (o *PostIndustriesInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this post industries internal server error response has a 4xx status code +func (o *PostIndustriesInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this post industries internal server error response has a 5xx status code +func (o *PostIndustriesInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this post industries internal server error response a status code equal to that given +func (o *PostIndustriesInternalServerError) IsCode(code int) bool { + return code == 500 +} + +// Code gets the status code for the post industries internal server error response +func (o *PostIndustriesInternalServerError) Code() int { + return 500 +} + func (o *PostIndustriesInternalServerError) Error() string { return fmt.Sprintf("[POST /industries][%d] postIndustriesInternalServerError %+v", 500, o.Payload) } + +func (o *PostIndustriesInternalServerError) String() string { + return fmt.Sprintf("[POST /industries][%d] postIndustriesInternalServerError %+v", 500, o.Payload) +} + func (o *PostIndustriesInternalServerError) GetPayload() *research_models.Error { return o.Payload } diff --git a/api/research/research_client/topic/get_topics_observable_parameters.go b/api/research/research_client/topic/get_topics_observable_parameters.go index c82a917..9e53f00 100644 --- a/api/research/research_client/topic/get_topics_observable_parameters.go +++ b/api/research/research_client/topic/get_topics_observable_parameters.go @@ -56,10 +56,12 @@ func NewGetTopicsObservableParamsWithHTTPClient(client *http.Client) *GetTopicsO } } -/* GetTopicsObservableParams contains all the parameters to send to the API endpoint - for the get topics observable operation. +/* +GetTopicsObservableParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get topics observable operation. + + Typically these are written to a http.Request. */ type GetTopicsObservableParams struct { diff --git a/api/research/research_client/topic/get_topics_observable_responses.go b/api/research/research_client/topic/get_topics_observable_responses.go index 34f96c6..45e5306 100644 --- a/api/research/research_client/topic/get_topics_observable_responses.go +++ b/api/research/research_client/topic/get_topics_observable_responses.go @@ -73,7 +73,8 @@ func NewGetTopicsObservableOK() *GetTopicsObservableOK { return &GetTopicsObservableOK{} } -/* GetTopicsObservableOK describes a response with status code 200, with default header values. +/* +GetTopicsObservableOK describes a response with status code 200, with default header values. Taxnexus Response with an array of Topic objects */ @@ -84,9 +85,44 @@ type GetTopicsObservableOK struct { Payload []*research_models.Topic } +// IsSuccess returns true when this get topics observable o k response has a 2xx status code +func (o *GetTopicsObservableOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get topics observable o k response has a 3xx status code +func (o *GetTopicsObservableOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get topics observable o k response has a 4xx status code +func (o *GetTopicsObservableOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get topics observable o k response has a 5xx status code +func (o *GetTopicsObservableOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get topics observable o k response a status code equal to that given +func (o *GetTopicsObservableOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get topics observable o k response +func (o *GetTopicsObservableOK) Code() int { + return 200 +} + func (o *GetTopicsObservableOK) Error() string { return fmt.Sprintf("[GET /topics/observable][%d] getTopicsObservableOK %+v", 200, o.Payload) } + +func (o *GetTopicsObservableOK) String() string { + return fmt.Sprintf("[GET /topics/observable][%d] getTopicsObservableOK %+v", 200, o.Payload) +} + func (o *GetTopicsObservableOK) GetPayload() []*research_models.Topic { return o.Payload } @@ -120,7 +156,8 @@ func NewGetTopicsObservableUnauthorized() *GetTopicsObservableUnauthorized { return &GetTopicsObservableUnauthorized{} } -/* GetTopicsObservableUnauthorized describes a response with status code 401, with default header values. +/* +GetTopicsObservableUnauthorized describes a response with status code 401, with default header values. Access unauthorized, invalid API-KEY was used */ @@ -130,9 +167,44 @@ type GetTopicsObservableUnauthorized struct { Payload *research_models.Error } +// IsSuccess returns true when this get topics observable unauthorized response has a 2xx status code +func (o *GetTopicsObservableUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get topics observable unauthorized response has a 3xx status code +func (o *GetTopicsObservableUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get topics observable unauthorized response has a 4xx status code +func (o *GetTopicsObservableUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this get topics observable unauthorized response has a 5xx status code +func (o *GetTopicsObservableUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this get topics observable unauthorized response a status code equal to that given +func (o *GetTopicsObservableUnauthorized) IsCode(code int) bool { + return code == 401 +} + +// Code gets the status code for the get topics observable unauthorized response +func (o *GetTopicsObservableUnauthorized) Code() int { + return 401 +} + func (o *GetTopicsObservableUnauthorized) Error() string { return fmt.Sprintf("[GET /topics/observable][%d] getTopicsObservableUnauthorized %+v", 401, o.Payload) } + +func (o *GetTopicsObservableUnauthorized) String() string { + return fmt.Sprintf("[GET /topics/observable][%d] getTopicsObservableUnauthorized %+v", 401, o.Payload) +} + func (o *GetTopicsObservableUnauthorized) GetPayload() *research_models.Error { return o.Payload } @@ -161,7 +233,8 @@ func NewGetTopicsObservableForbidden() *GetTopicsObservableForbidden { return &GetTopicsObservableForbidden{} } -/* GetTopicsObservableForbidden describes a response with status code 403, with default header values. +/* +GetTopicsObservableForbidden describes a response with status code 403, with default header values. Access forbidden, account lacks access */ @@ -171,9 +244,44 @@ type GetTopicsObservableForbidden struct { Payload *research_models.Error } +// IsSuccess returns true when this get topics observable forbidden response has a 2xx status code +func (o *GetTopicsObservableForbidden) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get topics observable forbidden response has a 3xx status code +func (o *GetTopicsObservableForbidden) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get topics observable forbidden response has a 4xx status code +func (o *GetTopicsObservableForbidden) IsClientError() bool { + return true +} + +// IsServerError returns true when this get topics observable forbidden response has a 5xx status code +func (o *GetTopicsObservableForbidden) IsServerError() bool { + return false +} + +// IsCode returns true when this get topics observable forbidden response a status code equal to that given +func (o *GetTopicsObservableForbidden) IsCode(code int) bool { + return code == 403 +} + +// Code gets the status code for the get topics observable forbidden response +func (o *GetTopicsObservableForbidden) Code() int { + return 403 +} + func (o *GetTopicsObservableForbidden) Error() string { return fmt.Sprintf("[GET /topics/observable][%d] getTopicsObservableForbidden %+v", 403, o.Payload) } + +func (o *GetTopicsObservableForbidden) String() string { + return fmt.Sprintf("[GET /topics/observable][%d] getTopicsObservableForbidden %+v", 403, o.Payload) +} + func (o *GetTopicsObservableForbidden) GetPayload() *research_models.Error { return o.Payload } @@ -202,7 +310,8 @@ func NewGetTopicsObservableNotFound() *GetTopicsObservableNotFound { return &GetTopicsObservableNotFound{} } -/* GetTopicsObservableNotFound describes a response with status code 404, with default header values. +/* +GetTopicsObservableNotFound describes a response with status code 404, with default header values. Resource was not found */ @@ -212,9 +321,44 @@ type GetTopicsObservableNotFound struct { Payload *research_models.Error } +// IsSuccess returns true when this get topics observable not found response has a 2xx status code +func (o *GetTopicsObservableNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get topics observable not found response has a 3xx status code +func (o *GetTopicsObservableNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get topics observable not found response has a 4xx status code +func (o *GetTopicsObservableNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this get topics observable not found response has a 5xx status code +func (o *GetTopicsObservableNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this get topics observable not found response a status code equal to that given +func (o *GetTopicsObservableNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the get topics observable not found response +func (o *GetTopicsObservableNotFound) Code() int { + return 404 +} + func (o *GetTopicsObservableNotFound) Error() string { return fmt.Sprintf("[GET /topics/observable][%d] getTopicsObservableNotFound %+v", 404, o.Payload) } + +func (o *GetTopicsObservableNotFound) String() string { + return fmt.Sprintf("[GET /topics/observable][%d] getTopicsObservableNotFound %+v", 404, o.Payload) +} + func (o *GetTopicsObservableNotFound) GetPayload() *research_models.Error { return o.Payload } @@ -243,7 +387,8 @@ func NewGetTopicsObservableUnprocessableEntity() *GetTopicsObservableUnprocessab return &GetTopicsObservableUnprocessableEntity{} } -/* GetTopicsObservableUnprocessableEntity describes a response with status code 422, with default header values. +/* +GetTopicsObservableUnprocessableEntity describes a response with status code 422, with default header values. Unprocessable Entity, likely a bad parameter */ @@ -253,9 +398,44 @@ type GetTopicsObservableUnprocessableEntity struct { Payload *research_models.Error } +// IsSuccess returns true when this get topics observable unprocessable entity response has a 2xx status code +func (o *GetTopicsObservableUnprocessableEntity) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get topics observable unprocessable entity response has a 3xx status code +func (o *GetTopicsObservableUnprocessableEntity) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get topics observable unprocessable entity response has a 4xx status code +func (o *GetTopicsObservableUnprocessableEntity) IsClientError() bool { + return true +} + +// IsServerError returns true when this get topics observable unprocessable entity response has a 5xx status code +func (o *GetTopicsObservableUnprocessableEntity) IsServerError() bool { + return false +} + +// IsCode returns true when this get topics observable unprocessable entity response a status code equal to that given +func (o *GetTopicsObservableUnprocessableEntity) IsCode(code int) bool { + return code == 422 +} + +// Code gets the status code for the get topics observable unprocessable entity response +func (o *GetTopicsObservableUnprocessableEntity) Code() int { + return 422 +} + func (o *GetTopicsObservableUnprocessableEntity) Error() string { return fmt.Sprintf("[GET /topics/observable][%d] getTopicsObservableUnprocessableEntity %+v", 422, o.Payload) } + +func (o *GetTopicsObservableUnprocessableEntity) String() string { + return fmt.Sprintf("[GET /topics/observable][%d] getTopicsObservableUnprocessableEntity %+v", 422, o.Payload) +} + func (o *GetTopicsObservableUnprocessableEntity) GetPayload() *research_models.Error { return o.Payload } @@ -284,7 +464,8 @@ func NewGetTopicsObservableInternalServerError() *GetTopicsObservableInternalSer return &GetTopicsObservableInternalServerError{} } -/* GetTopicsObservableInternalServerError describes a response with status code 500, with default header values. +/* +GetTopicsObservableInternalServerError describes a response with status code 500, with default header values. Server Internal Error */ @@ -294,9 +475,44 @@ type GetTopicsObservableInternalServerError struct { Payload *research_models.Error } +// IsSuccess returns true when this get topics observable internal server error response has a 2xx status code +func (o *GetTopicsObservableInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get topics observable internal server error response has a 3xx status code +func (o *GetTopicsObservableInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get topics observable internal server error response has a 4xx status code +func (o *GetTopicsObservableInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this get topics observable internal server error response has a 5xx status code +func (o *GetTopicsObservableInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this get topics observable internal server error response a status code equal to that given +func (o *GetTopicsObservableInternalServerError) IsCode(code int) bool { + return code == 500 +} + +// Code gets the status code for the get topics observable internal server error response +func (o *GetTopicsObservableInternalServerError) Code() int { + return 500 +} + func (o *GetTopicsObservableInternalServerError) Error() string { return fmt.Sprintf("[GET /topics/observable][%d] getTopicsObservableInternalServerError %+v", 500, o.Payload) } + +func (o *GetTopicsObservableInternalServerError) String() string { + return fmt.Sprintf("[GET /topics/observable][%d] getTopicsObservableInternalServerError %+v", 500, o.Payload) +} + func (o *GetTopicsObservableInternalServerError) GetPayload() *research_models.Error { return o.Payload } diff --git a/api/research/research_client/topic/get_topics_parameters.go b/api/research/research_client/topic/get_topics_parameters.go index 9746ea9..ab68aec 100644 --- a/api/research/research_client/topic/get_topics_parameters.go +++ b/api/research/research_client/topic/get_topics_parameters.go @@ -56,10 +56,12 @@ func NewGetTopicsParamsWithHTTPClient(client *http.Client) *GetTopicsParams { } } -/* GetTopicsParams contains all the parameters to send to the API endpoint - for the get topics operation. +/* +GetTopicsParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get topics operation. + + Typically these are written to a http.Request. */ type GetTopicsParams struct { diff --git a/api/research/research_client/topic/get_topics_responses.go b/api/research/research_client/topic/get_topics_responses.go index 4941af2..e097421 100644 --- a/api/research/research_client/topic/get_topics_responses.go +++ b/api/research/research_client/topic/get_topics_responses.go @@ -73,7 +73,8 @@ func NewGetTopicsOK() *GetTopicsOK { return &GetTopicsOK{} } -/* GetTopicsOK describes a response with status code 200, with default header values. +/* +GetTopicsOK describes a response with status code 200, with default header values. Taxnexus Response with Topic objects */ @@ -84,9 +85,44 @@ type GetTopicsOK struct { Payload *research_models.TopicResponse } +// IsSuccess returns true when this get topics o k response has a 2xx status code +func (o *GetTopicsOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get topics o k response has a 3xx status code +func (o *GetTopicsOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get topics o k response has a 4xx status code +func (o *GetTopicsOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get topics o k response has a 5xx status code +func (o *GetTopicsOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get topics o k response a status code equal to that given +func (o *GetTopicsOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get topics o k response +func (o *GetTopicsOK) Code() int { + return 200 +} + func (o *GetTopicsOK) Error() string { return fmt.Sprintf("[GET /topics][%d] getTopicsOK %+v", 200, o.Payload) } + +func (o *GetTopicsOK) String() string { + return fmt.Sprintf("[GET /topics][%d] getTopicsOK %+v", 200, o.Payload) +} + func (o *GetTopicsOK) GetPayload() *research_models.TopicResponse { return o.Payload } @@ -122,7 +158,8 @@ func NewGetTopicsUnauthorized() *GetTopicsUnauthorized { return &GetTopicsUnauthorized{} } -/* GetTopicsUnauthorized describes a response with status code 401, with default header values. +/* +GetTopicsUnauthorized describes a response with status code 401, with default header values. Access unauthorized, invalid API-KEY was used */ @@ -132,9 +169,44 @@ type GetTopicsUnauthorized struct { Payload *research_models.Error } +// IsSuccess returns true when this get topics unauthorized response has a 2xx status code +func (o *GetTopicsUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get topics unauthorized response has a 3xx status code +func (o *GetTopicsUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get topics unauthorized response has a 4xx status code +func (o *GetTopicsUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this get topics unauthorized response has a 5xx status code +func (o *GetTopicsUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this get topics unauthorized response a status code equal to that given +func (o *GetTopicsUnauthorized) IsCode(code int) bool { + return code == 401 +} + +// Code gets the status code for the get topics unauthorized response +func (o *GetTopicsUnauthorized) Code() int { + return 401 +} + func (o *GetTopicsUnauthorized) Error() string { return fmt.Sprintf("[GET /topics][%d] getTopicsUnauthorized %+v", 401, o.Payload) } + +func (o *GetTopicsUnauthorized) String() string { + return fmt.Sprintf("[GET /topics][%d] getTopicsUnauthorized %+v", 401, o.Payload) +} + func (o *GetTopicsUnauthorized) GetPayload() *research_models.Error { return o.Payload } @@ -163,7 +235,8 @@ func NewGetTopicsForbidden() *GetTopicsForbidden { return &GetTopicsForbidden{} } -/* GetTopicsForbidden describes a response with status code 403, with default header values. +/* +GetTopicsForbidden describes a response with status code 403, with default header values. Access forbidden, account lacks access */ @@ -173,9 +246,44 @@ type GetTopicsForbidden struct { Payload *research_models.Error } +// IsSuccess returns true when this get topics forbidden response has a 2xx status code +func (o *GetTopicsForbidden) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get topics forbidden response has a 3xx status code +func (o *GetTopicsForbidden) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get topics forbidden response has a 4xx status code +func (o *GetTopicsForbidden) IsClientError() bool { + return true +} + +// IsServerError returns true when this get topics forbidden response has a 5xx status code +func (o *GetTopicsForbidden) IsServerError() bool { + return false +} + +// IsCode returns true when this get topics forbidden response a status code equal to that given +func (o *GetTopicsForbidden) IsCode(code int) bool { + return code == 403 +} + +// Code gets the status code for the get topics forbidden response +func (o *GetTopicsForbidden) Code() int { + return 403 +} + func (o *GetTopicsForbidden) Error() string { return fmt.Sprintf("[GET /topics][%d] getTopicsForbidden %+v", 403, o.Payload) } + +func (o *GetTopicsForbidden) String() string { + return fmt.Sprintf("[GET /topics][%d] getTopicsForbidden %+v", 403, o.Payload) +} + func (o *GetTopicsForbidden) GetPayload() *research_models.Error { return o.Payload } @@ -204,7 +312,8 @@ func NewGetTopicsNotFound() *GetTopicsNotFound { return &GetTopicsNotFound{} } -/* GetTopicsNotFound describes a response with status code 404, with default header values. +/* +GetTopicsNotFound describes a response with status code 404, with default header values. Resource was not found */ @@ -214,9 +323,44 @@ type GetTopicsNotFound struct { Payload *research_models.Error } +// IsSuccess returns true when this get topics not found response has a 2xx status code +func (o *GetTopicsNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get topics not found response has a 3xx status code +func (o *GetTopicsNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get topics not found response has a 4xx status code +func (o *GetTopicsNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this get topics not found response has a 5xx status code +func (o *GetTopicsNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this get topics not found response a status code equal to that given +func (o *GetTopicsNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the get topics not found response +func (o *GetTopicsNotFound) Code() int { + return 404 +} + func (o *GetTopicsNotFound) Error() string { return fmt.Sprintf("[GET /topics][%d] getTopicsNotFound %+v", 404, o.Payload) } + +func (o *GetTopicsNotFound) String() string { + return fmt.Sprintf("[GET /topics][%d] getTopicsNotFound %+v", 404, o.Payload) +} + func (o *GetTopicsNotFound) GetPayload() *research_models.Error { return o.Payload } @@ -245,7 +389,8 @@ func NewGetTopicsUnprocessableEntity() *GetTopicsUnprocessableEntity { return &GetTopicsUnprocessableEntity{} } -/* GetTopicsUnprocessableEntity describes a response with status code 422, with default header values. +/* +GetTopicsUnprocessableEntity describes a response with status code 422, with default header values. Unprocessable Entity, likely a bad parameter */ @@ -255,9 +400,44 @@ type GetTopicsUnprocessableEntity struct { Payload *research_models.Error } +// IsSuccess returns true when this get topics unprocessable entity response has a 2xx status code +func (o *GetTopicsUnprocessableEntity) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get topics unprocessable entity response has a 3xx status code +func (o *GetTopicsUnprocessableEntity) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get topics unprocessable entity response has a 4xx status code +func (o *GetTopicsUnprocessableEntity) IsClientError() bool { + return true +} + +// IsServerError returns true when this get topics unprocessable entity response has a 5xx status code +func (o *GetTopicsUnprocessableEntity) IsServerError() bool { + return false +} + +// IsCode returns true when this get topics unprocessable entity response a status code equal to that given +func (o *GetTopicsUnprocessableEntity) IsCode(code int) bool { + return code == 422 +} + +// Code gets the status code for the get topics unprocessable entity response +func (o *GetTopicsUnprocessableEntity) Code() int { + return 422 +} + func (o *GetTopicsUnprocessableEntity) Error() string { return fmt.Sprintf("[GET /topics][%d] getTopicsUnprocessableEntity %+v", 422, o.Payload) } + +func (o *GetTopicsUnprocessableEntity) String() string { + return fmt.Sprintf("[GET /topics][%d] getTopicsUnprocessableEntity %+v", 422, o.Payload) +} + func (o *GetTopicsUnprocessableEntity) GetPayload() *research_models.Error { return o.Payload } @@ -286,7 +466,8 @@ func NewGetTopicsInternalServerError() *GetTopicsInternalServerError { return &GetTopicsInternalServerError{} } -/* GetTopicsInternalServerError describes a response with status code 500, with default header values. +/* +GetTopicsInternalServerError describes a response with status code 500, with default header values. Server Internal Error */ @@ -296,9 +477,44 @@ type GetTopicsInternalServerError struct { Payload *research_models.Error } +// IsSuccess returns true when this get topics internal server error response has a 2xx status code +func (o *GetTopicsInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get topics internal server error response has a 3xx status code +func (o *GetTopicsInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get topics internal server error response has a 4xx status code +func (o *GetTopicsInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this get topics internal server error response has a 5xx status code +func (o *GetTopicsInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this get topics internal server error response a status code equal to that given +func (o *GetTopicsInternalServerError) IsCode(code int) bool { + return code == 500 +} + +// Code gets the status code for the get topics internal server error response +func (o *GetTopicsInternalServerError) Code() int { + return 500 +} + func (o *GetTopicsInternalServerError) Error() string { return fmt.Sprintf("[GET /topics][%d] getTopicsInternalServerError %+v", 500, o.Payload) } + +func (o *GetTopicsInternalServerError) String() string { + return fmt.Sprintf("[GET /topics][%d] getTopicsInternalServerError %+v", 500, o.Payload) +} + func (o *GetTopicsInternalServerError) GetPayload() *research_models.Error { return o.Payload } diff --git a/api/research/research_client/topic/post_topics_parameters.go b/api/research/research_client/topic/post_topics_parameters.go index 4efbda7..0542448 100644 --- a/api/research/research_client/topic/post_topics_parameters.go +++ b/api/research/research_client/topic/post_topics_parameters.go @@ -58,10 +58,12 @@ func NewPostTopicsParamsWithHTTPClient(client *http.Client) *PostTopicsParams { } } -/* PostTopicsParams contains all the parameters to send to the API endpoint - for the post topics operation. +/* +PostTopicsParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the post topics operation. + + Typically these are written to a http.Request. */ type PostTopicsParams struct { diff --git a/api/research/research_client/topic/post_topics_responses.go b/api/research/research_client/topic/post_topics_responses.go index 5971a2c..3fc0c09 100644 --- a/api/research/research_client/topic/post_topics_responses.go +++ b/api/research/research_client/topic/post_topics_responses.go @@ -73,7 +73,8 @@ func NewPostTopicsOK() *PostTopicsOK { return &PostTopicsOK{} } -/* PostTopicsOK describes a response with status code 200, with default header values. +/* +PostTopicsOK describes a response with status code 200, with default header values. Taxnexus Response with Topic objects */ @@ -84,9 +85,44 @@ type PostTopicsOK struct { Payload *research_models.TopicResponse } +// IsSuccess returns true when this post topics o k response has a 2xx status code +func (o *PostTopicsOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this post topics o k response has a 3xx status code +func (o *PostTopicsOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this post topics o k response has a 4xx status code +func (o *PostTopicsOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this post topics o k response has a 5xx status code +func (o *PostTopicsOK) IsServerError() bool { + return false +} + +// IsCode returns true when this post topics o k response a status code equal to that given +func (o *PostTopicsOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the post topics o k response +func (o *PostTopicsOK) Code() int { + return 200 +} + func (o *PostTopicsOK) Error() string { return fmt.Sprintf("[POST /topics][%d] postTopicsOK %+v", 200, o.Payload) } + +func (o *PostTopicsOK) String() string { + return fmt.Sprintf("[POST /topics][%d] postTopicsOK %+v", 200, o.Payload) +} + func (o *PostTopicsOK) GetPayload() *research_models.TopicResponse { return o.Payload } @@ -122,7 +158,8 @@ func NewPostTopicsUnauthorized() *PostTopicsUnauthorized { return &PostTopicsUnauthorized{} } -/* PostTopicsUnauthorized describes a response with status code 401, with default header values. +/* +PostTopicsUnauthorized describes a response with status code 401, with default header values. Access unauthorized, invalid API-KEY was used */ @@ -132,9 +169,44 @@ type PostTopicsUnauthorized struct { Payload *research_models.Error } +// IsSuccess returns true when this post topics unauthorized response has a 2xx status code +func (o *PostTopicsUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this post topics unauthorized response has a 3xx status code +func (o *PostTopicsUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this post topics unauthorized response has a 4xx status code +func (o *PostTopicsUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this post topics unauthorized response has a 5xx status code +func (o *PostTopicsUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this post topics unauthorized response a status code equal to that given +func (o *PostTopicsUnauthorized) IsCode(code int) bool { + return code == 401 +} + +// Code gets the status code for the post topics unauthorized response +func (o *PostTopicsUnauthorized) Code() int { + return 401 +} + func (o *PostTopicsUnauthorized) Error() string { return fmt.Sprintf("[POST /topics][%d] postTopicsUnauthorized %+v", 401, o.Payload) } + +func (o *PostTopicsUnauthorized) String() string { + return fmt.Sprintf("[POST /topics][%d] postTopicsUnauthorized %+v", 401, o.Payload) +} + func (o *PostTopicsUnauthorized) GetPayload() *research_models.Error { return o.Payload } @@ -163,7 +235,8 @@ func NewPostTopicsForbidden() *PostTopicsForbidden { return &PostTopicsForbidden{} } -/* PostTopicsForbidden describes a response with status code 403, with default header values. +/* +PostTopicsForbidden describes a response with status code 403, with default header values. Access forbidden, account lacks access */ @@ -173,9 +246,44 @@ type PostTopicsForbidden struct { Payload *research_models.Error } +// IsSuccess returns true when this post topics forbidden response has a 2xx status code +func (o *PostTopicsForbidden) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this post topics forbidden response has a 3xx status code +func (o *PostTopicsForbidden) IsRedirect() bool { + return false +} + +// IsClientError returns true when this post topics forbidden response has a 4xx status code +func (o *PostTopicsForbidden) IsClientError() bool { + return true +} + +// IsServerError returns true when this post topics forbidden response has a 5xx status code +func (o *PostTopicsForbidden) IsServerError() bool { + return false +} + +// IsCode returns true when this post topics forbidden response a status code equal to that given +func (o *PostTopicsForbidden) IsCode(code int) bool { + return code == 403 +} + +// Code gets the status code for the post topics forbidden response +func (o *PostTopicsForbidden) Code() int { + return 403 +} + func (o *PostTopicsForbidden) Error() string { return fmt.Sprintf("[POST /topics][%d] postTopicsForbidden %+v", 403, o.Payload) } + +func (o *PostTopicsForbidden) String() string { + return fmt.Sprintf("[POST /topics][%d] postTopicsForbidden %+v", 403, o.Payload) +} + func (o *PostTopicsForbidden) GetPayload() *research_models.Error { return o.Payload } @@ -204,7 +312,8 @@ func NewPostTopicsNotFound() *PostTopicsNotFound { return &PostTopicsNotFound{} } -/* PostTopicsNotFound describes a response with status code 404, with default header values. +/* +PostTopicsNotFound describes a response with status code 404, with default header values. Resource was not found */ @@ -214,9 +323,44 @@ type PostTopicsNotFound struct { Payload *research_models.Error } +// IsSuccess returns true when this post topics not found response has a 2xx status code +func (o *PostTopicsNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this post topics not found response has a 3xx status code +func (o *PostTopicsNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this post topics not found response has a 4xx status code +func (o *PostTopicsNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this post topics not found response has a 5xx status code +func (o *PostTopicsNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this post topics not found response a status code equal to that given +func (o *PostTopicsNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the post topics not found response +func (o *PostTopicsNotFound) Code() int { + return 404 +} + func (o *PostTopicsNotFound) Error() string { return fmt.Sprintf("[POST /topics][%d] postTopicsNotFound %+v", 404, o.Payload) } + +func (o *PostTopicsNotFound) String() string { + return fmt.Sprintf("[POST /topics][%d] postTopicsNotFound %+v", 404, o.Payload) +} + func (o *PostTopicsNotFound) GetPayload() *research_models.Error { return o.Payload } @@ -245,7 +389,8 @@ func NewPostTopicsUnprocessableEntity() *PostTopicsUnprocessableEntity { return &PostTopicsUnprocessableEntity{} } -/* PostTopicsUnprocessableEntity describes a response with status code 422, with default header values. +/* +PostTopicsUnprocessableEntity describes a response with status code 422, with default header values. Unprocessable Entity, likely a bad parameter */ @@ -255,9 +400,44 @@ type PostTopicsUnprocessableEntity struct { Payload *research_models.Error } +// IsSuccess returns true when this post topics unprocessable entity response has a 2xx status code +func (o *PostTopicsUnprocessableEntity) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this post topics unprocessable entity response has a 3xx status code +func (o *PostTopicsUnprocessableEntity) IsRedirect() bool { + return false +} + +// IsClientError returns true when this post topics unprocessable entity response has a 4xx status code +func (o *PostTopicsUnprocessableEntity) IsClientError() bool { + return true +} + +// IsServerError returns true when this post topics unprocessable entity response has a 5xx status code +func (o *PostTopicsUnprocessableEntity) IsServerError() bool { + return false +} + +// IsCode returns true when this post topics unprocessable entity response a status code equal to that given +func (o *PostTopicsUnprocessableEntity) IsCode(code int) bool { + return code == 422 +} + +// Code gets the status code for the post topics unprocessable entity response +func (o *PostTopicsUnprocessableEntity) Code() int { + return 422 +} + func (o *PostTopicsUnprocessableEntity) Error() string { return fmt.Sprintf("[POST /topics][%d] postTopicsUnprocessableEntity %+v", 422, o.Payload) } + +func (o *PostTopicsUnprocessableEntity) String() string { + return fmt.Sprintf("[POST /topics][%d] postTopicsUnprocessableEntity %+v", 422, o.Payload) +} + func (o *PostTopicsUnprocessableEntity) GetPayload() *research_models.Error { return o.Payload } @@ -286,7 +466,8 @@ func NewPostTopicsInternalServerError() *PostTopicsInternalServerError { return &PostTopicsInternalServerError{} } -/* PostTopicsInternalServerError describes a response with status code 500, with default header values. +/* +PostTopicsInternalServerError describes a response with status code 500, with default header values. Server Internal Error */ @@ -296,9 +477,44 @@ type PostTopicsInternalServerError struct { Payload *research_models.Error } +// IsSuccess returns true when this post topics internal server error response has a 2xx status code +func (o *PostTopicsInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this post topics internal server error response has a 3xx status code +func (o *PostTopicsInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this post topics internal server error response has a 4xx status code +func (o *PostTopicsInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this post topics internal server error response has a 5xx status code +func (o *PostTopicsInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this post topics internal server error response a status code equal to that given +func (o *PostTopicsInternalServerError) IsCode(code int) bool { + return code == 500 +} + +// Code gets the status code for the post topics internal server error response +func (o *PostTopicsInternalServerError) Code() int { + return 500 +} + func (o *PostTopicsInternalServerError) Error() string { return fmt.Sprintf("[POST /topics][%d] postTopicsInternalServerError %+v", 500, o.Payload) } + +func (o *PostTopicsInternalServerError) String() string { + return fmt.Sprintf("[POST /topics][%d] postTopicsInternalServerError %+v", 500, o.Payload) +} + func (o *PostTopicsInternalServerError) GetPayload() *research_models.Error { return o.Payload } diff --git a/api/research/research_client/topic/topic_client.go b/api/research/research_client/topic/topic_client.go index 3b2272a..260fdbc 100644 --- a/api/research/research_client/topic/topic_client.go +++ b/api/research/research_client/topic/topic_client.go @@ -44,9 +44,9 @@ type ClientService interface { } /* - GetTopics gets topic records +GetTopics gets topic records - Retrieve Topic records from the datastore +Retrieve Topic records from the datastore */ func (a *Client) GetTopics(params *GetTopicsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetTopicsOK, error) { // TODO: Validate the params before sending @@ -85,9 +85,9 @@ func (a *Client) GetTopics(params *GetTopicsParams, authInfo runtime.ClientAuthI } /* - GetTopicsObservable gets taxnexus companies in an observable array +GetTopicsObservable gets taxnexus companies in an observable array - A list of companies in a simple JSON array +A list of companies in a simple JSON array */ func (a *Client) GetTopicsObservable(params *GetTopicsObservableParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetTopicsObservableOK, error) { // TODO: Validate the params before sending @@ -126,9 +126,9 @@ func (a *Client) GetTopicsObservable(params *GetTopicsObservableParams, authInfo } /* - PostTopics adds new companies +PostTopics adds new companies - Add new companies +Add new companies */ func (a *Client) PostTopics(params *PostTopicsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostTopicsOK, error) { // TODO: Validate the params before sending diff --git a/api/sfgate/sfgate_client/accounts/accounts_client.go b/api/sfgate/sfgate_client/accounts/accounts_client.go index 79f2dcb..bc14266 100644 --- a/api/sfgate/sfgate_client/accounts/accounts_client.go +++ b/api/sfgate/sfgate_client/accounts/accounts_client.go @@ -46,9 +46,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 @@ -87,9 +87,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 @@ -128,9 +128,9 @@ func (a *Client) GetAccounts(params *GetAccountsParams, authInfo runtime.ClientA } /* - 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 @@ -169,9 +169,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 diff --git a/api/sfgate/sfgate_client/accounts/delete_account_parameters.go b/api/sfgate/sfgate_client/accounts/delete_account_parameters.go index b255af9..0ffc96c 100644 --- a/api/sfgate/sfgate_client/accounts/delete_account_parameters.go +++ b/api/sfgate/sfgate_client/accounts/delete_account_parameters.go @@ -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 { diff --git a/api/sfgate/sfgate_client/accounts/delete_account_responses.go b/api/sfgate/sfgate_client/accounts/delete_account_responses.go index 69cb624..117a578 100644 --- a/api/sfgate/sfgate_client/accounts/delete_account_responses.go +++ b/api/sfgate/sfgate_client/accounts/delete_account_responses.go @@ -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 *sfgate_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() *sfgate_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 *sfgate_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() *sfgate_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 *sfgate_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() *sfgate_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 *sfgate_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() *sfgate_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 *sfgate_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() *sfgate_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 *sfgate_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() *sfgate_models.Error { return o.Payload } diff --git a/api/sfgate/sfgate_client/accounts/get_accounts_parameters.go b/api/sfgate/sfgate_client/accounts/get_accounts_parameters.go index a6b261e..bf03bf6 100644 --- a/api/sfgate/sfgate_client/accounts/get_accounts_parameters.go +++ b/api/sfgate/sfgate_client/accounts/get_accounts_parameters.go @@ -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 { diff --git a/api/sfgate/sfgate_client/accounts/get_accounts_responses.go b/api/sfgate/sfgate_client/accounts/get_accounts_responses.go index d7ddaf4..0cd670d 100644 --- a/api/sfgate/sfgate_client/accounts/get_accounts_responses.go +++ b/api/sfgate/sfgate_client/accounts/get_accounts_responses.go @@ -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 *sfgate_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() *sfgate_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 *sfgate_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() *sfgate_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 *sfgate_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() *sfgate_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 *sfgate_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() *sfgate_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 *sfgate_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() *sfgate_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 *sfgate_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() *sfgate_models.Error { return o.Payload } diff --git a/api/sfgate/sfgate_client/accounts/post_accounts_parameters.go b/api/sfgate/sfgate_client/accounts/post_accounts_parameters.go index d586bfd..113bb1c 100644 --- a/api/sfgate/sfgate_client/accounts/post_accounts_parameters.go +++ b/api/sfgate/sfgate_client/accounts/post_accounts_parameters.go @@ -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 { diff --git a/api/sfgate/sfgate_client/accounts/post_accounts_responses.go b/api/sfgate/sfgate_client/accounts/post_accounts_responses.go index a899ce7..b08a3d0 100644 --- a/api/sfgate/sfgate_client/accounts/post_accounts_responses.go +++ b/api/sfgate/sfgate_client/accounts/post_accounts_responses.go @@ -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 *sfgate_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() *sfgate_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 *sfgate_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() *sfgate_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 *sfgate_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() *sfgate_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 *sfgate_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() *sfgate_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 *sfgate_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() *sfgate_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 *sfgate_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() *sfgate_models.Error { return o.Payload } diff --git a/api/sfgate/sfgate_client/accounts/put_account_parameters.go b/api/sfgate/sfgate_client/accounts/put_account_parameters.go index 1102d10..8f056c4 100644 --- a/api/sfgate/sfgate_client/accounts/put_account_parameters.go +++ b/api/sfgate/sfgate_client/accounts/put_account_parameters.go @@ -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 { diff --git a/api/sfgate/sfgate_client/accounts/put_account_responses.go b/api/sfgate/sfgate_client/accounts/put_account_responses.go index eb386c0..c0ff8eb 100644 --- a/api/sfgate/sfgate_client/accounts/put_account_responses.go +++ b/api/sfgate/sfgate_client/accounts/put_account_responses.go @@ -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 *sfgate_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() *sfgate_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 *sfgate_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() *sfgate_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 *sfgate_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() *sfgate_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 *sfgate_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() *sfgate_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 *sfgate_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() *sfgate_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 *sfgate_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() *sfgate_models.Error { return o.Payload } diff --git a/api/sfgate/sfgate_client/assets/assets_client.go b/api/sfgate/sfgate_client/assets/assets_client.go index 37462c5..ef0af88 100644 --- a/api/sfgate/sfgate_client/assets/assets_client.go +++ b/api/sfgate/sfgate_client/assets/assets_client.go @@ -42,9 +42,9 @@ type ClientService interface { } /* - 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 @@ -83,9 +83,9 @@ func (a *Client) GetAssets(params *GetAssetsParams, authInfo runtime.ClientAuthI } /* - PostAssets adds a new asset to taxnexus +PostAssets adds a new asset to taxnexus - Industry record to be added +Industry record to be added */ func (a *Client) PostAssets(params *PostAssetsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostAssetsOK, error) { // TODO: Validate the params before sending diff --git a/api/sfgate/sfgate_client/assets/get_assets_parameters.go b/api/sfgate/sfgate_client/assets/get_assets_parameters.go index 9c974ab..4b648b6 100644 --- a/api/sfgate/sfgate_client/assets/get_assets_parameters.go +++ b/api/sfgate/sfgate_client/assets/get_assets_parameters.go @@ -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 { diff --git a/api/sfgate/sfgate_client/assets/get_assets_responses.go b/api/sfgate/sfgate_client/assets/get_assets_responses.go index 8fa71ab..52a827e 100644 --- a/api/sfgate/sfgate_client/assets/get_assets_responses.go +++ b/api/sfgate/sfgate_client/assets/get_assets_responses.go @@ -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 *sfgate_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() *sfgate_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 *sfgate_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() *sfgate_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 *sfgate_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() *sfgate_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 *sfgate_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() *sfgate_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 *sfgate_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() *sfgate_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 *sfgate_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() *sfgate_models.Error { return o.Payload } diff --git a/api/sfgate/sfgate_client/assets/post_assets_parameters.go b/api/sfgate/sfgate_client/assets/post_assets_parameters.go index 47502b2..8840d87 100644 --- a/api/sfgate/sfgate_client/assets/post_assets_parameters.go +++ b/api/sfgate/sfgate_client/assets/post_assets_parameters.go @@ -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 { diff --git a/api/sfgate/sfgate_client/assets/post_assets_responses.go b/api/sfgate/sfgate_client/assets/post_assets_responses.go index 70bcb68..e1c6ba8 100644 --- a/api/sfgate/sfgate_client/assets/post_assets_responses.go +++ b/api/sfgate/sfgate_client/assets/post_assets_responses.go @@ -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 *sfgate_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() *sfgate_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 *sfgate_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() *sfgate_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 *sfgate_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() *sfgate_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 *sfgate_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() *sfgate_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 *sfgate_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() *sfgate_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 *sfgate_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() *sfgate_models.Error { return o.Payload } diff --git a/api/sfgate/sfgate_client/clusters/clusters_client.go b/api/sfgate/sfgate_client/clusters/clusters_client.go index 2d9bd3b..012be54 100644 --- a/api/sfgate/sfgate_client/clusters/clusters_client.go +++ b/api/sfgate/sfgate_client/clusters/clusters_client.go @@ -44,9 +44,9 @@ type ClientService interface { } /* - GetClusters gets a list clusters +GetClusters gets a list clusters - Return a list of Cluster records from the datastore +Return a list of Cluster records from the datastore */ func (a *Client) GetClusters(params *GetClustersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetClustersOK, error) { // TODO: Validate the params before sending @@ -85,9 +85,9 @@ func (a *Client) GetClusters(params *GetClustersParams, authInfo runtime.ClientA } /* - PostClusters creates new clusters +PostClusters creates new clusters - Create Clusters in Taxnexus +Create Clusters in Taxnexus */ func (a *Client) PostClusters(params *PostClustersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostClustersOK, error) { // TODO: Validate the params before sending @@ -126,9 +126,9 @@ func (a *Client) PostClusters(params *PostClustersParams, authInfo runtime.Clien } /* - PutClusters updates clusters +PutClusters updates clusters - Update Cluster in Taxnexus +Update Cluster in Taxnexus */ func (a *Client) PutClusters(params *PutClustersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PutClustersOK, error) { // TODO: Validate the params before sending diff --git a/api/sfgate/sfgate_client/clusters/get_clusters_parameters.go b/api/sfgate/sfgate_client/clusters/get_clusters_parameters.go index aa22629..608e85c 100644 --- a/api/sfgate/sfgate_client/clusters/get_clusters_parameters.go +++ b/api/sfgate/sfgate_client/clusters/get_clusters_parameters.go @@ -57,10 +57,12 @@ func NewGetClustersParamsWithHTTPClient(client *http.Client) *GetClustersParams } } -/* GetClustersParams contains all the parameters to send to the API endpoint - for the get clusters operation. +/* +GetClustersParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get clusters operation. + + Typically these are written to a http.Request. */ type GetClustersParams struct { diff --git a/api/sfgate/sfgate_client/clusters/get_clusters_responses.go b/api/sfgate/sfgate_client/clusters/get_clusters_responses.go index 4d277d6..32ddc87 100644 --- a/api/sfgate/sfgate_client/clusters/get_clusters_responses.go +++ b/api/sfgate/sfgate_client/clusters/get_clusters_responses.go @@ -73,7 +73,8 @@ func NewGetClustersOK() *GetClustersOK { return &GetClustersOK{} } -/* GetClustersOK describes a response with status code 200, with default header values. +/* +GetClustersOK describes a response with status code 200, with default header values. Taxnexus Response with Cluster objects */ @@ -81,9 +82,44 @@ type GetClustersOK struct { Payload *sfgate_models.ClusterResponse } +// IsSuccess returns true when this get clusters o k response has a 2xx status code +func (o *GetClustersOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get clusters o k response has a 3xx status code +func (o *GetClustersOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get clusters o k response has a 4xx status code +func (o *GetClustersOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get clusters o k response has a 5xx status code +func (o *GetClustersOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get clusters o k response a status code equal to that given +func (o *GetClustersOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get clusters o k response +func (o *GetClustersOK) Code() int { + return 200 +} + func (o *GetClustersOK) Error() string { return fmt.Sprintf("[GET /clusters][%d] getClustersOK %+v", 200, o.Payload) } + +func (o *GetClustersOK) String() string { + return fmt.Sprintf("[GET /clusters][%d] getClustersOK %+v", 200, o.Payload) +} + func (o *GetClustersOK) GetPayload() *sfgate_models.ClusterResponse { return o.Payload } @@ -105,7 +141,8 @@ func NewGetClustersUnauthorized() *GetClustersUnauthorized { return &GetClustersUnauthorized{} } -/* GetClustersUnauthorized describes a response with status code 401, with default header values. +/* +GetClustersUnauthorized describes a response with status code 401, with default header values. Access unauthorized, invalid API-KEY was used */ @@ -115,9 +152,44 @@ type GetClustersUnauthorized struct { Payload *sfgate_models.Error } +// IsSuccess returns true when this get clusters unauthorized response has a 2xx status code +func (o *GetClustersUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get clusters unauthorized response has a 3xx status code +func (o *GetClustersUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get clusters unauthorized response has a 4xx status code +func (o *GetClustersUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this get clusters unauthorized response has a 5xx status code +func (o *GetClustersUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this get clusters unauthorized response a status code equal to that given +func (o *GetClustersUnauthorized) IsCode(code int) bool { + return code == 401 +} + +// Code gets the status code for the get clusters unauthorized response +func (o *GetClustersUnauthorized) Code() int { + return 401 +} + func (o *GetClustersUnauthorized) Error() string { return fmt.Sprintf("[GET /clusters][%d] getClustersUnauthorized %+v", 401, o.Payload) } + +func (o *GetClustersUnauthorized) String() string { + return fmt.Sprintf("[GET /clusters][%d] getClustersUnauthorized %+v", 401, o.Payload) +} + func (o *GetClustersUnauthorized) GetPayload() *sfgate_models.Error { return o.Payload } @@ -146,7 +218,8 @@ func NewGetClustersForbidden() *GetClustersForbidden { return &GetClustersForbidden{} } -/* GetClustersForbidden describes a response with status code 403, with default header values. +/* +GetClustersForbidden describes a response with status code 403, with default header values. Access forbidden, account lacks access */ @@ -156,9 +229,44 @@ type GetClustersForbidden struct { Payload *sfgate_models.Error } +// IsSuccess returns true when this get clusters forbidden response has a 2xx status code +func (o *GetClustersForbidden) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get clusters forbidden response has a 3xx status code +func (o *GetClustersForbidden) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get clusters forbidden response has a 4xx status code +func (o *GetClustersForbidden) IsClientError() bool { + return true +} + +// IsServerError returns true when this get clusters forbidden response has a 5xx status code +func (o *GetClustersForbidden) IsServerError() bool { + return false +} + +// IsCode returns true when this get clusters forbidden response a status code equal to that given +func (o *GetClustersForbidden) IsCode(code int) bool { + return code == 403 +} + +// Code gets the status code for the get clusters forbidden response +func (o *GetClustersForbidden) Code() int { + return 403 +} + func (o *GetClustersForbidden) Error() string { return fmt.Sprintf("[GET /clusters][%d] getClustersForbidden %+v", 403, o.Payload) } + +func (o *GetClustersForbidden) String() string { + return fmt.Sprintf("[GET /clusters][%d] getClustersForbidden %+v", 403, o.Payload) +} + func (o *GetClustersForbidden) GetPayload() *sfgate_models.Error { return o.Payload } @@ -187,7 +295,8 @@ func NewGetClustersNotFound() *GetClustersNotFound { return &GetClustersNotFound{} } -/* GetClustersNotFound describes a response with status code 404, with default header values. +/* +GetClustersNotFound describes a response with status code 404, with default header values. Resource was not found */ @@ -197,9 +306,44 @@ type GetClustersNotFound struct { Payload *sfgate_models.Error } +// IsSuccess returns true when this get clusters not found response has a 2xx status code +func (o *GetClustersNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get clusters not found response has a 3xx status code +func (o *GetClustersNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get clusters not found response has a 4xx status code +func (o *GetClustersNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this get clusters not found response has a 5xx status code +func (o *GetClustersNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this get clusters not found response a status code equal to that given +func (o *GetClustersNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the get clusters not found response +func (o *GetClustersNotFound) Code() int { + return 404 +} + func (o *GetClustersNotFound) Error() string { return fmt.Sprintf("[GET /clusters][%d] getClustersNotFound %+v", 404, o.Payload) } + +func (o *GetClustersNotFound) String() string { + return fmt.Sprintf("[GET /clusters][%d] getClustersNotFound %+v", 404, o.Payload) +} + func (o *GetClustersNotFound) GetPayload() *sfgate_models.Error { return o.Payload } @@ -228,7 +372,8 @@ func NewGetClustersUnprocessableEntity() *GetClustersUnprocessableEntity { return &GetClustersUnprocessableEntity{} } -/* GetClustersUnprocessableEntity describes a response with status code 422, with default header values. +/* +GetClustersUnprocessableEntity describes a response with status code 422, with default header values. Unprocessable Entity, likely a bad parameter */ @@ -238,9 +383,44 @@ type GetClustersUnprocessableEntity struct { Payload *sfgate_models.Error } +// IsSuccess returns true when this get clusters unprocessable entity response has a 2xx status code +func (o *GetClustersUnprocessableEntity) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get clusters unprocessable entity response has a 3xx status code +func (o *GetClustersUnprocessableEntity) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get clusters unprocessable entity response has a 4xx status code +func (o *GetClustersUnprocessableEntity) IsClientError() bool { + return true +} + +// IsServerError returns true when this get clusters unprocessable entity response has a 5xx status code +func (o *GetClustersUnprocessableEntity) IsServerError() bool { + return false +} + +// IsCode returns true when this get clusters unprocessable entity response a status code equal to that given +func (o *GetClustersUnprocessableEntity) IsCode(code int) bool { + return code == 422 +} + +// Code gets the status code for the get clusters unprocessable entity response +func (o *GetClustersUnprocessableEntity) Code() int { + return 422 +} + func (o *GetClustersUnprocessableEntity) Error() string { return fmt.Sprintf("[GET /clusters][%d] getClustersUnprocessableEntity %+v", 422, o.Payload) } + +func (o *GetClustersUnprocessableEntity) String() string { + return fmt.Sprintf("[GET /clusters][%d] getClustersUnprocessableEntity %+v", 422, o.Payload) +} + func (o *GetClustersUnprocessableEntity) GetPayload() *sfgate_models.Error { return o.Payload } @@ -269,7 +449,8 @@ func NewGetClustersInternalServerError() *GetClustersInternalServerError { return &GetClustersInternalServerError{} } -/* GetClustersInternalServerError describes a response with status code 500, with default header values. +/* +GetClustersInternalServerError describes a response with status code 500, with default header values. Server Internal Error */ @@ -279,9 +460,44 @@ type GetClustersInternalServerError struct { Payload *sfgate_models.Error } +// IsSuccess returns true when this get clusters internal server error response has a 2xx status code +func (o *GetClustersInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get clusters internal server error response has a 3xx status code +func (o *GetClustersInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get clusters internal server error response has a 4xx status code +func (o *GetClustersInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this get clusters internal server error response has a 5xx status code +func (o *GetClustersInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this get clusters internal server error response a status code equal to that given +func (o *GetClustersInternalServerError) IsCode(code int) bool { + return code == 500 +} + +// Code gets the status code for the get clusters internal server error response +func (o *GetClustersInternalServerError) Code() int { + return 500 +} + func (o *GetClustersInternalServerError) Error() string { return fmt.Sprintf("[GET /clusters][%d] getClustersInternalServerError %+v", 500, o.Payload) } + +func (o *GetClustersInternalServerError) String() string { + return fmt.Sprintf("[GET /clusters][%d] getClustersInternalServerError %+v", 500, o.Payload) +} + func (o *GetClustersInternalServerError) GetPayload() *sfgate_models.Error { return o.Payload } diff --git a/api/sfgate/sfgate_client/clusters/post_clusters_parameters.go b/api/sfgate/sfgate_client/clusters/post_clusters_parameters.go index 2ebe89d..7a99301 100644 --- a/api/sfgate/sfgate_client/clusters/post_clusters_parameters.go +++ b/api/sfgate/sfgate_client/clusters/post_clusters_parameters.go @@ -58,10 +58,12 @@ func NewPostClustersParamsWithHTTPClient(client *http.Client) *PostClustersParam } } -/* PostClustersParams contains all the parameters to send to the API endpoint - for the post clusters operation. +/* +PostClustersParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the post clusters operation. + + Typically these are written to a http.Request. */ type PostClustersParams struct { diff --git a/api/sfgate/sfgate_client/clusters/post_clusters_responses.go b/api/sfgate/sfgate_client/clusters/post_clusters_responses.go index 01f436b..511211f 100644 --- a/api/sfgate/sfgate_client/clusters/post_clusters_responses.go +++ b/api/sfgate/sfgate_client/clusters/post_clusters_responses.go @@ -73,7 +73,8 @@ func NewPostClustersOK() *PostClustersOK { return &PostClustersOK{} } -/* PostClustersOK describes a response with status code 200, with default header values. +/* +PostClustersOK describes a response with status code 200, with default header values. Taxnexus Response with Cluster objects */ @@ -81,9 +82,44 @@ type PostClustersOK struct { Payload *sfgate_models.ClusterResponse } +// IsSuccess returns true when this post clusters o k response has a 2xx status code +func (o *PostClustersOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this post clusters o k response has a 3xx status code +func (o *PostClustersOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this post clusters o k response has a 4xx status code +func (o *PostClustersOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this post clusters o k response has a 5xx status code +func (o *PostClustersOK) IsServerError() bool { + return false +} + +// IsCode returns true when this post clusters o k response a status code equal to that given +func (o *PostClustersOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the post clusters o k response +func (o *PostClustersOK) Code() int { + return 200 +} + func (o *PostClustersOK) Error() string { return fmt.Sprintf("[POST /clusters][%d] postClustersOK %+v", 200, o.Payload) } + +func (o *PostClustersOK) String() string { + return fmt.Sprintf("[POST /clusters][%d] postClustersOK %+v", 200, o.Payload) +} + func (o *PostClustersOK) GetPayload() *sfgate_models.ClusterResponse { return o.Payload } @@ -105,7 +141,8 @@ func NewPostClustersUnauthorized() *PostClustersUnauthorized { return &PostClustersUnauthorized{} } -/* PostClustersUnauthorized describes a response with status code 401, with default header values. +/* +PostClustersUnauthorized describes a response with status code 401, with default header values. Access unauthorized, invalid API-KEY was used */ @@ -115,9 +152,44 @@ type PostClustersUnauthorized struct { Payload *sfgate_models.Error } +// IsSuccess returns true when this post clusters unauthorized response has a 2xx status code +func (o *PostClustersUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this post clusters unauthorized response has a 3xx status code +func (o *PostClustersUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this post clusters unauthorized response has a 4xx status code +func (o *PostClustersUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this post clusters unauthorized response has a 5xx status code +func (o *PostClustersUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this post clusters unauthorized response a status code equal to that given +func (o *PostClustersUnauthorized) IsCode(code int) bool { + return code == 401 +} + +// Code gets the status code for the post clusters unauthorized response +func (o *PostClustersUnauthorized) Code() int { + return 401 +} + func (o *PostClustersUnauthorized) Error() string { return fmt.Sprintf("[POST /clusters][%d] postClustersUnauthorized %+v", 401, o.Payload) } + +func (o *PostClustersUnauthorized) String() string { + return fmt.Sprintf("[POST /clusters][%d] postClustersUnauthorized %+v", 401, o.Payload) +} + func (o *PostClustersUnauthorized) GetPayload() *sfgate_models.Error { return o.Payload } @@ -146,7 +218,8 @@ func NewPostClustersForbidden() *PostClustersForbidden { return &PostClustersForbidden{} } -/* PostClustersForbidden describes a response with status code 403, with default header values. +/* +PostClustersForbidden describes a response with status code 403, with default header values. Access forbidden, account lacks access */ @@ -156,9 +229,44 @@ type PostClustersForbidden struct { Payload *sfgate_models.Error } +// IsSuccess returns true when this post clusters forbidden response has a 2xx status code +func (o *PostClustersForbidden) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this post clusters forbidden response has a 3xx status code +func (o *PostClustersForbidden) IsRedirect() bool { + return false +} + +// IsClientError returns true when this post clusters forbidden response has a 4xx status code +func (o *PostClustersForbidden) IsClientError() bool { + return true +} + +// IsServerError returns true when this post clusters forbidden response has a 5xx status code +func (o *PostClustersForbidden) IsServerError() bool { + return false +} + +// IsCode returns true when this post clusters forbidden response a status code equal to that given +func (o *PostClustersForbidden) IsCode(code int) bool { + return code == 403 +} + +// Code gets the status code for the post clusters forbidden response +func (o *PostClustersForbidden) Code() int { + return 403 +} + func (o *PostClustersForbidden) Error() string { return fmt.Sprintf("[POST /clusters][%d] postClustersForbidden %+v", 403, o.Payload) } + +func (o *PostClustersForbidden) String() string { + return fmt.Sprintf("[POST /clusters][%d] postClustersForbidden %+v", 403, o.Payload) +} + func (o *PostClustersForbidden) GetPayload() *sfgate_models.Error { return o.Payload } @@ -187,7 +295,8 @@ func NewPostClustersNotFound() *PostClustersNotFound { return &PostClustersNotFound{} } -/* PostClustersNotFound describes a response with status code 404, with default header values. +/* +PostClustersNotFound describes a response with status code 404, with default header values. Resource was not found */ @@ -197,9 +306,44 @@ type PostClustersNotFound struct { Payload *sfgate_models.Error } +// IsSuccess returns true when this post clusters not found response has a 2xx status code +func (o *PostClustersNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this post clusters not found response has a 3xx status code +func (o *PostClustersNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this post clusters not found response has a 4xx status code +func (o *PostClustersNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this post clusters not found response has a 5xx status code +func (o *PostClustersNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this post clusters not found response a status code equal to that given +func (o *PostClustersNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the post clusters not found response +func (o *PostClustersNotFound) Code() int { + return 404 +} + func (o *PostClustersNotFound) Error() string { return fmt.Sprintf("[POST /clusters][%d] postClustersNotFound %+v", 404, o.Payload) } + +func (o *PostClustersNotFound) String() string { + return fmt.Sprintf("[POST /clusters][%d] postClustersNotFound %+v", 404, o.Payload) +} + func (o *PostClustersNotFound) GetPayload() *sfgate_models.Error { return o.Payload } @@ -228,7 +372,8 @@ func NewPostClustersUnprocessableEntity() *PostClustersUnprocessableEntity { return &PostClustersUnprocessableEntity{} } -/* PostClustersUnprocessableEntity describes a response with status code 422, with default header values. +/* +PostClustersUnprocessableEntity describes a response with status code 422, with default header values. Unprocessable Entity, likely a bad parameter */ @@ -238,9 +383,44 @@ type PostClustersUnprocessableEntity struct { Payload *sfgate_models.Error } +// IsSuccess returns true when this post clusters unprocessable entity response has a 2xx status code +func (o *PostClustersUnprocessableEntity) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this post clusters unprocessable entity response has a 3xx status code +func (o *PostClustersUnprocessableEntity) IsRedirect() bool { + return false +} + +// IsClientError returns true when this post clusters unprocessable entity response has a 4xx status code +func (o *PostClustersUnprocessableEntity) IsClientError() bool { + return true +} + +// IsServerError returns true when this post clusters unprocessable entity response has a 5xx status code +func (o *PostClustersUnprocessableEntity) IsServerError() bool { + return false +} + +// IsCode returns true when this post clusters unprocessable entity response a status code equal to that given +func (o *PostClustersUnprocessableEntity) IsCode(code int) bool { + return code == 422 +} + +// Code gets the status code for the post clusters unprocessable entity response +func (o *PostClustersUnprocessableEntity) Code() int { + return 422 +} + func (o *PostClustersUnprocessableEntity) Error() string { return fmt.Sprintf("[POST /clusters][%d] postClustersUnprocessableEntity %+v", 422, o.Payload) } + +func (o *PostClustersUnprocessableEntity) String() string { + return fmt.Sprintf("[POST /clusters][%d] postClustersUnprocessableEntity %+v", 422, o.Payload) +} + func (o *PostClustersUnprocessableEntity) GetPayload() *sfgate_models.Error { return o.Payload } @@ -269,7 +449,8 @@ func NewPostClustersInternalServerError() *PostClustersInternalServerError { return &PostClustersInternalServerError{} } -/* PostClustersInternalServerError describes a response with status code 500, with default header values. +/* +PostClustersInternalServerError describes a response with status code 500, with default header values. Server Internal Error */ @@ -279,9 +460,44 @@ type PostClustersInternalServerError struct { Payload *sfgate_models.Error } +// IsSuccess returns true when this post clusters internal server error response has a 2xx status code +func (o *PostClustersInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this post clusters internal server error response has a 3xx status code +func (o *PostClustersInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this post clusters internal server error response has a 4xx status code +func (o *PostClustersInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this post clusters internal server error response has a 5xx status code +func (o *PostClustersInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this post clusters internal server error response a status code equal to that given +func (o *PostClustersInternalServerError) IsCode(code int) bool { + return code == 500 +} + +// Code gets the status code for the post clusters internal server error response +func (o *PostClustersInternalServerError) Code() int { + return 500 +} + func (o *PostClustersInternalServerError) Error() string { return fmt.Sprintf("[POST /clusters][%d] postClustersInternalServerError %+v", 500, o.Payload) } + +func (o *PostClustersInternalServerError) String() string { + return fmt.Sprintf("[POST /clusters][%d] postClustersInternalServerError %+v", 500, o.Payload) +} + func (o *PostClustersInternalServerError) GetPayload() *sfgate_models.Error { return o.Payload } diff --git a/api/sfgate/sfgate_client/clusters/put_clusters_parameters.go b/api/sfgate/sfgate_client/clusters/put_clusters_parameters.go index 0df21d3..c0fa8d9 100644 --- a/api/sfgate/sfgate_client/clusters/put_clusters_parameters.go +++ b/api/sfgate/sfgate_client/clusters/put_clusters_parameters.go @@ -58,10 +58,12 @@ func NewPutClustersParamsWithHTTPClient(client *http.Client) *PutClustersParams } } -/* PutClustersParams contains all the parameters to send to the API endpoint - for the put clusters operation. +/* +PutClustersParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the put clusters operation. + + Typically these are written to a http.Request. */ type PutClustersParams struct { diff --git a/api/sfgate/sfgate_client/clusters/put_clusters_responses.go b/api/sfgate/sfgate_client/clusters/put_clusters_responses.go index ba2a39d..3fca52d 100644 --- a/api/sfgate/sfgate_client/clusters/put_clusters_responses.go +++ b/api/sfgate/sfgate_client/clusters/put_clusters_responses.go @@ -73,7 +73,8 @@ func NewPutClustersOK() *PutClustersOK { return &PutClustersOK{} } -/* PutClustersOK describes a response with status code 200, with default header values. +/* +PutClustersOK describes a response with status code 200, with default header values. Taxnexus Response with Cluster objects */ @@ -81,9 +82,44 @@ type PutClustersOK struct { Payload *sfgate_models.ClusterResponse } +// IsSuccess returns true when this put clusters o k response has a 2xx status code +func (o *PutClustersOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this put clusters o k response has a 3xx status code +func (o *PutClustersOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this put clusters o k response has a 4xx status code +func (o *PutClustersOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this put clusters o k response has a 5xx status code +func (o *PutClustersOK) IsServerError() bool { + return false +} + +// IsCode returns true when this put clusters o k response a status code equal to that given +func (o *PutClustersOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the put clusters o k response +func (o *PutClustersOK) Code() int { + return 200 +} + func (o *PutClustersOK) Error() string { return fmt.Sprintf("[PUT /clusters][%d] putClustersOK %+v", 200, o.Payload) } + +func (o *PutClustersOK) String() string { + return fmt.Sprintf("[PUT /clusters][%d] putClustersOK %+v", 200, o.Payload) +} + func (o *PutClustersOK) GetPayload() *sfgate_models.ClusterResponse { return o.Payload } @@ -105,7 +141,8 @@ func NewPutClustersUnauthorized() *PutClustersUnauthorized { return &PutClustersUnauthorized{} } -/* PutClustersUnauthorized describes a response with status code 401, with default header values. +/* +PutClustersUnauthorized describes a response with status code 401, with default header values. Access unauthorized, invalid API-KEY was used */ @@ -115,9 +152,44 @@ type PutClustersUnauthorized struct { Payload *sfgate_models.Error } +// IsSuccess returns true when this put clusters unauthorized response has a 2xx status code +func (o *PutClustersUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this put clusters unauthorized response has a 3xx status code +func (o *PutClustersUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this put clusters unauthorized response has a 4xx status code +func (o *PutClustersUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this put clusters unauthorized response has a 5xx status code +func (o *PutClustersUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this put clusters unauthorized response a status code equal to that given +func (o *PutClustersUnauthorized) IsCode(code int) bool { + return code == 401 +} + +// Code gets the status code for the put clusters unauthorized response +func (o *PutClustersUnauthorized) Code() int { + return 401 +} + func (o *PutClustersUnauthorized) Error() string { return fmt.Sprintf("[PUT /clusters][%d] putClustersUnauthorized %+v", 401, o.Payload) } + +func (o *PutClustersUnauthorized) String() string { + return fmt.Sprintf("[PUT /clusters][%d] putClustersUnauthorized %+v", 401, o.Payload) +} + func (o *PutClustersUnauthorized) GetPayload() *sfgate_models.Error { return o.Payload } @@ -146,7 +218,8 @@ func NewPutClustersForbidden() *PutClustersForbidden { return &PutClustersForbidden{} } -/* PutClustersForbidden describes a response with status code 403, with default header values. +/* +PutClustersForbidden describes a response with status code 403, with default header values. Access forbidden, account lacks access */ @@ -156,9 +229,44 @@ type PutClustersForbidden struct { Payload *sfgate_models.Error } +// IsSuccess returns true when this put clusters forbidden response has a 2xx status code +func (o *PutClustersForbidden) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this put clusters forbidden response has a 3xx status code +func (o *PutClustersForbidden) IsRedirect() bool { + return false +} + +// IsClientError returns true when this put clusters forbidden response has a 4xx status code +func (o *PutClustersForbidden) IsClientError() bool { + return true +} + +// IsServerError returns true when this put clusters forbidden response has a 5xx status code +func (o *PutClustersForbidden) IsServerError() bool { + return false +} + +// IsCode returns true when this put clusters forbidden response a status code equal to that given +func (o *PutClustersForbidden) IsCode(code int) bool { + return code == 403 +} + +// Code gets the status code for the put clusters forbidden response +func (o *PutClustersForbidden) Code() int { + return 403 +} + func (o *PutClustersForbidden) Error() string { return fmt.Sprintf("[PUT /clusters][%d] putClustersForbidden %+v", 403, o.Payload) } + +func (o *PutClustersForbidden) String() string { + return fmt.Sprintf("[PUT /clusters][%d] putClustersForbidden %+v", 403, o.Payload) +} + func (o *PutClustersForbidden) GetPayload() *sfgate_models.Error { return o.Payload } @@ -187,7 +295,8 @@ func NewPutClustersNotFound() *PutClustersNotFound { return &PutClustersNotFound{} } -/* PutClustersNotFound describes a response with status code 404, with default header values. +/* +PutClustersNotFound describes a response with status code 404, with default header values. Resource was not found */ @@ -197,9 +306,44 @@ type PutClustersNotFound struct { Payload *sfgate_models.Error } +// IsSuccess returns true when this put clusters not found response has a 2xx status code +func (o *PutClustersNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this put clusters not found response has a 3xx status code +func (o *PutClustersNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this put clusters not found response has a 4xx status code +func (o *PutClustersNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this put clusters not found response has a 5xx status code +func (o *PutClustersNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this put clusters not found response a status code equal to that given +func (o *PutClustersNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the put clusters not found response +func (o *PutClustersNotFound) Code() int { + return 404 +} + func (o *PutClustersNotFound) Error() string { return fmt.Sprintf("[PUT /clusters][%d] putClustersNotFound %+v", 404, o.Payload) } + +func (o *PutClustersNotFound) String() string { + return fmt.Sprintf("[PUT /clusters][%d] putClustersNotFound %+v", 404, o.Payload) +} + func (o *PutClustersNotFound) GetPayload() *sfgate_models.Error { return o.Payload } @@ -228,7 +372,8 @@ func NewPutClustersUnprocessableEntity() *PutClustersUnprocessableEntity { return &PutClustersUnprocessableEntity{} } -/* PutClustersUnprocessableEntity describes a response with status code 422, with default header values. +/* +PutClustersUnprocessableEntity describes a response with status code 422, with default header values. Unprocessable Entity, likely a bad parameter */ @@ -238,9 +383,44 @@ type PutClustersUnprocessableEntity struct { Payload *sfgate_models.Error } +// IsSuccess returns true when this put clusters unprocessable entity response has a 2xx status code +func (o *PutClustersUnprocessableEntity) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this put clusters unprocessable entity response has a 3xx status code +func (o *PutClustersUnprocessableEntity) IsRedirect() bool { + return false +} + +// IsClientError returns true when this put clusters unprocessable entity response has a 4xx status code +func (o *PutClustersUnprocessableEntity) IsClientError() bool { + return true +} + +// IsServerError returns true when this put clusters unprocessable entity response has a 5xx status code +func (o *PutClustersUnprocessableEntity) IsServerError() bool { + return false +} + +// IsCode returns true when this put clusters unprocessable entity response a status code equal to that given +func (o *PutClustersUnprocessableEntity) IsCode(code int) bool { + return code == 422 +} + +// Code gets the status code for the put clusters unprocessable entity response +func (o *PutClustersUnprocessableEntity) Code() int { + return 422 +} + func (o *PutClustersUnprocessableEntity) Error() string { return fmt.Sprintf("[PUT /clusters][%d] putClustersUnprocessableEntity %+v", 422, o.Payload) } + +func (o *PutClustersUnprocessableEntity) String() string { + return fmt.Sprintf("[PUT /clusters][%d] putClustersUnprocessableEntity %+v", 422, o.Payload) +} + func (o *PutClustersUnprocessableEntity) GetPayload() *sfgate_models.Error { return o.Payload } @@ -269,7 +449,8 @@ func NewPutClustersInternalServerError() *PutClustersInternalServerError { return &PutClustersInternalServerError{} } -/* PutClustersInternalServerError describes a response with status code 500, with default header values. +/* +PutClustersInternalServerError describes a response with status code 500, with default header values. Server Internal Error */ @@ -279,9 +460,44 @@ type PutClustersInternalServerError struct { Payload *sfgate_models.Error } +// IsSuccess returns true when this put clusters internal server error response has a 2xx status code +func (o *PutClustersInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this put clusters internal server error response has a 3xx status code +func (o *PutClustersInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this put clusters internal server error response has a 4xx status code +func (o *PutClustersInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this put clusters internal server error response has a 5xx status code +func (o *PutClustersInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this put clusters internal server error response a status code equal to that given +func (o *PutClustersInternalServerError) IsCode(code int) bool { + return code == 500 +} + +// Code gets the status code for the put clusters internal server error response +func (o *PutClustersInternalServerError) Code() int { + return 500 +} + func (o *PutClustersInternalServerError) Error() string { return fmt.Sprintf("[PUT /clusters][%d] putClustersInternalServerError %+v", 500, o.Payload) } + +func (o *PutClustersInternalServerError) String() string { + return fmt.Sprintf("[PUT /clusters][%d] putClustersInternalServerError %+v", 500, o.Payload) +} + func (o *PutClustersInternalServerError) GetPayload() *sfgate_models.Error { return o.Payload } diff --git a/api/sfgate/sfgate_client/company_products/company_products_client.go b/api/sfgate/sfgate_client/company_products/company_products_client.go index 1120ca6..6a0cc59 100644 --- a/api/sfgate/sfgate_client/company_products/company_products_client.go +++ b/api/sfgate/sfgate_client/company_products/company_products_client.go @@ -42,9 +42,9 @@ type ClientService interface { } /* - GetCompanyProducts gets a list of companyproducts +GetCompanyProducts gets a list of companyproducts - Return a list of all available CompanyProducts +Return a list of all available CompanyProducts */ func (a *Client) GetCompanyProducts(params *GetCompanyProductsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetCompanyProductsOK, error) { // TODO: Validate the params before sending @@ -83,9 +83,9 @@ func (a *Client) GetCompanyProducts(params *GetCompanyProductsParams, authInfo r } /* - PostCompanyProducts adds a new companyproduct to taxnexus +PostCompanyProducts adds a new companyproduct to taxnexus - Industry record to be added +Industry record to be added */ func (a *Client) PostCompanyProducts(params *PostCompanyProductsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostCompanyProductsOK, error) { // TODO: Validate the params before sending diff --git a/api/sfgate/sfgate_client/company_products/get_company_products_parameters.go b/api/sfgate/sfgate_client/company_products/get_company_products_parameters.go index 592f35f..50c9b66 100644 --- a/api/sfgate/sfgate_client/company_products/get_company_products_parameters.go +++ b/api/sfgate/sfgate_client/company_products/get_company_products_parameters.go @@ -57,10 +57,12 @@ func NewGetCompanyProductsParamsWithHTTPClient(client *http.Client) *GetCompanyP } } -/* GetCompanyProductsParams contains all the parameters to send to the API endpoint - for the get company products operation. +/* +GetCompanyProductsParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get company products operation. + + Typically these are written to a http.Request. */ type GetCompanyProductsParams struct { diff --git a/api/sfgate/sfgate_client/company_products/get_company_products_responses.go b/api/sfgate/sfgate_client/company_products/get_company_products_responses.go index d9159f0..e54d1bb 100644 --- a/api/sfgate/sfgate_client/company_products/get_company_products_responses.go +++ b/api/sfgate/sfgate_client/company_products/get_company_products_responses.go @@ -73,7 +73,8 @@ func NewGetCompanyProductsOK() *GetCompanyProductsOK { return &GetCompanyProductsOK{} } -/* GetCompanyProductsOK describes a response with status code 200, with default header values. +/* +GetCompanyProductsOK describes a response with status code 200, with default header values. Taxnexus Response with an array of CompanyProduct objects */ @@ -84,9 +85,44 @@ type GetCompanyProductsOK struct { Payload *sfgate_models.CompanyProductResponse } +// IsSuccess returns true when this get company products o k response has a 2xx status code +func (o *GetCompanyProductsOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get company products o k response has a 3xx status code +func (o *GetCompanyProductsOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get company products o k response has a 4xx status code +func (o *GetCompanyProductsOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get company products o k response has a 5xx status code +func (o *GetCompanyProductsOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get company products o k response a status code equal to that given +func (o *GetCompanyProductsOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get company products o k response +func (o *GetCompanyProductsOK) Code() int { + return 200 +} + func (o *GetCompanyProductsOK) Error() string { return fmt.Sprintf("[GET /companyproducts][%d] getCompanyProductsOK %+v", 200, o.Payload) } + +func (o *GetCompanyProductsOK) String() string { + return fmt.Sprintf("[GET /companyproducts][%d] getCompanyProductsOK %+v", 200, o.Payload) +} + func (o *GetCompanyProductsOK) GetPayload() *sfgate_models.CompanyProductResponse { return o.Payload } @@ -122,7 +158,8 @@ func NewGetCompanyProductsUnauthorized() *GetCompanyProductsUnauthorized { return &GetCompanyProductsUnauthorized{} } -/* GetCompanyProductsUnauthorized describes a response with status code 401, with default header values. +/* +GetCompanyProductsUnauthorized describes a response with status code 401, with default header values. Access unauthorized, invalid API-KEY was used */ @@ -132,9 +169,44 @@ type GetCompanyProductsUnauthorized struct { Payload *sfgate_models.Error } +// IsSuccess returns true when this get company products unauthorized response has a 2xx status code +func (o *GetCompanyProductsUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get company products unauthorized response has a 3xx status code +func (o *GetCompanyProductsUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get company products unauthorized response has a 4xx status code +func (o *GetCompanyProductsUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this get company products unauthorized response has a 5xx status code +func (o *GetCompanyProductsUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this get company products unauthorized response a status code equal to that given +func (o *GetCompanyProductsUnauthorized) IsCode(code int) bool { + return code == 401 +} + +// Code gets the status code for the get company products unauthorized response +func (o *GetCompanyProductsUnauthorized) Code() int { + return 401 +} + func (o *GetCompanyProductsUnauthorized) Error() string { return fmt.Sprintf("[GET /companyproducts][%d] getCompanyProductsUnauthorized %+v", 401, o.Payload) } + +func (o *GetCompanyProductsUnauthorized) String() string { + return fmt.Sprintf("[GET /companyproducts][%d] getCompanyProductsUnauthorized %+v", 401, o.Payload) +} + func (o *GetCompanyProductsUnauthorized) GetPayload() *sfgate_models.Error { return o.Payload } @@ -163,7 +235,8 @@ func NewGetCompanyProductsForbidden() *GetCompanyProductsForbidden { return &GetCompanyProductsForbidden{} } -/* GetCompanyProductsForbidden describes a response with status code 403, with default header values. +/* +GetCompanyProductsForbidden describes a response with status code 403, with default header values. Access forbidden, account lacks access */ @@ -173,9 +246,44 @@ type GetCompanyProductsForbidden struct { Payload *sfgate_models.Error } +// IsSuccess returns true when this get company products forbidden response has a 2xx status code +func (o *GetCompanyProductsForbidden) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get company products forbidden response has a 3xx status code +func (o *GetCompanyProductsForbidden) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get company products forbidden response has a 4xx status code +func (o *GetCompanyProductsForbidden) IsClientError() bool { + return true +} + +// IsServerError returns true when this get company products forbidden response has a 5xx status code +func (o *GetCompanyProductsForbidden) IsServerError() bool { + return false +} + +// IsCode returns true when this get company products forbidden response a status code equal to that given +func (o *GetCompanyProductsForbidden) IsCode(code int) bool { + return code == 403 +} + +// Code gets the status code for the get company products forbidden response +func (o *GetCompanyProductsForbidden) Code() int { + return 403 +} + func (o *GetCompanyProductsForbidden) Error() string { return fmt.Sprintf("[GET /companyproducts][%d] getCompanyProductsForbidden %+v", 403, o.Payload) } + +func (o *GetCompanyProductsForbidden) String() string { + return fmt.Sprintf("[GET /companyproducts][%d] getCompanyProductsForbidden %+v", 403, o.Payload) +} + func (o *GetCompanyProductsForbidden) GetPayload() *sfgate_models.Error { return o.Payload } @@ -204,7 +312,8 @@ func NewGetCompanyProductsNotFound() *GetCompanyProductsNotFound { return &GetCompanyProductsNotFound{} } -/* GetCompanyProductsNotFound describes a response with status code 404, with default header values. +/* +GetCompanyProductsNotFound describes a response with status code 404, with default header values. Resource was not found */ @@ -214,9 +323,44 @@ type GetCompanyProductsNotFound struct { Payload *sfgate_models.Error } +// IsSuccess returns true when this get company products not found response has a 2xx status code +func (o *GetCompanyProductsNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get company products not found response has a 3xx status code +func (o *GetCompanyProductsNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get company products not found response has a 4xx status code +func (o *GetCompanyProductsNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this get company products not found response has a 5xx status code +func (o *GetCompanyProductsNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this get company products not found response a status code equal to that given +func (o *GetCompanyProductsNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the get company products not found response +func (o *GetCompanyProductsNotFound) Code() int { + return 404 +} + func (o *GetCompanyProductsNotFound) Error() string { return fmt.Sprintf("[GET /companyproducts][%d] getCompanyProductsNotFound %+v", 404, o.Payload) } + +func (o *GetCompanyProductsNotFound) String() string { + return fmt.Sprintf("[GET /companyproducts][%d] getCompanyProductsNotFound %+v", 404, o.Payload) +} + func (o *GetCompanyProductsNotFound) GetPayload() *sfgate_models.Error { return o.Payload } @@ -245,7 +389,8 @@ func NewGetCompanyProductsUnprocessableEntity() *GetCompanyProductsUnprocessable return &GetCompanyProductsUnprocessableEntity{} } -/* GetCompanyProductsUnprocessableEntity describes a response with status code 422, with default header values. +/* +GetCompanyProductsUnprocessableEntity describes a response with status code 422, with default header values. Unprocessable Entity, likely a bad parameter */ @@ -255,9 +400,44 @@ type GetCompanyProductsUnprocessableEntity struct { Payload *sfgate_models.Error } +// IsSuccess returns true when this get company products unprocessable entity response has a 2xx status code +func (o *GetCompanyProductsUnprocessableEntity) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get company products unprocessable entity response has a 3xx status code +func (o *GetCompanyProductsUnprocessableEntity) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get company products unprocessable entity response has a 4xx status code +func (o *GetCompanyProductsUnprocessableEntity) IsClientError() bool { + return true +} + +// IsServerError returns true when this get company products unprocessable entity response has a 5xx status code +func (o *GetCompanyProductsUnprocessableEntity) IsServerError() bool { + return false +} + +// IsCode returns true when this get company products unprocessable entity response a status code equal to that given +func (o *GetCompanyProductsUnprocessableEntity) IsCode(code int) bool { + return code == 422 +} + +// Code gets the status code for the get company products unprocessable entity response +func (o *GetCompanyProductsUnprocessableEntity) Code() int { + return 422 +} + func (o *GetCompanyProductsUnprocessableEntity) Error() string { return fmt.Sprintf("[GET /companyproducts][%d] getCompanyProductsUnprocessableEntity %+v", 422, o.Payload) } + +func (o *GetCompanyProductsUnprocessableEntity) String() string { + return fmt.Sprintf("[GET /companyproducts][%d] getCompanyProductsUnprocessableEntity %+v", 422, o.Payload) +} + func (o *GetCompanyProductsUnprocessableEntity) GetPayload() *sfgate_models.Error { return o.Payload } @@ -286,7 +466,8 @@ func NewGetCompanyProductsInternalServerError() *GetCompanyProductsInternalServe return &GetCompanyProductsInternalServerError{} } -/* GetCompanyProductsInternalServerError describes a response with status code 500, with default header values. +/* +GetCompanyProductsInternalServerError describes a response with status code 500, with default header values. Server Internal Error */ @@ -296,9 +477,44 @@ type GetCompanyProductsInternalServerError struct { Payload *sfgate_models.Error } +// IsSuccess returns true when this get company products internal server error response has a 2xx status code +func (o *GetCompanyProductsInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get company products internal server error response has a 3xx status code +func (o *GetCompanyProductsInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get company products internal server error response has a 4xx status code +func (o *GetCompanyProductsInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this get company products internal server error response has a 5xx status code +func (o *GetCompanyProductsInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this get company products internal server error response a status code equal to that given +func (o *GetCompanyProductsInternalServerError) IsCode(code int) bool { + return code == 500 +} + +// Code gets the status code for the get company products internal server error response +func (o *GetCompanyProductsInternalServerError) Code() int { + return 500 +} + func (o *GetCompanyProductsInternalServerError) Error() string { return fmt.Sprintf("[GET /companyproducts][%d] getCompanyProductsInternalServerError %+v", 500, o.Payload) } + +func (o *GetCompanyProductsInternalServerError) String() string { + return fmt.Sprintf("[GET /companyproducts][%d] getCompanyProductsInternalServerError %+v", 500, o.Payload) +} + func (o *GetCompanyProductsInternalServerError) GetPayload() *sfgate_models.Error { return o.Payload } diff --git a/api/sfgate/sfgate_client/company_products/post_company_products_parameters.go b/api/sfgate/sfgate_client/company_products/post_company_products_parameters.go index 40ec733..80388da 100644 --- a/api/sfgate/sfgate_client/company_products/post_company_products_parameters.go +++ b/api/sfgate/sfgate_client/company_products/post_company_products_parameters.go @@ -58,10 +58,12 @@ func NewPostCompanyProductsParamsWithHTTPClient(client *http.Client) *PostCompan } } -/* PostCompanyProductsParams contains all the parameters to send to the API endpoint - for the post company products operation. +/* +PostCompanyProductsParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the post company products operation. + + Typically these are written to a http.Request. */ type PostCompanyProductsParams struct { diff --git a/api/sfgate/sfgate_client/company_products/post_company_products_responses.go b/api/sfgate/sfgate_client/company_products/post_company_products_responses.go index a652a99..a7a08ce 100644 --- a/api/sfgate/sfgate_client/company_products/post_company_products_responses.go +++ b/api/sfgate/sfgate_client/company_products/post_company_products_responses.go @@ -73,7 +73,8 @@ func NewPostCompanyProductsOK() *PostCompanyProductsOK { return &PostCompanyProductsOK{} } -/* PostCompanyProductsOK describes a response with status code 200, with default header values. +/* +PostCompanyProductsOK describes a response with status code 200, with default header values. Taxnexus Response with an array of CompanyProduct objects */ @@ -84,9 +85,44 @@ type PostCompanyProductsOK struct { Payload *sfgate_models.CompanyProductResponse } +// IsSuccess returns true when this post company products o k response has a 2xx status code +func (o *PostCompanyProductsOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this post company products o k response has a 3xx status code +func (o *PostCompanyProductsOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this post company products o k response has a 4xx status code +func (o *PostCompanyProductsOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this post company products o k response has a 5xx status code +func (o *PostCompanyProductsOK) IsServerError() bool { + return false +} + +// IsCode returns true when this post company products o k response a status code equal to that given +func (o *PostCompanyProductsOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the post company products o k response +func (o *PostCompanyProductsOK) Code() int { + return 200 +} + func (o *PostCompanyProductsOK) Error() string { return fmt.Sprintf("[POST /companyproducts][%d] postCompanyProductsOK %+v", 200, o.Payload) } + +func (o *PostCompanyProductsOK) String() string { + return fmt.Sprintf("[POST /companyproducts][%d] postCompanyProductsOK %+v", 200, o.Payload) +} + func (o *PostCompanyProductsOK) GetPayload() *sfgate_models.CompanyProductResponse { return o.Payload } @@ -122,7 +158,8 @@ func NewPostCompanyProductsUnauthorized() *PostCompanyProductsUnauthorized { return &PostCompanyProductsUnauthorized{} } -/* PostCompanyProductsUnauthorized describes a response with status code 401, with default header values. +/* +PostCompanyProductsUnauthorized describes a response with status code 401, with default header values. Access unauthorized, invalid API-KEY was used */ @@ -132,9 +169,44 @@ type PostCompanyProductsUnauthorized struct { Payload *sfgate_models.Error } +// IsSuccess returns true when this post company products unauthorized response has a 2xx status code +func (o *PostCompanyProductsUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this post company products unauthorized response has a 3xx status code +func (o *PostCompanyProductsUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this post company products unauthorized response has a 4xx status code +func (o *PostCompanyProductsUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this post company products unauthorized response has a 5xx status code +func (o *PostCompanyProductsUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this post company products unauthorized response a status code equal to that given +func (o *PostCompanyProductsUnauthorized) IsCode(code int) bool { + return code == 401 +} + +// Code gets the status code for the post company products unauthorized response +func (o *PostCompanyProductsUnauthorized) Code() int { + return 401 +} + func (o *PostCompanyProductsUnauthorized) Error() string { return fmt.Sprintf("[POST /companyproducts][%d] postCompanyProductsUnauthorized %+v", 401, o.Payload) } + +func (o *PostCompanyProductsUnauthorized) String() string { + return fmt.Sprintf("[POST /companyproducts][%d] postCompanyProductsUnauthorized %+v", 401, o.Payload) +} + func (o *PostCompanyProductsUnauthorized) GetPayload() *sfgate_models.Error { return o.Payload } @@ -163,7 +235,8 @@ func NewPostCompanyProductsForbidden() *PostCompanyProductsForbidden { return &PostCompanyProductsForbidden{} } -/* PostCompanyProductsForbidden describes a response with status code 403, with default header values. +/* +PostCompanyProductsForbidden describes a response with status code 403, with default header values. Access forbidden, account lacks access */ @@ -173,9 +246,44 @@ type PostCompanyProductsForbidden struct { Payload *sfgate_models.Error } +// IsSuccess returns true when this post company products forbidden response has a 2xx status code +func (o *PostCompanyProductsForbidden) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this post company products forbidden response has a 3xx status code +func (o *PostCompanyProductsForbidden) IsRedirect() bool { + return false +} + +// IsClientError returns true when this post company products forbidden response has a 4xx status code +func (o *PostCompanyProductsForbidden) IsClientError() bool { + return true +} + +// IsServerError returns true when this post company products forbidden response has a 5xx status code +func (o *PostCompanyProductsForbidden) IsServerError() bool { + return false +} + +// IsCode returns true when this post company products forbidden response a status code equal to that given +func (o *PostCompanyProductsForbidden) IsCode(code int) bool { + return code == 403 +} + +// Code gets the status code for the post company products forbidden response +func (o *PostCompanyProductsForbidden) Code() int { + return 403 +} + func (o *PostCompanyProductsForbidden) Error() string { return fmt.Sprintf("[POST /companyproducts][%d] postCompanyProductsForbidden %+v", 403, o.Payload) } + +func (o *PostCompanyProductsForbidden) String() string { + return fmt.Sprintf("[POST /companyproducts][%d] postCompanyProductsForbidden %+v", 403, o.Payload) +} + func (o *PostCompanyProductsForbidden) GetPayload() *sfgate_models.Error { return o.Payload } @@ -204,7 +312,8 @@ func NewPostCompanyProductsNotFound() *PostCompanyProductsNotFound { return &PostCompanyProductsNotFound{} } -/* PostCompanyProductsNotFound describes a response with status code 404, with default header values. +/* +PostCompanyProductsNotFound describes a response with status code 404, with default header values. Resource was not found */ @@ -214,9 +323,44 @@ type PostCompanyProductsNotFound struct { Payload *sfgate_models.Error } +// IsSuccess returns true when this post company products not found response has a 2xx status code +func (o *PostCompanyProductsNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this post company products not found response has a 3xx status code +func (o *PostCompanyProductsNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this post company products not found response has a 4xx status code +func (o *PostCompanyProductsNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this post company products not found response has a 5xx status code +func (o *PostCompanyProductsNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this post company products not found response a status code equal to that given +func (o *PostCompanyProductsNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the post company products not found response +func (o *PostCompanyProductsNotFound) Code() int { + return 404 +} + func (o *PostCompanyProductsNotFound) Error() string { return fmt.Sprintf("[POST /companyproducts][%d] postCompanyProductsNotFound %+v", 404, o.Payload) } + +func (o *PostCompanyProductsNotFound) String() string { + return fmt.Sprintf("[POST /companyproducts][%d] postCompanyProductsNotFound %+v", 404, o.Payload) +} + func (o *PostCompanyProductsNotFound) GetPayload() *sfgate_models.Error { return o.Payload } @@ -245,7 +389,8 @@ func NewPostCompanyProductsUnprocessableEntity() *PostCompanyProductsUnprocessab return &PostCompanyProductsUnprocessableEntity{} } -/* PostCompanyProductsUnprocessableEntity describes a response with status code 422, with default header values. +/* +PostCompanyProductsUnprocessableEntity describes a response with status code 422, with default header values. Unprocessable Entity, likely a bad parameter */ @@ -255,9 +400,44 @@ type PostCompanyProductsUnprocessableEntity struct { Payload *sfgate_models.Error } +// IsSuccess returns true when this post company products unprocessable entity response has a 2xx status code +func (o *PostCompanyProductsUnprocessableEntity) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this post company products unprocessable entity response has a 3xx status code +func (o *PostCompanyProductsUnprocessableEntity) IsRedirect() bool { + return false +} + +// IsClientError returns true when this post company products unprocessable entity response has a 4xx status code +func (o *PostCompanyProductsUnprocessableEntity) IsClientError() bool { + return true +} + +// IsServerError returns true when this post company products unprocessable entity response has a 5xx status code +func (o *PostCompanyProductsUnprocessableEntity) IsServerError() bool { + return false +} + +// IsCode returns true when this post company products unprocessable entity response a status code equal to that given +func (o *PostCompanyProductsUnprocessableEntity) IsCode(code int) bool { + return code == 422 +} + +// Code gets the status code for the post company products unprocessable entity response +func (o *PostCompanyProductsUnprocessableEntity) Code() int { + return 422 +} + func (o *PostCompanyProductsUnprocessableEntity) Error() string { return fmt.Sprintf("[POST /companyproducts][%d] postCompanyProductsUnprocessableEntity %+v", 422, o.Payload) } + +func (o *PostCompanyProductsUnprocessableEntity) String() string { + return fmt.Sprintf("[POST /companyproducts][%d] postCompanyProductsUnprocessableEntity %+v", 422, o.Payload) +} + func (o *PostCompanyProductsUnprocessableEntity) GetPayload() *sfgate_models.Error { return o.Payload } @@ -286,7 +466,8 @@ func NewPostCompanyProductsInternalServerError() *PostCompanyProductsInternalSer return &PostCompanyProductsInternalServerError{} } -/* PostCompanyProductsInternalServerError describes a response with status code 500, with default header values. +/* +PostCompanyProductsInternalServerError describes a response with status code 500, with default header values. Server Internal Error */ @@ -296,9 +477,44 @@ type PostCompanyProductsInternalServerError struct { Payload *sfgate_models.Error } +// IsSuccess returns true when this post company products internal server error response has a 2xx status code +func (o *PostCompanyProductsInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this post company products internal server error response has a 3xx status code +func (o *PostCompanyProductsInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this post company products internal server error response has a 4xx status code +func (o *PostCompanyProductsInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this post company products internal server error response has a 5xx status code +func (o *PostCompanyProductsInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this post company products internal server error response a status code equal to that given +func (o *PostCompanyProductsInternalServerError) IsCode(code int) bool { + return code == 500 +} + +// Code gets the status code for the post company products internal server error response +func (o *PostCompanyProductsInternalServerError) Code() int { + return 500 +} + func (o *PostCompanyProductsInternalServerError) Error() string { return fmt.Sprintf("[POST /companyproducts][%d] postCompanyProductsInternalServerError %+v", 500, o.Payload) } + +func (o *PostCompanyProductsInternalServerError) String() string { + return fmt.Sprintf("[POST /companyproducts][%d] postCompanyProductsInternalServerError %+v", 500, o.Payload) +} + func (o *PostCompanyProductsInternalServerError) GetPayload() *sfgate_models.Error { return o.Payload } diff --git a/api/sfgate/sfgate_client/contacts/contacts_client.go b/api/sfgate/sfgate_client/contacts/contacts_client.go index 75f00b9..f800c6a 100644 --- a/api/sfgate/sfgate_client/contacts/contacts_client.go +++ b/api/sfgate/sfgate_client/contacts/contacts_client.go @@ -42,9 +42,9 @@ type ClientService interface { } /* - GetContacts gets a contact record +GetContacts gets a contact record - Retrieve Contact records from the datastore +Retrieve Contact records from the datastore */ func (a *Client) GetContacts(params *GetContactsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetContactsOK, error) { // TODO: Validate the params before sending @@ -83,9 +83,9 @@ func (a *Client) GetContacts(params *GetContactsParams, authInfo runtime.ClientA } /* - PostContacts adds a new contacts to taxnexus +PostContacts adds a new contacts to taxnexus - Contacts record to be added +Contacts record to be added */ func (a *Client) PostContacts(params *PostContactsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostContactsOK, error) { // TODO: Validate the params before sending diff --git a/api/sfgate/sfgate_client/contacts/get_contacts_parameters.go b/api/sfgate/sfgate_client/contacts/get_contacts_parameters.go index 5ac599c..f3b53dd 100644 --- a/api/sfgate/sfgate_client/contacts/get_contacts_parameters.go +++ b/api/sfgate/sfgate_client/contacts/get_contacts_parameters.go @@ -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 { diff --git a/api/sfgate/sfgate_client/contacts/get_contacts_responses.go b/api/sfgate/sfgate_client/contacts/get_contacts_responses.go index 9dc0dca..978ddb1 100644 --- a/api/sfgate/sfgate_client/contacts/get_contacts_responses.go +++ b/api/sfgate/sfgate_client/contacts/get_contacts_responses.go @@ -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 Contact objects */ @@ -81,9 +82,44 @@ type GetContactsOK struct { Payload *sfgate_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() *sfgate_models.ContactResponse { return o.Payload } @@ -105,7 +141,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 */ @@ -115,9 +152,44 @@ type GetContactsUnauthorized struct { Payload *sfgate_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() *sfgate_models.Error { return o.Payload } @@ -146,7 +218,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 */ @@ -156,9 +229,44 @@ type GetContactsForbidden struct { Payload *sfgate_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() *sfgate_models.Error { return o.Payload } @@ -187,7 +295,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 */ @@ -197,9 +306,44 @@ type GetContactsNotFound struct { Payload *sfgate_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() *sfgate_models.Error { return o.Payload } @@ -228,7 +372,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 */ @@ -238,9 +383,44 @@ type GetContactsUnprocessableEntity struct { Payload *sfgate_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() *sfgate_models.Error { return o.Payload } @@ -269,7 +449,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 */ @@ -279,9 +460,44 @@ type GetContactsInternalServerError struct { Payload *sfgate_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() *sfgate_models.Error { return o.Payload } diff --git a/api/sfgate/sfgate_client/contacts/post_contacts_parameters.go b/api/sfgate/sfgate_client/contacts/post_contacts_parameters.go index e49f49b..b29a215 100644 --- a/api/sfgate/sfgate_client/contacts/post_contacts_parameters.go +++ b/api/sfgate/sfgate_client/contacts/post_contacts_parameters.go @@ -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 { diff --git a/api/sfgate/sfgate_client/contacts/post_contacts_responses.go b/api/sfgate/sfgate_client/contacts/post_contacts_responses.go index 0430443..ad9f40a 100644 --- a/api/sfgate/sfgate_client/contacts/post_contacts_responses.go +++ b/api/sfgate/sfgate_client/contacts/post_contacts_responses.go @@ -67,7 +67,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 Contact objects */ @@ -75,9 +76,44 @@ type PostContactsOK struct { Payload *sfgate_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() *sfgate_models.ContactResponse { return o.Payload } @@ -99,7 +135,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 */ @@ -109,9 +146,44 @@ type PostContactsUnauthorized struct { Payload *sfgate_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() *sfgate_models.Error { return o.Payload } @@ -140,7 +212,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 */ @@ -150,9 +223,44 @@ type PostContactsForbidden struct { Payload *sfgate_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() *sfgate_models.Error { return o.Payload } @@ -181,7 +289,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 */ @@ -191,9 +300,44 @@ type PostContactsNotFound struct { Payload *sfgate_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() *sfgate_models.Error { return o.Payload } @@ -222,7 +366,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 */ @@ -232,9 +377,44 @@ type PostContactsInternalServerError struct { Payload *sfgate_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() *sfgate_models.Error { return o.Payload } diff --git a/api/sfgate/sfgate_client/contracts/contracts_client.go b/api/sfgate/sfgate_client/contracts/contracts_client.go index 15420ab..4ca6960 100644 --- a/api/sfgate/sfgate_client/contracts/contracts_client.go +++ b/api/sfgate/sfgate_client/contracts/contracts_client.go @@ -42,9 +42,9 @@ type ClientService interface { } /* - 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 @@ -83,9 +83,9 @@ func (a *Client) GetContracts(params *GetContractsParams, authInfo runtime.Clien } /* - 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 diff --git a/api/sfgate/sfgate_client/contracts/get_contracts_parameters.go b/api/sfgate/sfgate_client/contracts/get_contracts_parameters.go index 6f09f33..b3aaa02 100644 --- a/api/sfgate/sfgate_client/contracts/get_contracts_parameters.go +++ b/api/sfgate/sfgate_client/contracts/get_contracts_parameters.go @@ -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 { diff --git a/api/sfgate/sfgate_client/contracts/get_contracts_responses.go b/api/sfgate/sfgate_client/contracts/get_contracts_responses.go index 666bf41..036e3f7 100644 --- a/api/sfgate/sfgate_client/contracts/get_contracts_responses.go +++ b/api/sfgate/sfgate_client/contracts/get_contracts_responses.go @@ -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 *sfgate_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() *sfgate_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 *sfgate_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() *sfgate_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 *sfgate_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() *sfgate_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 *sfgate_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() *sfgate_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 *sfgate_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() *sfgate_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 *sfgate_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() *sfgate_models.Error { return o.Payload } diff --git a/api/sfgate/sfgate_client/contracts/post_contracts_parameters.go b/api/sfgate/sfgate_client/contracts/post_contracts_parameters.go index 05dcf89..58cbee7 100644 --- a/api/sfgate/sfgate_client/contracts/post_contracts_parameters.go +++ b/api/sfgate/sfgate_client/contracts/post_contracts_parameters.go @@ -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 { diff --git a/api/sfgate/sfgate_client/contracts/post_contracts_responses.go b/api/sfgate/sfgate_client/contracts/post_contracts_responses.go index 30c60e3..ee1f400 100644 --- a/api/sfgate/sfgate_client/contracts/post_contracts_responses.go +++ b/api/sfgate/sfgate_client/contracts/post_contracts_responses.go @@ -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 *sfgate_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() *sfgate_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 *sfgate_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() *sfgate_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 *sfgate_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() *sfgate_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 *sfgate_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() *sfgate_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 *sfgate_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() *sfgate_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 *sfgate_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() *sfgate_models.Error { return o.Payload } diff --git a/api/sfgate/sfgate_client/databases/databases_client.go b/api/sfgate/sfgate_client/databases/databases_client.go index 519d460..50a88a2 100644 --- a/api/sfgate/sfgate_client/databases/databases_client.go +++ b/api/sfgate/sfgate_client/databases/databases_client.go @@ -44,9 +44,9 @@ type ClientService interface { } /* - GetDatabases gets a list databases +GetDatabases gets a list databases - Return a list of Database records from the datastore +Return a list of Database records from the datastore */ func (a *Client) GetDatabases(params *GetDatabasesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetDatabasesOK, error) { // TODO: Validate the params before sending @@ -85,9 +85,9 @@ func (a *Client) GetDatabases(params *GetDatabasesParams, authInfo runtime.Clien } /* - PostDatabases creates new databases +PostDatabases creates new databases - Create Databases in Taxnexus +Create Databases in Taxnexus */ func (a *Client) PostDatabases(params *PostDatabasesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostDatabasesOK, error) { // TODO: Validate the params before sending @@ -126,9 +126,9 @@ func (a *Client) PostDatabases(params *PostDatabasesParams, authInfo runtime.Cli } /* - PutDatabases updates databases +PutDatabases updates databases - Update Database in Taxnexus +Update Database in Taxnexus */ func (a *Client) PutDatabases(params *PutDatabasesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PutDatabasesOK, error) { // TODO: Validate the params before sending diff --git a/api/sfgate/sfgate_client/databases/get_databases_parameters.go b/api/sfgate/sfgate_client/databases/get_databases_parameters.go index e9a077e..8031c55 100644 --- a/api/sfgate/sfgate_client/databases/get_databases_parameters.go +++ b/api/sfgate/sfgate_client/databases/get_databases_parameters.go @@ -57,10 +57,12 @@ func NewGetDatabasesParamsWithHTTPClient(client *http.Client) *GetDatabasesParam } } -/* GetDatabasesParams contains all the parameters to send to the API endpoint - for the get databases operation. +/* +GetDatabasesParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get databases operation. + + Typically these are written to a http.Request. */ type GetDatabasesParams struct { diff --git a/api/sfgate/sfgate_client/databases/get_databases_responses.go b/api/sfgate/sfgate_client/databases/get_databases_responses.go index bf84395..70c8dcb 100644 --- a/api/sfgate/sfgate_client/databases/get_databases_responses.go +++ b/api/sfgate/sfgate_client/databases/get_databases_responses.go @@ -73,7 +73,8 @@ func NewGetDatabasesOK() *GetDatabasesOK { return &GetDatabasesOK{} } -/* GetDatabasesOK describes a response with status code 200, with default header values. +/* +GetDatabasesOK describes a response with status code 200, with default header values. Taxnexus Response with Database objects */ @@ -81,9 +82,44 @@ type GetDatabasesOK struct { Payload *sfgate_models.DatabaseResponse } +// IsSuccess returns true when this get databases o k response has a 2xx status code +func (o *GetDatabasesOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get databases o k response has a 3xx status code +func (o *GetDatabasesOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get databases o k response has a 4xx status code +func (o *GetDatabasesOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get databases o k response has a 5xx status code +func (o *GetDatabasesOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get databases o k response a status code equal to that given +func (o *GetDatabasesOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get databases o k response +func (o *GetDatabasesOK) Code() int { + return 200 +} + func (o *GetDatabasesOK) Error() string { return fmt.Sprintf("[GET /databases][%d] getDatabasesOK %+v", 200, o.Payload) } + +func (o *GetDatabasesOK) String() string { + return fmt.Sprintf("[GET /databases][%d] getDatabasesOK %+v", 200, o.Payload) +} + func (o *GetDatabasesOK) GetPayload() *sfgate_models.DatabaseResponse { return o.Payload } @@ -105,7 +141,8 @@ func NewGetDatabasesUnauthorized() *GetDatabasesUnauthorized { return &GetDatabasesUnauthorized{} } -/* GetDatabasesUnauthorized describes a response with status code 401, with default header values. +/* +GetDatabasesUnauthorized describes a response with status code 401, with default header values. Access unauthorized, invalid API-KEY was used */ @@ -115,9 +152,44 @@ type GetDatabasesUnauthorized struct { Payload *sfgate_models.Error } +// IsSuccess returns true when this get databases unauthorized response has a 2xx status code +func (o *GetDatabasesUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get databases unauthorized response has a 3xx status code +func (o *GetDatabasesUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get databases unauthorized response has a 4xx status code +func (o *GetDatabasesUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this get databases unauthorized response has a 5xx status code +func (o *GetDatabasesUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this get databases unauthorized response a status code equal to that given +func (o *GetDatabasesUnauthorized) IsCode(code int) bool { + return code == 401 +} + +// Code gets the status code for the get databases unauthorized response +func (o *GetDatabasesUnauthorized) Code() int { + return 401 +} + func (o *GetDatabasesUnauthorized) Error() string { return fmt.Sprintf("[GET /databases][%d] getDatabasesUnauthorized %+v", 401, o.Payload) } + +func (o *GetDatabasesUnauthorized) String() string { + return fmt.Sprintf("[GET /databases][%d] getDatabasesUnauthorized %+v", 401, o.Payload) +} + func (o *GetDatabasesUnauthorized) GetPayload() *sfgate_models.Error { return o.Payload } @@ -146,7 +218,8 @@ func NewGetDatabasesForbidden() *GetDatabasesForbidden { return &GetDatabasesForbidden{} } -/* GetDatabasesForbidden describes a response with status code 403, with default header values. +/* +GetDatabasesForbidden describes a response with status code 403, with default header values. Access forbidden, account lacks access */ @@ -156,9 +229,44 @@ type GetDatabasesForbidden struct { Payload *sfgate_models.Error } +// IsSuccess returns true when this get databases forbidden response has a 2xx status code +func (o *GetDatabasesForbidden) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get databases forbidden response has a 3xx status code +func (o *GetDatabasesForbidden) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get databases forbidden response has a 4xx status code +func (o *GetDatabasesForbidden) IsClientError() bool { + return true +} + +// IsServerError returns true when this get databases forbidden response has a 5xx status code +func (o *GetDatabasesForbidden) IsServerError() bool { + return false +} + +// IsCode returns true when this get databases forbidden response a status code equal to that given +func (o *GetDatabasesForbidden) IsCode(code int) bool { + return code == 403 +} + +// Code gets the status code for the get databases forbidden response +func (o *GetDatabasesForbidden) Code() int { + return 403 +} + func (o *GetDatabasesForbidden) Error() string { return fmt.Sprintf("[GET /databases][%d] getDatabasesForbidden %+v", 403, o.Payload) } + +func (o *GetDatabasesForbidden) String() string { + return fmt.Sprintf("[GET /databases][%d] getDatabasesForbidden %+v", 403, o.Payload) +} + func (o *GetDatabasesForbidden) GetPayload() *sfgate_models.Error { return o.Payload } @@ -187,7 +295,8 @@ func NewGetDatabasesNotFound() *GetDatabasesNotFound { return &GetDatabasesNotFound{} } -/* GetDatabasesNotFound describes a response with status code 404, with default header values. +/* +GetDatabasesNotFound describes a response with status code 404, with default header values. Resource was not found */ @@ -197,9 +306,44 @@ type GetDatabasesNotFound struct { Payload *sfgate_models.Error } +// IsSuccess returns true when this get databases not found response has a 2xx status code +func (o *GetDatabasesNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get databases not found response has a 3xx status code +func (o *GetDatabasesNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get databases not found response has a 4xx status code +func (o *GetDatabasesNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this get databases not found response has a 5xx status code +func (o *GetDatabasesNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this get databases not found response a status code equal to that given +func (o *GetDatabasesNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the get databases not found response +func (o *GetDatabasesNotFound) Code() int { + return 404 +} + func (o *GetDatabasesNotFound) Error() string { return fmt.Sprintf("[GET /databases][%d] getDatabasesNotFound %+v", 404, o.Payload) } + +func (o *GetDatabasesNotFound) String() string { + return fmt.Sprintf("[GET /databases][%d] getDatabasesNotFound %+v", 404, o.Payload) +} + func (o *GetDatabasesNotFound) GetPayload() *sfgate_models.Error { return o.Payload } @@ -228,7 +372,8 @@ func NewGetDatabasesUnprocessableEntity() *GetDatabasesUnprocessableEntity { return &GetDatabasesUnprocessableEntity{} } -/* GetDatabasesUnprocessableEntity describes a response with status code 422, with default header values. +/* +GetDatabasesUnprocessableEntity describes a response with status code 422, with default header values. Unprocessable Entity, likely a bad parameter */ @@ -238,9 +383,44 @@ type GetDatabasesUnprocessableEntity struct { Payload *sfgate_models.Error } +// IsSuccess returns true when this get databases unprocessable entity response has a 2xx status code +func (o *GetDatabasesUnprocessableEntity) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get databases unprocessable entity response has a 3xx status code +func (o *GetDatabasesUnprocessableEntity) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get databases unprocessable entity response has a 4xx status code +func (o *GetDatabasesUnprocessableEntity) IsClientError() bool { + return true +} + +// IsServerError returns true when this get databases unprocessable entity response has a 5xx status code +func (o *GetDatabasesUnprocessableEntity) IsServerError() bool { + return false +} + +// IsCode returns true when this get databases unprocessable entity response a status code equal to that given +func (o *GetDatabasesUnprocessableEntity) IsCode(code int) bool { + return code == 422 +} + +// Code gets the status code for the get databases unprocessable entity response +func (o *GetDatabasesUnprocessableEntity) Code() int { + return 422 +} + func (o *GetDatabasesUnprocessableEntity) Error() string { return fmt.Sprintf("[GET /databases][%d] getDatabasesUnprocessableEntity %+v", 422, o.Payload) } + +func (o *GetDatabasesUnprocessableEntity) String() string { + return fmt.Sprintf("[GET /databases][%d] getDatabasesUnprocessableEntity %+v", 422, o.Payload) +} + func (o *GetDatabasesUnprocessableEntity) GetPayload() *sfgate_models.Error { return o.Payload } @@ -269,7 +449,8 @@ func NewGetDatabasesInternalServerError() *GetDatabasesInternalServerError { return &GetDatabasesInternalServerError{} } -/* GetDatabasesInternalServerError describes a response with status code 500, with default header values. +/* +GetDatabasesInternalServerError describes a response with status code 500, with default header values. Server Internal Error */ @@ -279,9 +460,44 @@ type GetDatabasesInternalServerError struct { Payload *sfgate_models.Error } +// IsSuccess returns true when this get databases internal server error response has a 2xx status code +func (o *GetDatabasesInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get databases internal server error response has a 3xx status code +func (o *GetDatabasesInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get databases internal server error response has a 4xx status code +func (o *GetDatabasesInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this get databases internal server error response has a 5xx status code +func (o *GetDatabasesInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this get databases internal server error response a status code equal to that given +func (o *GetDatabasesInternalServerError) IsCode(code int) bool { + return code == 500 +} + +// Code gets the status code for the get databases internal server error response +func (o *GetDatabasesInternalServerError) Code() int { + return 500 +} + func (o *GetDatabasesInternalServerError) Error() string { return fmt.Sprintf("[GET /databases][%d] getDatabasesInternalServerError %+v", 500, o.Payload) } + +func (o *GetDatabasesInternalServerError) String() string { + return fmt.Sprintf("[GET /databases][%d] getDatabasesInternalServerError %+v", 500, o.Payload) +} + func (o *GetDatabasesInternalServerError) GetPayload() *sfgate_models.Error { return o.Payload } diff --git a/api/sfgate/sfgate_client/databases/post_databases_parameters.go b/api/sfgate/sfgate_client/databases/post_databases_parameters.go index 594d219..2f600d2 100644 --- a/api/sfgate/sfgate_client/databases/post_databases_parameters.go +++ b/api/sfgate/sfgate_client/databases/post_databases_parameters.go @@ -58,10 +58,12 @@ func NewPostDatabasesParamsWithHTTPClient(client *http.Client) *PostDatabasesPar } } -/* PostDatabasesParams contains all the parameters to send to the API endpoint - for the post databases operation. +/* +PostDatabasesParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the post databases operation. + + Typically these are written to a http.Request. */ type PostDatabasesParams struct { diff --git a/api/sfgate/sfgate_client/databases/post_databases_responses.go b/api/sfgate/sfgate_client/databases/post_databases_responses.go index b5e3377..93ddc8b 100644 --- a/api/sfgate/sfgate_client/databases/post_databases_responses.go +++ b/api/sfgate/sfgate_client/databases/post_databases_responses.go @@ -73,7 +73,8 @@ func NewPostDatabasesOK() *PostDatabasesOK { return &PostDatabasesOK{} } -/* PostDatabasesOK describes a response with status code 200, with default header values. +/* +PostDatabasesOK describes a response with status code 200, with default header values. Taxnexus Response with Database objects */ @@ -81,9 +82,44 @@ type PostDatabasesOK struct { Payload *sfgate_models.DatabaseResponse } +// IsSuccess returns true when this post databases o k response has a 2xx status code +func (o *PostDatabasesOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this post databases o k response has a 3xx status code +func (o *PostDatabasesOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this post databases o k response has a 4xx status code +func (o *PostDatabasesOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this post databases o k response has a 5xx status code +func (o *PostDatabasesOK) IsServerError() bool { + return false +} + +// IsCode returns true when this post databases o k response a status code equal to that given +func (o *PostDatabasesOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the post databases o k response +func (o *PostDatabasesOK) Code() int { + return 200 +} + func (o *PostDatabasesOK) Error() string { return fmt.Sprintf("[POST /databases][%d] postDatabasesOK %+v", 200, o.Payload) } + +func (o *PostDatabasesOK) String() string { + return fmt.Sprintf("[POST /databases][%d] postDatabasesOK %+v", 200, o.Payload) +} + func (o *PostDatabasesOK) GetPayload() *sfgate_models.DatabaseResponse { return o.Payload } @@ -105,7 +141,8 @@ func NewPostDatabasesUnauthorized() *PostDatabasesUnauthorized { return &PostDatabasesUnauthorized{} } -/* PostDatabasesUnauthorized describes a response with status code 401, with default header values. +/* +PostDatabasesUnauthorized describes a response with status code 401, with default header values. Access unauthorized, invalid API-KEY was used */ @@ -115,9 +152,44 @@ type PostDatabasesUnauthorized struct { Payload *sfgate_models.Error } +// IsSuccess returns true when this post databases unauthorized response has a 2xx status code +func (o *PostDatabasesUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this post databases unauthorized response has a 3xx status code +func (o *PostDatabasesUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this post databases unauthorized response has a 4xx status code +func (o *PostDatabasesUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this post databases unauthorized response has a 5xx status code +func (o *PostDatabasesUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this post databases unauthorized response a status code equal to that given +func (o *PostDatabasesUnauthorized) IsCode(code int) bool { + return code == 401 +} + +// Code gets the status code for the post databases unauthorized response +func (o *PostDatabasesUnauthorized) Code() int { + return 401 +} + func (o *PostDatabasesUnauthorized) Error() string { return fmt.Sprintf("[POST /databases][%d] postDatabasesUnauthorized %+v", 401, o.Payload) } + +func (o *PostDatabasesUnauthorized) String() string { + return fmt.Sprintf("[POST /databases][%d] postDatabasesUnauthorized %+v", 401, o.Payload) +} + func (o *PostDatabasesUnauthorized) GetPayload() *sfgate_models.Error { return o.Payload } @@ -146,7 +218,8 @@ func NewPostDatabasesForbidden() *PostDatabasesForbidden { return &PostDatabasesForbidden{} } -/* PostDatabasesForbidden describes a response with status code 403, with default header values. +/* +PostDatabasesForbidden describes a response with status code 403, with default header values. Access forbidden, account lacks access */ @@ -156,9 +229,44 @@ type PostDatabasesForbidden struct { Payload *sfgate_models.Error } +// IsSuccess returns true when this post databases forbidden response has a 2xx status code +func (o *PostDatabasesForbidden) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this post databases forbidden response has a 3xx status code +func (o *PostDatabasesForbidden) IsRedirect() bool { + return false +} + +// IsClientError returns true when this post databases forbidden response has a 4xx status code +func (o *PostDatabasesForbidden) IsClientError() bool { + return true +} + +// IsServerError returns true when this post databases forbidden response has a 5xx status code +func (o *PostDatabasesForbidden) IsServerError() bool { + return false +} + +// IsCode returns true when this post databases forbidden response a status code equal to that given +func (o *PostDatabasesForbidden) IsCode(code int) bool { + return code == 403 +} + +// Code gets the status code for the post databases forbidden response +func (o *PostDatabasesForbidden) Code() int { + return 403 +} + func (o *PostDatabasesForbidden) Error() string { return fmt.Sprintf("[POST /databases][%d] postDatabasesForbidden %+v", 403, o.Payload) } + +func (o *PostDatabasesForbidden) String() string { + return fmt.Sprintf("[POST /databases][%d] postDatabasesForbidden %+v", 403, o.Payload) +} + func (o *PostDatabasesForbidden) GetPayload() *sfgate_models.Error { return o.Payload } @@ -187,7 +295,8 @@ func NewPostDatabasesNotFound() *PostDatabasesNotFound { return &PostDatabasesNotFound{} } -/* PostDatabasesNotFound describes a response with status code 404, with default header values. +/* +PostDatabasesNotFound describes a response with status code 404, with default header values. Resource was not found */ @@ -197,9 +306,44 @@ type PostDatabasesNotFound struct { Payload *sfgate_models.Error } +// IsSuccess returns true when this post databases not found response has a 2xx status code +func (o *PostDatabasesNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this post databases not found response has a 3xx status code +func (o *PostDatabasesNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this post databases not found response has a 4xx status code +func (o *PostDatabasesNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this post databases not found response has a 5xx status code +func (o *PostDatabasesNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this post databases not found response a status code equal to that given +func (o *PostDatabasesNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the post databases not found response +func (o *PostDatabasesNotFound) Code() int { + return 404 +} + func (o *PostDatabasesNotFound) Error() string { return fmt.Sprintf("[POST /databases][%d] postDatabasesNotFound %+v", 404, o.Payload) } + +func (o *PostDatabasesNotFound) String() string { + return fmt.Sprintf("[POST /databases][%d] postDatabasesNotFound %+v", 404, o.Payload) +} + func (o *PostDatabasesNotFound) GetPayload() *sfgate_models.Error { return o.Payload } @@ -228,7 +372,8 @@ func NewPostDatabasesUnprocessableEntity() *PostDatabasesUnprocessableEntity { return &PostDatabasesUnprocessableEntity{} } -/* PostDatabasesUnprocessableEntity describes a response with status code 422, with default header values. +/* +PostDatabasesUnprocessableEntity describes a response with status code 422, with default header values. Unprocessable Entity, likely a bad parameter */ @@ -238,9 +383,44 @@ type PostDatabasesUnprocessableEntity struct { Payload *sfgate_models.Error } +// IsSuccess returns true when this post databases unprocessable entity response has a 2xx status code +func (o *PostDatabasesUnprocessableEntity) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this post databases unprocessable entity response has a 3xx status code +func (o *PostDatabasesUnprocessableEntity) IsRedirect() bool { + return false +} + +// IsClientError returns true when this post databases unprocessable entity response has a 4xx status code +func (o *PostDatabasesUnprocessableEntity) IsClientError() bool { + return true +} + +// IsServerError returns true when this post databases unprocessable entity response has a 5xx status code +func (o *PostDatabasesUnprocessableEntity) IsServerError() bool { + return false +} + +// IsCode returns true when this post databases unprocessable entity response a status code equal to that given +func (o *PostDatabasesUnprocessableEntity) IsCode(code int) bool { + return code == 422 +} + +// Code gets the status code for the post databases unprocessable entity response +func (o *PostDatabasesUnprocessableEntity) Code() int { + return 422 +} + func (o *PostDatabasesUnprocessableEntity) Error() string { return fmt.Sprintf("[POST /databases][%d] postDatabasesUnprocessableEntity %+v", 422, o.Payload) } + +func (o *PostDatabasesUnprocessableEntity) String() string { + return fmt.Sprintf("[POST /databases][%d] postDatabasesUnprocessableEntity %+v", 422, o.Payload) +} + func (o *PostDatabasesUnprocessableEntity) GetPayload() *sfgate_models.Error { return o.Payload } @@ -269,7 +449,8 @@ func NewPostDatabasesInternalServerError() *PostDatabasesInternalServerError { return &PostDatabasesInternalServerError{} } -/* PostDatabasesInternalServerError describes a response with status code 500, with default header values. +/* +PostDatabasesInternalServerError describes a response with status code 500, with default header values. Server Internal Error */ @@ -279,9 +460,44 @@ type PostDatabasesInternalServerError struct { Payload *sfgate_models.Error } +// IsSuccess returns true when this post databases internal server error response has a 2xx status code +func (o *PostDatabasesInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this post databases internal server error response has a 3xx status code +func (o *PostDatabasesInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this post databases internal server error response has a 4xx status code +func (o *PostDatabasesInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this post databases internal server error response has a 5xx status code +func (o *PostDatabasesInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this post databases internal server error response a status code equal to that given +func (o *PostDatabasesInternalServerError) IsCode(code int) bool { + return code == 500 +} + +// Code gets the status code for the post databases internal server error response +func (o *PostDatabasesInternalServerError) Code() int { + return 500 +} + func (o *PostDatabasesInternalServerError) Error() string { return fmt.Sprintf("[POST /databases][%d] postDatabasesInternalServerError %+v", 500, o.Payload) } + +func (o *PostDatabasesInternalServerError) String() string { + return fmt.Sprintf("[POST /databases][%d] postDatabasesInternalServerError %+v", 500, o.Payload) +} + func (o *PostDatabasesInternalServerError) GetPayload() *sfgate_models.Error { return o.Payload } diff --git a/api/sfgate/sfgate_client/databases/put_databases_parameters.go b/api/sfgate/sfgate_client/databases/put_databases_parameters.go index 62759f2..e315027 100644 --- a/api/sfgate/sfgate_client/databases/put_databases_parameters.go +++ b/api/sfgate/sfgate_client/databases/put_databases_parameters.go @@ -58,10 +58,12 @@ func NewPutDatabasesParamsWithHTTPClient(client *http.Client) *PutDatabasesParam } } -/* PutDatabasesParams contains all the parameters to send to the API endpoint - for the put databases operation. +/* +PutDatabasesParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the put databases operation. + + Typically these are written to a http.Request. */ type PutDatabasesParams struct { diff --git a/api/sfgate/sfgate_client/databases/put_databases_responses.go b/api/sfgate/sfgate_client/databases/put_databases_responses.go index 8de0e04..e9c2561 100644 --- a/api/sfgate/sfgate_client/databases/put_databases_responses.go +++ b/api/sfgate/sfgate_client/databases/put_databases_responses.go @@ -73,7 +73,8 @@ func NewPutDatabasesOK() *PutDatabasesOK { return &PutDatabasesOK{} } -/* PutDatabasesOK describes a response with status code 200, with default header values. +/* +PutDatabasesOK describes a response with status code 200, with default header values. Taxnexus Response with Database objects */ @@ -81,9 +82,44 @@ type PutDatabasesOK struct { Payload *sfgate_models.DatabaseResponse } +// IsSuccess returns true when this put databases o k response has a 2xx status code +func (o *PutDatabasesOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this put databases o k response has a 3xx status code +func (o *PutDatabasesOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this put databases o k response has a 4xx status code +func (o *PutDatabasesOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this put databases o k response has a 5xx status code +func (o *PutDatabasesOK) IsServerError() bool { + return false +} + +// IsCode returns true when this put databases o k response a status code equal to that given +func (o *PutDatabasesOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the put databases o k response +func (o *PutDatabasesOK) Code() int { + return 200 +} + func (o *PutDatabasesOK) Error() string { return fmt.Sprintf("[PUT /databases][%d] putDatabasesOK %+v", 200, o.Payload) } + +func (o *PutDatabasesOK) String() string { + return fmt.Sprintf("[PUT /databases][%d] putDatabasesOK %+v", 200, o.Payload) +} + func (o *PutDatabasesOK) GetPayload() *sfgate_models.DatabaseResponse { return o.Payload } @@ -105,7 +141,8 @@ func NewPutDatabasesUnauthorized() *PutDatabasesUnauthorized { return &PutDatabasesUnauthorized{} } -/* PutDatabasesUnauthorized describes a response with status code 401, with default header values. +/* +PutDatabasesUnauthorized describes a response with status code 401, with default header values. Access unauthorized, invalid API-KEY was used */ @@ -115,9 +152,44 @@ type PutDatabasesUnauthorized struct { Payload *sfgate_models.Error } +// IsSuccess returns true when this put databases unauthorized response has a 2xx status code +func (o *PutDatabasesUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this put databases unauthorized response has a 3xx status code +func (o *PutDatabasesUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this put databases unauthorized response has a 4xx status code +func (o *PutDatabasesUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this put databases unauthorized response has a 5xx status code +func (o *PutDatabasesUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this put databases unauthorized response a status code equal to that given +func (o *PutDatabasesUnauthorized) IsCode(code int) bool { + return code == 401 +} + +// Code gets the status code for the put databases unauthorized response +func (o *PutDatabasesUnauthorized) Code() int { + return 401 +} + func (o *PutDatabasesUnauthorized) Error() string { return fmt.Sprintf("[PUT /databases][%d] putDatabasesUnauthorized %+v", 401, o.Payload) } + +func (o *PutDatabasesUnauthorized) String() string { + return fmt.Sprintf("[PUT /databases][%d] putDatabasesUnauthorized %+v", 401, o.Payload) +} + func (o *PutDatabasesUnauthorized) GetPayload() *sfgate_models.Error { return o.Payload } @@ -146,7 +218,8 @@ func NewPutDatabasesForbidden() *PutDatabasesForbidden { return &PutDatabasesForbidden{} } -/* PutDatabasesForbidden describes a response with status code 403, with default header values. +/* +PutDatabasesForbidden describes a response with status code 403, with default header values. Access forbidden, account lacks access */ @@ -156,9 +229,44 @@ type PutDatabasesForbidden struct { Payload *sfgate_models.Error } +// IsSuccess returns true when this put databases forbidden response has a 2xx status code +func (o *PutDatabasesForbidden) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this put databases forbidden response has a 3xx status code +func (o *PutDatabasesForbidden) IsRedirect() bool { + return false +} + +// IsClientError returns true when this put databases forbidden response has a 4xx status code +func (o *PutDatabasesForbidden) IsClientError() bool { + return true +} + +// IsServerError returns true when this put databases forbidden response has a 5xx status code +func (o *PutDatabasesForbidden) IsServerError() bool { + return false +} + +// IsCode returns true when this put databases forbidden response a status code equal to that given +func (o *PutDatabasesForbidden) IsCode(code int) bool { + return code == 403 +} + +// Code gets the status code for the put databases forbidden response +func (o *PutDatabasesForbidden) Code() int { + return 403 +} + func (o *PutDatabasesForbidden) Error() string { return fmt.Sprintf("[PUT /databases][%d] putDatabasesForbidden %+v", 403, o.Payload) } + +func (o *PutDatabasesForbidden) String() string { + return fmt.Sprintf("[PUT /databases][%d] putDatabasesForbidden %+v", 403, o.Payload) +} + func (o *PutDatabasesForbidden) GetPayload() *sfgate_models.Error { return o.Payload } @@ -187,7 +295,8 @@ func NewPutDatabasesNotFound() *PutDatabasesNotFound { return &PutDatabasesNotFound{} } -/* PutDatabasesNotFound describes a response with status code 404, with default header values. +/* +PutDatabasesNotFound describes a response with status code 404, with default header values. Resource was not found */ @@ -197,9 +306,44 @@ type PutDatabasesNotFound struct { Payload *sfgate_models.Error } +// IsSuccess returns true when this put databases not found response has a 2xx status code +func (o *PutDatabasesNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this put databases not found response has a 3xx status code +func (o *PutDatabasesNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this put databases not found response has a 4xx status code +func (o *PutDatabasesNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this put databases not found response has a 5xx status code +func (o *PutDatabasesNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this put databases not found response a status code equal to that given +func (o *PutDatabasesNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the put databases not found response +func (o *PutDatabasesNotFound) Code() int { + return 404 +} + func (o *PutDatabasesNotFound) Error() string { return fmt.Sprintf("[PUT /databases][%d] putDatabasesNotFound %+v", 404, o.Payload) } + +func (o *PutDatabasesNotFound) String() string { + return fmt.Sprintf("[PUT /databases][%d] putDatabasesNotFound %+v", 404, o.Payload) +} + func (o *PutDatabasesNotFound) GetPayload() *sfgate_models.Error { return o.Payload } @@ -228,7 +372,8 @@ func NewPutDatabasesUnprocessableEntity() *PutDatabasesUnprocessableEntity { return &PutDatabasesUnprocessableEntity{} } -/* PutDatabasesUnprocessableEntity describes a response with status code 422, with default header values. +/* +PutDatabasesUnprocessableEntity describes a response with status code 422, with default header values. Unprocessable Entity, likely a bad parameter */ @@ -238,9 +383,44 @@ type PutDatabasesUnprocessableEntity struct { Payload *sfgate_models.Error } +// IsSuccess returns true when this put databases unprocessable entity response has a 2xx status code +func (o *PutDatabasesUnprocessableEntity) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this put databases unprocessable entity response has a 3xx status code +func (o *PutDatabasesUnprocessableEntity) IsRedirect() bool { + return false +} + +// IsClientError returns true when this put databases unprocessable entity response has a 4xx status code +func (o *PutDatabasesUnprocessableEntity) IsClientError() bool { + return true +} + +// IsServerError returns true when this put databases unprocessable entity response has a 5xx status code +func (o *PutDatabasesUnprocessableEntity) IsServerError() bool { + return false +} + +// IsCode returns true when this put databases unprocessable entity response a status code equal to that given +func (o *PutDatabasesUnprocessableEntity) IsCode(code int) bool { + return code == 422 +} + +// Code gets the status code for the put databases unprocessable entity response +func (o *PutDatabasesUnprocessableEntity) Code() int { + return 422 +} + func (o *PutDatabasesUnprocessableEntity) Error() string { return fmt.Sprintf("[PUT /databases][%d] putDatabasesUnprocessableEntity %+v", 422, o.Payload) } + +func (o *PutDatabasesUnprocessableEntity) String() string { + return fmt.Sprintf("[PUT /databases][%d] putDatabasesUnprocessableEntity %+v", 422, o.Payload) +} + func (o *PutDatabasesUnprocessableEntity) GetPayload() *sfgate_models.Error { return o.Payload } @@ -269,7 +449,8 @@ func NewPutDatabasesInternalServerError() *PutDatabasesInternalServerError { return &PutDatabasesInternalServerError{} } -/* PutDatabasesInternalServerError describes a response with status code 500, with default header values. +/* +PutDatabasesInternalServerError describes a response with status code 500, with default header values. Server Internal Error */ @@ -279,9 +460,44 @@ type PutDatabasesInternalServerError struct { Payload *sfgate_models.Error } +// IsSuccess returns true when this put databases internal server error response has a 2xx status code +func (o *PutDatabasesInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this put databases internal server error response has a 3xx status code +func (o *PutDatabasesInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this put databases internal server error response has a 4xx status code +func (o *PutDatabasesInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this put databases internal server error response has a 5xx status code +func (o *PutDatabasesInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this put databases internal server error response a status code equal to that given +func (o *PutDatabasesInternalServerError) IsCode(code int) bool { + return code == 500 +} + +// Code gets the status code for the put databases internal server error response +func (o *PutDatabasesInternalServerError) Code() int { + return 500 +} + func (o *PutDatabasesInternalServerError) Error() string { return fmt.Sprintf("[PUT /databases][%d] putDatabasesInternalServerError %+v", 500, o.Payload) } + +func (o *PutDatabasesInternalServerError) String() string { + return fmt.Sprintf("[PUT /databases][%d] putDatabasesInternalServerError %+v", 500, o.Payload) +} + func (o *PutDatabasesInternalServerError) GetPayload() *sfgate_models.Error { return o.Payload } diff --git a/api/sfgate/sfgate_client/industries/get_industries_parameters.go b/api/sfgate/sfgate_client/industries/get_industries_parameters.go index 6199d81..aaf220f 100644 --- a/api/sfgate/sfgate_client/industries/get_industries_parameters.go +++ b/api/sfgate/sfgate_client/industries/get_industries_parameters.go @@ -57,10 +57,12 @@ func NewGetIndustriesParamsWithHTTPClient(client *http.Client) *GetIndustriesPar } } -/* GetIndustriesParams contains all the parameters to send to the API endpoint - for the get industries operation. +/* +GetIndustriesParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get industries operation. + + Typically these are written to a http.Request. */ type GetIndustriesParams struct { diff --git a/api/sfgate/sfgate_client/industries/get_industries_responses.go b/api/sfgate/sfgate_client/industries/get_industries_responses.go index 51c3bb0..d0dbb30 100644 --- a/api/sfgate/sfgate_client/industries/get_industries_responses.go +++ b/api/sfgate/sfgate_client/industries/get_industries_responses.go @@ -73,7 +73,8 @@ func NewGetIndustriesOK() *GetIndustriesOK { return &GetIndustriesOK{} } -/* GetIndustriesOK describes a response with status code 200, with default header values. +/* +GetIndustriesOK describes a response with status code 200, with default header values. Taxnexus Response with Industry objects */ @@ -84,9 +85,44 @@ type GetIndustriesOK struct { Payload *sfgate_models.IndustryResponse } +// IsSuccess returns true when this get industries o k response has a 2xx status code +func (o *GetIndustriesOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get industries o k response has a 3xx status code +func (o *GetIndustriesOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get industries o k response has a 4xx status code +func (o *GetIndustriesOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get industries o k response has a 5xx status code +func (o *GetIndustriesOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get industries o k response a status code equal to that given +func (o *GetIndustriesOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get industries o k response +func (o *GetIndustriesOK) Code() int { + return 200 +} + func (o *GetIndustriesOK) Error() string { return fmt.Sprintf("[GET /industries][%d] getIndustriesOK %+v", 200, o.Payload) } + +func (o *GetIndustriesOK) String() string { + return fmt.Sprintf("[GET /industries][%d] getIndustriesOK %+v", 200, o.Payload) +} + func (o *GetIndustriesOK) GetPayload() *sfgate_models.IndustryResponse { return o.Payload } @@ -122,7 +158,8 @@ func NewGetIndustriesUnauthorized() *GetIndustriesUnauthorized { return &GetIndustriesUnauthorized{} } -/* GetIndustriesUnauthorized describes a response with status code 401, with default header values. +/* +GetIndustriesUnauthorized describes a response with status code 401, with default header values. Access unauthorized, invalid API-KEY was used */ @@ -132,9 +169,44 @@ type GetIndustriesUnauthorized struct { Payload *sfgate_models.Error } +// IsSuccess returns true when this get industries unauthorized response has a 2xx status code +func (o *GetIndustriesUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get industries unauthorized response has a 3xx status code +func (o *GetIndustriesUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get industries unauthorized response has a 4xx status code +func (o *GetIndustriesUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this get industries unauthorized response has a 5xx status code +func (o *GetIndustriesUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this get industries unauthorized response a status code equal to that given +func (o *GetIndustriesUnauthorized) IsCode(code int) bool { + return code == 401 +} + +// Code gets the status code for the get industries unauthorized response +func (o *GetIndustriesUnauthorized) Code() int { + return 401 +} + func (o *GetIndustriesUnauthorized) Error() string { return fmt.Sprintf("[GET /industries][%d] getIndustriesUnauthorized %+v", 401, o.Payload) } + +func (o *GetIndustriesUnauthorized) String() string { + return fmt.Sprintf("[GET /industries][%d] getIndustriesUnauthorized %+v", 401, o.Payload) +} + func (o *GetIndustriesUnauthorized) GetPayload() *sfgate_models.Error { return o.Payload } @@ -163,7 +235,8 @@ func NewGetIndustriesForbidden() *GetIndustriesForbidden { return &GetIndustriesForbidden{} } -/* GetIndustriesForbidden describes a response with status code 403, with default header values. +/* +GetIndustriesForbidden describes a response with status code 403, with default header values. Access forbidden, account lacks access */ @@ -173,9 +246,44 @@ type GetIndustriesForbidden struct { Payload *sfgate_models.Error } +// IsSuccess returns true when this get industries forbidden response has a 2xx status code +func (o *GetIndustriesForbidden) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get industries forbidden response has a 3xx status code +func (o *GetIndustriesForbidden) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get industries forbidden response has a 4xx status code +func (o *GetIndustriesForbidden) IsClientError() bool { + return true +} + +// IsServerError returns true when this get industries forbidden response has a 5xx status code +func (o *GetIndustriesForbidden) IsServerError() bool { + return false +} + +// IsCode returns true when this get industries forbidden response a status code equal to that given +func (o *GetIndustriesForbidden) IsCode(code int) bool { + return code == 403 +} + +// Code gets the status code for the get industries forbidden response +func (o *GetIndustriesForbidden) Code() int { + return 403 +} + func (o *GetIndustriesForbidden) Error() string { return fmt.Sprintf("[GET /industries][%d] getIndustriesForbidden %+v", 403, o.Payload) } + +func (o *GetIndustriesForbidden) String() string { + return fmt.Sprintf("[GET /industries][%d] getIndustriesForbidden %+v", 403, o.Payload) +} + func (o *GetIndustriesForbidden) GetPayload() *sfgate_models.Error { return o.Payload } @@ -204,7 +312,8 @@ func NewGetIndustriesNotFound() *GetIndustriesNotFound { return &GetIndustriesNotFound{} } -/* GetIndustriesNotFound describes a response with status code 404, with default header values. +/* +GetIndustriesNotFound describes a response with status code 404, with default header values. Resource was not found */ @@ -214,9 +323,44 @@ type GetIndustriesNotFound struct { Payload *sfgate_models.Error } +// IsSuccess returns true when this get industries not found response has a 2xx status code +func (o *GetIndustriesNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get industries not found response has a 3xx status code +func (o *GetIndustriesNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get industries not found response has a 4xx status code +func (o *GetIndustriesNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this get industries not found response has a 5xx status code +func (o *GetIndustriesNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this get industries not found response a status code equal to that given +func (o *GetIndustriesNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the get industries not found response +func (o *GetIndustriesNotFound) Code() int { + return 404 +} + func (o *GetIndustriesNotFound) Error() string { return fmt.Sprintf("[GET /industries][%d] getIndustriesNotFound %+v", 404, o.Payload) } + +func (o *GetIndustriesNotFound) String() string { + return fmt.Sprintf("[GET /industries][%d] getIndustriesNotFound %+v", 404, o.Payload) +} + func (o *GetIndustriesNotFound) GetPayload() *sfgate_models.Error { return o.Payload } @@ -245,7 +389,8 @@ func NewGetIndustriesUnprocessableEntity() *GetIndustriesUnprocessableEntity { return &GetIndustriesUnprocessableEntity{} } -/* GetIndustriesUnprocessableEntity describes a response with status code 422, with default header values. +/* +GetIndustriesUnprocessableEntity describes a response with status code 422, with default header values. Unprocessable Entity, likely a bad parameter */ @@ -255,9 +400,44 @@ type GetIndustriesUnprocessableEntity struct { Payload *sfgate_models.Error } +// IsSuccess returns true when this get industries unprocessable entity response has a 2xx status code +func (o *GetIndustriesUnprocessableEntity) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get industries unprocessable entity response has a 3xx status code +func (o *GetIndustriesUnprocessableEntity) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get industries unprocessable entity response has a 4xx status code +func (o *GetIndustriesUnprocessableEntity) IsClientError() bool { + return true +} + +// IsServerError returns true when this get industries unprocessable entity response has a 5xx status code +func (o *GetIndustriesUnprocessableEntity) IsServerError() bool { + return false +} + +// IsCode returns true when this get industries unprocessable entity response a status code equal to that given +func (o *GetIndustriesUnprocessableEntity) IsCode(code int) bool { + return code == 422 +} + +// Code gets the status code for the get industries unprocessable entity response +func (o *GetIndustriesUnprocessableEntity) Code() int { + return 422 +} + func (o *GetIndustriesUnprocessableEntity) Error() string { return fmt.Sprintf("[GET /industries][%d] getIndustriesUnprocessableEntity %+v", 422, o.Payload) } + +func (o *GetIndustriesUnprocessableEntity) String() string { + return fmt.Sprintf("[GET /industries][%d] getIndustriesUnprocessableEntity %+v", 422, o.Payload) +} + func (o *GetIndustriesUnprocessableEntity) GetPayload() *sfgate_models.Error { return o.Payload } @@ -286,7 +466,8 @@ func NewGetIndustriesInternalServerError() *GetIndustriesInternalServerError { return &GetIndustriesInternalServerError{} } -/* GetIndustriesInternalServerError describes a response with status code 500, with default header values. +/* +GetIndustriesInternalServerError describes a response with status code 500, with default header values. Server Internal Error */ @@ -296,9 +477,44 @@ type GetIndustriesInternalServerError struct { Payload *sfgate_models.Error } +// IsSuccess returns true when this get industries internal server error response has a 2xx status code +func (o *GetIndustriesInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get industries internal server error response has a 3xx status code +func (o *GetIndustriesInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get industries internal server error response has a 4xx status code +func (o *GetIndustriesInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this get industries internal server error response has a 5xx status code +func (o *GetIndustriesInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this get industries internal server error response a status code equal to that given +func (o *GetIndustriesInternalServerError) IsCode(code int) bool { + return code == 500 +} + +// Code gets the status code for the get industries internal server error response +func (o *GetIndustriesInternalServerError) Code() int { + return 500 +} + func (o *GetIndustriesInternalServerError) Error() string { return fmt.Sprintf("[GET /industries][%d] getIndustriesInternalServerError %+v", 500, o.Payload) } + +func (o *GetIndustriesInternalServerError) String() string { + return fmt.Sprintf("[GET /industries][%d] getIndustriesInternalServerError %+v", 500, o.Payload) +} + func (o *GetIndustriesInternalServerError) GetPayload() *sfgate_models.Error { return o.Payload } diff --git a/api/sfgate/sfgate_client/industries/industries_client.go b/api/sfgate/sfgate_client/industries/industries_client.go index 16d6c2a..d249cee 100644 --- a/api/sfgate/sfgate_client/industries/industries_client.go +++ b/api/sfgate/sfgate_client/industries/industries_client.go @@ -42,9 +42,9 @@ type ClientService interface { } /* - GetIndustries gets a list of industries +GetIndustries gets a list of industries - Return a list of all available Industries +Return a list of all available Industries */ func (a *Client) GetIndustries(params *GetIndustriesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetIndustriesOK, error) { // TODO: Validate the params before sending @@ -83,9 +83,9 @@ func (a *Client) GetIndustries(params *GetIndustriesParams, authInfo runtime.Cli } /* - PostIndustries adds a new industry to taxnexus +PostIndustries adds a new industry to taxnexus - Industry record to be added +Industry record to be added */ func (a *Client) PostIndustries(params *PostIndustriesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostIndustriesOK, error) { // TODO: Validate the params before sending diff --git a/api/sfgate/sfgate_client/industries/post_industries_parameters.go b/api/sfgate/sfgate_client/industries/post_industries_parameters.go index 684ad76..97fc2fc 100644 --- a/api/sfgate/sfgate_client/industries/post_industries_parameters.go +++ b/api/sfgate/sfgate_client/industries/post_industries_parameters.go @@ -58,10 +58,12 @@ func NewPostIndustriesParamsWithHTTPClient(client *http.Client) *PostIndustriesP } } -/* PostIndustriesParams contains all the parameters to send to the API endpoint - for the post industries operation. +/* +PostIndustriesParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the post industries operation. + + Typically these are written to a http.Request. */ type PostIndustriesParams struct { diff --git a/api/sfgate/sfgate_client/industries/post_industries_responses.go b/api/sfgate/sfgate_client/industries/post_industries_responses.go index 4da8a6f..83ad66b 100644 --- a/api/sfgate/sfgate_client/industries/post_industries_responses.go +++ b/api/sfgate/sfgate_client/industries/post_industries_responses.go @@ -73,7 +73,8 @@ func NewPostIndustriesOK() *PostIndustriesOK { return &PostIndustriesOK{} } -/* PostIndustriesOK describes a response with status code 200, with default header values. +/* +PostIndustriesOK describes a response with status code 200, with default header values. Taxnexus Response with Industry objects */ @@ -84,9 +85,44 @@ type PostIndustriesOK struct { Payload *sfgate_models.IndustryResponse } +// IsSuccess returns true when this post industries o k response has a 2xx status code +func (o *PostIndustriesOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this post industries o k response has a 3xx status code +func (o *PostIndustriesOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this post industries o k response has a 4xx status code +func (o *PostIndustriesOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this post industries o k response has a 5xx status code +func (o *PostIndustriesOK) IsServerError() bool { + return false +} + +// IsCode returns true when this post industries o k response a status code equal to that given +func (o *PostIndustriesOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the post industries o k response +func (o *PostIndustriesOK) Code() int { + return 200 +} + func (o *PostIndustriesOK) Error() string { return fmt.Sprintf("[POST /industries][%d] postIndustriesOK %+v", 200, o.Payload) } + +func (o *PostIndustriesOK) String() string { + return fmt.Sprintf("[POST /industries][%d] postIndustriesOK %+v", 200, o.Payload) +} + func (o *PostIndustriesOK) GetPayload() *sfgate_models.IndustryResponse { return o.Payload } @@ -122,7 +158,8 @@ func NewPostIndustriesUnauthorized() *PostIndustriesUnauthorized { return &PostIndustriesUnauthorized{} } -/* PostIndustriesUnauthorized describes a response with status code 401, with default header values. +/* +PostIndustriesUnauthorized describes a response with status code 401, with default header values. Access unauthorized, invalid API-KEY was used */ @@ -132,9 +169,44 @@ type PostIndustriesUnauthorized struct { Payload *sfgate_models.Error } +// IsSuccess returns true when this post industries unauthorized response has a 2xx status code +func (o *PostIndustriesUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this post industries unauthorized response has a 3xx status code +func (o *PostIndustriesUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this post industries unauthorized response has a 4xx status code +func (o *PostIndustriesUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this post industries unauthorized response has a 5xx status code +func (o *PostIndustriesUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this post industries unauthorized response a status code equal to that given +func (o *PostIndustriesUnauthorized) IsCode(code int) bool { + return code == 401 +} + +// Code gets the status code for the post industries unauthorized response +func (o *PostIndustriesUnauthorized) Code() int { + return 401 +} + func (o *PostIndustriesUnauthorized) Error() string { return fmt.Sprintf("[POST /industries][%d] postIndustriesUnauthorized %+v", 401, o.Payload) } + +func (o *PostIndustriesUnauthorized) String() string { + return fmt.Sprintf("[POST /industries][%d] postIndustriesUnauthorized %+v", 401, o.Payload) +} + func (o *PostIndustriesUnauthorized) GetPayload() *sfgate_models.Error { return o.Payload } @@ -163,7 +235,8 @@ func NewPostIndustriesForbidden() *PostIndustriesForbidden { return &PostIndustriesForbidden{} } -/* PostIndustriesForbidden describes a response with status code 403, with default header values. +/* +PostIndustriesForbidden describes a response with status code 403, with default header values. Access forbidden, account lacks access */ @@ -173,9 +246,44 @@ type PostIndustriesForbidden struct { Payload *sfgate_models.Error } +// IsSuccess returns true when this post industries forbidden response has a 2xx status code +func (o *PostIndustriesForbidden) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this post industries forbidden response has a 3xx status code +func (o *PostIndustriesForbidden) IsRedirect() bool { + return false +} + +// IsClientError returns true when this post industries forbidden response has a 4xx status code +func (o *PostIndustriesForbidden) IsClientError() bool { + return true +} + +// IsServerError returns true when this post industries forbidden response has a 5xx status code +func (o *PostIndustriesForbidden) IsServerError() bool { + return false +} + +// IsCode returns true when this post industries forbidden response a status code equal to that given +func (o *PostIndustriesForbidden) IsCode(code int) bool { + return code == 403 +} + +// Code gets the status code for the post industries forbidden response +func (o *PostIndustriesForbidden) Code() int { + return 403 +} + func (o *PostIndustriesForbidden) Error() string { return fmt.Sprintf("[POST /industries][%d] postIndustriesForbidden %+v", 403, o.Payload) } + +func (o *PostIndustriesForbidden) String() string { + return fmt.Sprintf("[POST /industries][%d] postIndustriesForbidden %+v", 403, o.Payload) +} + func (o *PostIndustriesForbidden) GetPayload() *sfgate_models.Error { return o.Payload } @@ -204,7 +312,8 @@ func NewPostIndustriesNotFound() *PostIndustriesNotFound { return &PostIndustriesNotFound{} } -/* PostIndustriesNotFound describes a response with status code 404, with default header values. +/* +PostIndustriesNotFound describes a response with status code 404, with default header values. Resource was not found */ @@ -214,9 +323,44 @@ type PostIndustriesNotFound struct { Payload *sfgate_models.Error } +// IsSuccess returns true when this post industries not found response has a 2xx status code +func (o *PostIndustriesNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this post industries not found response has a 3xx status code +func (o *PostIndustriesNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this post industries not found response has a 4xx status code +func (o *PostIndustriesNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this post industries not found response has a 5xx status code +func (o *PostIndustriesNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this post industries not found response a status code equal to that given +func (o *PostIndustriesNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the post industries not found response +func (o *PostIndustriesNotFound) Code() int { + return 404 +} + func (o *PostIndustriesNotFound) Error() string { return fmt.Sprintf("[POST /industries][%d] postIndustriesNotFound %+v", 404, o.Payload) } + +func (o *PostIndustriesNotFound) String() string { + return fmt.Sprintf("[POST /industries][%d] postIndustriesNotFound %+v", 404, o.Payload) +} + func (o *PostIndustriesNotFound) GetPayload() *sfgate_models.Error { return o.Payload } @@ -245,7 +389,8 @@ func NewPostIndustriesUnprocessableEntity() *PostIndustriesUnprocessableEntity { return &PostIndustriesUnprocessableEntity{} } -/* PostIndustriesUnprocessableEntity describes a response with status code 422, with default header values. +/* +PostIndustriesUnprocessableEntity describes a response with status code 422, with default header values. Unprocessable Entity, likely a bad parameter */ @@ -255,9 +400,44 @@ type PostIndustriesUnprocessableEntity struct { Payload *sfgate_models.Error } +// IsSuccess returns true when this post industries unprocessable entity response has a 2xx status code +func (o *PostIndustriesUnprocessableEntity) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this post industries unprocessable entity response has a 3xx status code +func (o *PostIndustriesUnprocessableEntity) IsRedirect() bool { + return false +} + +// IsClientError returns true when this post industries unprocessable entity response has a 4xx status code +func (o *PostIndustriesUnprocessableEntity) IsClientError() bool { + return true +} + +// IsServerError returns true when this post industries unprocessable entity response has a 5xx status code +func (o *PostIndustriesUnprocessableEntity) IsServerError() bool { + return false +} + +// IsCode returns true when this post industries unprocessable entity response a status code equal to that given +func (o *PostIndustriesUnprocessableEntity) IsCode(code int) bool { + return code == 422 +} + +// Code gets the status code for the post industries unprocessable entity response +func (o *PostIndustriesUnprocessableEntity) Code() int { + return 422 +} + func (o *PostIndustriesUnprocessableEntity) Error() string { return fmt.Sprintf("[POST /industries][%d] postIndustriesUnprocessableEntity %+v", 422, o.Payload) } + +func (o *PostIndustriesUnprocessableEntity) String() string { + return fmt.Sprintf("[POST /industries][%d] postIndustriesUnprocessableEntity %+v", 422, o.Payload) +} + func (o *PostIndustriesUnprocessableEntity) GetPayload() *sfgate_models.Error { return o.Payload } @@ -286,7 +466,8 @@ func NewPostIndustriesInternalServerError() *PostIndustriesInternalServerError { return &PostIndustriesInternalServerError{} } -/* PostIndustriesInternalServerError describes a response with status code 500, with default header values. +/* +PostIndustriesInternalServerError describes a response with status code 500, with default header values. Server Internal Error */ @@ -296,9 +477,44 @@ type PostIndustriesInternalServerError struct { Payload *sfgate_models.Error } +// IsSuccess returns true when this post industries internal server error response has a 2xx status code +func (o *PostIndustriesInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this post industries internal server error response has a 3xx status code +func (o *PostIndustriesInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this post industries internal server error response has a 4xx status code +func (o *PostIndustriesInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this post industries internal server error response has a 5xx status code +func (o *PostIndustriesInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this post industries internal server error response a status code equal to that given +func (o *PostIndustriesInternalServerError) IsCode(code int) bool { + return code == 500 +} + +// Code gets the status code for the post industries internal server error response +func (o *PostIndustriesInternalServerError) Code() int { + return 500 +} + func (o *PostIndustriesInternalServerError) Error() string { return fmt.Sprintf("[POST /industries][%d] postIndustriesInternalServerError %+v", 500, o.Payload) } + +func (o *PostIndustriesInternalServerError) String() string { + return fmt.Sprintf("[POST /industries][%d] postIndustriesInternalServerError %+v", 500, o.Payload) +} + func (o *PostIndustriesInternalServerError) GetPayload() *sfgate_models.Error { return o.Payload } diff --git a/api/sfgate/sfgate_client/industry_products/industry_products_client.go b/api/sfgate/sfgate_client/industry_products/industry_products_client.go index d19a4cb..f97b0db 100644 --- a/api/sfgate/sfgate_client/industry_products/industry_products_client.go +++ b/api/sfgate/sfgate_client/industry_products/industry_products_client.go @@ -40,9 +40,9 @@ type ClientService interface { } /* - PostIndustryproducts adds a new industryproduct to taxnexus +PostIndustryproducts adds a new industryproduct to taxnexus - Industry record to be added +Industry record to be added */ func (a *Client) PostIndustryproducts(params *PostIndustryproductsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostIndustryproductsOK, error) { // TODO: Validate the params before sending diff --git a/api/sfgate/sfgate_client/industry_products/post_industryproducts_parameters.go b/api/sfgate/sfgate_client/industry_products/post_industryproducts_parameters.go index e89598b..a3a6e81 100644 --- a/api/sfgate/sfgate_client/industry_products/post_industryproducts_parameters.go +++ b/api/sfgate/sfgate_client/industry_products/post_industryproducts_parameters.go @@ -58,10 +58,12 @@ func NewPostIndustryproductsParamsWithHTTPClient(client *http.Client) *PostIndus } } -/* PostIndustryproductsParams contains all the parameters to send to the API endpoint - for the post industryproducts operation. +/* +PostIndustryproductsParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the post industryproducts operation. + + Typically these are written to a http.Request. */ type PostIndustryproductsParams struct { diff --git a/api/sfgate/sfgate_client/industry_products/post_industryproducts_responses.go b/api/sfgate/sfgate_client/industry_products/post_industryproducts_responses.go index 1882d0e..ca11d0b 100644 --- a/api/sfgate/sfgate_client/industry_products/post_industryproducts_responses.go +++ b/api/sfgate/sfgate_client/industry_products/post_industryproducts_responses.go @@ -73,7 +73,8 @@ func NewPostIndustryproductsOK() *PostIndustryproductsOK { return &PostIndustryproductsOK{} } -/* PostIndustryproductsOK describes a response with status code 200, with default header values. +/* +PostIndustryproductsOK describes a response with status code 200, with default header values. Taxnexus Response with Industry objects */ @@ -84,9 +85,44 @@ type PostIndustryproductsOK struct { Payload *sfgate_models.IndustryProductResponse } +// IsSuccess returns true when this post industryproducts o k response has a 2xx status code +func (o *PostIndustryproductsOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this post industryproducts o k response has a 3xx status code +func (o *PostIndustryproductsOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this post industryproducts o k response has a 4xx status code +func (o *PostIndustryproductsOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this post industryproducts o k response has a 5xx status code +func (o *PostIndustryproductsOK) IsServerError() bool { + return false +} + +// IsCode returns true when this post industryproducts o k response a status code equal to that given +func (o *PostIndustryproductsOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the post industryproducts o k response +func (o *PostIndustryproductsOK) Code() int { + return 200 +} + func (o *PostIndustryproductsOK) Error() string { return fmt.Sprintf("[POST /industryproducts][%d] postIndustryproductsOK %+v", 200, o.Payload) } + +func (o *PostIndustryproductsOK) String() string { + return fmt.Sprintf("[POST /industryproducts][%d] postIndustryproductsOK %+v", 200, o.Payload) +} + func (o *PostIndustryproductsOK) GetPayload() *sfgate_models.IndustryProductResponse { return o.Payload } @@ -122,7 +158,8 @@ func NewPostIndustryproductsUnauthorized() *PostIndustryproductsUnauthorized { return &PostIndustryproductsUnauthorized{} } -/* PostIndustryproductsUnauthorized describes a response with status code 401, with default header values. +/* +PostIndustryproductsUnauthorized describes a response with status code 401, with default header values. Access unauthorized, invalid API-KEY was used */ @@ -132,9 +169,44 @@ type PostIndustryproductsUnauthorized struct { Payload *sfgate_models.Error } +// IsSuccess returns true when this post industryproducts unauthorized response has a 2xx status code +func (o *PostIndustryproductsUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this post industryproducts unauthorized response has a 3xx status code +func (o *PostIndustryproductsUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this post industryproducts unauthorized response has a 4xx status code +func (o *PostIndustryproductsUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this post industryproducts unauthorized response has a 5xx status code +func (o *PostIndustryproductsUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this post industryproducts unauthorized response a status code equal to that given +func (o *PostIndustryproductsUnauthorized) IsCode(code int) bool { + return code == 401 +} + +// Code gets the status code for the post industryproducts unauthorized response +func (o *PostIndustryproductsUnauthorized) Code() int { + return 401 +} + func (o *PostIndustryproductsUnauthorized) Error() string { return fmt.Sprintf("[POST /industryproducts][%d] postIndustryproductsUnauthorized %+v", 401, o.Payload) } + +func (o *PostIndustryproductsUnauthorized) String() string { + return fmt.Sprintf("[POST /industryproducts][%d] postIndustryproductsUnauthorized %+v", 401, o.Payload) +} + func (o *PostIndustryproductsUnauthorized) GetPayload() *sfgate_models.Error { return o.Payload } @@ -163,7 +235,8 @@ func NewPostIndustryproductsForbidden() *PostIndustryproductsForbidden { return &PostIndustryproductsForbidden{} } -/* PostIndustryproductsForbidden describes a response with status code 403, with default header values. +/* +PostIndustryproductsForbidden describes a response with status code 403, with default header values. Access forbidden, account lacks access */ @@ -173,9 +246,44 @@ type PostIndustryproductsForbidden struct { Payload *sfgate_models.Error } +// IsSuccess returns true when this post industryproducts forbidden response has a 2xx status code +func (o *PostIndustryproductsForbidden) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this post industryproducts forbidden response has a 3xx status code +func (o *PostIndustryproductsForbidden) IsRedirect() bool { + return false +} + +// IsClientError returns true when this post industryproducts forbidden response has a 4xx status code +func (o *PostIndustryproductsForbidden) IsClientError() bool { + return true +} + +// IsServerError returns true when this post industryproducts forbidden response has a 5xx status code +func (o *PostIndustryproductsForbidden) IsServerError() bool { + return false +} + +// IsCode returns true when this post industryproducts forbidden response a status code equal to that given +func (o *PostIndustryproductsForbidden) IsCode(code int) bool { + return code == 403 +} + +// Code gets the status code for the post industryproducts forbidden response +func (o *PostIndustryproductsForbidden) Code() int { + return 403 +} + func (o *PostIndustryproductsForbidden) Error() string { return fmt.Sprintf("[POST /industryproducts][%d] postIndustryproductsForbidden %+v", 403, o.Payload) } + +func (o *PostIndustryproductsForbidden) String() string { + return fmt.Sprintf("[POST /industryproducts][%d] postIndustryproductsForbidden %+v", 403, o.Payload) +} + func (o *PostIndustryproductsForbidden) GetPayload() *sfgate_models.Error { return o.Payload } @@ -204,7 +312,8 @@ func NewPostIndustryproductsNotFound() *PostIndustryproductsNotFound { return &PostIndustryproductsNotFound{} } -/* PostIndustryproductsNotFound describes a response with status code 404, with default header values. +/* +PostIndustryproductsNotFound describes a response with status code 404, with default header values. Resource was not found */ @@ -214,9 +323,44 @@ type PostIndustryproductsNotFound struct { Payload *sfgate_models.Error } +// IsSuccess returns true when this post industryproducts not found response has a 2xx status code +func (o *PostIndustryproductsNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this post industryproducts not found response has a 3xx status code +func (o *PostIndustryproductsNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this post industryproducts not found response has a 4xx status code +func (o *PostIndustryproductsNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this post industryproducts not found response has a 5xx status code +func (o *PostIndustryproductsNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this post industryproducts not found response a status code equal to that given +func (o *PostIndustryproductsNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the post industryproducts not found response +func (o *PostIndustryproductsNotFound) Code() int { + return 404 +} + func (o *PostIndustryproductsNotFound) Error() string { return fmt.Sprintf("[POST /industryproducts][%d] postIndustryproductsNotFound %+v", 404, o.Payload) } + +func (o *PostIndustryproductsNotFound) String() string { + return fmt.Sprintf("[POST /industryproducts][%d] postIndustryproductsNotFound %+v", 404, o.Payload) +} + func (o *PostIndustryproductsNotFound) GetPayload() *sfgate_models.Error { return o.Payload } @@ -245,7 +389,8 @@ func NewPostIndustryproductsUnprocessableEntity() *PostIndustryproductsUnprocess return &PostIndustryproductsUnprocessableEntity{} } -/* PostIndustryproductsUnprocessableEntity describes a response with status code 422, with default header values. +/* +PostIndustryproductsUnprocessableEntity describes a response with status code 422, with default header values. Unprocessable Entity, likely a bad parameter */ @@ -255,9 +400,44 @@ type PostIndustryproductsUnprocessableEntity struct { Payload *sfgate_models.Error } +// IsSuccess returns true when this post industryproducts unprocessable entity response has a 2xx status code +func (o *PostIndustryproductsUnprocessableEntity) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this post industryproducts unprocessable entity response has a 3xx status code +func (o *PostIndustryproductsUnprocessableEntity) IsRedirect() bool { + return false +} + +// IsClientError returns true when this post industryproducts unprocessable entity response has a 4xx status code +func (o *PostIndustryproductsUnprocessableEntity) IsClientError() bool { + return true +} + +// IsServerError returns true when this post industryproducts unprocessable entity response has a 5xx status code +func (o *PostIndustryproductsUnprocessableEntity) IsServerError() bool { + return false +} + +// IsCode returns true when this post industryproducts unprocessable entity response a status code equal to that given +func (o *PostIndustryproductsUnprocessableEntity) IsCode(code int) bool { + return code == 422 +} + +// Code gets the status code for the post industryproducts unprocessable entity response +func (o *PostIndustryproductsUnprocessableEntity) Code() int { + return 422 +} + func (o *PostIndustryproductsUnprocessableEntity) Error() string { return fmt.Sprintf("[POST /industryproducts][%d] postIndustryproductsUnprocessableEntity %+v", 422, o.Payload) } + +func (o *PostIndustryproductsUnprocessableEntity) String() string { + return fmt.Sprintf("[POST /industryproducts][%d] postIndustryproductsUnprocessableEntity %+v", 422, o.Payload) +} + func (o *PostIndustryproductsUnprocessableEntity) GetPayload() *sfgate_models.Error { return o.Payload } @@ -286,7 +466,8 @@ func NewPostIndustryproductsInternalServerError() *PostIndustryproductsInternalS return &PostIndustryproductsInternalServerError{} } -/* PostIndustryproductsInternalServerError describes a response with status code 500, with default header values. +/* +PostIndustryproductsInternalServerError describes a response with status code 500, with default header values. Server Internal Error */ @@ -296,9 +477,44 @@ type PostIndustryproductsInternalServerError struct { Payload *sfgate_models.Error } +// IsSuccess returns true when this post industryproducts internal server error response has a 2xx status code +func (o *PostIndustryproductsInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this post industryproducts internal server error response has a 3xx status code +func (o *PostIndustryproductsInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this post industryproducts internal server error response has a 4xx status code +func (o *PostIndustryproductsInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this post industryproducts internal server error response has a 5xx status code +func (o *PostIndustryproductsInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this post industryproducts internal server error response a status code equal to that given +func (o *PostIndustryproductsInternalServerError) IsCode(code int) bool { + return code == 500 +} + +// Code gets the status code for the post industryproducts internal server error response +func (o *PostIndustryproductsInternalServerError) Code() int { + return 500 +} + func (o *PostIndustryproductsInternalServerError) Error() string { return fmt.Sprintf("[POST /industryproducts][%d] postIndustryproductsInternalServerError %+v", 500, o.Payload) } + +func (o *PostIndustryproductsInternalServerError) String() string { + return fmt.Sprintf("[POST /industryproducts][%d] postIndustryproductsInternalServerError %+v", 500, o.Payload) +} + func (o *PostIndustryproductsInternalServerError) GetPayload() *sfgate_models.Error { return o.Payload } diff --git a/api/sfgate/sfgate_client/industryproducts/get_industry_products_parameters.go b/api/sfgate/sfgate_client/industryproducts/get_industry_products_parameters.go index dcdd2cc..57bec66 100644 --- a/api/sfgate/sfgate_client/industryproducts/get_industry_products_parameters.go +++ b/api/sfgate/sfgate_client/industryproducts/get_industry_products_parameters.go @@ -57,10 +57,12 @@ func NewGetIndustryProductsParamsWithHTTPClient(client *http.Client) *GetIndustr } } -/* GetIndustryProductsParams contains all the parameters to send to the API endpoint - for the get industry products operation. +/* +GetIndustryProductsParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get industry products operation. + + Typically these are written to a http.Request. */ type GetIndustryProductsParams struct { diff --git a/api/sfgate/sfgate_client/industryproducts/get_industry_products_responses.go b/api/sfgate/sfgate_client/industryproducts/get_industry_products_responses.go index 8fafeab..988c03e 100644 --- a/api/sfgate/sfgate_client/industryproducts/get_industry_products_responses.go +++ b/api/sfgate/sfgate_client/industryproducts/get_industry_products_responses.go @@ -73,7 +73,8 @@ func NewGetIndustryProductsOK() *GetIndustryProductsOK { return &GetIndustryProductsOK{} } -/* GetIndustryProductsOK describes a response with status code 200, with default header values. +/* +GetIndustryProductsOK describes a response with status code 200, with default header values. Taxnexus Response with Industry objects */ @@ -84,9 +85,44 @@ type GetIndustryProductsOK struct { Payload *sfgate_models.IndustryProductResponse } +// IsSuccess returns true when this get industry products o k response has a 2xx status code +func (o *GetIndustryProductsOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get industry products o k response has a 3xx status code +func (o *GetIndustryProductsOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get industry products o k response has a 4xx status code +func (o *GetIndustryProductsOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get industry products o k response has a 5xx status code +func (o *GetIndustryProductsOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get industry products o k response a status code equal to that given +func (o *GetIndustryProductsOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get industry products o k response +func (o *GetIndustryProductsOK) Code() int { + return 200 +} + func (o *GetIndustryProductsOK) Error() string { return fmt.Sprintf("[GET /industryproducts][%d] getIndustryProductsOK %+v", 200, o.Payload) } + +func (o *GetIndustryProductsOK) String() string { + return fmt.Sprintf("[GET /industryproducts][%d] getIndustryProductsOK %+v", 200, o.Payload) +} + func (o *GetIndustryProductsOK) GetPayload() *sfgate_models.IndustryProductResponse { return o.Payload } @@ -122,7 +158,8 @@ func NewGetIndustryProductsUnauthorized() *GetIndustryProductsUnauthorized { return &GetIndustryProductsUnauthorized{} } -/* GetIndustryProductsUnauthorized describes a response with status code 401, with default header values. +/* +GetIndustryProductsUnauthorized describes a response with status code 401, with default header values. Access unauthorized, invalid API-KEY was used */ @@ -132,9 +169,44 @@ type GetIndustryProductsUnauthorized struct { Payload *sfgate_models.Error } +// IsSuccess returns true when this get industry products unauthorized response has a 2xx status code +func (o *GetIndustryProductsUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get industry products unauthorized response has a 3xx status code +func (o *GetIndustryProductsUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get industry products unauthorized response has a 4xx status code +func (o *GetIndustryProductsUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this get industry products unauthorized response has a 5xx status code +func (o *GetIndustryProductsUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this get industry products unauthorized response a status code equal to that given +func (o *GetIndustryProductsUnauthorized) IsCode(code int) bool { + return code == 401 +} + +// Code gets the status code for the get industry products unauthorized response +func (o *GetIndustryProductsUnauthorized) Code() int { + return 401 +} + func (o *GetIndustryProductsUnauthorized) Error() string { return fmt.Sprintf("[GET /industryproducts][%d] getIndustryProductsUnauthorized %+v", 401, o.Payload) } + +func (o *GetIndustryProductsUnauthorized) String() string { + return fmt.Sprintf("[GET /industryproducts][%d] getIndustryProductsUnauthorized %+v", 401, o.Payload) +} + func (o *GetIndustryProductsUnauthorized) GetPayload() *sfgate_models.Error { return o.Payload } @@ -163,7 +235,8 @@ func NewGetIndustryProductsForbidden() *GetIndustryProductsForbidden { return &GetIndustryProductsForbidden{} } -/* GetIndustryProductsForbidden describes a response with status code 403, with default header values. +/* +GetIndustryProductsForbidden describes a response with status code 403, with default header values. Access forbidden, account lacks access */ @@ -173,9 +246,44 @@ type GetIndustryProductsForbidden struct { Payload *sfgate_models.Error } +// IsSuccess returns true when this get industry products forbidden response has a 2xx status code +func (o *GetIndustryProductsForbidden) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get industry products forbidden response has a 3xx status code +func (o *GetIndustryProductsForbidden) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get industry products forbidden response has a 4xx status code +func (o *GetIndustryProductsForbidden) IsClientError() bool { + return true +} + +// IsServerError returns true when this get industry products forbidden response has a 5xx status code +func (o *GetIndustryProductsForbidden) IsServerError() bool { + return false +} + +// IsCode returns true when this get industry products forbidden response a status code equal to that given +func (o *GetIndustryProductsForbidden) IsCode(code int) bool { + return code == 403 +} + +// Code gets the status code for the get industry products forbidden response +func (o *GetIndustryProductsForbidden) Code() int { + return 403 +} + func (o *GetIndustryProductsForbidden) Error() string { return fmt.Sprintf("[GET /industryproducts][%d] getIndustryProductsForbidden %+v", 403, o.Payload) } + +func (o *GetIndustryProductsForbidden) String() string { + return fmt.Sprintf("[GET /industryproducts][%d] getIndustryProductsForbidden %+v", 403, o.Payload) +} + func (o *GetIndustryProductsForbidden) GetPayload() *sfgate_models.Error { return o.Payload } @@ -204,7 +312,8 @@ func NewGetIndustryProductsNotFound() *GetIndustryProductsNotFound { return &GetIndustryProductsNotFound{} } -/* GetIndustryProductsNotFound describes a response with status code 404, with default header values. +/* +GetIndustryProductsNotFound describes a response with status code 404, with default header values. Resource was not found */ @@ -214,9 +323,44 @@ type GetIndustryProductsNotFound struct { Payload *sfgate_models.Error } +// IsSuccess returns true when this get industry products not found response has a 2xx status code +func (o *GetIndustryProductsNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get industry products not found response has a 3xx status code +func (o *GetIndustryProductsNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get industry products not found response has a 4xx status code +func (o *GetIndustryProductsNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this get industry products not found response has a 5xx status code +func (o *GetIndustryProductsNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this get industry products not found response a status code equal to that given +func (o *GetIndustryProductsNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the get industry products not found response +func (o *GetIndustryProductsNotFound) Code() int { + return 404 +} + func (o *GetIndustryProductsNotFound) Error() string { return fmt.Sprintf("[GET /industryproducts][%d] getIndustryProductsNotFound %+v", 404, o.Payload) } + +func (o *GetIndustryProductsNotFound) String() string { + return fmt.Sprintf("[GET /industryproducts][%d] getIndustryProductsNotFound %+v", 404, o.Payload) +} + func (o *GetIndustryProductsNotFound) GetPayload() *sfgate_models.Error { return o.Payload } @@ -245,7 +389,8 @@ func NewGetIndustryProductsUnprocessableEntity() *GetIndustryProductsUnprocessab return &GetIndustryProductsUnprocessableEntity{} } -/* GetIndustryProductsUnprocessableEntity describes a response with status code 422, with default header values. +/* +GetIndustryProductsUnprocessableEntity describes a response with status code 422, with default header values. Unprocessable Entity, likely a bad parameter */ @@ -255,9 +400,44 @@ type GetIndustryProductsUnprocessableEntity struct { Payload *sfgate_models.Error } +// IsSuccess returns true when this get industry products unprocessable entity response has a 2xx status code +func (o *GetIndustryProductsUnprocessableEntity) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get industry products unprocessable entity response has a 3xx status code +func (o *GetIndustryProductsUnprocessableEntity) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get industry products unprocessable entity response has a 4xx status code +func (o *GetIndustryProductsUnprocessableEntity) IsClientError() bool { + return true +} + +// IsServerError returns true when this get industry products unprocessable entity response has a 5xx status code +func (o *GetIndustryProductsUnprocessableEntity) IsServerError() bool { + return false +} + +// IsCode returns true when this get industry products unprocessable entity response a status code equal to that given +func (o *GetIndustryProductsUnprocessableEntity) IsCode(code int) bool { + return code == 422 +} + +// Code gets the status code for the get industry products unprocessable entity response +func (o *GetIndustryProductsUnprocessableEntity) Code() int { + return 422 +} + func (o *GetIndustryProductsUnprocessableEntity) Error() string { return fmt.Sprintf("[GET /industryproducts][%d] getIndustryProductsUnprocessableEntity %+v", 422, o.Payload) } + +func (o *GetIndustryProductsUnprocessableEntity) String() string { + return fmt.Sprintf("[GET /industryproducts][%d] getIndustryProductsUnprocessableEntity %+v", 422, o.Payload) +} + func (o *GetIndustryProductsUnprocessableEntity) GetPayload() *sfgate_models.Error { return o.Payload } @@ -286,7 +466,8 @@ func NewGetIndustryProductsInternalServerError() *GetIndustryProductsInternalSer return &GetIndustryProductsInternalServerError{} } -/* GetIndustryProductsInternalServerError describes a response with status code 500, with default header values. +/* +GetIndustryProductsInternalServerError describes a response with status code 500, with default header values. Server Internal Error */ @@ -296,9 +477,44 @@ type GetIndustryProductsInternalServerError struct { Payload *sfgate_models.Error } +// IsSuccess returns true when this get industry products internal server error response has a 2xx status code +func (o *GetIndustryProductsInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get industry products internal server error response has a 3xx status code +func (o *GetIndustryProductsInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get industry products internal server error response has a 4xx status code +func (o *GetIndustryProductsInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this get industry products internal server error response has a 5xx status code +func (o *GetIndustryProductsInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this get industry products internal server error response a status code equal to that given +func (o *GetIndustryProductsInternalServerError) IsCode(code int) bool { + return code == 500 +} + +// Code gets the status code for the get industry products internal server error response +func (o *GetIndustryProductsInternalServerError) Code() int { + return 500 +} + func (o *GetIndustryProductsInternalServerError) Error() string { return fmt.Sprintf("[GET /industryproducts][%d] getIndustryProductsInternalServerError %+v", 500, o.Payload) } + +func (o *GetIndustryProductsInternalServerError) String() string { + return fmt.Sprintf("[GET /industryproducts][%d] getIndustryProductsInternalServerError %+v", 500, o.Payload) +} + func (o *GetIndustryProductsInternalServerError) GetPayload() *sfgate_models.Error { return o.Payload } diff --git a/api/sfgate/sfgate_client/industryproducts/industryproducts_client.go b/api/sfgate/sfgate_client/industryproducts/industryproducts_client.go index 9ec2dfc..aaedf0b 100644 --- a/api/sfgate/sfgate_client/industryproducts/industryproducts_client.go +++ b/api/sfgate/sfgate_client/industryproducts/industryproducts_client.go @@ -40,9 +40,9 @@ type ClientService interface { } /* - GetIndustryProducts gets a list of industryproducts +GetIndustryProducts gets a list of industryproducts - Return a list of all available IndustryProducts +Return a list of all available IndustryProducts */ func (a *Client) GetIndustryProducts(params *GetIndustryProductsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetIndustryProductsOK, error) { // TODO: Validate the params before sending diff --git a/api/sfgate/sfgate_client/roles/get_roles_parameters.go b/api/sfgate/sfgate_client/roles/get_roles_parameters.go index f5279d1..c4f5873 100644 --- a/api/sfgate/sfgate_client/roles/get_roles_parameters.go +++ b/api/sfgate/sfgate_client/roles/get_roles_parameters.go @@ -57,10 +57,12 @@ func NewGetRolesParamsWithHTTPClient(client *http.Client) *GetRolesParams { } } -/* GetRolesParams contains all the parameters to send to the API endpoint - for the get roles operation. +/* +GetRolesParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get roles operation. + + Typically these are written to a http.Request. */ type GetRolesParams struct { diff --git a/api/sfgate/sfgate_client/roles/get_roles_responses.go b/api/sfgate/sfgate_client/roles/get_roles_responses.go index c467209..13e4ec5 100644 --- a/api/sfgate/sfgate_client/roles/get_roles_responses.go +++ b/api/sfgate/sfgate_client/roles/get_roles_responses.go @@ -73,7 +73,8 @@ func NewGetRolesOK() *GetRolesOK { return &GetRolesOK{} } -/* GetRolesOK describes a response with status code 200, with default header values. +/* +GetRolesOK describes a response with status code 200, with default header values. Taxnexus Response with Role objects */ @@ -81,9 +82,44 @@ type GetRolesOK struct { Payload *sfgate_models.RoleResponse } +// 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 /roles][%d] getRolesOK %+v", 200, o.Payload) } + +func (o *GetRolesOK) String() string { + return fmt.Sprintf("[GET /roles][%d] getRolesOK %+v", 200, o.Payload) +} + func (o *GetRolesOK) GetPayload() *sfgate_models.RoleResponse { return o.Payload } @@ -105,7 +141,8 @@ func NewGetRolesUnauthorized() *GetRolesUnauthorized { return &GetRolesUnauthorized{} } -/* GetRolesUnauthorized describes a response with status code 401, with default header values. +/* +GetRolesUnauthorized describes a response with status code 401, with default header values. Access unauthorized, invalid API-KEY was used */ @@ -115,9 +152,44 @@ type GetRolesUnauthorized struct { Payload *sfgate_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 /roles][%d] getRolesUnauthorized %+v", 401, o.Payload) } + +func (o *GetRolesUnauthorized) String() string { + return fmt.Sprintf("[GET /roles][%d] getRolesUnauthorized %+v", 401, o.Payload) +} + func (o *GetRolesUnauthorized) GetPayload() *sfgate_models.Error { return o.Payload } @@ -146,7 +218,8 @@ func NewGetRolesForbidden() *GetRolesForbidden { return &GetRolesForbidden{} } -/* GetRolesForbidden describes a response with status code 403, with default header values. +/* +GetRolesForbidden describes a response with status code 403, with default header values. Access forbidden, account lacks access */ @@ -156,9 +229,44 @@ type GetRolesForbidden struct { Payload *sfgate_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 /roles][%d] getRolesForbidden %+v", 403, o.Payload) } + +func (o *GetRolesForbidden) String() string { + return fmt.Sprintf("[GET /roles][%d] getRolesForbidden %+v", 403, o.Payload) +} + func (o *GetRolesForbidden) GetPayload() *sfgate_models.Error { return o.Payload } @@ -187,7 +295,8 @@ func NewGetRolesNotFound() *GetRolesNotFound { return &GetRolesNotFound{} } -/* GetRolesNotFound describes a response with status code 404, with default header values. +/* +GetRolesNotFound describes a response with status code 404, with default header values. Resource was not found */ @@ -197,9 +306,44 @@ type GetRolesNotFound struct { Payload *sfgate_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 /roles][%d] getRolesNotFound %+v", 404, o.Payload) } + +func (o *GetRolesNotFound) String() string { + return fmt.Sprintf("[GET /roles][%d] getRolesNotFound %+v", 404, o.Payload) +} + func (o *GetRolesNotFound) GetPayload() *sfgate_models.Error { return o.Payload } @@ -228,7 +372,8 @@ func NewGetRolesUnprocessableEntity() *GetRolesUnprocessableEntity { return &GetRolesUnprocessableEntity{} } -/* GetRolesUnprocessableEntity describes a response with status code 422, with default header values. +/* +GetRolesUnprocessableEntity describes a response with status code 422, with default header values. Unprocessable Entity, likely a bad parameter */ @@ -238,9 +383,44 @@ type GetRolesUnprocessableEntity struct { Payload *sfgate_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 /roles][%d] getRolesUnprocessableEntity %+v", 422, o.Payload) } + +func (o *GetRolesUnprocessableEntity) String() string { + return fmt.Sprintf("[GET /roles][%d] getRolesUnprocessableEntity %+v", 422, o.Payload) +} + func (o *GetRolesUnprocessableEntity) GetPayload() *sfgate_models.Error { return o.Payload } @@ -269,7 +449,8 @@ func NewGetRolesInternalServerError() *GetRolesInternalServerError { return &GetRolesInternalServerError{} } -/* GetRolesInternalServerError describes a response with status code 500, with default header values. +/* +GetRolesInternalServerError describes a response with status code 500, with default header values. Server Internal Error */ @@ -279,9 +460,44 @@ type GetRolesInternalServerError struct { Payload *sfgate_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 /roles][%d] getRolesInternalServerError %+v", 500, o.Payload) } + +func (o *GetRolesInternalServerError) String() string { + return fmt.Sprintf("[GET /roles][%d] getRolesInternalServerError %+v", 500, o.Payload) +} + func (o *GetRolesInternalServerError) GetPayload() *sfgate_models.Error { return o.Payload } diff --git a/api/sfgate/sfgate_client/roles/roles_client.go b/api/sfgate/sfgate_client/roles/roles_client.go index eaff6e0..694f618 100644 --- a/api/sfgate/sfgate_client/roles/roles_client.go +++ b/api/sfgate/sfgate_client/roles/roles_client.go @@ -40,9 +40,9 @@ type ClientService interface { } /* - GetRoles gets a list of roles +GetRoles gets a list of roles - Return a list of Roles +Return a list of Roles */ func (a *Client) GetRoles(params *GetRolesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetRolesOK, error) { // TODO: Validate the params before sending diff --git a/api/sfgate/sfgate_client/templates/get_templates_parameters.go b/api/sfgate/sfgate_client/templates/get_templates_parameters.go index 40155d2..c0c0608 100644 --- a/api/sfgate/sfgate_client/templates/get_templates_parameters.go +++ b/api/sfgate/sfgate_client/templates/get_templates_parameters.go @@ -57,10 +57,12 @@ func NewGetTemplatesParamsWithHTTPClient(client *http.Client) *GetTemplatesParam } } -/* GetTemplatesParams contains all the parameters to send to the API endpoint - for the get templates operation. +/* +GetTemplatesParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get templates operation. + + Typically these are written to a http.Request. */ type GetTemplatesParams struct { diff --git a/api/sfgate/sfgate_client/templates/get_templates_responses.go b/api/sfgate/sfgate_client/templates/get_templates_responses.go index 944d044..7b7db2a 100644 --- a/api/sfgate/sfgate_client/templates/get_templates_responses.go +++ b/api/sfgate/sfgate_client/templates/get_templates_responses.go @@ -73,7 +73,8 @@ func NewGetTemplatesOK() *GetTemplatesOK { return &GetTemplatesOK{} } -/* GetTemplatesOK describes a response with status code 200, with default header values. +/* +GetTemplatesOK describes a response with status code 200, with default header values. Taxnexus Response with Template objects */ @@ -81,9 +82,44 @@ type GetTemplatesOK struct { Payload *sfgate_models.TemplateResponse } +// IsSuccess returns true when this get templates o k response has a 2xx status code +func (o *GetTemplatesOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get templates o k response has a 3xx status code +func (o *GetTemplatesOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get templates o k response has a 4xx status code +func (o *GetTemplatesOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get templates o k response has a 5xx status code +func (o *GetTemplatesOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get templates o k response a status code equal to that given +func (o *GetTemplatesOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get templates o k response +func (o *GetTemplatesOK) Code() int { + return 200 +} + func (o *GetTemplatesOK) Error() string { return fmt.Sprintf("[GET /templates][%d] getTemplatesOK %+v", 200, o.Payload) } + +func (o *GetTemplatesOK) String() string { + return fmt.Sprintf("[GET /templates][%d] getTemplatesOK %+v", 200, o.Payload) +} + func (o *GetTemplatesOK) GetPayload() *sfgate_models.TemplateResponse { return o.Payload } @@ -105,7 +141,8 @@ func NewGetTemplatesUnauthorized() *GetTemplatesUnauthorized { return &GetTemplatesUnauthorized{} } -/* GetTemplatesUnauthorized describes a response with status code 401, with default header values. +/* +GetTemplatesUnauthorized describes a response with status code 401, with default header values. Access unauthorized, invalid API-KEY was used */ @@ -115,9 +152,44 @@ type GetTemplatesUnauthorized struct { Payload *sfgate_models.Error } +// IsSuccess returns true when this get templates unauthorized response has a 2xx status code +func (o *GetTemplatesUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get templates unauthorized response has a 3xx status code +func (o *GetTemplatesUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get templates unauthorized response has a 4xx status code +func (o *GetTemplatesUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this get templates unauthorized response has a 5xx status code +func (o *GetTemplatesUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this get templates unauthorized response a status code equal to that given +func (o *GetTemplatesUnauthorized) IsCode(code int) bool { + return code == 401 +} + +// Code gets the status code for the get templates unauthorized response +func (o *GetTemplatesUnauthorized) Code() int { + return 401 +} + func (o *GetTemplatesUnauthorized) Error() string { return fmt.Sprintf("[GET /templates][%d] getTemplatesUnauthorized %+v", 401, o.Payload) } + +func (o *GetTemplatesUnauthorized) String() string { + return fmt.Sprintf("[GET /templates][%d] getTemplatesUnauthorized %+v", 401, o.Payload) +} + func (o *GetTemplatesUnauthorized) GetPayload() *sfgate_models.Error { return o.Payload } @@ -146,7 +218,8 @@ func NewGetTemplatesForbidden() *GetTemplatesForbidden { return &GetTemplatesForbidden{} } -/* GetTemplatesForbidden describes a response with status code 403, with default header values. +/* +GetTemplatesForbidden describes a response with status code 403, with default header values. Access forbidden, account lacks access */ @@ -156,9 +229,44 @@ type GetTemplatesForbidden struct { Payload *sfgate_models.Error } +// IsSuccess returns true when this get templates forbidden response has a 2xx status code +func (o *GetTemplatesForbidden) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get templates forbidden response has a 3xx status code +func (o *GetTemplatesForbidden) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get templates forbidden response has a 4xx status code +func (o *GetTemplatesForbidden) IsClientError() bool { + return true +} + +// IsServerError returns true when this get templates forbidden response has a 5xx status code +func (o *GetTemplatesForbidden) IsServerError() bool { + return false +} + +// IsCode returns true when this get templates forbidden response a status code equal to that given +func (o *GetTemplatesForbidden) IsCode(code int) bool { + return code == 403 +} + +// Code gets the status code for the get templates forbidden response +func (o *GetTemplatesForbidden) Code() int { + return 403 +} + func (o *GetTemplatesForbidden) Error() string { return fmt.Sprintf("[GET /templates][%d] getTemplatesForbidden %+v", 403, o.Payload) } + +func (o *GetTemplatesForbidden) String() string { + return fmt.Sprintf("[GET /templates][%d] getTemplatesForbidden %+v", 403, o.Payload) +} + func (o *GetTemplatesForbidden) GetPayload() *sfgate_models.Error { return o.Payload } @@ -187,7 +295,8 @@ func NewGetTemplatesNotFound() *GetTemplatesNotFound { return &GetTemplatesNotFound{} } -/* GetTemplatesNotFound describes a response with status code 404, with default header values. +/* +GetTemplatesNotFound describes a response with status code 404, with default header values. Resource was not found */ @@ -197,9 +306,44 @@ type GetTemplatesNotFound struct { Payload *sfgate_models.Error } +// IsSuccess returns true when this get templates not found response has a 2xx status code +func (o *GetTemplatesNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get templates not found response has a 3xx status code +func (o *GetTemplatesNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get templates not found response has a 4xx status code +func (o *GetTemplatesNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this get templates not found response has a 5xx status code +func (o *GetTemplatesNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this get templates not found response a status code equal to that given +func (o *GetTemplatesNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the get templates not found response +func (o *GetTemplatesNotFound) Code() int { + return 404 +} + func (o *GetTemplatesNotFound) Error() string { return fmt.Sprintf("[GET /templates][%d] getTemplatesNotFound %+v", 404, o.Payload) } + +func (o *GetTemplatesNotFound) String() string { + return fmt.Sprintf("[GET /templates][%d] getTemplatesNotFound %+v", 404, o.Payload) +} + func (o *GetTemplatesNotFound) GetPayload() *sfgate_models.Error { return o.Payload } @@ -228,7 +372,8 @@ func NewGetTemplatesUnprocessableEntity() *GetTemplatesUnprocessableEntity { return &GetTemplatesUnprocessableEntity{} } -/* GetTemplatesUnprocessableEntity describes a response with status code 422, with default header values. +/* +GetTemplatesUnprocessableEntity describes a response with status code 422, with default header values. Unprocessable Entity, likely a bad parameter */ @@ -238,9 +383,44 @@ type GetTemplatesUnprocessableEntity struct { Payload *sfgate_models.Error } +// IsSuccess returns true when this get templates unprocessable entity response has a 2xx status code +func (o *GetTemplatesUnprocessableEntity) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get templates unprocessable entity response has a 3xx status code +func (o *GetTemplatesUnprocessableEntity) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get templates unprocessable entity response has a 4xx status code +func (o *GetTemplatesUnprocessableEntity) IsClientError() bool { + return true +} + +// IsServerError returns true when this get templates unprocessable entity response has a 5xx status code +func (o *GetTemplatesUnprocessableEntity) IsServerError() bool { + return false +} + +// IsCode returns true when this get templates unprocessable entity response a status code equal to that given +func (o *GetTemplatesUnprocessableEntity) IsCode(code int) bool { + return code == 422 +} + +// Code gets the status code for the get templates unprocessable entity response +func (o *GetTemplatesUnprocessableEntity) Code() int { + return 422 +} + func (o *GetTemplatesUnprocessableEntity) Error() string { return fmt.Sprintf("[GET /templates][%d] getTemplatesUnprocessableEntity %+v", 422, o.Payload) } + +func (o *GetTemplatesUnprocessableEntity) String() string { + return fmt.Sprintf("[GET /templates][%d] getTemplatesUnprocessableEntity %+v", 422, o.Payload) +} + func (o *GetTemplatesUnprocessableEntity) GetPayload() *sfgate_models.Error { return o.Payload } @@ -269,7 +449,8 @@ func NewGetTemplatesInternalServerError() *GetTemplatesInternalServerError { return &GetTemplatesInternalServerError{} } -/* GetTemplatesInternalServerError describes a response with status code 500, with default header values. +/* +GetTemplatesInternalServerError describes a response with status code 500, with default header values. Server Internal Error */ @@ -279,9 +460,44 @@ type GetTemplatesInternalServerError struct { Payload *sfgate_models.Error } +// IsSuccess returns true when this get templates internal server error response has a 2xx status code +func (o *GetTemplatesInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get templates internal server error response has a 3xx status code +func (o *GetTemplatesInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get templates internal server error response has a 4xx status code +func (o *GetTemplatesInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this get templates internal server error response has a 5xx status code +func (o *GetTemplatesInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this get templates internal server error response a status code equal to that given +func (o *GetTemplatesInternalServerError) IsCode(code int) bool { + return code == 500 +} + +// Code gets the status code for the get templates internal server error response +func (o *GetTemplatesInternalServerError) Code() int { + return 500 +} + func (o *GetTemplatesInternalServerError) Error() string { return fmt.Sprintf("[GET /templates][%d] getTemplatesInternalServerError %+v", 500, o.Payload) } + +func (o *GetTemplatesInternalServerError) String() string { + return fmt.Sprintf("[GET /templates][%d] getTemplatesInternalServerError %+v", 500, o.Payload) +} + func (o *GetTemplatesInternalServerError) GetPayload() *sfgate_models.Error { return o.Payload } diff --git a/api/sfgate/sfgate_client/templates/templates_client.go b/api/sfgate/sfgate_client/templates/templates_client.go index df16a99..bc0325b 100644 --- a/api/sfgate/sfgate_client/templates/templates_client.go +++ b/api/sfgate/sfgate_client/templates/templates_client.go @@ -40,9 +40,9 @@ type ClientService interface { } /* - GetTemplates gets p d f rendering templates +GetTemplates gets p d f rendering templates - Returns the PDF rendering template, or a link to where to get the template +Returns the PDF rendering template, or a link to where to get the template */ func (a *Client) GetTemplates(params *GetTemplatesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetTemplatesOK, error) { // TODO: Validate the params before sending diff --git a/api/sfgate/sfgate_client/tenants/get_tenants_parameters.go b/api/sfgate/sfgate_client/tenants/get_tenants_parameters.go index 72d6ea3..d347efa 100644 --- a/api/sfgate/sfgate_client/tenants/get_tenants_parameters.go +++ b/api/sfgate/sfgate_client/tenants/get_tenants_parameters.go @@ -57,10 +57,12 @@ func NewGetTenantsParamsWithHTTPClient(client *http.Client) *GetTenantsParams { } } -/* GetTenantsParams contains all the parameters to send to the API endpoint - for the get tenants operation. +/* +GetTenantsParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the get tenants operation. + + Typically these are written to a http.Request. */ type GetTenantsParams struct { diff --git a/api/sfgate/sfgate_client/tenants/get_tenants_responses.go b/api/sfgate/sfgate_client/tenants/get_tenants_responses.go index 2347e82..95922ac 100644 --- a/api/sfgate/sfgate_client/tenants/get_tenants_responses.go +++ b/api/sfgate/sfgate_client/tenants/get_tenants_responses.go @@ -73,7 +73,8 @@ func NewGetTenantsOK() *GetTenantsOK { return &GetTenantsOK{} } -/* GetTenantsOK describes a response with status code 200, with default header values. +/* +GetTenantsOK describes a response with status code 200, with default header values. Taxnexus Response with Tenant objects */ @@ -81,9 +82,44 @@ type GetTenantsOK struct { Payload *sfgate_models.TenantResponse } +// IsSuccess returns true when this get tenants o k response has a 2xx status code +func (o *GetTenantsOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get tenants o k response has a 3xx status code +func (o *GetTenantsOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get tenants o k response has a 4xx status code +func (o *GetTenantsOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get tenants o k response has a 5xx status code +func (o *GetTenantsOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get tenants o k response a status code equal to that given +func (o *GetTenantsOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get tenants o k response +func (o *GetTenantsOK) Code() int { + return 200 +} + func (o *GetTenantsOK) Error() string { return fmt.Sprintf("[GET /tenants][%d] getTenantsOK %+v", 200, o.Payload) } + +func (o *GetTenantsOK) String() string { + return fmt.Sprintf("[GET /tenants][%d] getTenantsOK %+v", 200, o.Payload) +} + func (o *GetTenantsOK) GetPayload() *sfgate_models.TenantResponse { return o.Payload } @@ -105,7 +141,8 @@ func NewGetTenantsUnauthorized() *GetTenantsUnauthorized { return &GetTenantsUnauthorized{} } -/* GetTenantsUnauthorized describes a response with status code 401, with default header values. +/* +GetTenantsUnauthorized describes a response with status code 401, with default header values. Access unauthorized, invalid API-KEY was used */ @@ -115,9 +152,44 @@ type GetTenantsUnauthorized struct { Payload *sfgate_models.Error } +// IsSuccess returns true when this get tenants unauthorized response has a 2xx status code +func (o *GetTenantsUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get tenants unauthorized response has a 3xx status code +func (o *GetTenantsUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get tenants unauthorized response has a 4xx status code +func (o *GetTenantsUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this get tenants unauthorized response has a 5xx status code +func (o *GetTenantsUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this get tenants unauthorized response a status code equal to that given +func (o *GetTenantsUnauthorized) IsCode(code int) bool { + return code == 401 +} + +// Code gets the status code for the get tenants unauthorized response +func (o *GetTenantsUnauthorized) Code() int { + return 401 +} + func (o *GetTenantsUnauthorized) Error() string { return fmt.Sprintf("[GET /tenants][%d] getTenantsUnauthorized %+v", 401, o.Payload) } + +func (o *GetTenantsUnauthorized) String() string { + return fmt.Sprintf("[GET /tenants][%d] getTenantsUnauthorized %+v", 401, o.Payload) +} + func (o *GetTenantsUnauthorized) GetPayload() *sfgate_models.Error { return o.Payload } @@ -146,7 +218,8 @@ func NewGetTenantsForbidden() *GetTenantsForbidden { return &GetTenantsForbidden{} } -/* GetTenantsForbidden describes a response with status code 403, with default header values. +/* +GetTenantsForbidden describes a response with status code 403, with default header values. Access forbidden, account lacks access */ @@ -156,9 +229,44 @@ type GetTenantsForbidden struct { Payload *sfgate_models.Error } +// IsSuccess returns true when this get tenants forbidden response has a 2xx status code +func (o *GetTenantsForbidden) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get tenants forbidden response has a 3xx status code +func (o *GetTenantsForbidden) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get tenants forbidden response has a 4xx status code +func (o *GetTenantsForbidden) IsClientError() bool { + return true +} + +// IsServerError returns true when this get tenants forbidden response has a 5xx status code +func (o *GetTenantsForbidden) IsServerError() bool { + return false +} + +// IsCode returns true when this get tenants forbidden response a status code equal to that given +func (o *GetTenantsForbidden) IsCode(code int) bool { + return code == 403 +} + +// Code gets the status code for the get tenants forbidden response +func (o *GetTenantsForbidden) Code() int { + return 403 +} + func (o *GetTenantsForbidden) Error() string { return fmt.Sprintf("[GET /tenants][%d] getTenantsForbidden %+v", 403, o.Payload) } + +func (o *GetTenantsForbidden) String() string { + return fmt.Sprintf("[GET /tenants][%d] getTenantsForbidden %+v", 403, o.Payload) +} + func (o *GetTenantsForbidden) GetPayload() *sfgate_models.Error { return o.Payload } @@ -187,7 +295,8 @@ func NewGetTenantsNotFound() *GetTenantsNotFound { return &GetTenantsNotFound{} } -/* GetTenantsNotFound describes a response with status code 404, with default header values. +/* +GetTenantsNotFound describes a response with status code 404, with default header values. Resource was not found */ @@ -197,9 +306,44 @@ type GetTenantsNotFound struct { Payload *sfgate_models.Error } +// IsSuccess returns true when this get tenants not found response has a 2xx status code +func (o *GetTenantsNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get tenants not found response has a 3xx status code +func (o *GetTenantsNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get tenants not found response has a 4xx status code +func (o *GetTenantsNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this get tenants not found response has a 5xx status code +func (o *GetTenantsNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this get tenants not found response a status code equal to that given +func (o *GetTenantsNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the get tenants not found response +func (o *GetTenantsNotFound) Code() int { + return 404 +} + func (o *GetTenantsNotFound) Error() string { return fmt.Sprintf("[GET /tenants][%d] getTenantsNotFound %+v", 404, o.Payload) } + +func (o *GetTenantsNotFound) String() string { + return fmt.Sprintf("[GET /tenants][%d] getTenantsNotFound %+v", 404, o.Payload) +} + func (o *GetTenantsNotFound) GetPayload() *sfgate_models.Error { return o.Payload } @@ -228,7 +372,8 @@ func NewGetTenantsUnprocessableEntity() *GetTenantsUnprocessableEntity { return &GetTenantsUnprocessableEntity{} } -/* GetTenantsUnprocessableEntity describes a response with status code 422, with default header values. +/* +GetTenantsUnprocessableEntity describes a response with status code 422, with default header values. Unprocessable Entity, likely a bad parameter */ @@ -238,9 +383,44 @@ type GetTenantsUnprocessableEntity struct { Payload *sfgate_models.Error } +// IsSuccess returns true when this get tenants unprocessable entity response has a 2xx status code +func (o *GetTenantsUnprocessableEntity) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get tenants unprocessable entity response has a 3xx status code +func (o *GetTenantsUnprocessableEntity) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get tenants unprocessable entity response has a 4xx status code +func (o *GetTenantsUnprocessableEntity) IsClientError() bool { + return true +} + +// IsServerError returns true when this get tenants unprocessable entity response has a 5xx status code +func (o *GetTenantsUnprocessableEntity) IsServerError() bool { + return false +} + +// IsCode returns true when this get tenants unprocessable entity response a status code equal to that given +func (o *GetTenantsUnprocessableEntity) IsCode(code int) bool { + return code == 422 +} + +// Code gets the status code for the get tenants unprocessable entity response +func (o *GetTenantsUnprocessableEntity) Code() int { + return 422 +} + func (o *GetTenantsUnprocessableEntity) Error() string { return fmt.Sprintf("[GET /tenants][%d] getTenantsUnprocessableEntity %+v", 422, o.Payload) } + +func (o *GetTenantsUnprocessableEntity) String() string { + return fmt.Sprintf("[GET /tenants][%d] getTenantsUnprocessableEntity %+v", 422, o.Payload) +} + func (o *GetTenantsUnprocessableEntity) GetPayload() *sfgate_models.Error { return o.Payload } @@ -269,7 +449,8 @@ func NewGetTenantsInternalServerError() *GetTenantsInternalServerError { return &GetTenantsInternalServerError{} } -/* GetTenantsInternalServerError describes a response with status code 500, with default header values. +/* +GetTenantsInternalServerError describes a response with status code 500, with default header values. Server Internal Error */ @@ -279,9 +460,44 @@ type GetTenantsInternalServerError struct { Payload *sfgate_models.Error } +// IsSuccess returns true when this get tenants internal server error response has a 2xx status code +func (o *GetTenantsInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this get tenants internal server error response has a 3xx status code +func (o *GetTenantsInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get tenants internal server error response has a 4xx status code +func (o *GetTenantsInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this get tenants internal server error response has a 5xx status code +func (o *GetTenantsInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this get tenants internal server error response a status code equal to that given +func (o *GetTenantsInternalServerError) IsCode(code int) bool { + return code == 500 +} + +// Code gets the status code for the get tenants internal server error response +func (o *GetTenantsInternalServerError) Code() int { + return 500 +} + func (o *GetTenantsInternalServerError) Error() string { return fmt.Sprintf("[GET /tenants][%d] getTenantsInternalServerError %+v", 500, o.Payload) } + +func (o *GetTenantsInternalServerError) String() string { + return fmt.Sprintf("[GET /tenants][%d] getTenantsInternalServerError %+v", 500, o.Payload) +} + func (o *GetTenantsInternalServerError) GetPayload() *sfgate_models.Error { return o.Payload } diff --git a/api/sfgate/sfgate_client/tenants/put_tenants_parameters.go b/api/sfgate/sfgate_client/tenants/put_tenants_parameters.go index 7a8effd..c6dc41e 100644 --- a/api/sfgate/sfgate_client/tenants/put_tenants_parameters.go +++ b/api/sfgate/sfgate_client/tenants/put_tenants_parameters.go @@ -58,10 +58,12 @@ func NewPutTenantsParamsWithHTTPClient(client *http.Client) *PutTenantsParams { } } -/* PutTenantsParams contains all the parameters to send to the API endpoint - for the put tenants operation. +/* +PutTenantsParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the put tenants operation. + + Typically these are written to a http.Request. */ type PutTenantsParams struct { diff --git a/api/sfgate/sfgate_client/tenants/put_tenants_responses.go b/api/sfgate/sfgate_client/tenants/put_tenants_responses.go index bb669fc..d7ee540 100644 --- a/api/sfgate/sfgate_client/tenants/put_tenants_responses.go +++ b/api/sfgate/sfgate_client/tenants/put_tenants_responses.go @@ -73,7 +73,8 @@ func NewPutTenantsOK() *PutTenantsOK { return &PutTenantsOK{} } -/* PutTenantsOK describes a response with status code 200, with default header values. +/* +PutTenantsOK describes a response with status code 200, with default header values. Taxnexus Response with Tenant objects */ @@ -81,9 +82,44 @@ type PutTenantsOK struct { Payload *sfgate_models.TenantResponse } +// IsSuccess returns true when this put tenants o k response has a 2xx status code +func (o *PutTenantsOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this put tenants o k response has a 3xx status code +func (o *PutTenantsOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this put tenants o k response has a 4xx status code +func (o *PutTenantsOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this put tenants o k response has a 5xx status code +func (o *PutTenantsOK) IsServerError() bool { + return false +} + +// IsCode returns true when this put tenants o k response a status code equal to that given +func (o *PutTenantsOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the put tenants o k response +func (o *PutTenantsOK) Code() int { + return 200 +} + func (o *PutTenantsOK) Error() string { return fmt.Sprintf("[PUT /tenants][%d] putTenantsOK %+v", 200, o.Payload) } + +func (o *PutTenantsOK) String() string { + return fmt.Sprintf("[PUT /tenants][%d] putTenantsOK %+v", 200, o.Payload) +} + func (o *PutTenantsOK) GetPayload() *sfgate_models.TenantResponse { return o.Payload } @@ -105,7 +141,8 @@ func NewPutTenantsUnauthorized() *PutTenantsUnauthorized { return &PutTenantsUnauthorized{} } -/* PutTenantsUnauthorized describes a response with status code 401, with default header values. +/* +PutTenantsUnauthorized describes a response with status code 401, with default header values. Access unauthorized, invalid API-KEY was used */ @@ -115,9 +152,44 @@ type PutTenantsUnauthorized struct { Payload *sfgate_models.Error } +// IsSuccess returns true when this put tenants unauthorized response has a 2xx status code +func (o *PutTenantsUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this put tenants unauthorized response has a 3xx status code +func (o *PutTenantsUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this put tenants unauthorized response has a 4xx status code +func (o *PutTenantsUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this put tenants unauthorized response has a 5xx status code +func (o *PutTenantsUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this put tenants unauthorized response a status code equal to that given +func (o *PutTenantsUnauthorized) IsCode(code int) bool { + return code == 401 +} + +// Code gets the status code for the put tenants unauthorized response +func (o *PutTenantsUnauthorized) Code() int { + return 401 +} + func (o *PutTenantsUnauthorized) Error() string { return fmt.Sprintf("[PUT /tenants][%d] putTenantsUnauthorized %+v", 401, o.Payload) } + +func (o *PutTenantsUnauthorized) String() string { + return fmt.Sprintf("[PUT /tenants][%d] putTenantsUnauthorized %+v", 401, o.Payload) +} + func (o *PutTenantsUnauthorized) GetPayload() *sfgate_models.Error { return o.Payload } @@ -146,7 +218,8 @@ func NewPutTenantsForbidden() *PutTenantsForbidden { return &PutTenantsForbidden{} } -/* PutTenantsForbidden describes a response with status code 403, with default header values. +/* +PutTenantsForbidden describes a response with status code 403, with default header values. Access forbidden, account lacks access */ @@ -156,9 +229,44 @@ type PutTenantsForbidden struct { Payload *sfgate_models.Error } +// IsSuccess returns true when this put tenants forbidden response has a 2xx status code +func (o *PutTenantsForbidden) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this put tenants forbidden response has a 3xx status code +func (o *PutTenantsForbidden) IsRedirect() bool { + return false +} + +// IsClientError returns true when this put tenants forbidden response has a 4xx status code +func (o *PutTenantsForbidden) IsClientError() bool { + return true +} + +// IsServerError returns true when this put tenants forbidden response has a 5xx status code +func (o *PutTenantsForbidden) IsServerError() bool { + return false +} + +// IsCode returns true when this put tenants forbidden response a status code equal to that given +func (o *PutTenantsForbidden) IsCode(code int) bool { + return code == 403 +} + +// Code gets the status code for the put tenants forbidden response +func (o *PutTenantsForbidden) Code() int { + return 403 +} + func (o *PutTenantsForbidden) Error() string { return fmt.Sprintf("[PUT /tenants][%d] putTenantsForbidden %+v", 403, o.Payload) } + +func (o *PutTenantsForbidden) String() string { + return fmt.Sprintf("[PUT /tenants][%d] putTenantsForbidden %+v", 403, o.Payload) +} + func (o *PutTenantsForbidden) GetPayload() *sfgate_models.Error { return o.Payload } @@ -187,7 +295,8 @@ func NewPutTenantsNotFound() *PutTenantsNotFound { return &PutTenantsNotFound{} } -/* PutTenantsNotFound describes a response with status code 404, with default header values. +/* +PutTenantsNotFound describes a response with status code 404, with default header values. Resource was not found */ @@ -197,9 +306,44 @@ type PutTenantsNotFound struct { Payload *sfgate_models.Error } +// IsSuccess returns true when this put tenants not found response has a 2xx status code +func (o *PutTenantsNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this put tenants not found response has a 3xx status code +func (o *PutTenantsNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this put tenants not found response has a 4xx status code +func (o *PutTenantsNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this put tenants not found response has a 5xx status code +func (o *PutTenantsNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this put tenants not found response a status code equal to that given +func (o *PutTenantsNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the put tenants not found response +func (o *PutTenantsNotFound) Code() int { + return 404 +} + func (o *PutTenantsNotFound) Error() string { return fmt.Sprintf("[PUT /tenants][%d] putTenantsNotFound %+v", 404, o.Payload) } + +func (o *PutTenantsNotFound) String() string { + return fmt.Sprintf("[PUT /tenants][%d] putTenantsNotFound %+v", 404, o.Payload) +} + func (o *PutTenantsNotFound) GetPayload() *sfgate_models.Error { return o.Payload } @@ -228,7 +372,8 @@ func NewPutTenantsUnprocessableEntity() *PutTenantsUnprocessableEntity { return &PutTenantsUnprocessableEntity{} } -/* PutTenantsUnprocessableEntity describes a response with status code 422, with default header values. +/* +PutTenantsUnprocessableEntity describes a response with status code 422, with default header values. Unprocessable Entity, likely a bad parameter */ @@ -238,9 +383,44 @@ type PutTenantsUnprocessableEntity struct { Payload *sfgate_models.Error } +// IsSuccess returns true when this put tenants unprocessable entity response has a 2xx status code +func (o *PutTenantsUnprocessableEntity) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this put tenants unprocessable entity response has a 3xx status code +func (o *PutTenantsUnprocessableEntity) IsRedirect() bool { + return false +} + +// IsClientError returns true when this put tenants unprocessable entity response has a 4xx status code +func (o *PutTenantsUnprocessableEntity) IsClientError() bool { + return true +} + +// IsServerError returns true when this put tenants unprocessable entity response has a 5xx status code +func (o *PutTenantsUnprocessableEntity) IsServerError() bool { + return false +} + +// IsCode returns true when this put tenants unprocessable entity response a status code equal to that given +func (o *PutTenantsUnprocessableEntity) IsCode(code int) bool { + return code == 422 +} + +// Code gets the status code for the put tenants unprocessable entity response +func (o *PutTenantsUnprocessableEntity) Code() int { + return 422 +} + func (o *PutTenantsUnprocessableEntity) Error() string { return fmt.Sprintf("[PUT /tenants][%d] putTenantsUnprocessableEntity %+v", 422, o.Payload) } + +func (o *PutTenantsUnprocessableEntity) String() string { + return fmt.Sprintf("[PUT /tenants][%d] putTenantsUnprocessableEntity %+v", 422, o.Payload) +} + func (o *PutTenantsUnprocessableEntity) GetPayload() *sfgate_models.Error { return o.Payload } @@ -269,7 +449,8 @@ func NewPutTenantsInternalServerError() *PutTenantsInternalServerError { return &PutTenantsInternalServerError{} } -/* PutTenantsInternalServerError describes a response with status code 500, with default header values. +/* +PutTenantsInternalServerError describes a response with status code 500, with default header values. Server Internal Error */ @@ -279,9 +460,44 @@ type PutTenantsInternalServerError struct { Payload *sfgate_models.Error } +// IsSuccess returns true when this put tenants internal server error response has a 2xx status code +func (o *PutTenantsInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this put tenants internal server error response has a 3xx status code +func (o *PutTenantsInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this put tenants internal server error response has a 4xx status code +func (o *PutTenantsInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this put tenants internal server error response has a 5xx status code +func (o *PutTenantsInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this put tenants internal server error response a status code equal to that given +func (o *PutTenantsInternalServerError) IsCode(code int) bool { + return code == 500 +} + +// Code gets the status code for the put tenants internal server error response +func (o *PutTenantsInternalServerError) Code() int { + return 500 +} + func (o *PutTenantsInternalServerError) Error() string { return fmt.Sprintf("[PUT /tenants][%d] putTenantsInternalServerError %+v", 500, o.Payload) } + +func (o *PutTenantsInternalServerError) String() string { + return fmt.Sprintf("[PUT /tenants][%d] putTenantsInternalServerError %+v", 500, o.Payload) +} + func (o *PutTenantsInternalServerError) GetPayload() *sfgate_models.Error { return o.Payload } diff --git a/api/sfgate/sfgate_client/tenants/tenants_client.go b/api/sfgate/sfgate_client/tenants/tenants_client.go index 5a1acb0..7d3e8c7 100644 --- a/api/sfgate/sfgate_client/tenants/tenants_client.go +++ b/api/sfgate/sfgate_client/tenants/tenants_client.go @@ -44,9 +44,9 @@ type ClientService interface { } /* - Tenants creates new tenants +Tenants creates new tenants - Create Tenants in Taxnexus +Create Tenants in Taxnexus */ func (a *Client) Tenants(params *TenantsParams, opts ...ClientOption) (*TenantsOK, error) { // TODO: Validate the params before sending @@ -84,9 +84,9 @@ func (a *Client) Tenants(params *TenantsParams, opts ...ClientOption) (*TenantsO } /* - GetTenants gets a list tenants +GetTenants gets a list tenants - Return a list of Tenant records from the datastore +Return a list of Tenant records from the datastore */ func (a *Client) GetTenants(params *GetTenantsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetTenantsOK, error) { // TODO: Validate the params before sending @@ -125,9 +125,9 @@ func (a *Client) GetTenants(params *GetTenantsParams, authInfo runtime.ClientAut } /* - PutTenants updates tenants +PutTenants updates tenants - Update Tenant in Taxnexus +Update Tenant in Taxnexus */ func (a *Client) PutTenants(params *PutTenantsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PutTenantsOK, error) { // TODO: Validate the params before sending diff --git a/api/sfgate/sfgate_client/tenants/tenants_parameters.go b/api/sfgate/sfgate_client/tenants/tenants_parameters.go index d1fbf91..7bed9f2 100644 --- a/api/sfgate/sfgate_client/tenants/tenants_parameters.go +++ b/api/sfgate/sfgate_client/tenants/tenants_parameters.go @@ -58,10 +58,12 @@ func NewTenantsParamsWithHTTPClient(client *http.Client) *TenantsParams { } } -/* TenantsParams contains all the parameters to send to the API endpoint - for the tenants operation. +/* +TenantsParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the tenants operation. + + Typically these are written to a http.Request. */ type TenantsParams struct { diff --git a/api/sfgate/sfgate_client/tenants/tenants_responses.go b/api/sfgate/sfgate_client/tenants/tenants_responses.go index 9cfa57d..5b16cd7 100644 --- a/api/sfgate/sfgate_client/tenants/tenants_responses.go +++ b/api/sfgate/sfgate_client/tenants/tenants_responses.go @@ -73,7 +73,8 @@ func NewTenantsOK() *TenantsOK { return &TenantsOK{} } -/* TenantsOK describes a response with status code 200, with default header values. +/* +TenantsOK describes a response with status code 200, with default header values. Taxnexus Response with Tenant objects */ @@ -81,9 +82,44 @@ type TenantsOK struct { Payload *sfgate_models.TenantResponse } +// IsSuccess returns true when this tenants o k response has a 2xx status code +func (o *TenantsOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this tenants o k response has a 3xx status code +func (o *TenantsOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this tenants o k response has a 4xx status code +func (o *TenantsOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this tenants o k response has a 5xx status code +func (o *TenantsOK) IsServerError() bool { + return false +} + +// IsCode returns true when this tenants o k response a status code equal to that given +func (o *TenantsOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the tenants o k response +func (o *TenantsOK) Code() int { + return 200 +} + func (o *TenantsOK) Error() string { return fmt.Sprintf("[POST /tenants][%d] tenantsOK %+v", 200, o.Payload) } + +func (o *TenantsOK) String() string { + return fmt.Sprintf("[POST /tenants][%d] tenantsOK %+v", 200, o.Payload) +} + func (o *TenantsOK) GetPayload() *sfgate_models.TenantResponse { return o.Payload } @@ -105,7 +141,8 @@ func NewTenantsUnauthorized() *TenantsUnauthorized { return &TenantsUnauthorized{} } -/* TenantsUnauthorized describes a response with status code 401, with default header values. +/* +TenantsUnauthorized describes a response with status code 401, with default header values. Access unauthorized, invalid API-KEY was used */ @@ -115,9 +152,44 @@ type TenantsUnauthorized struct { Payload *sfgate_models.Error } +// IsSuccess returns true when this tenants unauthorized response has a 2xx status code +func (o *TenantsUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this tenants unauthorized response has a 3xx status code +func (o *TenantsUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this tenants unauthorized response has a 4xx status code +func (o *TenantsUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this tenants unauthorized response has a 5xx status code +func (o *TenantsUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this tenants unauthorized response a status code equal to that given +func (o *TenantsUnauthorized) IsCode(code int) bool { + return code == 401 +} + +// Code gets the status code for the tenants unauthorized response +func (o *TenantsUnauthorized) Code() int { + return 401 +} + func (o *TenantsUnauthorized) Error() string { return fmt.Sprintf("[POST /tenants][%d] tenantsUnauthorized %+v", 401, o.Payload) } + +func (o *TenantsUnauthorized) String() string { + return fmt.Sprintf("[POST /tenants][%d] tenantsUnauthorized %+v", 401, o.Payload) +} + func (o *TenantsUnauthorized) GetPayload() *sfgate_models.Error { return o.Payload } @@ -146,7 +218,8 @@ func NewTenantsForbidden() *TenantsForbidden { return &TenantsForbidden{} } -/* TenantsForbidden describes a response with status code 403, with default header values. +/* +TenantsForbidden describes a response with status code 403, with default header values. Access forbidden, account lacks access */ @@ -156,9 +229,44 @@ type TenantsForbidden struct { Payload *sfgate_models.Error } +// IsSuccess returns true when this tenants forbidden response has a 2xx status code +func (o *TenantsForbidden) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this tenants forbidden response has a 3xx status code +func (o *TenantsForbidden) IsRedirect() bool { + return false +} + +// IsClientError returns true when this tenants forbidden response has a 4xx status code +func (o *TenantsForbidden) IsClientError() bool { + return true +} + +// IsServerError returns true when this tenants forbidden response has a 5xx status code +func (o *TenantsForbidden) IsServerError() bool { + return false +} + +// IsCode returns true when this tenants forbidden response a status code equal to that given +func (o *TenantsForbidden) IsCode(code int) bool { + return code == 403 +} + +// Code gets the status code for the tenants forbidden response +func (o *TenantsForbidden) Code() int { + return 403 +} + func (o *TenantsForbidden) Error() string { return fmt.Sprintf("[POST /tenants][%d] tenantsForbidden %+v", 403, o.Payload) } + +func (o *TenantsForbidden) String() string { + return fmt.Sprintf("[POST /tenants][%d] tenantsForbidden %+v", 403, o.Payload) +} + func (o *TenantsForbidden) GetPayload() *sfgate_models.Error { return o.Payload } @@ -187,7 +295,8 @@ func NewTenantsNotFound() *TenantsNotFound { return &TenantsNotFound{} } -/* TenantsNotFound describes a response with status code 404, with default header values. +/* +TenantsNotFound describes a response with status code 404, with default header values. Resource was not found */ @@ -197,9 +306,44 @@ type TenantsNotFound struct { Payload *sfgate_models.Error } +// IsSuccess returns true when this tenants not found response has a 2xx status code +func (o *TenantsNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this tenants not found response has a 3xx status code +func (o *TenantsNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this tenants not found response has a 4xx status code +func (o *TenantsNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this tenants not found response has a 5xx status code +func (o *TenantsNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this tenants not found response a status code equal to that given +func (o *TenantsNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the tenants not found response +func (o *TenantsNotFound) Code() int { + return 404 +} + func (o *TenantsNotFound) Error() string { return fmt.Sprintf("[POST /tenants][%d] tenantsNotFound %+v", 404, o.Payload) } + +func (o *TenantsNotFound) String() string { + return fmt.Sprintf("[POST /tenants][%d] tenantsNotFound %+v", 404, o.Payload) +} + func (o *TenantsNotFound) GetPayload() *sfgate_models.Error { return o.Payload } @@ -228,7 +372,8 @@ func NewTenantsUnprocessableEntity() *TenantsUnprocessableEntity { return &TenantsUnprocessableEntity{} } -/* TenantsUnprocessableEntity describes a response with status code 422, with default header values. +/* +TenantsUnprocessableEntity describes a response with status code 422, with default header values. Unprocessable Entity, likely a bad parameter */ @@ -238,9 +383,44 @@ type TenantsUnprocessableEntity struct { Payload *sfgate_models.Error } +// IsSuccess returns true when this tenants unprocessable entity response has a 2xx status code +func (o *TenantsUnprocessableEntity) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this tenants unprocessable entity response has a 3xx status code +func (o *TenantsUnprocessableEntity) IsRedirect() bool { + return false +} + +// IsClientError returns true when this tenants unprocessable entity response has a 4xx status code +func (o *TenantsUnprocessableEntity) IsClientError() bool { + return true +} + +// IsServerError returns true when this tenants unprocessable entity response has a 5xx status code +func (o *TenantsUnprocessableEntity) IsServerError() bool { + return false +} + +// IsCode returns true when this tenants unprocessable entity response a status code equal to that given +func (o *TenantsUnprocessableEntity) IsCode(code int) bool { + return code == 422 +} + +// Code gets the status code for the tenants unprocessable entity response +func (o *TenantsUnprocessableEntity) Code() int { + return 422 +} + func (o *TenantsUnprocessableEntity) Error() string { return fmt.Sprintf("[POST /tenants][%d] tenantsUnprocessableEntity %+v", 422, o.Payload) } + +func (o *TenantsUnprocessableEntity) String() string { + return fmt.Sprintf("[POST /tenants][%d] tenantsUnprocessableEntity %+v", 422, o.Payload) +} + func (o *TenantsUnprocessableEntity) GetPayload() *sfgate_models.Error { return o.Payload } @@ -269,7 +449,8 @@ func NewTenantsInternalServerError() *TenantsInternalServerError { return &TenantsInternalServerError{} } -/* TenantsInternalServerError describes a response with status code 500, with default header values. +/* +TenantsInternalServerError describes a response with status code 500, with default header values. Server Internal Error */ @@ -279,9 +460,44 @@ type TenantsInternalServerError struct { Payload *sfgate_models.Error } +// IsSuccess returns true when this tenants internal server error response has a 2xx status code +func (o *TenantsInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this tenants internal server error response has a 3xx status code +func (o *TenantsInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this tenants internal server error response has a 4xx status code +func (o *TenantsInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this tenants internal server error response has a 5xx status code +func (o *TenantsInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this tenants internal server error response a status code equal to that given +func (o *TenantsInternalServerError) IsCode(code int) bool { + return code == 500 +} + +// Code gets the status code for the tenants internal server error response +func (o *TenantsInternalServerError) Code() int { + return 500 +} + func (o *TenantsInternalServerError) Error() string { return fmt.Sprintf("[POST /tenants][%d] tenantsInternalServerError %+v", 500, o.Payload) } + +func (o *TenantsInternalServerError) String() string { + return fmt.Sprintf("[POST /tenants][%d] tenantsInternalServerError %+v", 500, o.Payload) +} + func (o *TenantsInternalServerError) GetPayload() *sfgate_models.Error { return o.Payload } diff --git a/api/sfgate/sfgate_client/users/get_users_parameters.go b/api/sfgate/sfgate_client/users/get_users_parameters.go index 62b5481..a3dce39 100644 --- a/api/sfgate/sfgate_client/users/get_users_parameters.go +++ b/api/sfgate/sfgate_client/users/get_users_parameters.go @@ -57,10 +57,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 { diff --git a/api/sfgate/sfgate_client/users/get_users_responses.go b/api/sfgate/sfgate_client/users/get_users_responses.go index b0e0879..6f1add8 100644 --- a/api/sfgate/sfgate_client/users/get_users_responses.go +++ b/api/sfgate/sfgate_client/users/get_users_responses.go @@ -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 *sfgate_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() *sfgate_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 */ @@ -115,9 +152,44 @@ type GetUsersUnauthorized struct { Payload *sfgate_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() *sfgate_models.Error { return o.Payload } @@ -146,7 +218,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 */ @@ -156,9 +229,44 @@ type GetUsersForbidden struct { Payload *sfgate_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() *sfgate_models.Error { return o.Payload } @@ -187,7 +295,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 */ @@ -197,9 +306,44 @@ type GetUsersNotFound struct { Payload *sfgate_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() *sfgate_models.Error { return o.Payload } @@ -228,7 +372,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 */ @@ -238,9 +383,44 @@ type GetUsersUnprocessableEntity struct { Payload *sfgate_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() *sfgate_models.Error { return o.Payload } @@ -269,7 +449,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 */ @@ -279,9 +460,44 @@ type GetUsersInternalServerError struct { Payload *sfgate_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() *sfgate_models.Error { return o.Payload } diff --git a/api/sfgate/sfgate_client/users/users_client.go b/api/sfgate/sfgate_client/users/users_client.go index c4f3838..2bf285a 100644 --- a/api/sfgate/sfgate_client/users/users_client.go +++ b/api/sfgate/sfgate_client/users/users_client.go @@ -40,9 +40,9 @@ type ClientService interface { } /* - GetUsers gets a list users +GetUsers gets a list users - Return a list of User records from the datastore +Return a list of User records from the datastore */ func (a *Client) GetUsers(params *GetUsersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetUsersOK, error) { // TODO: Validate the params before sending diff --git a/api/stash/stash_client/stash_pdf/post_pdfs_parameters.go b/api/stash/stash_client/stash_pdf/post_pdfs_parameters.go index fd2a7f0..29ae546 100644 --- a/api/stash/stash_client/stash_pdf/post_pdfs_parameters.go +++ b/api/stash/stash_client/stash_pdf/post_pdfs_parameters.go @@ -58,10 +58,12 @@ func NewPostPdfsParamsWithHTTPClient(client *http.Client) *PostPdfsParams { } } -/* PostPdfsParams contains all the parameters to send to the API endpoint - for the post pdfs operation. +/* +PostPdfsParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the post pdfs operation. + + Typically these are written to a http.Request. */ type PostPdfsParams struct { diff --git a/api/stash/stash_client/stash_pdf/post_pdfs_responses.go b/api/stash/stash_client/stash_pdf/post_pdfs_responses.go index fba5d37..0f94d31 100644 --- a/api/stash/stash_client/stash_pdf/post_pdfs_responses.go +++ b/api/stash/stash_client/stash_pdf/post_pdfs_responses.go @@ -73,7 +73,8 @@ func NewPostPdfsOK() *PostPdfsOK { return &PostPdfsOK{} } -/* PostPdfsOK describes a response with status code 200, with default header values. +/* +PostPdfsOK describes a response with status code 200, with default header values. Rendered documents response */ @@ -81,9 +82,44 @@ type PostPdfsOK struct { Payload *stash_models.DocumentResponse } +// IsSuccess returns true when this post pdfs o k response has a 2xx status code +func (o *PostPdfsOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this post pdfs o k response has a 3xx status code +func (o *PostPdfsOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this post pdfs o k response has a 4xx status code +func (o *PostPdfsOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this post pdfs o k response has a 5xx status code +func (o *PostPdfsOK) IsServerError() bool { + return false +} + +// IsCode returns true when this post pdfs o k response a status code equal to that given +func (o *PostPdfsOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the post pdfs o k response +func (o *PostPdfsOK) Code() int { + return 200 +} + func (o *PostPdfsOK) Error() string { return fmt.Sprintf("[POST /pdfs][%d] postPdfsOK %+v", 200, o.Payload) } + +func (o *PostPdfsOK) String() string { + return fmt.Sprintf("[POST /pdfs][%d] postPdfsOK %+v", 200, o.Payload) +} + func (o *PostPdfsOK) GetPayload() *stash_models.DocumentResponse { return o.Payload } @@ -105,7 +141,8 @@ func NewPostPdfsUnauthorized() *PostPdfsUnauthorized { return &PostPdfsUnauthorized{} } -/* PostPdfsUnauthorized describes a response with status code 401, with default header values. +/* +PostPdfsUnauthorized describes a response with status code 401, with default header values. Access Unauthorized, invalid API-KEY was used */ @@ -113,9 +150,44 @@ type PostPdfsUnauthorized struct { Payload *stash_models.Error } +// IsSuccess returns true when this post pdfs unauthorized response has a 2xx status code +func (o *PostPdfsUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this post pdfs unauthorized response has a 3xx status code +func (o *PostPdfsUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this post pdfs unauthorized response has a 4xx status code +func (o *PostPdfsUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this post pdfs unauthorized response has a 5xx status code +func (o *PostPdfsUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this post pdfs unauthorized response a status code equal to that given +func (o *PostPdfsUnauthorized) IsCode(code int) bool { + return code == 401 +} + +// Code gets the status code for the post pdfs unauthorized response +func (o *PostPdfsUnauthorized) Code() int { + return 401 +} + func (o *PostPdfsUnauthorized) Error() string { return fmt.Sprintf("[POST /pdfs][%d] postPdfsUnauthorized %+v", 401, o.Payload) } + +func (o *PostPdfsUnauthorized) String() string { + return fmt.Sprintf("[POST /pdfs][%d] postPdfsUnauthorized %+v", 401, o.Payload) +} + func (o *PostPdfsUnauthorized) GetPayload() *stash_models.Error { return o.Payload } @@ -137,7 +209,8 @@ func NewPostPdfsForbidden() *PostPdfsForbidden { return &PostPdfsForbidden{} } -/* PostPdfsForbidden describes a response with status code 403, with default header values. +/* +PostPdfsForbidden describes a response with status code 403, with default header values. Access forbidden, account lacks access */ @@ -145,9 +218,44 @@ type PostPdfsForbidden struct { Payload *stash_models.Error } +// IsSuccess returns true when this post pdfs forbidden response has a 2xx status code +func (o *PostPdfsForbidden) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this post pdfs forbidden response has a 3xx status code +func (o *PostPdfsForbidden) IsRedirect() bool { + return false +} + +// IsClientError returns true when this post pdfs forbidden response has a 4xx status code +func (o *PostPdfsForbidden) IsClientError() bool { + return true +} + +// IsServerError returns true when this post pdfs forbidden response has a 5xx status code +func (o *PostPdfsForbidden) IsServerError() bool { + return false +} + +// IsCode returns true when this post pdfs forbidden response a status code equal to that given +func (o *PostPdfsForbidden) IsCode(code int) bool { + return code == 403 +} + +// Code gets the status code for the post pdfs forbidden response +func (o *PostPdfsForbidden) Code() int { + return 403 +} + func (o *PostPdfsForbidden) Error() string { return fmt.Sprintf("[POST /pdfs][%d] postPdfsForbidden %+v", 403, o.Payload) } + +func (o *PostPdfsForbidden) String() string { + return fmt.Sprintf("[POST /pdfs][%d] postPdfsForbidden %+v", 403, o.Payload) +} + func (o *PostPdfsForbidden) GetPayload() *stash_models.Error { return o.Payload } @@ -169,7 +277,8 @@ func NewPostPdfsNotFound() *PostPdfsNotFound { return &PostPdfsNotFound{} } -/* PostPdfsNotFound describes a response with status code 404, with default header values. +/* +PostPdfsNotFound describes a response with status code 404, with default header values. Resource was not found */ @@ -177,9 +286,44 @@ type PostPdfsNotFound struct { Payload *stash_models.Error } +// IsSuccess returns true when this post pdfs not found response has a 2xx status code +func (o *PostPdfsNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this post pdfs not found response has a 3xx status code +func (o *PostPdfsNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this post pdfs not found response has a 4xx status code +func (o *PostPdfsNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this post pdfs not found response has a 5xx status code +func (o *PostPdfsNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this post pdfs not found response a status code equal to that given +func (o *PostPdfsNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the post pdfs not found response +func (o *PostPdfsNotFound) Code() int { + return 404 +} + func (o *PostPdfsNotFound) Error() string { return fmt.Sprintf("[POST /pdfs][%d] postPdfsNotFound %+v", 404, o.Payload) } + +func (o *PostPdfsNotFound) String() string { + return fmt.Sprintf("[POST /pdfs][%d] postPdfsNotFound %+v", 404, o.Payload) +} + func (o *PostPdfsNotFound) GetPayload() *stash_models.Error { return o.Payload } @@ -201,7 +345,8 @@ func NewPostPdfsUnprocessableEntity() *PostPdfsUnprocessableEntity { return &PostPdfsUnprocessableEntity{} } -/* PostPdfsUnprocessableEntity describes a response with status code 422, with default header values. +/* +PostPdfsUnprocessableEntity describes a response with status code 422, with default header values. Unprocessable Entity, likely a bad parameter */ @@ -209,9 +354,44 @@ type PostPdfsUnprocessableEntity struct { Payload *stash_models.Error } +// IsSuccess returns true when this post pdfs unprocessable entity response has a 2xx status code +func (o *PostPdfsUnprocessableEntity) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this post pdfs unprocessable entity response has a 3xx status code +func (o *PostPdfsUnprocessableEntity) IsRedirect() bool { + return false +} + +// IsClientError returns true when this post pdfs unprocessable entity response has a 4xx status code +func (o *PostPdfsUnprocessableEntity) IsClientError() bool { + return true +} + +// IsServerError returns true when this post pdfs unprocessable entity response has a 5xx status code +func (o *PostPdfsUnprocessableEntity) IsServerError() bool { + return false +} + +// IsCode returns true when this post pdfs unprocessable entity response a status code equal to that given +func (o *PostPdfsUnprocessableEntity) IsCode(code int) bool { + return code == 422 +} + +// Code gets the status code for the post pdfs unprocessable entity response +func (o *PostPdfsUnprocessableEntity) Code() int { + return 422 +} + func (o *PostPdfsUnprocessableEntity) Error() string { return fmt.Sprintf("[POST /pdfs][%d] postPdfsUnprocessableEntity %+v", 422, o.Payload) } + +func (o *PostPdfsUnprocessableEntity) String() string { + return fmt.Sprintf("[POST /pdfs][%d] postPdfsUnprocessableEntity %+v", 422, o.Payload) +} + func (o *PostPdfsUnprocessableEntity) GetPayload() *stash_models.Error { return o.Payload } @@ -233,7 +413,8 @@ func NewPostPdfsInternalServerError() *PostPdfsInternalServerError { return &PostPdfsInternalServerError{} } -/* PostPdfsInternalServerError describes a response with status code 500, with default header values. +/* +PostPdfsInternalServerError describes a response with status code 500, with default header values. Server Internal Error */ @@ -241,9 +422,44 @@ type PostPdfsInternalServerError struct { Payload *stash_models.Error } +// IsSuccess returns true when this post pdfs internal server error response has a 2xx status code +func (o *PostPdfsInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this post pdfs internal server error response has a 3xx status code +func (o *PostPdfsInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this post pdfs internal server error response has a 4xx status code +func (o *PostPdfsInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this post pdfs internal server error response has a 5xx status code +func (o *PostPdfsInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this post pdfs internal server error response a status code equal to that given +func (o *PostPdfsInternalServerError) IsCode(code int) bool { + return code == 500 +} + +// Code gets the status code for the post pdfs internal server error response +func (o *PostPdfsInternalServerError) Code() int { + return 500 +} + func (o *PostPdfsInternalServerError) Error() string { return fmt.Sprintf("[POST /pdfs][%d] postPdfsInternalServerError %+v", 500, o.Payload) } + +func (o *PostPdfsInternalServerError) String() string { + return fmt.Sprintf("[POST /pdfs][%d] postPdfsInternalServerError %+v", 500, o.Payload) +} + func (o *PostPdfsInternalServerError) GetPayload() *stash_models.Error { return o.Payload } diff --git a/api/stash/stash_client/stash_pdf/stash_pdf_client.go b/api/stash/stash_client/stash_pdf/stash_pdf_client.go index 0f2690a..0c19bc6 100644 --- a/api/stash/stash_client/stash_pdf/stash_pdf_client.go +++ b/api/stash/stash_client/stash_pdf/stash_pdf_client.go @@ -40,9 +40,9 @@ type ClientService interface { } /* - PostPdfs creates new p d fs +PostPdfs creates new p d fs - Store new PDFs +Store new PDFs */ func (a *Client) PostPdfs(params *PostPdfsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostPdfsOK, error) { // TODO: Validate the params before sending diff --git a/go.mod b/go.mod index e4cf3e4..ae3b0bd 100644 --- a/go.mod +++ b/go.mod @@ -3,21 +3,34 @@ module code.tnxs.net/vernonkeenan/lib go 1.15 require ( + github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2 // indirect + github.com/cespare/xxhash/v2 v2.2.0 // indirect github.com/go-openapi/analysis v0.21.4 // indirect github.com/go-openapi/errors v0.20.3 - github.com/go-openapi/runtime v0.24.1 - github.com/go-openapi/spec v0.20.7 // indirect - github.com/go-openapi/strfmt v0.21.3 + github.com/go-openapi/jsonreference v0.20.2 // indirect + github.com/go-openapi/loads v0.21.2 // indirect + github.com/go-openapi/runtime v0.25.0 + github.com/go-openapi/spec v0.20.8 // indirect + github.com/go-openapi/strfmt v0.21.5 github.com/go-openapi/swag v0.22.3 - github.com/go-openapi/validate v0.22.0 - github.com/go-sql-driver/mysql v1.6.0 - github.com/prometheus/client_golang v1.13.0 - github.com/rs/cors v1.8.2 - github.com/spf13/viper v1.13.0 + github.com/go-openapi/validate v0.22.1 + github.com/go-sql-driver/mysql v1.7.0 + github.com/golang/protobuf v1.5.3 // indirect + github.com/mitchellh/go-testing-interface v1.0.0 // indirect + github.com/pelletier/go-toml v1.9.5 // indirect + github.com/pelletier/go-toml/v2 v2.0.7 // indirect + github.com/prometheus/client_golang v1.14.0 + github.com/prometheus/common v0.42.0 // indirect + github.com/prometheus/procfs v0.9.0 // indirect + github.com/rs/cors v1.8.3 + github.com/spf13/afero v1.9.5 // indirect + github.com/spf13/viper v1.15.0 github.com/taxnexus/go-force v1.0.7 - go.mongodb.org/mongo-driver v1.10.1 // indirect + go.mongodb.org/mongo-driver v1.11.3 // indirect + go.opentelemetry.io/otel v1.14.0 // indirect go.uber.org/atomic v1.10.0 // indirect - go.uber.org/multierr v1.8.0 // indirect - go.uber.org/zap v1.23.0 - golang.org/x/net v0.0.0-20220906165146-f3363e06e74c // indirect + go.uber.org/multierr v1.10.0 // indirect + go.uber.org/zap v1.24.0 + golang.org/x/net v0.8.0 // indirect + google.golang.org/protobuf v1.30.0 // indirect ) diff --git a/go.sum b/go.sum index 17f4a5b..37b9b2d 100644 --- a/go.sum +++ b/go.sum @@ -28,31 +28,361 @@ cloud.google.com/go v0.93.3/go.mod h1:8utlLll2EF5XMAV15woO4lSbWQlk8rer9aLOfLh7+Y cloud.google.com/go v0.94.1/go.mod h1:qAlAugsXlC+JWO+Bke5vCtc9ONxjQT3drlTTnAplMW4= cloud.google.com/go v0.97.0/go.mod h1:GF7l59pYBVlXQIBLx3a761cZ41F9bBH3JUlihCt2Udc= cloud.google.com/go v0.99.0/go.mod h1:w0Xx2nLzqWJPuozYQX+hFfCSI8WioryfRDzkoI/Y2ZA= +cloud.google.com/go v0.100.1/go.mod h1:fs4QogzfH5n2pBXBP9vRiU+eCny7lD2vmFZy79Iuw1U= cloud.google.com/go v0.100.2/go.mod h1:4Xra9TjzAeYHrl5+oeLlzbM2k3mjVhZh4UqTZ//w99A= +cloud.google.com/go v0.102.0/go.mod h1:oWcCzKlqJ5zgHQt9YsaeTY9KzIvjyy0ArmiBUgpQ+nc= +cloud.google.com/go v0.102.1/go.mod h1:XZ77E9qnTEnrgEOvr4xzfdX5TRo7fB4T2F4O6+34hIU= +cloud.google.com/go v0.104.0/go.mod h1:OO6xxXdJyvuJPcEPBLN9BJPD+jep5G1+2U5B5gkRYtA= +cloud.google.com/go v0.105.0/go.mod h1:PrLgOJNe5nfE9UMxKxgXj4mD3voiP+YQ6gdt6KMFOKM= +cloud.google.com/go/accessapproval v1.4.0/go.mod h1:zybIuC3KpDOvotz59lFe5qxRZx6C75OtwbisN56xYB4= +cloud.google.com/go/accessapproval v1.5.0/go.mod h1:HFy3tuiGvMdcd/u+Cu5b9NkO1pEICJ46IR82PoUdplw= +cloud.google.com/go/accesscontextmanager v1.3.0/go.mod h1:TgCBehyr5gNMz7ZaH9xubp+CE8dkrszb4oK9CWyvD4o= +cloud.google.com/go/accesscontextmanager v1.4.0/go.mod h1:/Kjh7BBu/Gh83sv+K60vN9QE5NJcd80sU33vIe2IFPE= +cloud.google.com/go/aiplatform v1.22.0/go.mod h1:ig5Nct50bZlzV6NvKaTwmplLLddFx0YReh9WfTO5jKw= +cloud.google.com/go/aiplatform v1.24.0/go.mod h1:67UUvRBKG6GTayHKV8DBv2RtR1t93YRu5B1P3x99mYY= +cloud.google.com/go/aiplatform v1.27.0/go.mod h1:Bvxqtl40l0WImSb04d0hXFU7gDOiq9jQmorivIiWcKg= +cloud.google.com/go/analytics v0.11.0/go.mod h1:DjEWCu41bVbYcKyvlws9Er60YE4a//bK6mnhWvQeFNI= +cloud.google.com/go/analytics v0.12.0/go.mod h1:gkfj9h6XRf9+TS4bmuhPEShsh3hH8PAZzm/41OOhQd4= +cloud.google.com/go/apigateway v1.3.0/go.mod h1:89Z8Bhpmxu6AmUxuVRg/ECRGReEdiP3vQtk4Z1J9rJk= +cloud.google.com/go/apigateway v1.4.0/go.mod h1:pHVY9MKGaH9PQ3pJ4YLzoj6U5FUDeDFBllIz7WmzJoc= +cloud.google.com/go/apigeeconnect v1.3.0/go.mod h1:G/AwXFAKo0gIXkPTVfZDd2qA1TxBXJ3MgMRBQkIi9jc= +cloud.google.com/go/apigeeconnect v1.4.0/go.mod h1:kV4NwOKqjvt2JYR0AoIWo2QGfoRtn/pkS3QlHp0Ni04= +cloud.google.com/go/appengine v1.4.0/go.mod h1:CS2NhuBuDXM9f+qscZ6V86m1MIIqPj3WC/UoEuR1Sno= +cloud.google.com/go/appengine v1.5.0/go.mod h1:TfasSozdkFI0zeoxW3PTBLiNqRmzraodCWatWI9Dmak= +cloud.google.com/go/area120 v0.5.0/go.mod h1:DE/n4mp+iqVyvxHN41Vf1CR602GiHQjFPusMFW6bGR4= +cloud.google.com/go/area120 v0.6.0/go.mod h1:39yFJqWVgm0UZqWTOdqkLhjoC7uFfgXRC8g/ZegeAh0= +cloud.google.com/go/artifactregistry v1.6.0/go.mod h1:IYt0oBPSAGYj/kprzsBjZ/4LnG/zOcHyFHjWPCi6SAQ= +cloud.google.com/go/artifactregistry v1.7.0/go.mod h1:mqTOFOnGZx8EtSqK/ZWcsm/4U8B77rbcLP6ruDU2Ixk= +cloud.google.com/go/artifactregistry v1.8.0/go.mod h1:w3GQXkJX8hiKN0v+at4b0qotwijQbYUqF2GWkZzAhC0= +cloud.google.com/go/artifactregistry v1.9.0/go.mod h1:2K2RqvA2CYvAeARHRkLDhMDJ3OXy26h3XW+3/Jh2uYc= +cloud.google.com/go/asset v1.5.0/go.mod h1:5mfs8UvcM5wHhqtSv8J1CtxxaQq3AdBxxQi2jGW/K4o= +cloud.google.com/go/asset v1.7.0/go.mod h1:YbENsRK4+xTiL+Ofoj5Ckf+O17kJtgp3Y3nn4uzZz5s= +cloud.google.com/go/asset v1.8.0/go.mod h1:mUNGKhiqIdbr8X7KNayoYvyc4HbbFO9URsjbytpUaW0= +cloud.google.com/go/asset v1.9.0/go.mod h1:83MOE6jEJBMqFKadM9NLRcs80Gdw76qGuHn8m3h8oHQ= +cloud.google.com/go/asset v1.10.0/go.mod h1:pLz7uokL80qKhzKr4xXGvBQXnzHn5evJAEAtZiIb0wY= +cloud.google.com/go/assuredworkloads v1.5.0/go.mod h1:n8HOZ6pff6re5KYfBXcFvSViQjDwxFkAkmUFffJRbbY= +cloud.google.com/go/assuredworkloads v1.6.0/go.mod h1:yo2YOk37Yc89Rsd5QMVECvjaMKymF9OP+QXWlKXUkXw= +cloud.google.com/go/assuredworkloads v1.7.0/go.mod h1:z/736/oNmtGAyU47reJgGN+KVoYoxeLBoj4XkKYscNI= +cloud.google.com/go/assuredworkloads v1.8.0/go.mod h1:AsX2cqyNCOvEQC8RMPnoc0yEarXQk6WEKkxYfL6kGIo= +cloud.google.com/go/assuredworkloads v1.9.0/go.mod h1:kFuI1P78bplYtT77Tb1hi0FMxM0vVpRC7VVoJC3ZoT0= +cloud.google.com/go/automl v1.5.0/go.mod h1:34EjfoFGMZ5sgJ9EoLsRtdPSNZLcfflJR39VbVNS2M0= +cloud.google.com/go/automl v1.6.0/go.mod h1:ugf8a6Fx+zP0D59WLhqgTDsQI9w07o64uf/Is3Nh5p8= +cloud.google.com/go/automl v1.7.0/go.mod h1:RL9MYCCsJEOmt0Wf3z9uzG0a7adTT1fe+aObgSpkCt8= +cloud.google.com/go/automl v1.8.0/go.mod h1:xWx7G/aPEe/NP+qzYXktoBSDfjO+vnKMGgsApGJJquM= +cloud.google.com/go/baremetalsolution v0.3.0/go.mod h1:XOrocE+pvK1xFfleEnShBlNAXf+j5blPPxrhjKgnIFc= +cloud.google.com/go/baremetalsolution v0.4.0/go.mod h1:BymplhAadOO/eBa7KewQ0Ppg4A4Wplbn+PsFKRLo0uI= +cloud.google.com/go/batch v0.3.0/go.mod h1:TR18ZoAekj1GuirsUsR1ZTKN3FC/4UDnScjT8NXImFE= +cloud.google.com/go/batch v0.4.0/go.mod h1:WZkHnP43R/QCGQsZ+0JyG4i79ranE2u8xvjq/9+STPE= +cloud.google.com/go/beyondcorp v0.2.0/go.mod h1:TB7Bd+EEtcw9PCPQhCJtJGjk/7TC6ckmnSFS+xwTfm4= +cloud.google.com/go/beyondcorp v0.3.0/go.mod h1:E5U5lcrcXMsCuoDNyGrpyTm/hn7ne941Jz2vmksAxW8= cloud.google.com/go/bigquery v1.0.1/go.mod h1:i/xbL2UlR5RvWAURpBYZTtm/cXjCha9lbfbpx4poX+o= cloud.google.com/go/bigquery v1.3.0/go.mod h1:PjpwJnslEMmckchkHFfq+HTD2DmtT67aNFKH1/VBDHE= cloud.google.com/go/bigquery v1.4.0/go.mod h1:S8dzgnTigyfTmLBfrtrhyYhwRxG72rYxvftPBK2Dvzc= cloud.google.com/go/bigquery v1.5.0/go.mod h1:snEHRnqQbz117VIFhE8bmtwIDY80NLUZUMb4Nv6dBIg= cloud.google.com/go/bigquery v1.7.0/go.mod h1://okPTzCYNXSlb24MZs83e2Do+h+VXtc4gLoIoXIAPc= cloud.google.com/go/bigquery v1.8.0/go.mod h1:J5hqkt3O0uAFnINi6JXValWIb1v0goeZM77hZzJN/fQ= +cloud.google.com/go/bigquery v1.42.0/go.mod h1:8dRTJxhtG+vwBKzE5OseQn/hiydoQN3EedCaOdYmxRA= +cloud.google.com/go/bigquery v1.43.0/go.mod h1:ZMQcXHsl+xmU1z36G2jNGZmKp9zNY5BUua5wDgmNCfw= +cloud.google.com/go/bigquery v1.44.0/go.mod h1:0Y33VqXTEsbamHJvJHdFmtqHvMIY28aK1+dFsvaChGc= +cloud.google.com/go/billing v1.4.0/go.mod h1:g9IdKBEFlItS8bTtlrZdVLWSSdSyFUZKXNS02zKMOZY= +cloud.google.com/go/billing v1.5.0/go.mod h1:mztb1tBc3QekhjSgmpf/CV4LzWXLzCArwpLmP2Gm88s= +cloud.google.com/go/billing v1.6.0/go.mod h1:WoXzguj+BeHXPbKfNWkqVtDdzORazmCjraY+vrxcyvI= +cloud.google.com/go/billing v1.7.0/go.mod h1:q457N3Hbj9lYwwRbnlD7vUpyjq6u5U1RAOArInEiD5Y= +cloud.google.com/go/binaryauthorization v1.1.0/go.mod h1:xwnoWu3Y84jbuHa0zd526MJYmtnVXn0syOjaJgy4+dM= +cloud.google.com/go/binaryauthorization v1.2.0/go.mod h1:86WKkJHtRcv5ViNABtYMhhNWRrD1Vpi//uKEy7aYEfI= +cloud.google.com/go/binaryauthorization v1.3.0/go.mod h1:lRZbKgjDIIQvzYQS1p99A7/U1JqvqeZg0wiI5tp6tg0= +cloud.google.com/go/binaryauthorization v1.4.0/go.mod h1:tsSPQrBd77VLplV70GUhBf/Zm3FsKmgSqgm4UmiDItk= +cloud.google.com/go/certificatemanager v1.3.0/go.mod h1:n6twGDvcUBFu9uBgt4eYvvf3sQ6My8jADcOVwHmzadg= +cloud.google.com/go/certificatemanager v1.4.0/go.mod h1:vowpercVFyqs8ABSmrdV+GiFf2H/ch3KyudYQEMM590= +cloud.google.com/go/channel v1.8.0/go.mod h1:W5SwCXDJsq/rg3tn3oG0LOxpAo6IMxNa09ngphpSlnk= +cloud.google.com/go/channel v1.9.0/go.mod h1:jcu05W0my9Vx4mt3/rEHpfxc9eKi9XwsdDL8yBMbKUk= +cloud.google.com/go/cloudbuild v1.3.0/go.mod h1:WequR4ULxlqvMsjDEEEFnOG5ZSRSgWOywXYDb1vPE6U= +cloud.google.com/go/cloudbuild v1.4.0/go.mod h1:5Qwa40LHiOXmz3386FrjrYM93rM/hdRr7b53sySrTqA= +cloud.google.com/go/clouddms v1.3.0/go.mod h1:oK6XsCDdW4Ib3jCCBugx+gVjevp2TMXFtgxvPSee3OM= +cloud.google.com/go/clouddms v1.4.0/go.mod h1:Eh7sUGCC+aKry14O1NRljhjyrr0NFC0G2cjwX0cByRk= +cloud.google.com/go/cloudtasks v1.5.0/go.mod h1:fD92REy1x5woxkKEkLdvavGnPJGEn8Uic9nWuLzqCpY= +cloud.google.com/go/cloudtasks v1.6.0/go.mod h1:C6Io+sxuke9/KNRkbQpihnW93SWDU3uXt92nu85HkYI= +cloud.google.com/go/cloudtasks v1.7.0/go.mod h1:ImsfdYWwlWNJbdgPIIGJWC+gemEGTBK/SunNQQNCAb4= +cloud.google.com/go/cloudtasks v1.8.0/go.mod h1:gQXUIwCSOI4yPVK7DgTVFiiP0ZW/eQkydWzwVMdHxrI= cloud.google.com/go/compute v0.1.0/go.mod h1:GAesmwr110a34z04OlxYkATPBEfVhkymfTBXtfbBFow= cloud.google.com/go/compute v1.3.0/go.mod h1:cCZiE1NHEtai4wiufUhW8I8S1JKkAnhnQJWM7YD99wM= cloud.google.com/go/compute v1.5.0/go.mod h1:9SMHyhJlzhlkJqrPAc839t2BZFTSk6Jdj6mkzQJeu0M= cloud.google.com/go/compute v1.6.0/go.mod h1:T29tfhtVbq1wvAPo0E3+7vhgmkOYeXjhFvz/FMzPu0s= cloud.google.com/go/compute v1.6.1/go.mod h1:g85FgpzFvNULZ+S8AYq87axRKuf2Kh7deLqV/jJ3thU= +cloud.google.com/go/compute v1.7.0/go.mod h1:435lt8av5oL9P3fv1OEzSbSUe+ybHXGMPQHHZWZxy9U= +cloud.google.com/go/compute v1.10.0/go.mod h1:ER5CLbMxl90o2jtNbGSbtfOpQKR0t15FOtRsugnLrlU= +cloud.google.com/go/compute v1.12.0/go.mod h1:e8yNOBcBONZU1vJKCvCoDw/4JQsA0dpM4x/6PIIOocU= +cloud.google.com/go/compute v1.12.1/go.mod h1:e8yNOBcBONZU1vJKCvCoDw/4JQsA0dpM4x/6PIIOocU= +cloud.google.com/go/compute v1.13.0/go.mod h1:5aPTS0cUNMIc1CE546K+Th6weJUNQErARyZtRXDJ8GE= +cloud.google.com/go/compute v1.14.0/go.mod h1:YfLtxrj9sU4Yxv+sXzZkyPjEyPBZfXHUvjxega5vAdo= +cloud.google.com/go/compute/metadata v0.1.0/go.mod h1:Z1VN+bulIf6bt4P/C37K4DyZYZEXYonfTBHHFPO/4UU= +cloud.google.com/go/compute/metadata v0.2.0/go.mod h1:zFmK7XCadkQkj6TtorcaGlCW1hT1fIilQDwofLpJ20k= +cloud.google.com/go/compute/metadata v0.2.1/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM= +cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= +cloud.google.com/go/contactcenterinsights v1.3.0/go.mod h1:Eu2oemoePuEFc/xKFPjbTuPSj0fYJcPls9TFlPNnHHY= +cloud.google.com/go/contactcenterinsights v1.4.0/go.mod h1:L2YzkGbPsv+vMQMCADxJoT9YiTTnSEd6fEvCeHTYVck= +cloud.google.com/go/container v1.6.0/go.mod h1:Xazp7GjJSeUYo688S+6J5V+n/t+G5sKBTFkKNudGRxg= +cloud.google.com/go/container v1.7.0/go.mod h1:Dp5AHtmothHGX3DwwIHPgq45Y8KmNsgN3amoYfxVkLo= +cloud.google.com/go/containeranalysis v0.5.1/go.mod h1:1D92jd8gRR/c0fGMlymRgxWD3Qw9C1ff6/T7mLgVL8I= +cloud.google.com/go/containeranalysis v0.6.0/go.mod h1:HEJoiEIu+lEXM+k7+qLCci0h33lX3ZqoYFdmPcoO7s4= +cloud.google.com/go/datacatalog v1.3.0/go.mod h1:g9svFY6tuR+j+hrTw3J2dNcmI0dzmSiyOzm8kpLq0a0= +cloud.google.com/go/datacatalog v1.5.0/go.mod h1:M7GPLNQeLfWqeIm3iuiruhPzkt65+Bx8dAKvScX8jvs= +cloud.google.com/go/datacatalog v1.6.0/go.mod h1:+aEyF8JKg+uXcIdAmmaMUmZ3q1b/lKLtXCmXdnc0lbc= +cloud.google.com/go/datacatalog v1.7.0/go.mod h1:9mEl4AuDYWw81UGc41HonIHH7/sn52H0/tc8f8ZbZIE= +cloud.google.com/go/datacatalog v1.8.0/go.mod h1:KYuoVOv9BM8EYz/4eMFxrr4DUKhGIOXxZoKYF5wdISM= +cloud.google.com/go/dataflow v0.6.0/go.mod h1:9QwV89cGoxjjSR9/r7eFDqqjtvbKxAK2BaYU6PVk9UM= +cloud.google.com/go/dataflow v0.7.0/go.mod h1:PX526vb4ijFMesO1o202EaUmouZKBpjHsTlCtB4parQ= +cloud.google.com/go/dataform v0.3.0/go.mod h1:cj8uNliRlHpa6L3yVhDOBrUXH+BPAO1+KFMQQNSThKo= +cloud.google.com/go/dataform v0.4.0/go.mod h1:fwV6Y4Ty2yIFL89huYlEkwUPtS7YZinZbzzj5S9FzCE= +cloud.google.com/go/dataform v0.5.0/go.mod h1:GFUYRe8IBa2hcomWplodVmUx/iTL0FrsauObOM3Ipr0= +cloud.google.com/go/datafusion v1.4.0/go.mod h1:1Zb6VN+W6ALo85cXnM1IKiPw+yQMKMhB9TsTSRDo/38= +cloud.google.com/go/datafusion v1.5.0/go.mod h1:Kz+l1FGHB0J+4XF2fud96WMmRiq/wj8N9u007vyXZ2w= +cloud.google.com/go/datalabeling v0.5.0/go.mod h1:TGcJ0G2NzcsXSE/97yWjIZO0bXj0KbVlINXMG9ud42I= +cloud.google.com/go/datalabeling v0.6.0/go.mod h1:WqdISuk/+WIGeMkpw/1q7bK/tFEZxsrFJOJdY2bXvTQ= +cloud.google.com/go/dataplex v1.3.0/go.mod h1:hQuRtDg+fCiFgC8j0zV222HvzFQdRd+SVX8gdmFcZzA= +cloud.google.com/go/dataplex v1.4.0/go.mod h1:X51GfLXEMVJ6UN47ESVqvlsRplbLhcsAt0kZCCKsU0A= +cloud.google.com/go/dataproc v1.7.0/go.mod h1:CKAlMjII9H90RXaMpSxQ8EU6dQx6iAYNPcYPOkSbi8s= +cloud.google.com/go/dataproc v1.8.0/go.mod h1:5OW+zNAH0pMpw14JVrPONsxMQYMBqJuzORhIBfBn9uI= +cloud.google.com/go/dataqna v0.5.0/go.mod h1:90Hyk596ft3zUQ8NkFfvICSIfHFh1Bc7C4cK3vbhkeo= +cloud.google.com/go/dataqna v0.6.0/go.mod h1:1lqNpM7rqNLVgWBJyk5NF6Uen2PHym0jtVJonplVsDA= cloud.google.com/go/datastore v1.0.0/go.mod h1:LXYbyblFSglQ5pkeyhO+Qmw7ukd3C+pD7TKLgZqpHYE= cloud.google.com/go/datastore v1.1.0/go.mod h1:umbIZjpQpHh4hmRpGhH4tLFup+FVzqBi1b3c64qFpCk= +cloud.google.com/go/datastore v1.10.0/go.mod h1:PC5UzAmDEkAmkfaknstTYbNpgE49HAgW2J1gcgUfmdM= +cloud.google.com/go/datastream v1.2.0/go.mod h1:i/uTP8/fZwgATHS/XFu0TcNUhuA0twZxxQ3EyCUQMwo= +cloud.google.com/go/datastream v1.3.0/go.mod h1:cqlOX8xlyYF/uxhiKn6Hbv6WjwPPuI9W2M9SAXwaLLQ= +cloud.google.com/go/datastream v1.4.0/go.mod h1:h9dpzScPhDTs5noEMQVWP8Wx8AFBRyS0s8KWPx/9r0g= +cloud.google.com/go/datastream v1.5.0/go.mod h1:6TZMMNPwjUqZHBKPQ1wwXpb0d5VDVPl2/XoS5yi88q4= +cloud.google.com/go/deploy v1.4.0/go.mod h1:5Xghikd4VrmMLNaF6FiRFDlHb59VM59YoDQnOUdsH/c= +cloud.google.com/go/deploy v1.5.0/go.mod h1:ffgdD0B89tToyW/U/D2eL0jN2+IEV/3EMuXHA0l4r+s= +cloud.google.com/go/dialogflow v1.15.0/go.mod h1:HbHDWs33WOGJgn6rfzBW1Kv807BE3O1+xGbn59zZWI4= +cloud.google.com/go/dialogflow v1.16.1/go.mod h1:po6LlzGfK+smoSmTBnbkIZY2w8ffjz/RcGSS+sh1el0= +cloud.google.com/go/dialogflow v1.17.0/go.mod h1:YNP09C/kXA1aZdBgC/VtXX74G/TKn7XVCcVumTflA+8= +cloud.google.com/go/dialogflow v1.18.0/go.mod h1:trO7Zu5YdyEuR+BhSNOqJezyFQ3aUzz0njv7sMx/iek= +cloud.google.com/go/dialogflow v1.19.0/go.mod h1:JVmlG1TwykZDtxtTXujec4tQ+D8SBFMoosgy+6Gn0s0= +cloud.google.com/go/dlp v1.6.0/go.mod h1:9eyB2xIhpU0sVwUixfBubDoRwP+GjeUoxxeueZmqvmM= +cloud.google.com/go/dlp v1.7.0/go.mod h1:68ak9vCiMBjbasxeVD17hVPxDEck+ExiHavX8kiHG+Q= +cloud.google.com/go/documentai v1.7.0/go.mod h1:lJvftZB5NRiFSX4moiye1SMxHx0Bc3x1+p9e/RfXYiU= +cloud.google.com/go/documentai v1.8.0/go.mod h1:xGHNEB7CtsnySCNrCFdCyyMz44RhFEEX2Q7UD0c5IhU= +cloud.google.com/go/documentai v1.9.0/go.mod h1:FS5485S8R00U10GhgBC0aNGrJxBP8ZVpEeJ7PQDZd6k= +cloud.google.com/go/documentai v1.10.0/go.mod h1:vod47hKQIPeCfN2QS/jULIvQTugbmdc0ZvxxfQY1bg4= +cloud.google.com/go/domains v0.6.0/go.mod h1:T9Rz3GasrpYk6mEGHh4rymIhjlnIuB4ofT1wTxDeT4Y= +cloud.google.com/go/domains v0.7.0/go.mod h1:PtZeqS1xjnXuRPKE/88Iru/LdfoRyEHYA9nFQf4UKpg= +cloud.google.com/go/edgecontainer v0.1.0/go.mod h1:WgkZ9tp10bFxqO8BLPqv2LlfmQF1X8lZqwW4r1BTajk= +cloud.google.com/go/edgecontainer v0.2.0/go.mod h1:RTmLijy+lGpQ7BXuTDa4C4ssxyXT34NIuHIgKuP4s5w= +cloud.google.com/go/errorreporting v0.3.0/go.mod h1:xsP2yaAp+OAW4OIm60An2bbLpqIhKXdWR/tawvl7QzU= +cloud.google.com/go/essentialcontacts v1.3.0/go.mod h1:r+OnHa5jfj90qIfZDO/VztSFqbQan7HV75p8sA+mdGI= +cloud.google.com/go/essentialcontacts v1.4.0/go.mod h1:8tRldvHYsmnBCHdFpvU+GL75oWiBKl80BiqlFh9tp+8= +cloud.google.com/go/eventarc v1.7.0/go.mod h1:6ctpF3zTnaQCxUjHUdcfgcA1A2T309+omHZth7gDfmc= +cloud.google.com/go/eventarc v1.8.0/go.mod h1:imbzxkyAU4ubfsaKYdQg04WS1NvncblHEup4kvF+4gw= +cloud.google.com/go/filestore v1.3.0/go.mod h1:+qbvHGvXU1HaKX2nD0WEPo92TP/8AQuCVEBXNY9z0+w= +cloud.google.com/go/filestore v1.4.0/go.mod h1:PaG5oDfo9r224f8OYXURtAsY+Fbyq/bLYoINEK8XQAI= cloud.google.com/go/firestore v1.6.1/go.mod h1:asNXNOzBdyVQmEU+ggO8UPodTkEVFW5Qx+rwHnAz+EY= +cloud.google.com/go/firestore v1.9.0/go.mod h1:HMkjKHNTtRyZNiMzu7YAsLr9K3X2udY2AMwDaMEQiiE= +cloud.google.com/go/functions v1.6.0/go.mod h1:3H1UA3qiIPRWD7PeZKLvHZ9SaQhR26XIJcC0A5GbvAk= +cloud.google.com/go/functions v1.7.0/go.mod h1:+d+QBcWM+RsrgZfV9xo6KfA1GlzJfxcfZcRPEhDDfzg= +cloud.google.com/go/functions v1.8.0/go.mod h1:RTZ4/HsQjIqIYP9a9YPbU+QFoQsAlYgrwOXJWHn1POY= +cloud.google.com/go/functions v1.9.0/go.mod h1:Y+Dz8yGguzO3PpIjhLTbnqV1CWmgQ5UwtlpzoyquQ08= +cloud.google.com/go/gaming v1.5.0/go.mod h1:ol7rGcxP/qHTRQE/RO4bxkXq+Fix0j6D4LFPzYTIrDM= +cloud.google.com/go/gaming v1.6.0/go.mod h1:YMU1GEvA39Qt3zWGyAVA9bpYz/yAhTvaQ1t2sK4KPUA= +cloud.google.com/go/gaming v1.7.0/go.mod h1:LrB8U7MHdGgFG851iHAfqUdLcKBdQ55hzXy9xBJz0+w= +cloud.google.com/go/gaming v1.8.0/go.mod h1:xAqjS8b7jAVW0KFYeRUxngo9My3f33kFmua++Pi+ggM= +cloud.google.com/go/gkebackup v0.2.0/go.mod h1:XKvv/4LfG829/B8B7xRkk8zRrOEbKtEam6yNfuQNH60= +cloud.google.com/go/gkebackup v0.3.0/go.mod h1:n/E671i1aOQvUxT541aTkCwExO/bTer2HDlj4TsBRAo= +cloud.google.com/go/gkeconnect v0.5.0/go.mod h1:c5lsNAg5EwAy7fkqX/+goqFsU1Da/jQFqArp+wGNr/o= +cloud.google.com/go/gkeconnect v0.6.0/go.mod h1:Mln67KyU/sHJEBY8kFZ0xTeyPtzbq9StAVvEULYK16A= +cloud.google.com/go/gkehub v0.9.0/go.mod h1:WYHN6WG8w9bXU0hqNxt8rm5uxnk8IH+lPY9J2TV7BK0= +cloud.google.com/go/gkehub v0.10.0/go.mod h1:UIPwxI0DsrpsVoWpLB0stwKCP+WFVG9+y977wO+hBH0= +cloud.google.com/go/gkemulticloud v0.3.0/go.mod h1:7orzy7O0S+5kq95e4Hpn7RysVA7dPs8W/GgfUtsPbrA= +cloud.google.com/go/gkemulticloud v0.4.0/go.mod h1:E9gxVBnseLWCk24ch+P9+B2CoDFJZTyIgLKSalC7tuI= +cloud.google.com/go/grafeas v0.2.0/go.mod h1:KhxgtF2hb0P191HlY5besjYm6MqTSTj3LSI+M+ByZHc= +cloud.google.com/go/gsuiteaddons v1.3.0/go.mod h1:EUNK/J1lZEZO8yPtykKxLXI6JSVN2rg9bN8SXOa0bgM= +cloud.google.com/go/gsuiteaddons v1.4.0/go.mod h1:rZK5I8hht7u7HxFQcFei0+AtfS9uSushomRlg+3ua1o= +cloud.google.com/go/iam v0.1.0/go.mod h1:vcUNEa0pEm0qRVpmWepWaFMIAI8/hjB9mO8rNCJtF6c= +cloud.google.com/go/iam v0.3.0/go.mod h1:XzJPvDayI+9zsASAFO68Hk07u3z+f+JrT2xXNdp4bnY= +cloud.google.com/go/iam v0.5.0/go.mod h1:wPU9Vt0P4UmCux7mqtRu6jcpPAb74cP1fh50J3QpkUc= +cloud.google.com/go/iam v0.6.0/go.mod h1:+1AH33ueBne5MzYccyMHtEKqLE4/kJOibtffMHDMFMc= +cloud.google.com/go/iam v0.7.0/go.mod h1:H5Br8wRaDGNc8XP3keLc4unfUUZeyH3Sfl9XpQEYOeg= +cloud.google.com/go/iam v0.8.0/go.mod h1:lga0/y3iH6CX7sYqypWJ33hf7kkfXJag67naqGESjkE= +cloud.google.com/go/iap v1.4.0/go.mod h1:RGFwRJdihTINIe4wZ2iCP0zF/qu18ZwyKxrhMhygBEc= +cloud.google.com/go/iap v1.5.0/go.mod h1:UH/CGgKd4KyohZL5Pt0jSKE4m3FR51qg6FKQ/z/Ix9A= +cloud.google.com/go/ids v1.1.0/go.mod h1:WIuwCaYVOzHIj2OhN9HAwvW+DBdmUAdcWlFxRl+KubM= +cloud.google.com/go/ids v1.2.0/go.mod h1:5WXvp4n25S0rA/mQWAg1YEEBBq6/s+7ml1RDCW1IrcY= +cloud.google.com/go/iot v1.3.0/go.mod h1:r7RGh2B61+B8oz0AGE+J72AhA0G7tdXItODWsaA2oLs= +cloud.google.com/go/iot v1.4.0/go.mod h1:dIDxPOn0UvNDUMD8Ger7FIaTuvMkj+aGk94RPP0iV+g= +cloud.google.com/go/kms v1.4.0/go.mod h1:fajBHndQ+6ubNw6Ss2sSd+SWvjL26RNo/dr7uxsnnOA= +cloud.google.com/go/kms v1.5.0/go.mod h1:QJS2YY0eJGBg3mnDfuaCyLauWwBJiHRboYxJ++1xJNg= +cloud.google.com/go/kms v1.6.0/go.mod h1:Jjy850yySiasBUDi6KFUwUv2n1+o7QZFyuUJg6OgjA0= +cloud.google.com/go/language v1.4.0/go.mod h1:F9dRpNFQmJbkaop6g0JhSBXCNlO90e1KWx5iDdxbWic= +cloud.google.com/go/language v1.6.0/go.mod h1:6dJ8t3B+lUYfStgls25GusK04NLh3eDLQnWM3mdEbhI= +cloud.google.com/go/language v1.7.0/go.mod h1:DJ6dYN/W+SQOjF8e1hLQXMF21AkH2w9wiPzPCJa2MIE= +cloud.google.com/go/language v1.8.0/go.mod h1:qYPVHf7SPoNNiCL2Dr0FfEFNil1qi3pQEyygwpgVKB8= +cloud.google.com/go/lifesciences v0.5.0/go.mod h1:3oIKy8ycWGPUyZDR/8RNnTOYevhaMLqh5vLUXs9zvT8= +cloud.google.com/go/lifesciences v0.6.0/go.mod h1:ddj6tSX/7BOnhxCSd3ZcETvtNr8NZ6t/iPhY2Tyfu08= +cloud.google.com/go/logging v1.6.1/go.mod h1:5ZO0mHHbvm8gEmeEUHrmDlTDSu5imF6MUP9OfilNXBw= +cloud.google.com/go/longrunning v0.1.1/go.mod h1:UUFxuDWkv22EuY93jjmDMFT5GPQKeFVJBIF6QlTqdsE= +cloud.google.com/go/longrunning v0.3.0/go.mod h1:qth9Y41RRSUE69rDcOn6DdK3HfQfsUI0YSmW3iIlLJc= +cloud.google.com/go/managedidentities v1.3.0/go.mod h1:UzlW3cBOiPrzucO5qWkNkh0w33KFtBJU281hacNvsdE= +cloud.google.com/go/managedidentities v1.4.0/go.mod h1:NWSBYbEMgqmbZsLIyKvxrYbtqOsxY1ZrGM+9RgDqInM= +cloud.google.com/go/maps v0.1.0/go.mod h1:BQM97WGyfw9FWEmQMpZ5T6cpovXXSd1cGmFma94eubI= +cloud.google.com/go/mediatranslation v0.5.0/go.mod h1:jGPUhGTybqsPQn91pNXw0xVHfuJ3leR1wj37oU3y1f4= +cloud.google.com/go/mediatranslation v0.6.0/go.mod h1:hHdBCTYNigsBxshbznuIMFNe5QXEowAuNmmC7h8pu5w= +cloud.google.com/go/memcache v1.4.0/go.mod h1:rTOfiGZtJX1AaFUrOgsMHX5kAzaTQ8azHiuDoTPzNsE= +cloud.google.com/go/memcache v1.5.0/go.mod h1:dk3fCK7dVo0cUU2c36jKb4VqKPS22BTkf81Xq617aWM= +cloud.google.com/go/memcache v1.6.0/go.mod h1:XS5xB0eQZdHtTuTF9Hf8eJkKtR3pVRCcvJwtm68T3rA= +cloud.google.com/go/memcache v1.7.0/go.mod h1:ywMKfjWhNtkQTxrWxCkCFkoPjLHPW6A7WOTVI8xy3LY= +cloud.google.com/go/metastore v1.5.0/go.mod h1:2ZNrDcQwghfdtCwJ33nM0+GrBGlVuh8rakL3vdPY3XY= +cloud.google.com/go/metastore v1.6.0/go.mod h1:6cyQTls8CWXzk45G55x57DVQ9gWg7RiH65+YgPsNh9s= +cloud.google.com/go/metastore v1.7.0/go.mod h1:s45D0B4IlsINu87/AsWiEVYbLaIMeUSoxlKKDqBGFS8= +cloud.google.com/go/metastore v1.8.0/go.mod h1:zHiMc4ZUpBiM7twCIFQmJ9JMEkDSyZS9U12uf7wHqSI= +cloud.google.com/go/monitoring v1.7.0/go.mod h1:HpYse6kkGo//7p6sT0wsIC6IBDET0RhIsnmlA53dvEk= +cloud.google.com/go/monitoring v1.8.0/go.mod h1:E7PtoMJ1kQXWxPjB6mv2fhC5/15jInuulFdYYtlcvT4= +cloud.google.com/go/networkconnectivity v1.4.0/go.mod h1:nOl7YL8odKyAOtzNX73/M5/mGZgqqMeryi6UPZTk/rA= +cloud.google.com/go/networkconnectivity v1.5.0/go.mod h1:3GzqJx7uhtlM3kln0+x5wyFvuVH1pIBJjhCpjzSt75o= +cloud.google.com/go/networkconnectivity v1.6.0/go.mod h1:OJOoEXW+0LAxHh89nXd64uGG+FbQoeH8DtxCHVOMlaM= +cloud.google.com/go/networkconnectivity v1.7.0/go.mod h1:RMuSbkdbPwNMQjB5HBWD5MpTBnNm39iAVpC3TmsExt8= +cloud.google.com/go/networkmanagement v1.4.0/go.mod h1:Q9mdLLRn60AsOrPc8rs8iNV6OHXaGcDdsIQe1ohekq8= +cloud.google.com/go/networkmanagement v1.5.0/go.mod h1:ZnOeZ/evzUdUsnvRt792H0uYEnHQEMaz+REhhzJRcf4= +cloud.google.com/go/networksecurity v0.5.0/go.mod h1:xS6fOCoqpVC5zx15Z/MqkfDwH4+m/61A3ODiDV1xmiQ= +cloud.google.com/go/networksecurity v0.6.0/go.mod h1:Q5fjhTr9WMI5mbpRYEbiexTzROf7ZbDzvzCrNl14nyU= +cloud.google.com/go/notebooks v1.2.0/go.mod h1:9+wtppMfVPUeJ8fIWPOq1UnATHISkGXGqTkxeieQ6UY= +cloud.google.com/go/notebooks v1.3.0/go.mod h1:bFR5lj07DtCPC7YAAJ//vHskFBxA5JzYlH68kXVdk34= +cloud.google.com/go/notebooks v1.4.0/go.mod h1:4QPMngcwmgb6uw7Po99B2xv5ufVoIQ7nOGDyL4P8AgA= +cloud.google.com/go/notebooks v1.5.0/go.mod h1:q8mwhnP9aR8Hpfnrc5iN5IBhrXUy8S2vuYs+kBJ/gu0= +cloud.google.com/go/optimization v1.1.0/go.mod h1:5po+wfvX5AQlPznyVEZjGJTMr4+CAkJf2XSTQOOl9l4= +cloud.google.com/go/optimization v1.2.0/go.mod h1:Lr7SOHdRDENsh+WXVmQhQTrzdu9ybg0NecjHidBq6xs= +cloud.google.com/go/orchestration v1.3.0/go.mod h1:Sj5tq/JpWiB//X/q3Ngwdl5K7B7Y0KZ7bfv0wL6fqVA= +cloud.google.com/go/orchestration v1.4.0/go.mod h1:6W5NLFWs2TlniBphAViZEVhrXRSMgUGDfW7vrWKvsBk= +cloud.google.com/go/orgpolicy v1.4.0/go.mod h1:xrSLIV4RePWmP9P3tBl8S93lTmlAxjm06NSm2UTmKvE= +cloud.google.com/go/orgpolicy v1.5.0/go.mod h1:hZEc5q3wzwXJaKrsx5+Ewg0u1LxJ51nNFlext7Tanwc= +cloud.google.com/go/osconfig v1.7.0/go.mod h1:oVHeCeZELfJP7XLxcBGTMBvRO+1nQ5tFG9VQTmYS2Fs= +cloud.google.com/go/osconfig v1.8.0/go.mod h1:EQqZLu5w5XA7eKizepumcvWx+m8mJUhEwiPqWiZeEdg= +cloud.google.com/go/osconfig v1.9.0/go.mod h1:Yx+IeIZJ3bdWmzbQU4fxNl8xsZ4amB+dygAwFPlvnNo= +cloud.google.com/go/osconfig v1.10.0/go.mod h1:uMhCzqC5I8zfD9zDEAfvgVhDS8oIjySWh+l4WK6GnWw= +cloud.google.com/go/oslogin v1.4.0/go.mod h1:YdgMXWRaElXz/lDk1Na6Fh5orF7gvmJ0FGLIs9LId4E= +cloud.google.com/go/oslogin v1.5.0/go.mod h1:D260Qj11W2qx/HVF29zBg+0fd6YCSjSqLUkY/qEenQU= +cloud.google.com/go/oslogin v1.6.0/go.mod h1:zOJ1O3+dTU8WPlGEkFSh7qeHPPSoxrcMbbK1Nm2iX70= +cloud.google.com/go/oslogin v1.7.0/go.mod h1:e04SN0xO1UNJ1M5GP0vzVBFicIe4O53FOfcixIqTyXo= +cloud.google.com/go/phishingprotection v0.5.0/go.mod h1:Y3HZknsK9bc9dMi+oE8Bim0lczMU6hrX0UpADuMefr0= +cloud.google.com/go/phishingprotection v0.6.0/go.mod h1:9Y3LBLgy0kDTcYET8ZH3bq/7qni15yVUoAxiFxnlSUA= +cloud.google.com/go/policytroubleshooter v1.3.0/go.mod h1:qy0+VwANja+kKrjlQuOzmlvscn4RNsAc0e15GGqfMxg= +cloud.google.com/go/policytroubleshooter v1.4.0/go.mod h1:DZT4BcRw3QoO8ota9xw/LKtPa8lKeCByYeKTIf/vxdE= +cloud.google.com/go/privatecatalog v0.5.0/go.mod h1:XgosMUvvPyxDjAVNDYxJ7wBW8//hLDDYmnsNcMGq1K0= +cloud.google.com/go/privatecatalog v0.6.0/go.mod h1:i/fbkZR0hLN29eEWiiwue8Pb+GforiEIBnV9yrRUOKI= cloud.google.com/go/pubsub v1.0.1/go.mod h1:R0Gpsv3s54REJCy4fxDixWD93lHJMoZTyQ2kNxGRt3I= cloud.google.com/go/pubsub v1.1.0/go.mod h1:EwwdRX2sKPjnvnqCa270oGRyludottCI76h+R3AArQw= cloud.google.com/go/pubsub v1.2.0/go.mod h1:jhfEVHT8odbXTkndysNHCcx0awwzvfOlguIAii9o8iA= cloud.google.com/go/pubsub v1.3.1/go.mod h1:i+ucay31+CNRpDW4Lu78I4xXG+O1r/MAHgjpRVR+TSU= +cloud.google.com/go/pubsub v1.26.0/go.mod h1:QgBH3U/jdJy/ftjPhTkyXNj543Tin1pRYcdcPRnFIRI= +cloud.google.com/go/pubsub v1.27.1/go.mod h1:hQN39ymbV9geqBnfQq6Xf63yNhUAhv9CZhzp5O6qsW0= +cloud.google.com/go/pubsublite v1.5.0/go.mod h1:xapqNQ1CuLfGi23Yda/9l4bBCKz/wC3KIJ5gKcxveZg= +cloud.google.com/go/recaptchaenterprise v1.3.1/go.mod h1:OdD+q+y4XGeAlxRaMn1Y7/GveP6zmq76byL6tjPE7d4= +cloud.google.com/go/recaptchaenterprise/v2 v2.1.0/go.mod h1:w9yVqajwroDNTfGuhmOjPDN//rZGySaf6PtFVcSCa7o= +cloud.google.com/go/recaptchaenterprise/v2 v2.2.0/go.mod h1:/Zu5jisWGeERrd5HnlS3EUGb/D335f9k51B/FVil0jk= +cloud.google.com/go/recaptchaenterprise/v2 v2.3.0/go.mod h1:O9LwGCjrhGHBQET5CA7dd5NwwNQUErSgEDit1DLNTdo= +cloud.google.com/go/recaptchaenterprise/v2 v2.4.0/go.mod h1:Am3LHfOuBstrLrNCBrlI5sbwx9LBg3te2N6hGvHn2mE= +cloud.google.com/go/recaptchaenterprise/v2 v2.5.0/go.mod h1:O8LzcHXN3rz0j+LBC91jrwI3R+1ZSZEWrfL7XHgNo9U= +cloud.google.com/go/recommendationengine v0.5.0/go.mod h1:E5756pJcVFeVgaQv3WNpImkFP8a+RptV6dDLGPILjvg= +cloud.google.com/go/recommendationengine v0.6.0/go.mod h1:08mq2umu9oIqc7tDy8sx+MNJdLG0fUi3vaSVbztHgJ4= +cloud.google.com/go/recommender v1.5.0/go.mod h1:jdoeiBIVrJe9gQjwd759ecLJbxCDED4A6p+mqoqDvTg= +cloud.google.com/go/recommender v1.6.0/go.mod h1:+yETpm25mcoiECKh9DEScGzIRyDKpZ0cEhWGo+8bo+c= +cloud.google.com/go/recommender v1.7.0/go.mod h1:XLHs/W+T8olwlGOgfQenXBTbIseGclClff6lhFVe9Bs= +cloud.google.com/go/recommender v1.8.0/go.mod h1:PkjXrTT05BFKwxaUxQmtIlrtj0kph108r02ZZQ5FE70= +cloud.google.com/go/redis v1.7.0/go.mod h1:V3x5Jq1jzUcg+UNsRvdmsfuFnit1cfe3Z/PGyq/lm4Y= +cloud.google.com/go/redis v1.8.0/go.mod h1:Fm2szCDavWzBk2cDKxrkmWBqoCiL1+Ctwq7EyqBCA/A= +cloud.google.com/go/redis v1.9.0/go.mod h1:HMYQuajvb2D0LvMgZmLDZW8V5aOC/WxstZHiy4g8OiA= +cloud.google.com/go/redis v1.10.0/go.mod h1:ThJf3mMBQtW18JzGgh41/Wld6vnDDc/F/F35UolRZPM= +cloud.google.com/go/resourcemanager v1.3.0/go.mod h1:bAtrTjZQFJkiWTPDb1WBjzvc6/kifjj4QBYuKCCoqKA= +cloud.google.com/go/resourcemanager v1.4.0/go.mod h1:MwxuzkumyTX7/a3n37gmsT3py7LIXwrShilPh3P1tR0= +cloud.google.com/go/resourcesettings v1.3.0/go.mod h1:lzew8VfESA5DQ8gdlHwMrqZs1S9V87v3oCnKCWoOuQU= +cloud.google.com/go/resourcesettings v1.4.0/go.mod h1:ldiH9IJpcrlC3VSuCGvjR5of/ezRrOxFtpJoJo5SmXg= +cloud.google.com/go/retail v1.8.0/go.mod h1:QblKS8waDmNUhghY2TI9O3JLlFk8jybHeV4BF19FrE4= +cloud.google.com/go/retail v1.9.0/go.mod h1:g6jb6mKuCS1QKnH/dpu7isX253absFl6iE92nHwlBUY= +cloud.google.com/go/retail v1.10.0/go.mod h1:2gDk9HsL4HMS4oZwz6daui2/jmKvqShXKQuB2RZ+cCc= +cloud.google.com/go/retail v1.11.0/go.mod h1:MBLk1NaWPmh6iVFSz9MeKG/Psyd7TAgm6y/9L2B4x9Y= +cloud.google.com/go/run v0.2.0/go.mod h1:CNtKsTA1sDcnqqIFR3Pb5Tq0usWxJJvsWOCPldRU3Do= +cloud.google.com/go/run v0.3.0/go.mod h1:TuyY1+taHxTjrD0ZFk2iAR+xyOXEA0ztb7U3UNA0zBo= +cloud.google.com/go/scheduler v1.4.0/go.mod h1:drcJBmxF3aqZJRhmkHQ9b3uSSpQoltBPGPxGAWROx6s= +cloud.google.com/go/scheduler v1.5.0/go.mod h1:ri073ym49NW3AfT6DZi21vLZrG07GXr5p3H1KxN5QlI= +cloud.google.com/go/scheduler v1.6.0/go.mod h1:SgeKVM7MIwPn3BqtcBntpLyrIJftQISRrYB5ZtT+KOk= +cloud.google.com/go/scheduler v1.7.0/go.mod h1:jyCiBqWW956uBjjPMMuX09n3x37mtyPJegEWKxRsn44= +cloud.google.com/go/secretmanager v1.6.0/go.mod h1:awVa/OXF6IiyaU1wQ34inzQNc4ISIDIrId8qE5QGgKA= +cloud.google.com/go/secretmanager v1.8.0/go.mod h1:hnVgi/bN5MYHd3Gt0SPuTPPp5ENina1/LxM+2W9U9J4= +cloud.google.com/go/secretmanager v1.9.0/go.mod h1:b71qH2l1yHmWQHt9LC80akm86mX8AL6X1MA01dW8ht4= +cloud.google.com/go/security v1.5.0/go.mod h1:lgxGdyOKKjHL4YG3/YwIL2zLqMFCKs0UbQwgyZmfJl4= +cloud.google.com/go/security v1.7.0/go.mod h1:mZklORHl6Bg7CNnnjLH//0UlAlaXqiG7Lb9PsPXLfD0= +cloud.google.com/go/security v1.8.0/go.mod h1:hAQOwgmaHhztFhiQ41CjDODdWP0+AE1B3sX4OFlq+GU= +cloud.google.com/go/security v1.9.0/go.mod h1:6Ta1bO8LXI89nZnmnsZGp9lVoVWXqsVbIq/t9dzI+2Q= +cloud.google.com/go/security v1.10.0/go.mod h1:QtOMZByJVlibUT2h9afNDWRZ1G96gVywH8T5GUSb9IA= +cloud.google.com/go/securitycenter v1.13.0/go.mod h1:cv5qNAqjY84FCN6Y9z28WlkKXyWsgLO832YiWwkCWcU= +cloud.google.com/go/securitycenter v1.14.0/go.mod h1:gZLAhtyKv85n52XYWt6RmeBdydyxfPeTrpToDPw4Auc= +cloud.google.com/go/securitycenter v1.15.0/go.mod h1:PeKJ0t8MoFmmXLXWm41JidyzI3PJjd8sXWaVqg43WWk= +cloud.google.com/go/securitycenter v1.16.0/go.mod h1:Q9GMaLQFUD+5ZTabrbujNWLtSLZIZF7SAR0wWECrjdk= +cloud.google.com/go/servicecontrol v1.4.0/go.mod h1:o0hUSJ1TXJAmi/7fLJAedOovnujSEvjKCAFNXPQ1RaU= +cloud.google.com/go/servicecontrol v1.5.0/go.mod h1:qM0CnXHhyqKVuiZnGKrIurvVImCs8gmqWsDoqe9sU1s= +cloud.google.com/go/servicedirectory v1.4.0/go.mod h1:gH1MUaZCgtP7qQiI+F+A+OpeKF/HQWgtAddhTbhL2bs= +cloud.google.com/go/servicedirectory v1.5.0/go.mod h1:QMKFL0NUySbpZJ1UZs3oFAmdvVxhhxB6eJ/Vlp73dfg= +cloud.google.com/go/servicedirectory v1.6.0/go.mod h1:pUlbnWsLH9c13yGkxCmfumWEPjsRs1RlmJ4pqiNjVL4= +cloud.google.com/go/servicedirectory v1.7.0/go.mod h1:5p/U5oyvgYGYejufvxhgwjL8UVXjkuw7q5XcG10wx1U= +cloud.google.com/go/servicemanagement v1.4.0/go.mod h1:d8t8MDbezI7Z2R1O/wu8oTggo3BI2GKYbdG4y/SJTco= +cloud.google.com/go/servicemanagement v1.5.0/go.mod h1:XGaCRe57kfqu4+lRxaFEAuqmjzF0r+gWHjWqKqBvKFo= +cloud.google.com/go/serviceusage v1.3.0/go.mod h1:Hya1cozXM4SeSKTAgGXgj97GlqUvF5JaoXacR1JTP/E= +cloud.google.com/go/serviceusage v1.4.0/go.mod h1:SB4yxXSaYVuUBYUml6qklyONXNLt83U0Rb+CXyhjEeU= +cloud.google.com/go/shell v1.3.0/go.mod h1:VZ9HmRjZBsjLGXusm7K5Q5lzzByZmJHf1d0IWHEN5X4= +cloud.google.com/go/shell v1.4.0/go.mod h1:HDxPzZf3GkDdhExzD/gs8Grqk+dmYcEjGShZgYa9URw= +cloud.google.com/go/spanner v1.41.0/go.mod h1:MLYDBJR/dY4Wt7ZaMIQ7rXOTLjYrmxLE/5ve9vFfWos= +cloud.google.com/go/speech v1.6.0/go.mod h1:79tcr4FHCimOp56lwC01xnt/WPJZc4v3gzyT7FoBkCM= +cloud.google.com/go/speech v1.7.0/go.mod h1:KptqL+BAQIhMsj1kOP2la5DSEEerPDuOP/2mmkhHhZQ= +cloud.google.com/go/speech v1.8.0/go.mod h1:9bYIl1/tjsAnMgKGHKmBZzXKEkGgtU+MpdDPTE9f7y0= +cloud.google.com/go/speech v1.9.0/go.mod h1:xQ0jTcmnRFFM2RfX/U+rk6FQNUF6DQlydUSyoooSpco= cloud.google.com/go/storage v1.0.0/go.mod h1:IhtSnM/ZTZV8YYJWCY8RULGVqBDmpoyjwiyrjsg+URw= cloud.google.com/go/storage v1.5.0/go.mod h1:tpKbwo567HUNpVclU5sGELwQWBDZ8gh0ZeosJ0Rtdos= cloud.google.com/go/storage v1.6.0/go.mod h1:N7U0C8pVQ/+NIKOBQyamJIeKQKkZ+mxpohlUTyfDhBk= cloud.google.com/go/storage v1.8.0/go.mod h1:Wv1Oy7z6Yz3DshWRJFhqM/UCfaWIRTdp0RXyy7KQOVs= cloud.google.com/go/storage v1.10.0/go.mod h1:FLPqc6j+Ki4BU591ie1oL6qBQGu2Bl/tZ9ullr3+Kg0= cloud.google.com/go/storage v1.14.0/go.mod h1:GrKmX003DSIwi9o29oFT7YDnHYwZoctc3fOKtUw0Xmo= +cloud.google.com/go/storage v1.22.1/go.mod h1:S8N1cAStu7BOeFfE8KAQzmyyLkK8p/vmRq6kuBTW58Y= +cloud.google.com/go/storage v1.23.0/go.mod h1:vOEEDNFnciUMhBeT6hsJIn3ieU5cFRmzeLgDvXzfIXc= +cloud.google.com/go/storage v1.27.0/go.mod h1:x9DOL8TK/ygDUMieqwfhdpQryTeEkhGKMi80i/iqR2s= +cloud.google.com/go/storagetransfer v1.5.0/go.mod h1:dxNzUopWy7RQevYFHewchb29POFv3/AaBgnhqzqiK0w= +cloud.google.com/go/storagetransfer v1.6.0/go.mod h1:y77xm4CQV/ZhFZH75PLEXY0ROiS7Gh6pSKrM8dJyg6I= +cloud.google.com/go/talent v1.1.0/go.mod h1:Vl4pt9jiHKvOgF9KoZo6Kob9oV4lwd/ZD5Cto54zDRw= +cloud.google.com/go/talent v1.2.0/go.mod h1:MoNF9bhFQbiJ6eFD3uSsg0uBALw4n4gaCaEjBw9zo8g= +cloud.google.com/go/talent v1.3.0/go.mod h1:CmcxwJ/PKfRgd1pBjQgU6W3YBwiewmUzQYH5HHmSCmM= +cloud.google.com/go/talent v1.4.0/go.mod h1:ezFtAgVuRf8jRsvyE6EwmbTK5LKciD4KVnHuDEFmOOA= +cloud.google.com/go/texttospeech v1.4.0/go.mod h1:FX8HQHA6sEpJ7rCMSfXuzBcysDAuWusNNNvN9FELDd8= +cloud.google.com/go/texttospeech v1.5.0/go.mod h1:oKPLhR4n4ZdQqWKURdwxMy0uiTS1xU161C8W57Wkea4= +cloud.google.com/go/tpu v1.3.0/go.mod h1:aJIManG0o20tfDQlRIej44FcwGGl/cD0oiRyMKG19IQ= +cloud.google.com/go/tpu v1.4.0/go.mod h1:mjZaX8p0VBgllCzF6wcU2ovUXN9TONFLd7iz227X2Xg= +cloud.google.com/go/trace v1.3.0/go.mod h1:FFUE83d9Ca57C+K8rDl/Ih8LwOzWIV1krKgxg6N0G28= +cloud.google.com/go/trace v1.4.0/go.mod h1:UG0v8UBqzusp+z63o7FK74SdFE+AXpCLdFb1rshXG+Y= +cloud.google.com/go/translate v1.3.0/go.mod h1:gzMUwRjvOqj5i69y/LYLd8RrNQk+hOmIXTi9+nb3Djs= +cloud.google.com/go/translate v1.4.0/go.mod h1:06Dn/ppvLD6WvA5Rhdp029IX2Mi3Mn7fpMRLPvXT5Wg= +cloud.google.com/go/video v1.8.0/go.mod h1:sTzKFc0bUSByE8Yoh8X0mn8bMymItVGPfTuUBUyRgxk= +cloud.google.com/go/video v1.9.0/go.mod h1:0RhNKFRF5v92f8dQt0yhaHrEuH95m068JYOvLZYnJSw= +cloud.google.com/go/videointelligence v1.6.0/go.mod h1:w0DIDlVRKtwPCn/C4iwZIJdvC69yInhW0cfi+p546uU= +cloud.google.com/go/videointelligence v1.7.0/go.mod h1:k8pI/1wAhjznARtVT9U1llUaFNPh7muw8QyOUpavru4= +cloud.google.com/go/videointelligence v1.8.0/go.mod h1:dIcCn4gVDdS7yte/w+koiXn5dWVplOZkE+xwG9FgK+M= +cloud.google.com/go/videointelligence v1.9.0/go.mod h1:29lVRMPDYHikk3v8EdPSaL8Ku+eMzDljjuvRs105XoU= +cloud.google.com/go/vision v1.2.0/go.mod h1:SmNwgObm5DpFBme2xpyOyasvBc1aPdjvMk2bBk0tKD0= +cloud.google.com/go/vision/v2 v2.2.0/go.mod h1:uCdV4PpN1S0jyCyq8sIM42v2Y6zOLkZs+4R9LrGYwFo= +cloud.google.com/go/vision/v2 v2.3.0/go.mod h1:UO61abBx9QRMFkNBbf1D8B1LXdS2cGiiCRx0vSpZoUo= +cloud.google.com/go/vision/v2 v2.4.0/go.mod h1:VtI579ll9RpVTrdKdkMzckdnwMyX2JILb+MhPqRbPsY= +cloud.google.com/go/vision/v2 v2.5.0/go.mod h1:MmaezXOOE+IWa+cS7OhRRLK2cNv1ZL98zhqFFZaaH2E= +cloud.google.com/go/vmmigration v1.2.0/go.mod h1:IRf0o7myyWFSmVR1ItrBSFLFD/rJkfDCUTO4vLlJvsE= +cloud.google.com/go/vmmigration v1.3.0/go.mod h1:oGJ6ZgGPQOFdjHuocGcLqX4lc98YQ7Ygq8YQwHh9A7g= +cloud.google.com/go/vmwareengine v0.1.0/go.mod h1:RsdNEf/8UDvKllXhMz5J40XxDrNJNN4sagiox+OI208= +cloud.google.com/go/vpcaccess v1.4.0/go.mod h1:aQHVbTWDYUR1EbTApSVvMq1EnT57ppDmQzZ3imqIk4w= +cloud.google.com/go/vpcaccess v1.5.0/go.mod h1:drmg4HLk9NkZpGfCmZ3Tz0Bwnm2+DKqViEpeEpOq0m8= +cloud.google.com/go/webrisk v1.4.0/go.mod h1:Hn8X6Zr+ziE2aNd8SliSDWpEnSS1u4R9+xXZmFiHmGE= +cloud.google.com/go/webrisk v1.5.0/go.mod h1:iPG6fr52Tv7sGk0H6qUFzmL3HHZev1htXuWDEEsqMTg= +cloud.google.com/go/webrisk v1.6.0/go.mod h1:65sW9V9rOosnc9ZY7A7jsy1zoHS5W9IAXv6dGqhMQMc= +cloud.google.com/go/webrisk v1.7.0/go.mod h1:mVMHgEYH0r337nmt1JyLthzMr6YxwN1aAIEc2fTcq7A= +cloud.google.com/go/websecurityscanner v1.3.0/go.mod h1:uImdKm2wyeXQevQJXeh8Uun/Ym1VqworNDlBXQevGMo= +cloud.google.com/go/websecurityscanner v1.4.0/go.mod h1:ebit/Fp0a+FWu5j4JOmJEV8S8CzdTkAS77oDsiSqYWQ= +cloud.google.com/go/workflows v1.6.0/go.mod h1:6t9F5h/unJz41YqfBmqSASJSXccBLtD1Vwf+KmJENM0= +cloud.google.com/go/workflows v1.7.0/go.mod h1:JhSrZuVZWuiDfKEFxU0/F1PQjmpnpcoISEXH2bcHC3M= +cloud.google.com/go/workflows v1.8.0/go.mod h1:ysGhmEajwZxGn1OhGOGKsTXc5PyxOc0vfKf5Af+to4M= +cloud.google.com/go/workflows v1.9.0/go.mod h1:ZGkj1aFIOd9c8Gerkjjq7OW7I5+l6cSvT3ujaO/WwSA= dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo= @@ -60,20 +390,25 @@ github.com/DataDog/datadog-go v3.2.0+incompatible/go.mod h1:LButxg5PwREeZtORoXG3 github.com/OneOfOne/xxhash v1.2.2/go.mod h1:HSdplMjZKSmBqAxg5vPj2TmRDmfkzw+cTzAElWljhcU= github.com/PuerkitoBio/purell v1.1.1/go.mod h1:c11w/QuzBsJSee3cPx9rAFu61PvFxuPbtSwDGJws/X0= github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578/go.mod h1:uGdkoq3SwY9Y+13GIhn11/XLaGBb4BfwItxLd5jeuXE= +github.com/alecthomas/kingpin/v2 v2.3.1/go.mod h1:oYL5vtsvEHZGHxU7DMp32Dvx+qL+ptGn6lWaot2vCNE= github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= github.com/alecthomas/units v0.0.0-20190717042225-c3de453c63f4/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= github.com/alecthomas/units v0.0.0-20190924025748-f65c72e2690d/go.mod h1:rBZYJk541a8SKzHPHnH3zbiI+7dagKZ0cgpgrD7Fyho= +github.com/alecthomas/units v0.0.0-20211218093645-b94a6e3cc137/go.mod h1:OMCwj8VM1Kc9e19TLln2VL61YJF0x1XFtfdL4JdbSyE= github.com/antihax/optional v1.0.0/go.mod h1:uupD/76wgC+ih3iEmQUL+0Ugr19nfwCT1kdvxnR2qWY= github.com/armon/circbuf v0.0.0-20150827004946-bbbad097214e/go.mod h1:3U/XgcO3hCbHZ8TKRvWD2dDTCfh9M9ya+I9JpbB7O8o= github.com/armon/go-metrics v0.0.0-20180917152333-f0300d1749da/go.mod h1:Q73ZrmVTwzkszR9V5SSuryQ31EELlFMUz1kKyl939pY= github.com/armon/go-metrics v0.3.10/go.mod h1:4O98XIr/9W0sxpJ8UaYkvjk10Iff7SnFrb4QAOwNTFc= +github.com/armon/go-metrics v0.4.0/go.mod h1:E6amYzXo6aW1tqzoZGT755KkbgrJsSdpwZ+3JqfkOG4= github.com/armon/go-radix v0.0.0-20180808171621-7fddfc383310/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8= github.com/armon/go-radix v1.0.0/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8= github.com/asaskevich/govalidator v0.0.0-20200907205600-7a23bdc65eef/go.mod h1:WaHUgvxTVq04UNunO+XhnAqY/wQc+bxr74GqbsZ/Jqw= github.com/asaskevich/govalidator v0.0.0-20210307081110-f21760c49a8d h1:Byv0BzEl3/e6D5CLfI0j/7hiIEtvGVFPCZ7Ei2oq8iQ= github.com/asaskevich/govalidator v0.0.0-20210307081110-f21760c49a8d/go.mod h1:WaHUgvxTVq04UNunO+XhnAqY/wQc+bxr74GqbsZ/Jqw= +github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2 h1:DklsrG3dyBCFEj5IhUbnKptjxatkF07cF2ak3yi77so= +github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2/go.mod h1:WaHUgvxTVq04UNunO+XhnAqY/wQc+bxr74GqbsZ/Jqw= github.com/benbjohnson/clock v1.1.0 h1:Q92kusRqC1XV2MjkWETPvjJVqKetz1OzxZB7mHJLju8= github.com/benbjohnson/clock v1.1.0/go.mod h1:J11/hYXuz8f4ySSvYwY0FKfm+ezbsZBKZxNJlLklBHA= github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q= @@ -82,11 +417,14 @@ github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM= github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw= github.com/bgentry/speakeasy v0.1.0/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs= github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= +github.com/census-instrumentation/opencensus-proto v0.3.0/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= github.com/cespare/xxhash v1.1.0 h1:a6HrQnmkObjyL+Gs60czilIUGqrzKutQD6XZog3p+ko= github.com/cespare/xxhash v1.1.0/go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc= github.com/cespare/xxhash/v2 v2.1.1/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= github.com/cespare/xxhash/v2 v2.1.2 h1:YRXhKfTDauu4ajMg1TPgFO5jnlC2HCbmLXMcTG5cbYE= github.com/cespare/xxhash/v2 v2.1.2/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= +github.com/cespare/xxhash/v2 v2.2.0 h1:DC2CZ1Ep5Y4k3ZQ899DldepgrayRUGE6BBZ/cd9Cj44= +github.com/cespare/xxhash/v2 v2.2.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI= github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI= github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU= @@ -127,6 +465,8 @@ github.com/frankban/quicktest v1.14.3 h1:FJKSZTDHjyhriyC81FLQ0LY93eSai0ZyR/ZIkd3 github.com/frankban/quicktest v1.14.3/go.mod h1:mgiwOwqx65TmIk1wJ6Q7wvnVMocbUorkibMOrVTHZps= github.com/fsnotify/fsnotify v1.5.4 h1:jRbGcIw6P2Meqdwuo0H1p6JVLbL5DHKAKlYndzMwVZI= github.com/fsnotify/fsnotify v1.5.4/go.mod h1:OVB6XrOHzAwXMpEM7uPOzcehqUV2UqJxmVXmkdnm1bU= +github.com/fsnotify/fsnotify v1.6.0 h1:n+5WquG0fcWoWp6xPWfHdbskMCQaFnG6PfBrh1Ky4HY= +github.com/fsnotify/fsnotify v1.6.0/go.mod h1:sl3t1tCWJFWoRz9R8WJCbQihKKwmorjAbSClcnxKAGw= github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU= github.com/go-gl/glfw/v3.3/glfw v0.0.0-20191125211704-12ad95a8df72/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= @@ -135,10 +475,16 @@ github.com/go-kit/kit v0.8.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2 github.com/go-kit/kit v0.9.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= github.com/go-kit/log v0.1.0/go.mod h1:zbhenjAZHb184qTLMA9ZjW7ThYL0H2mk7Q6pNt4vbaY= github.com/go-kit/log v0.2.0/go.mod h1:NwTd00d/i8cPZ3xOwwiv2PO5MOcx78fFErGNcVmBjv0= +github.com/go-kit/log v0.2.1/go.mod h1:NwTd00d/i8cPZ3xOwwiv2PO5MOcx78fFErGNcVmBjv0= github.com/go-logfmt/logfmt v0.3.0/go.mod h1:Qt1PoO58o5twSAckw1HlFXLmHsOX5/0LbT9GBnD5lWE= github.com/go-logfmt/logfmt v0.4.0/go.mod h1:3RMwSq7FuexP4Kalkev3ejPJsZTpXXBr9+V4qmtdjCk= github.com/go-logfmt/logfmt v0.5.0/go.mod h1:wCYkCAKZfumFQihp8CzCvQ3paCTfi41vtzG1KdI/P7A= github.com/go-logfmt/logfmt v0.5.1/go.mod h1:WYhtIu8zTZfxdn5+rREduYbwxfcBr/Vr6KEVveWlfTs= +github.com/go-logr/logr v1.2.2/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= +github.com/go-logr/logr v1.2.3 h1:2DntVwHkVopvECVRSlL5PSo9eG+cAkDCuckLubN+rq0= +github.com/go-logr/logr v1.2.3/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= +github.com/go-logr/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag= +github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE= github.com/go-openapi/analysis v0.21.2/go.mod h1:HZwRk4RRisyG8vx2Oe6aqeSQcoxRp47Xkp3+K6q+LdY= github.com/go-openapi/analysis v0.21.4 h1:ZDFLvSNxpDaomuCueM0BlSXxpANBlFYiBvr+GXrvIHc= github.com/go-openapi/analysis v0.21.4/go.mod h1:4zQ35W4neeZTqh3ol0rv/O8JBbka9QyAgQRPp9y3pfo= @@ -150,22 +496,34 @@ github.com/go-openapi/errors v0.20.3/go.mod h1:Z3FlZ4I8jEGxjUK+bugx3on2mIAk4txuA github.com/go-openapi/jsonpointer v0.19.3/go.mod h1:Pl9vOtqEWErmShwVjC8pYs9cog34VGT37dQOVbmoatg= github.com/go-openapi/jsonpointer v0.19.5 h1:gZr+CIYByUqjcgeLXnQu2gHYQC9o73G2XUeOFYEICuY= github.com/go-openapi/jsonpointer v0.19.5/go.mod h1:Pl9vOtqEWErmShwVjC8pYs9cog34VGT37dQOVbmoatg= +github.com/go-openapi/jsonpointer v0.19.6 h1:eCs3fxoIi3Wh6vtgmLTOjdhSpiqphQ+DaPn38N2ZdrE= +github.com/go-openapi/jsonpointer v0.19.6/go.mod h1:osyAmYz/mB/C3I+WsTTSgw1ONzaLJoLCyoi6/zppojs= github.com/go-openapi/jsonreference v0.19.6/go.mod h1:diGHMEHg2IqXZGKxqyvWdfWU/aim5Dprw5bqpKkTvns= github.com/go-openapi/jsonreference v0.20.0 h1:MYlu0sBgChmCfJxxUKZ8g1cPWFOB37YSZqewK7OKeyA= github.com/go-openapi/jsonreference v0.20.0/go.mod h1:Ag74Ico3lPc+zR+qjn4XBUmXymS4zJbYVCZmcgkasdo= +github.com/go-openapi/jsonreference v0.20.2 h1:3sVjiK66+uXK/6oQ8xgcRKcFgQ5KXa2KvnJRumpMGbE= +github.com/go-openapi/jsonreference v0.20.2/go.mod h1:Bl1zwGIM8/wsvqjsOQLJ/SH+En5Ap4rVB5KVcIDZG2k= github.com/go-openapi/loads v0.21.1 h1:Wb3nVZpdEzDTcly8S4HMkey6fjARRzb7iEaySimlDW0= github.com/go-openapi/loads v0.21.1/go.mod h1:/DtAMXXneXFjbQMGEtbamCZb+4x7eGwkvZCvBmwUG+g= +github.com/go-openapi/loads v0.21.2 h1:r2a/xFIYeZ4Qd2TnGpWDIQNcP80dIaZgf704za8enro= +github.com/go-openapi/loads v0.21.2/go.mod h1:Jq58Os6SSGz0rzh62ptiu8Z31I+OTHqmULx5e/gJbNw= github.com/go-openapi/runtime v0.24.1 h1:Sml5cgQKGYQHF+M7yYSHaH1eOjvTykrddTE/KtQVjqo= github.com/go-openapi/runtime v0.24.1/go.mod h1:AKurw9fNre+h3ELZfk6ILsfvPN+bvvlaU/M9q/r9hpk= +github.com/go-openapi/runtime v0.25.0 h1:7yQTCdRbWhX8vnIjdzU8S00tBYf7Sg71EBeorlPHvhc= +github.com/go-openapi/runtime v0.25.0/go.mod h1:Ux6fikcHXyyob6LNWxtE96hWwjBPYF0DXgVFuMTneOs= github.com/go-openapi/spec v0.20.4/go.mod h1:faYFR1CvsJZ0mNsmsphTMSoRrNV3TEDoAM7FOEWeq8I= github.com/go-openapi/spec v0.20.6/go.mod h1:2OpW+JddWPrpXSCIX8eOx7lZ5iyuWj3RYR6VaaBKcWA= github.com/go-openapi/spec v0.20.7 h1:1Rlu/ZrOCCob0n+JKKJAWhNWMPW8bOZRg8FJaY+0SKI= github.com/go-openapi/spec v0.20.7/go.mod h1:2OpW+JddWPrpXSCIX8eOx7lZ5iyuWj3RYR6VaaBKcWA= +github.com/go-openapi/spec v0.20.8 h1:ubHmXNY3FCIOinT8RNrrPfGc9t7I1qhPtdOGoG2AxRU= +github.com/go-openapi/spec v0.20.8/go.mod h1:2OpW+JddWPrpXSCIX8eOx7lZ5iyuWj3RYR6VaaBKcWA= github.com/go-openapi/strfmt v0.21.0/go.mod h1:ZRQ409bWMj+SOgXofQAGTIo2Ebu72Gs+WaRADcS5iNg= github.com/go-openapi/strfmt v0.21.1/go.mod h1:I/XVKeLc5+MM5oPNN7P6urMOpuLXEcNrCX/rPGuWb0k= github.com/go-openapi/strfmt v0.21.2/go.mod h1:I/XVKeLc5+MM5oPNN7P6urMOpuLXEcNrCX/rPGuWb0k= github.com/go-openapi/strfmt v0.21.3 h1:xwhj5X6CjXEZZHMWy1zKJxvW9AfHC9pkyUjLvHtKG7o= github.com/go-openapi/strfmt v0.21.3/go.mod h1:k+RzNO0Da+k3FrrynSNN8F7n/peCmQQqbbXjtDfvmGg= +github.com/go-openapi/strfmt v0.21.5 h1:Z/algjpXIZpbvdN+6KbVTkpO75RuedMrqpn1GN529h4= +github.com/go-openapi/strfmt v0.21.5/go.mod h1:k+RzNO0Da+k3FrrynSNN8F7n/peCmQQqbbXjtDfvmGg= github.com/go-openapi/swag v0.19.5/go.mod h1:POnQmlKehdgb5mhVOsnJFsivZCEZ/vjK9gh66Z9tfKk= github.com/go-openapi/swag v0.19.15/go.mod h1:QYRuS/SOXUCsnplDa677K7+DxSOj6IPNl/eQntq43wQ= github.com/go-openapi/swag v0.21.1/go.mod h1:QYRuS/SOXUCsnplDa677K7+DxSOj6IPNl/eQntq43wQ= @@ -174,8 +532,12 @@ github.com/go-openapi/swag v0.22.3/go.mod h1:UzaqsxGiab7freDnrUUra0MwWfN/q7tE4j+ github.com/go-openapi/validate v0.21.0/go.mod h1:rjnrwK57VJ7A8xqfpAOEKRH8yQSGUriMu5/zuPSQ1hg= github.com/go-openapi/validate v0.22.0 h1:b0QecH6VslW/TxtpKgzpO1SNG7GU2FsaqKdP1E2T50Y= github.com/go-openapi/validate v0.22.0/go.mod h1:rjnrwK57VJ7A8xqfpAOEKRH8yQSGUriMu5/zuPSQ1hg= +github.com/go-openapi/validate v0.22.1 h1:G+c2ub6q47kfX1sOBLwIQwzBVt8qmOAARyo/9Fqs9NU= +github.com/go-openapi/validate v0.22.1/go.mod h1:rjnrwK57VJ7A8xqfpAOEKRH8yQSGUriMu5/zuPSQ1hg= github.com/go-sql-driver/mysql v1.6.0 h1:BCTh4TKNUYmOmMUcQ3IipzF5prigylS7XXjEkfCHuOE= github.com/go-sql-driver/mysql v1.6.0/go.mod h1:DCzpHaOWr8IXmIStZouvnhqoel9Qv2LBy8hT2VhHyBg= +github.com/go-sql-driver/mysql v1.7.0 h1:ueSltNNllEqE3qcWBTD0iQd3IpL/6U+mJxLkazJ7YPc= +github.com/go-sql-driver/mysql v1.7.0/go.mod h1:OXbVy3sEdcQ2Doequ6Z5BW6fXNQTmx+9S1MCJN5yJMI= github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY= github.com/go-stack/stack v1.8.1/go.mod h1:dcoOX6HbPZSZptuspn9bctJ+N/CnF5gGygcUP3XYfe4= github.com/gobuffalo/attrs v0.0.0-20190224210810-a9411de4debd/go.mod h1:4duuawTqi2wkkpB4ePgWMaai6/Kc6WEz83bhFwpHzj0= @@ -237,6 +599,8 @@ github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaS github.com/golang/protobuf v1.5.1/go.mod h1:DopwsBzvsk0Fs44TXzsVbJyPhcCPeIwnvohx4u74HPM= github.com/golang/protobuf v1.5.2 h1:ROPKBNFfQgOUMifHyP+KYbvpjbdoFNs+aK7DXlji0Tw= github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= +github.com/golang/protobuf v1.5.3 h1:KhyjKVUg7Usr/dYsdSqoFveMYd5ko72D+zANwlG1mmg= +github.com/golang/protobuf v1.5.3/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= github.com/golang/snappy v0.0.1/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= github.com/golang/snappy v0.0.3/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= @@ -256,6 +620,7 @@ github.com/google/go-cmp v0.5.6/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.5.7/go.mod h1:n+brtR0CgQNWTVd5ZUFpTBC8YFBDLK/h/bpaJ8/DtOE= github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= +github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= github.com/google/martian v2.1.0+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXiIaQGbYVAs8BPL6v8lEs= github.com/google/martian/v3 v3.0.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0= @@ -280,6 +645,11 @@ github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm4 github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.1.2 h1:EVhdT+1Kseyi1/pUmXKaFxYsDNy9RQYkMWRH68J/W7Y= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/googleapis/enterprise-certificate-proxy v0.0.0-20220520183353-fd19c99a87aa/go.mod h1:17drOmN3MwGY7t0e+Ei9b45FFGA3fBs3x36SsCg1hq8= +github.com/googleapis/enterprise-certificate-proxy v0.1.0/go.mod h1:17drOmN3MwGY7t0e+Ei9b45FFGA3fBs3x36SsCg1hq8= +github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= +github.com/googleapis/enterprise-certificate-proxy v0.2.1/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg= github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk= github.com/googleapis/gax-go/v2 v2.1.0/go.mod h1:Q3nei7sK6ybPYH7twZdmQpAd1MKb7pfu6SK+H1/DsU0= @@ -287,11 +657,17 @@ github.com/googleapis/gax-go/v2 v2.1.1/go.mod h1:hddJymUZASv3XPyGkUpKj8pPO47Rmb0 github.com/googleapis/gax-go/v2 v2.2.0/go.mod h1:as02EH8zWkzwUoLbBaFeQ+arQaj/OthfcblKl4IGNaM= github.com/googleapis/gax-go/v2 v2.3.0/go.mod h1:b8LNqSzNabLiUpXKkY7HAR5jr6bIT99EXz9pXxye9YM= github.com/googleapis/gax-go/v2 v2.4.0/go.mod h1:XOTVJ59hdnfJLIP/dh8n5CGryZR2LxK9wbMD5+iXC6c= +github.com/googleapis/gax-go/v2 v2.5.1/go.mod h1:h6B0KMMFNtI2ddbGJn3T3ZbwkeT6yqEF02fYlzkUCyo= +github.com/googleapis/gax-go/v2 v2.6.0/go.mod h1:1mjbznJAPHFpesgE5ucqfYEscaz5kMdcIDwU/6+DDoY= +github.com/googleapis/gax-go/v2 v2.7.0/go.mod h1:TEop28CZZQ2y+c0VxMUmu1lV+fQx57QpBWsYpwqHJx8= +github.com/googleapis/go-type-adapters v1.0.0/go.mod h1:zHW75FOG2aur7gAO2B+MLby+cLsWGBF62rFAi7WjWO4= github.com/googleapis/google-cloud-go-testing v0.0.0-20200911160855-bcd43fbb19e8/go.mod h1:dvDLG8qkwmyD9a/MJJN3XJcT3xFxOKAvTZGvuZmac9g= github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0/go.mod h1:8NvIoxWQoOIhqOTXgfV/d3M/q6VIi02HzZEHgUlZvzk= github.com/grpc-ecosystem/grpc-gateway v1.16.0/go.mod h1:BDjrQk3hbvj6Nolgz8mAMFbcEtjT1g+wF4CSlocrBnw= github.com/hashicorp/consul/api v1.12.0/go.mod h1:6pVBMo0ebnYdt2S3H87XhekM/HHrUoTD2XXb/VrZVy0= +github.com/hashicorp/consul/api v1.18.0/go.mod h1:owRRGJ9M5xReDC5nfT8FTJrNAPbT4NM6p/k+d03q2v4= github.com/hashicorp/consul/sdk v0.8.0/go.mod h1:GBvyrGALthsZObzUGsfgHZQDXjg4lOjagTIwIR1vPms= +github.com/hashicorp/consul/sdk v0.13.0/go.mod h1:0hs/l5fOVhJy/VdcoaNqUSi2AUs95eF5WKtv+EYIQqE= github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= github.com/hashicorp/go-cleanhttp v0.5.0/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80= github.com/hashicorp/go-cleanhttp v0.5.1/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80= @@ -306,9 +682,12 @@ github.com/hashicorp/go-multierror v1.1.0/go.mod h1:spPvp8C1qA32ftKqdAHm4hHTbPw+ github.com/hashicorp/go-retryablehttp v0.5.3/go.mod h1:9B5zBasrRhHXnJnui7y6sL7es7NDiJgTc6Er0maI1Xs= github.com/hashicorp/go-rootcerts v1.0.2/go.mod h1:pqUvnprVnM5bf7AOirdbb01K4ccR319Vf4pU3K5EGc8= github.com/hashicorp/go-sockaddr v1.0.0/go.mod h1:7Xibr9yA9JjQq1JpNB2Vw7kxv8xerXegt+ozgdvDeDU= +github.com/hashicorp/go-sockaddr v1.0.2/go.mod h1:rB4wwRAUzs07qva3c5SdrY/NEtAUjGlgmH/UkBUC97A= github.com/hashicorp/go-syslog v1.0.0/go.mod h1:qPfqrKkXGihmCqbJM2mZgkZGvKG1dFdvsLplgctolz4= github.com/hashicorp/go-uuid v1.0.0/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= github.com/hashicorp/go-uuid v1.0.1/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= +github.com/hashicorp/go-uuid v1.0.2/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= +github.com/hashicorp/go-version v1.2.1/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= github.com/hashicorp/golang-lru v0.5.4/go.mod h1:iADmTwqILo4mZ8BN3D2Q6+9jd8WM5uGBxy+E8yxSoD4= @@ -317,8 +696,10 @@ github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T github.com/hashicorp/logutils v1.0.0/go.mod h1:QIAnNjmIWmVIIkWDTG1z5v++HQmx9WQRO+LraFDTW64= github.com/hashicorp/mdns v1.0.4/go.mod h1:mtBihi+LeNXGtG8L9dX59gAEa12BDtBQSp4v/YAJqrc= github.com/hashicorp/memberlist v0.3.0/go.mod h1:MS2lj3INKhZjWNqd3N0m3J+Jxf3DAOnAH9VT3Sh9MUE= +github.com/hashicorp/memberlist v0.5.0/go.mod h1:yvyXLpo0QaGE59Y7hDTsTzDD25JYBZ4mHgHUZ8lrOI0= github.com/hashicorp/serf v0.9.6/go.mod h1:TXZNMjZQijwlDvp+r0b63xZ45H7JmCmgg4gpTwn9UV4= github.com/hashicorp/serf v0.9.7/go.mod h1:TXZNMjZQijwlDvp+r0b63xZ45H7JmCmgg4gpTwn9UV4= +github.com/hashicorp/serf v0.10.1/go.mod h1:yL2t6BqATOLGc5HF7qbFkTfXoPIY0WZdWHfEvMqbG+4= github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= github.com/ianlancetaylor/demangle v0.0.0-20200824232613-28f6c0f3b639/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8= @@ -356,6 +737,8 @@ github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/magiconair/properties v1.8.6 h1:5ibWZ6iY0NctNGWo87LalDlEZ6R41TqbbDamhfG/Qzo= github.com/magiconair/properties v1.8.6/go.mod h1:y3VJvCyxH9uVvJTWEGAELF3aiYNyPKd5NZ3oSwXrF60= +github.com/magiconair/properties v1.8.7 h1:IeQXZAiQcpL9mgcAe1Nu6cX9LLw6ExEHKjN0VQdvPDY= +github.com/magiconair/properties v1.8.7/go.mod h1:Dhd985XPs7jluiymwWYZ0G4Z61jb3vdS329zhj2hYo0= github.com/mailru/easyjson v0.0.0-20190614124828-94de47d64c63/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= github.com/mailru/easyjson v0.0.0-20190626092158-b2ccc519800e/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= github.com/mailru/easyjson v0.7.6/go.mod h1:xzfreul335JAWq5oZzymOObrkdz5UnU4kGfJJLY9Nlc= @@ -376,11 +759,15 @@ github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Ky github.com/mattn/go-isatty v0.0.14/go.mod h1:7GGIvUiUoEMVVmxf/4nioHXj79iQHKdU27kJ6hsGG94= github.com/matttproud/golang_protobuf_extensions v1.0.1 h1:4hp9jkHxhMHkqkrB3Ix0jegS5sx/RkqARlsWZ6pIwiU= github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0= +github.com/matttproud/golang_protobuf_extensions v1.0.4 h1:mmDVorXM7PCGKw94cs5zkfA9PSy5pEvNWRP0ET0TIVo= +github.com/matttproud/golang_protobuf_extensions v1.0.4/go.mod h1:BSXmuO+STAnVfrANrmjBb36TMTDstsz7MSK+HVaYKv4= github.com/miekg/dns v1.1.26/go.mod h1:bPDLeHnStXmXAq1m/Ch/hvfNHr14JKNPMBo3VZKjuso= github.com/miekg/dns v1.1.41/go.mod h1:p6aan82bvRIyn+zDIv9xYNUpwa73JcSh9BKwknJysuI= +github.com/mitchellh/cli v1.0.0/go.mod h1:hNIlj7HEI86fIcpObd7a0FcrxTWetlwJDGcceTlRvqc= github.com/mitchellh/cli v1.1.0/go.mod h1:xcISNoH86gajksDmfB23e/pu+B+GeFRMYmoHXxx3xhI= github.com/mitchellh/go-homedir v1.1.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0= github.com/mitchellh/go-testing-interface v1.0.0/go.mod h1:kRemZodwjscx+RGhAo8eIhFbs2+BFgRtFPeD/KE+zxI= +github.com/mitchellh/go-wordwrap v1.0.0/go.mod h1:ZXFpozHsX6DPmq2I0TCekCxypsnAUbP2oI0UX1GXzOo= github.com/mitchellh/mapstructure v0.0.0-20160808181253-ca63d7c062ee/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= github.com/mitchellh/mapstructure v1.1.2/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= github.com/mitchellh/mapstructure v1.3.3/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= @@ -408,6 +795,9 @@ github.com/pelletier/go-toml v1.9.5 h1:4yBQzkHv+7BHq2PQUZF3Mx0IYxG7LsP222s7Agd3v github.com/pelletier/go-toml v1.9.5/go.mod h1:u1nR/EPcESfeI/szUZKdtJ0xRNbUoANCkoOuaOx1Y+c= github.com/pelletier/go-toml/v2 v2.0.5 h1:ipoSadvV8oGUjnUbMub59IDPPwfxF694nG/jwbMiyQg= github.com/pelletier/go-toml/v2 v2.0.5/go.mod h1:OMHamSCAODeSsVrwwvcJOaoN0LIUIaFVNZzmWyNfXas= +github.com/pelletier/go-toml/v2 v2.0.6/go.mod h1:eumQOmlWiOPt5WriQQqoM5y18pDHwha2N+QD+EUNTek= +github.com/pelletier/go-toml/v2 v2.0.7 h1:muncTPStnKRos5dpVKULv2FVd4bMOhNePj9CjgDb8Us= +github.com/pelletier/go-toml/v2 v2.0.7/go.mod h1:eumQOmlWiOPt5WriQQqoM5y18pDHwha2N+QD+EUNTek= github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= @@ -426,11 +816,15 @@ github.com/prometheus/client_golang v1.11.1/go.mod h1:Z6t4BnS23TR94PD6BsDNk8yVqr github.com/prometheus/client_golang v1.12.1/go.mod h1:3Z9XVyYiZYEO+YQWt3RD2R3jrbd179Rt297l4aS6nDY= github.com/prometheus/client_golang v1.13.0 h1:b71QUfeo5M8gq2+evJdTPfZhYMAU0uKPkyPJ7TPsloU= github.com/prometheus/client_golang v1.13.0/go.mod h1:vTeo+zgvILHsnnj/39Ou/1fPN5nJFOEMgftOUOmlvYQ= +github.com/prometheus/client_golang v1.14.0 h1:nJdhIvne2eSX/XRAFV9PcvFFRbrjbcTUj0VP62TMhnw= +github.com/prometheus/client_golang v1.14.0/go.mod h1:8vpkKitgIVNcqrRBWh1C4TIUQgYNtG/XQE4E/Zae36Y= github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo= github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= github.com/prometheus/client_model v0.2.0 h1:uq5h0d+GuxiXLJLNABMgp2qUWDPiLvgCzz2dUR+/W/M= github.com/prometheus/client_model v0.2.0/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= +github.com/prometheus/client_model v0.3.0 h1:UBgGFHqYdG/TPFD1B1ogZywDqEkwp3fBMvqdiQ7Xew4= +github.com/prometheus/client_model v0.3.0/go.mod h1:LDGWKZIo7rky3hgvBe+caln+Dr3dPggB5dvjtD7w9+w= github.com/prometheus/common v0.4.1/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4= github.com/prometheus/common v0.9.1/go.mod h1:yhUN8i9wzaXS3w1O07YhxHEBxD+W35wd8bs7vj7HSQ4= github.com/prometheus/common v0.10.0/go.mod h1:Tlit/dnDKsSWFlCLTWaA1cyBgKHSMdTB80sz/V91rCo= @@ -438,6 +832,8 @@ github.com/prometheus/common v0.26.0/go.mod h1:M7rCNAaPfAosfx8veZJCuw84e35h3Cfd9 github.com/prometheus/common v0.32.1/go.mod h1:vu+V0TpY+O6vW9J44gczi3Ap/oXXR10b+M/gUGO4Hls= github.com/prometheus/common v0.37.0 h1:ccBbHCgIiT9uSoFY0vX8H3zsNR5eLt17/RQLUvn8pXE= github.com/prometheus/common v0.37.0/go.mod h1:phzohg0JFMnBEFGxTDbfu3QyL5GI8gTQJFhYO5B3mfA= +github.com/prometheus/common v0.42.0 h1:EKsfXEYo4JpWMHH5cg+KOUWeuJSov1Id8zGR8eeI1YM= +github.com/prometheus/common v0.42.0/go.mod h1:xBwqVerjNdUDjgODMpudtOMwlOwf2SaTr1yjz4b7Zbc= github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= github.com/prometheus/procfs v0.0.2/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= github.com/prometheus/procfs v0.0.8/go.mod h1:7Qr8sr6344vo1JqZ6HhLceV9o3AJ1Ff+GxbHq6oeK9A= @@ -446,6 +842,8 @@ github.com/prometheus/procfs v0.6.0/go.mod h1:cz+aTbrPOrUb4q7XlbU9ygM+/jj0fzG6c1 github.com/prometheus/procfs v0.7.3/go.mod h1:cz+aTbrPOrUb4q7XlbU9ygM+/jj0fzG6c1xBZuNvfVA= github.com/prometheus/procfs v0.8.0 h1:ODq8ZFEaYeCaZOJlZZdJA2AbQR98dSHSM1KW/You5mo= github.com/prometheus/procfs v0.8.0/go.mod h1:z7EfXMXOkbkqb9IINtpCn86r/to3BnA0uaxHdg830/4= +github.com/prometheus/procfs v0.9.0 h1:wzCHvIvM5SxWqYvwgVL7yJY8Lz3PKn49KQtpgMYJfhI= +github.com/prometheus/procfs v0.9.0/go.mod h1:+pB4zwohETzFnmlpe6yd2lSc+0/46IYZRB/chUwxUZY= github.com/rogpeppe/fastuuid v1.2.0/go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6LYCDYWNEvQ= github.com/rogpeppe/go-internal v1.1.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= github.com/rogpeppe/go-internal v1.2.2/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= @@ -454,8 +852,12 @@ github.com/rogpeppe/go-internal v1.6.1 h1:/FiVV8dS/e+YqF2JvO3yXRFbBLTIuSDkuC7aBO github.com/rogpeppe/go-internal v1.6.1/go.mod h1:xXDCJY+GAPziupqXw64V24skbSoqbTEfhy4qGm1nDQc= github.com/rs/cors v1.8.2 h1:KCooALfAYGs415Cwu5ABvv9n9509fSiG5SQJn/AQo4U= github.com/rs/cors v1.8.2/go.mod h1:XyqrcTp5zjWr1wsJ8PIRZssZ8b/WMcMf71DJnit4EMU= +github.com/rs/cors v1.8.3 h1:O+qNyWn7Z+F9M0ILBHgMVPuB1xTOucVd5gtaYyXBpRo= +github.com/rs/cors v1.8.3/go.mod h1:XyqrcTp5zjWr1wsJ8PIRZssZ8b/WMcMf71DJnit4EMU= github.com/ryanuber/columnize v0.0.0-20160712163229-9b3edd62028f/go.mod h1:sm1tb6uqfes/u+d4ooFouqFdy9/2g9QGwK3SQygK0Ts= +github.com/ryanuber/columnize v2.1.0+incompatible/go.mod h1:sm1tb6uqfes/u+d4ooFouqFdy9/2g9QGwK3SQygK0Ts= github.com/sagikazarmark/crypt v0.6.0/go.mod h1:U8+INwJo3nBv1m6A/8OBXAq7Jnpspk5AxSgDyEQcea8= +github.com/sagikazarmark/crypt v0.9.0/go.mod h1:RnH7sEhxfdnPm1z+XMgSLjWTEIjyK4z2dw6+4vHTMuo= github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529/go.mod h1:DxrIzT+xaE7yg65j358z/aeFdxmN0P9QXhEzd20vsDc= github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo= github.com/sirupsen/logrus v1.4.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo= @@ -465,6 +867,9 @@ github.com/sirupsen/logrus v1.6.0/go.mod h1:7uNnSEd1DgxDLC74fIahvMZmmYsHGZGEOFrf github.com/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA= github.com/spf13/afero v1.8.2 h1:xehSyVa0YnHWsJ49JFljMpg1HX19V6NDZ1fkm1Xznbo= github.com/spf13/afero v1.8.2/go.mod h1:CtAatgMJh6bJEIs48Ay/FOnkljP3WeGUG0MC1RfAqwo= +github.com/spf13/afero v1.9.3/go.mod h1:iUV7ddyEEZPO5gA3zD4fJt6iStLlL+Lg4m2cihcDf8Y= +github.com/spf13/afero v1.9.5 h1:stMpOSZFs//0Lv29HduCmli3GUfpFoF3Y1Q/aXj/wVM= +github.com/spf13/afero v1.9.5/go.mod h1:UBogFpq8E9Hx+xc5CNTTEpTnuHVmXDwZcZcE1eb/UhQ= github.com/spf13/cast v1.5.0 h1:rj3WzYc11XZaIZMPKmwP96zkFEnnAmV8s6XbB2aY32w= github.com/spf13/cast v1.5.0/go.mod h1:SpXXQ5YoyJw6s3/6cMTQuxvgRl3PCJiyaX9p6b155UU= github.com/spf13/cobra v0.0.3/go.mod h1:1l0Ry5zgKvJasoi3XT1TypsSe7PqH0Sj9dhYf7v3XqQ= @@ -475,9 +880,12 @@ github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA= github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= github.com/spf13/viper v1.13.0 h1:BWSJ/M+f+3nmdz9bxB+bWX28kkALN2ok11D0rSo8EJU= github.com/spf13/viper v1.13.0/go.mod h1:Icm2xNL3/8uyh/wFuB1jI7TiTNKp8632Nwegu+zgdYw= +github.com/spf13/viper v1.15.0 h1:js3yy885G8xwJa6iOISGFwd+qlUo5AvyXb7CiihdtiU= +github.com/spf13/viper v1.15.0/go.mod h1:fFcTBJxvhhzSJiZy8n+PeW6t8l+KeT/uTARa0jHOQLA= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw= +github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo= github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= @@ -488,8 +896,13 @@ github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/ github.com/stretchr/testify v1.7.5/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= github.com/stretchr/testify v1.8.0 h1:pSgiaMZlXftHpm5L7V1+rVB+AZJydKsMxsQBIJw4PKk= github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= +github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= +github.com/stretchr/testify v1.8.2 h1:+h33VjcLVPDHtOdpUCuF+7gSuG3yGIftsP1YvFihtJ8= +github.com/stretchr/testify v1.8.2/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= github.com/subosito/gotenv v1.4.1 h1:jyEFiXpy21Wm81FBN71l9VoMMV8H8jG+qIK3GCpY6Qs= github.com/subosito/gotenv v1.4.1/go.mod h1:ayKnFf/c6rvx/2iiLrJUk1e6plDbT3edrFNGqEflhK0= +github.com/subosito/gotenv v1.4.2 h1:X1TuBLAMDFbaTAChgCBLu3DU3UPyELpnF2jjJ2cz/S8= +github.com/subosito/gotenv v1.4.2/go.mod h1:ayKnFf/c6rvx/2iiLrJUk1e6plDbT3edrFNGqEflhK0= github.com/taxnexus/go-force v1.0.7 h1:AhfmLToq3XIq5SkaC621uPu9kGjyTxwDi2k5XxuWws0= github.com/taxnexus/go-force v1.0.7/go.mod h1:lJDnynWzSMNjYWpPzAMX4gGy+nwDxBFgdHd4z0U1BG0= github.com/tidwall/pretty v1.0.0 h1:HsD+QiTn7sK6flMKIvNmpqz1qrpP3Ps6jOKIKMooyg4= @@ -500,22 +913,30 @@ github.com/xdg-go/scram v1.0.2/go.mod h1:1WAq6h33pAW+iRreB34OORO2Nf7qel3VV3fjBj+ github.com/xdg-go/scram v1.1.1/go.mod h1:RaEWvsqvNKKvBPvcKeFjrG2cJqOkHTiyTpzz23ni57g= github.com/xdg-go/stringprep v1.0.2/go.mod h1:8F9zXuvzgwmyT5DUm4GUfZGDdT3W+LCvS6+da4O5kxM= github.com/xdg-go/stringprep v1.0.3/go.mod h1:W3f5j4i+9rC0kuIEJL0ky1VpHXQU3ocBgklLGvcBnW8= +github.com/xhit/go-str2duration v1.2.0/go.mod h1:3cPSlfZlUHVlneIVfePFWcJZsuwf+P1v2SRTV4cUmp4= github.com/youmark/pkcs8 v0.0.0-20181117223130-1be2e3e5546d/go.mod h1:rHwXgn7JulP+udvsHwJoVG1YGAP6VLg4y9I5dyZdqmA= github.com/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.1.32/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= +github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= go.etcd.io/etcd/api/v3 v3.5.4/go.mod h1:5GB2vv4A4AOn3yk7MftYGHkUfGtDHnEraIjym4dYz5A= +go.etcd.io/etcd/api/v3 v3.5.6/go.mod h1:KFtNaxGDw4Yx/BA4iPPwevUTAuqcsPxzyX8PHydchN8= go.etcd.io/etcd/client/pkg/v3 v3.5.4/go.mod h1:IJHfcCEKxYu1Os13ZdwCwIUTUVGYTSAM3YSwc9/Ac1g= +go.etcd.io/etcd/client/pkg/v3 v3.5.6/go.mod h1:ggrwbk069qxpKPq8/FKkQ3Xq9y39kbFR4LnKszpRXeQ= go.etcd.io/etcd/client/v2 v2.305.4/go.mod h1:Ud+VUwIi9/uQHOMA+4ekToJ12lTxlv0zB/+DHwTGEbU= +go.etcd.io/etcd/client/v2 v2.305.6/go.mod h1:BHha8XJGe8vCIBfWBpbBLVZ4QjOIlfoouvOwydu63E0= go.etcd.io/etcd/client/v3 v3.5.4/go.mod h1:ZaRkVgBZC+L+dLCjTcF1hRXpgZXQPOvnA/Ak/gq3kiY= +go.etcd.io/etcd/client/v3 v3.5.6/go.mod h1:f6GRinRMCsFVv9Ht42EyY7nfsVGwrNO0WEoS2pRKzQk= go.mongodb.org/mongo-driver v1.7.3/go.mod h1:NqaYOwnXWr5Pm7AOpO5QFxKJ503nbMse/R79oO62zWg= go.mongodb.org/mongo-driver v1.7.5/go.mod h1:VXEWRZ6URJIkUq2SCAyapmhH0ZLRBP+FT4xhp5Zvxng= go.mongodb.org/mongo-driver v1.8.3/go.mod h1:0sQWfOeY63QTntERDJJ/0SuKK0T1uVSgKCuAROlKEPY= go.mongodb.org/mongo-driver v1.10.0/go.mod h1:wsihk0Kdgv8Kqu1Anit4sfK+22vSFbUrAVEYRhCXrA8= go.mongodb.org/mongo-driver v1.10.1 h1:NujsPveKwHaWuKUer/ceo9DzEe7HIj1SlJ6uvXZG0S4= go.mongodb.org/mongo-driver v1.10.1/go.mod h1:z4XpeoU6w+9Vht+jAFyLgVrD+jGSQQe0+CBWFHNiHt8= +go.mongodb.org/mongo-driver v1.11.3 h1:Ql6K6qYHEzB6xvu4+AU0BoRoqf9vFPcc4o7MUIdPW8Y= +go.mongodb.org/mongo-driver v1.11.3/go.mod h1:PTSz5yu21bkT/wXpkS7WR5f0ddqw5quethTUn9WM+2g= go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU= go.opencensus.io v0.22.0/go.mod h1:+kGneAE2xo2IficOXnaByMWTGM9T73dGwxeWcUqIpI8= go.opencensus.io v0.22.2/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= @@ -523,8 +944,17 @@ go.opencensus.io v0.22.3/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= go.opencensus.io v0.22.4/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= go.opencensus.io v0.22.5/go.mod h1:5pWMHQbX5EPX2/62yrJeAkowc+lfs/XD7Uxpq3pI6kk= go.opencensus.io v0.23.0/go.mod h1:XItmlyltB5F7CS4xOC1DcqMoFqwtC6OG2xF7mCv7P7E= +go.opencensus.io v0.24.0/go.mod h1:vNK8G9p7aAivkbmorf4v+7Hgx+Zs0yY+0fOtgBfjQKo= +go.opentelemetry.io/otel v1.11.1/go.mod h1:1nNhXBbWSD0nsL38H6btgnFN2k4i0sNLHNNMZMSbUGE= +go.opentelemetry.io/otel v1.14.0 h1:/79Huy8wbf5DnIPhemGB+zEPVwnN6fuQybr/SRXa6hM= +go.opentelemetry.io/otel v1.14.0/go.mod h1:o4buv+dJzx8rohcUeRmWUZhqupFvzWis188WlggnNeU= +go.opentelemetry.io/otel/sdk v1.11.1/go.mod h1:/l3FE4SupHJ12TduVjUkZtlfFqDCQJlOlithYrdktys= +go.opentelemetry.io/otel/trace v1.11.1/go.mod h1:f/Q9G7vzk5u91PhbmKbg1Qn0rzH1LJ4vbPHFGkTPtOk= +go.opentelemetry.io/otel/trace v1.14.0 h1:wp2Mmvj41tDsyAJXiWDWpfNsOiIyd38fy85pyKcFq/M= +go.opentelemetry.io/otel/trace v1.14.0/go.mod h1:8avnQLK+CG77yNLUae4ea2JDQ6iT+gozhnZjy/rw9G8= go.opentelemetry.io/proto/otlp v0.7.0/go.mod h1:PqfVotwruBrMGOCsRd/89rSnXhoiJIqeYNgFYFoEGnI= go.uber.org/atomic v1.7.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc= +go.uber.org/atomic v1.9.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc= go.uber.org/atomic v1.10.0 h1:9qC72Qh0+3MqyJbAn8YU5xVq1frD8bn3JtD2oXtafVQ= go.uber.org/atomic v1.10.0/go.mod h1:LUxbIzbOniOlMKjJjyPfpl4v+PKK2cNJn91OQbhoJI0= go.uber.org/goleak v1.1.11 h1:wy28qYRKZgnJTxGxvye5/wgWr1EKjmUDGYox5mGlRlI= @@ -532,9 +962,14 @@ go.uber.org/goleak v1.1.11/go.mod h1:cwTWslyiVhfpKIDGSZEM2HlOvcqm+tG4zioyIeLoqMQ go.uber.org/multierr v1.6.0/go.mod h1:cdWPpRnG4AhwMwsgIHip0KRBQjJy5kYEpYjJxpXp9iU= go.uber.org/multierr v1.8.0 h1:dg6GjLku4EH+249NNmoIciG9N/jURbDG+pFlTkhzIC8= go.uber.org/multierr v1.8.0/go.mod h1:7EAYxJLBy9rStEaz58O2t4Uvip6FSURkq8/ppBp95ak= +go.uber.org/multierr v1.10.0 h1:S0h4aNzvfcFsC3dRF1jLoaov7oRaKqRGC/pUEJ2yvPQ= +go.uber.org/multierr v1.10.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y= go.uber.org/zap v1.17.0/go.mod h1:MXVU+bhUf/A7Xi2HNOnopQOrmycQ5Ih87HtOu4q5SSo= +go.uber.org/zap v1.21.0/go.mod h1:wjWOCqI0f2ZZrJF/UufIOkiC8ii6tm1iqIsLo76RfJw= go.uber.org/zap v1.23.0 h1:OjGQ5KQDEUawVHxNwQgPpiypGHOxo2mNZsOqTak4fFY= go.uber.org/zap v1.23.0/go.mod h1:D+nX8jyLsMHMYrln8A0rJjFt/T/9/bGgIhAqxv5URuY= +go.uber.org/zap v1.24.0 h1:FiJd5l1UOLj0wCgbSE0rwwXHzEdAZS6hiiSnxJN/D60= +go.uber.org/zap v1.24.0/go.mod h1:2kMP+WWQ8aoFoedH3T2sq6iJ2yDWpHbP0f6MQbS9Gkg= golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/crypto v0.0.0-20190422162423-af44ce270edf/go.mod h1:WFFai1msRO1wXaEeE5yQxYXgSfI8pQAWXbQop6sCtWE= @@ -546,9 +981,12 @@ golang.org/x/crypto v0.0.0-20200302210943-78000ba7a073/go.mod h1:LzIPMQfyMNhhGPh golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20201216223049-8b5274cf687f/go.mod h1:jdWPYTVW3xRLrWPugEBEK3UY2ZEsg3UU495nc5E+M+I= golang.org/x/crypto v0.0.0-20210421170649-83a5a9bb288b/go.mod h1:T9bdIzuCu7OtxOm1hfPfRQxPLYneinmdGuTeoZ9dtd4= +golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= golang.org/x/crypto v0.0.0-20211108221036-ceb1ce70b4fa/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= golang.org/x/crypto v0.0.0-20220411220226-7b82a4e95df4/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= +golang.org/x/crypto v0.0.0-20220525230936-793ad666bf5e/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= golang.org/x/crypto v0.0.0-20220622213112-05595931fe9d/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= +golang.org/x/crypto v0.0.0-20220722155217-630584e8d5aa/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8= @@ -586,6 +1024,8 @@ golang.org/x/mod v0.4.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.4.1/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.4.2 h1:Gz96sIWK3OalVv/I/qNygP42zyoKp3xptRVCWRFEBvo= golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= +golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= +golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20181114220301-adae6a3d119a/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= @@ -629,14 +1069,27 @@ golang.org/x/net v0.0.0-20210421230115-4e50805a0758/go.mod h1:72T/g9IO56b78aLF+1 golang.org/x/net v0.0.0-20210503060351-7fd8e65b6420/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20210525063256-abc453219eb5/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= +golang.org/x/net v0.0.0-20211216030914-fe4d6282115f/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220225172249-27dd8689420f/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220325170049-de3da57026de/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220412020605-290c469a71a5/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220425223048-2871e0cb64e4/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220520000938-2e3eb7b945c2/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= +golang.org/x/net v0.0.0-20220607020251-c690dde0001d/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= +golang.org/x/net v0.0.0-20220617184016-355a448f1bc9/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= +golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= +golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= golang.org/x/net v0.0.0-20220906165146-f3363e06e74c h1:yKufUcDwucU5urd+50/Opbt4AYpqthk7wHpHok8f1lo= golang.org/x/net v0.0.0-20220906165146-f3363e06e74c/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk= +golang.org/x/net v0.0.0-20220909164309-bea034e7d591/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk= +golang.org/x/net v0.0.0-20221012135044-0b7e1fb9d458/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk= +golang.org/x/net v0.0.0-20221014081412-f15817d10f9b/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk= +golang.org/x/net v0.4.0/go.mod h1:MBQ8lrhLObU/6UmLb4fmbmk5OcyYmqtbGd/9yIeKjEE= +golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= +golang.org/x/net v0.7.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= +golang.org/x/net v0.8.0 h1:Zrh2ngAOFYneWTAIAPethzeaQLuHwhuBkuV6ZiRnUaQ= +golang.org/x/net v0.8.0/go.mod h1:QVkue5JL9kW//ek3r6jTKnTFis1tRmNAW2P1shuFdJc= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= @@ -657,6 +1110,13 @@ golang.org/x/oauth2 v0.0.0-20211104180415-d3ed0bb246c8/go.mod h1:KelEdhl1UZF7XfJ golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= +golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= +golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= +golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20221006150949-b44042a4b9c1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.5.0/go.mod h1:9/XBHVqLaWO3/BRHs5jbpYCnOZVjj5V0ndyaAM7KB4I= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -671,6 +1131,9 @@ golang.org/x/sync v0.0.0-20201207232520-09787c993a3a/go.mod h1:RxMgew5VJxzue5/jJ golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20220513210516-0976fa681c29/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20220601150217-0de741cfad7f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20220929204114-8fcdb60fdcc0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= @@ -753,12 +1216,26 @@ golang.org/x/sys v0.0.0-20220227234510-4e6760a101f9/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20220328115105-d36c6a25d886/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220412211240-33da011f77ad/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220502124256-b6088ccd6cba/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220503163025-988cb79eb6c6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220610221304-9f5ed59c137d/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220624220833-87e55d714810/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 h1:WIoqL4EROvwiPdUtaip4VcDdpZ4kha7wBWZrbVKCIZg= golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220908164124-27713097b956/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220919091848-fb04ddd9f9c8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.3.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.6.0 h1:MVltZSvRTcU2ljQOhs94SXPftV6DCNnZViHeQps87pQ= +golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/term v0.0.0-20201117132131-f5c789dd3221/go.mod h1:Nr5EML6q2oocZ2LXRh80K7BxOlk5/8JxuGnuhpl+muw= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= +golang.org/x/term v0.3.0/go.mod h1:q750SLmJuPmVoN1blW3UFBPREJfb1KmY3vwxfr+nFDA= +golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k= +golang.org/x/term v0.6.0/go.mod h1:m6U89DPEgQRMq3DNkDClhWw02AUbt2daBVO4cn4Hv9U= golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= @@ -769,9 +1246,17 @@ golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.7 h1:olpwvP2KacW1ZWvsR7uQhoyTYvKAupfQrRGBFM352Gk= golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= +golang.org/x/text v0.3.8/go.mod h1:E6s5w1FMmriuDzIBO73fBruAKo1PCIq6d2Q6DHfQ8WQ= +golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.8.0 h1:57P1ETyNKtuIjB4SRd15iJxuhj8Gc416Y78H3qgMh68= +golang.org/x/text v0.8.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= +golang.org/x/time v0.0.0-20220922220347-f3bd1da661af/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= +golang.org/x/time v0.1.0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY= @@ -832,6 +1317,8 @@ golang.org/x/tools v0.1.3/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= golang.org/x/tools v0.1.4/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= golang.org/x/tools v0.1.5 h1:ouewzE6p+/VEB31YYnTbEJdi8pFqKp4P4n85vwo3DHA= golang.org/x/tools v0.1.5/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= +golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc= +golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= @@ -839,6 +1326,8 @@ golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8T golang.org/x/xerrors v0.0.0-20220411194840-2f41105eb62f/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20220517211312-f3a8303e98df h1:5Pf6pFKu98ODmgnpvkJ3kFUOQGGLIzLIkbzUHp47618= golang.org/x/xerrors v0.0.0-20220517211312-f3a8303e98df/go.mod h1:K8+ghG5WaK9qNqU5K3HdILfMLy1f3aNYFI/wnl100a8= +golang.org/x/xerrors v0.0.0-20220609144429-65e65417b02f/go.mod h1:K8+ghG5WaK9qNqU5K3HdILfMLy1f3aNYFI/wnl100a8= +golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2/go.mod h1:K8+ghG5WaK9qNqU5K3HdILfMLy1f3aNYFI/wnl100a8= google.golang.org/api v0.4.0/go.mod h1:8k5glujaEP+g9n7WNsDg8QP6cUVNI86fCNMcbazEtwE= google.golang.org/api v0.7.0/go.mod h1:WtwebWUNSVBH/HAw79HIFXZNqEvBhG+Ra+ax0hx3E3M= google.golang.org/api v0.8.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= @@ -876,8 +1365,23 @@ google.golang.org/api v0.70.0/go.mod h1:Bs4ZM2HGifEvXwd50TtW70ovgJffJYw2oRCOFU/S google.golang.org/api v0.71.0/go.mod h1:4PyU6e6JogV1f9eA4voyrTY2batOLdgZ5qZ5HOCc4j8= google.golang.org/api v0.74.0/go.mod h1:ZpfMZOVRMywNyvJFeqL9HRWBgAuRfSjJFpe9QtRRyDs= google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69ljA= +google.golang.org/api v0.77.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69ljA= google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= +google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= google.golang.org/api v0.81.0/go.mod h1:FA6Mb/bZxj706H2j+j2d6mHEEaHBmbbWnkfvmorOCko= +google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= +google.golang.org/api v0.85.0/go.mod h1:AqZf8Ep9uZ2pyTvgL+x0D3Zt0eoT9b5E8fmzfu6FO2g= +google.golang.org/api v0.90.0/go.mod h1:+Sem1dnrKlrXMR/X0bPnMWyluQe4RsNoYfmNLhOIkzw= +google.golang.org/api v0.93.0/go.mod h1:+Sem1dnrKlrXMR/X0bPnMWyluQe4RsNoYfmNLhOIkzw= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= +google.golang.org/api v0.96.0/go.mod h1:w7wJQLTM+wvQpNf5JyEcBoxK0RH7EDrh/L4qfsuJ13s= +google.golang.org/api v0.97.0/go.mod h1:w7wJQLTM+wvQpNf5JyEcBoxK0RH7EDrh/L4qfsuJ13s= +google.golang.org/api v0.98.0/go.mod h1:w7wJQLTM+wvQpNf5JyEcBoxK0RH7EDrh/L4qfsuJ13s= +google.golang.org/api v0.99.0/go.mod h1:1YOf74vkVndF7pG6hIHuINsM7eWwpVTAfNMNiL91A08= +google.golang.org/api v0.100.0/go.mod h1:ZE3Z2+ZOr87Rx7dqFsdRQkRBk36kDtp/h+QpHbB7a70= +google.golang.org/api v0.102.0/go.mod h1:3VFl6/fzoA+qNuS1N1/VfXY4LjoXN/wzeIp7TweWwGo= +google.golang.org/api v0.103.0/go.mod h1:hGtW6nK1AC+d9si/UBhw8Xli+QMOf6xyNAyJw4qU9w0= +google.golang.org/api v0.107.0/go.mod h1:2Ts0XTHNVWxypznxWOYUeI4g3WdP9Pk2Qk58+a/O9MY= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= @@ -926,6 +1430,7 @@ google.golang.org/genproto v0.0.0-20210226172003-ab064af71705/go.mod h1:FWY/as6D google.golang.org/genproto v0.0.0-20210303154014-9728d6b83eeb/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= google.golang.org/genproto v0.0.0-20210310155132-4ce2db91004e/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= google.golang.org/genproto v0.0.0-20210319143718-93e7006c17a6/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20210329143202-679c6ae281ee/go.mod h1:9lPAdzaEmUacj36I+k7YKbEc5CXzPIeORRgDAUOu28A= google.golang.org/genproto v0.0.0-20210402141018-6c239bbf2bb1/go.mod h1:9lPAdzaEmUacj36I+k7YKbEc5CXzPIeORRgDAUOu28A= google.golang.org/genproto v0.0.0-20210513213006-bf773b8c8384/go.mod h1:P3QM42oQyzQSnHPnZ/vqoCdDmzH28fzWByN9asMeM8A= google.golang.org/genproto v0.0.0-20210602131652-f16073e35f0c/go.mod h1:UODoCrxHCcBojKKwX1terBiRUaqAsFqJiF615XL43r0= @@ -961,8 +1466,43 @@ google.golang.org/genproto v0.0.0-20220413183235-5e96e2839df9/go.mod h1:8w6bsBMX google.golang.org/genproto v0.0.0-20220414192740-2d67ff6cf2b4/go.mod h1:8w6bsBMX6yCPbAVTeqQHvzxW0EIFigd5lZyahWgyfDo= google.golang.org/genproto v0.0.0-20220421151946-72621c1f0bd3/go.mod h1:8w6bsBMX6yCPbAVTeqQHvzxW0EIFigd5lZyahWgyfDo= google.golang.org/genproto v0.0.0-20220429170224-98d788798c3e/go.mod h1:8w6bsBMX6yCPbAVTeqQHvzxW0EIFigd5lZyahWgyfDo= +google.golang.org/genproto v0.0.0-20220502173005-c8bf987b8c21/go.mod h1:RAyBrSAP7Fh3Nc84ghnVLDPuV51xc9agzmm4Ph6i0Q4= google.golang.org/genproto v0.0.0-20220505152158-f39f71e6c8f3/go.mod h1:RAyBrSAP7Fh3Nc84ghnVLDPuV51xc9agzmm4Ph6i0Q4= +google.golang.org/genproto v0.0.0-20220518221133-4f43b3371335/go.mod h1:RAyBrSAP7Fh3Nc84ghnVLDPuV51xc9agzmm4Ph6i0Q4= google.golang.org/genproto v0.0.0-20220519153652-3a47de7e79bd/go.mod h1:RAyBrSAP7Fh3Nc84ghnVLDPuV51xc9agzmm4Ph6i0Q4= +google.golang.org/genproto v0.0.0-20220523171625-347a074981d8/go.mod h1:RAyBrSAP7Fh3Nc84ghnVLDPuV51xc9agzmm4Ph6i0Q4= +google.golang.org/genproto v0.0.0-20220608133413-ed9918b62aac/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= +google.golang.org/genproto v0.0.0-20220616135557-88e70c0c3a90/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= +google.golang.org/genproto v0.0.0-20220617124728-180714bec0ad/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= +google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= +google.golang.org/genproto v0.0.0-20220628213854-d9e0b6570c03/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= +google.golang.org/genproto v0.0.0-20220722212130-b98a9ff5e252/go.mod h1:GkXuJDJ6aQ7lnJcRF+SJVgFdQhypqgl3LB1C9vabdRE= +google.golang.org/genproto v0.0.0-20220801145646-83ce21fca29f/go.mod h1:iHe1svFLAZg9VWz891+QbRMwUv9O/1Ww+/mngYeThbc= +google.golang.org/genproto v0.0.0-20220815135757-37a418bb8959/go.mod h1:dbqgFATTzChvnt+ujMdZwITVAJHFtfyN1qUhDqEiIlk= +google.golang.org/genproto v0.0.0-20220817144833-d7fd3f11b9b1/go.mod h1:dbqgFATTzChvnt+ujMdZwITVAJHFtfyN1qUhDqEiIlk= +google.golang.org/genproto v0.0.0-20220822174746-9e6da59bd2fc/go.mod h1:dbqgFATTzChvnt+ujMdZwITVAJHFtfyN1qUhDqEiIlk= +google.golang.org/genproto v0.0.0-20220829144015-23454907ede3/go.mod h1:dbqgFATTzChvnt+ujMdZwITVAJHFtfyN1qUhDqEiIlk= +google.golang.org/genproto v0.0.0-20220829175752-36a9c930ecbf/go.mod h1:dbqgFATTzChvnt+ujMdZwITVAJHFtfyN1qUhDqEiIlk= +google.golang.org/genproto v0.0.0-20220913154956-18f8339a66a5/go.mod h1:0Nb8Qy+Sk5eDzHnzlStwW3itdNaWoZA5XeSG+R3JHSo= +google.golang.org/genproto v0.0.0-20220914142337-ca0e39ece12f/go.mod h1:0Nb8Qy+Sk5eDzHnzlStwW3itdNaWoZA5XeSG+R3JHSo= +google.golang.org/genproto v0.0.0-20220915135415-7fd63a7952de/go.mod h1:0Nb8Qy+Sk5eDzHnzlStwW3itdNaWoZA5XeSG+R3JHSo= +google.golang.org/genproto v0.0.0-20220916172020-2692e8806bfa/go.mod h1:0Nb8Qy+Sk5eDzHnzlStwW3itdNaWoZA5XeSG+R3JHSo= +google.golang.org/genproto v0.0.0-20220919141832-68c03719ef51/go.mod h1:0Nb8Qy+Sk5eDzHnzlStwW3itdNaWoZA5XeSG+R3JHSo= +google.golang.org/genproto v0.0.0-20220920201722-2b89144ce006/go.mod h1:ht8XFiar2npT/g4vkk7O0WYS1sHOHbdujxbEp7CJWbw= +google.golang.org/genproto v0.0.0-20220926165614-551eb538f295/go.mod h1:woMGP53BroOrRY3xTxlbr8Y3eB/nzAvvFM83q7kG2OI= +google.golang.org/genproto v0.0.0-20220926220553-6981cbe3cfce/go.mod h1:woMGP53BroOrRY3xTxlbr8Y3eB/nzAvvFM83q7kG2OI= +google.golang.org/genproto v0.0.0-20221010155953-15ba04fc1c0e/go.mod h1:3526vdqwhZAwq4wsRUaVG555sVgsNmIjRtO7t/JH29U= +google.golang.org/genproto v0.0.0-20221014173430-6e2ab493f96b/go.mod h1:1vXfmgAz9N9Jx0QA82PqRVauvCz1SGSz739p0f183jM= +google.golang.org/genproto v0.0.0-20221014213838-99cd37c6964a/go.mod h1:1vXfmgAz9N9Jx0QA82PqRVauvCz1SGSz739p0f183jM= +google.golang.org/genproto v0.0.0-20221024153911-1573dae28c9c/go.mod h1:9qHF0xnpdSfF6knlcsnpzUu5y+rpwgbvsyGAZPBMg4s= +google.golang.org/genproto v0.0.0-20221024183307-1bc688fe9f3e/go.mod h1:9qHF0xnpdSfF6knlcsnpzUu5y+rpwgbvsyGAZPBMg4s= +google.golang.org/genproto v0.0.0-20221027153422-115e99e71e1c/go.mod h1:CGI5F/G+E5bKwmfYo09AXuVN4dD894kIKUFmVbP2/Fo= +google.golang.org/genproto v0.0.0-20221114212237-e4508ebdbee1/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg= +google.golang.org/genproto v0.0.0-20221117204609-8f9c96812029/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg= +google.golang.org/genproto v0.0.0-20221118155620-16455021b5e6/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg= +google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg= +google.golang.org/genproto v0.0.0-20221202195650-67e5cbc046fd/go.mod h1:cTsE614GARnxrLsqKREzmNYJACSWWpAWdNMwnD7c2BE= +google.golang.org/genproto v0.0.0-20221227171554-f9683d7f8bef/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= @@ -989,10 +1529,18 @@ google.golang.org/grpc v1.39.0/go.mod h1:PImNr+rS9TWYb2O4/emRugxiyHZ5JyHW5F+RPnD google.golang.org/grpc v1.39.1/go.mod h1:PImNr+rS9TWYb2O4/emRugxiyHZ5JyHW5F+RPnDzfrE= google.golang.org/grpc v1.40.0/go.mod h1:ogyxbiOoUXAkP+4+xa6PZSE9DZgIHtSpzjDTB9KAK34= google.golang.org/grpc v1.40.1/go.mod h1:ogyxbiOoUXAkP+4+xa6PZSE9DZgIHtSpzjDTB9KAK34= +google.golang.org/grpc v1.41.0/go.mod h1:U3l9uK9J0sini8mHphKoXyaqDA/8VyGnDee1zzIUK6k= google.golang.org/grpc v1.44.0/go.mod h1:k+4IHHFw41K8+bbowsex27ge2rCb65oeWqe4jJ590SU= google.golang.org/grpc v1.45.0/go.mod h1:lN7owxKUQEqMfSyQikvvk5tf/6zMPsrK+ONuO11+0rQ= google.golang.org/grpc v1.46.0/go.mod h1:vN9eftEi1UMyUsIF80+uQXhHjbXYbm0uXoFCACuMGWk= google.golang.org/grpc v1.46.2/go.mod h1:vN9eftEi1UMyUsIF80+uQXhHjbXYbm0uXoFCACuMGWk= +google.golang.org/grpc v1.47.0/go.mod h1:vN9eftEi1UMyUsIF80+uQXhHjbXYbm0uXoFCACuMGWk= +google.golang.org/grpc v1.48.0/go.mod h1:vN9eftEi1UMyUsIF80+uQXhHjbXYbm0uXoFCACuMGWk= +google.golang.org/grpc v1.49.0/go.mod h1:ZgQEeidpAuNRZ8iRrlBKXZQP1ghovWIVhdJRyCDK+GI= +google.golang.org/grpc v1.50.0/go.mod h1:ZgQEeidpAuNRZ8iRrlBKXZQP1ghovWIVhdJRyCDK+GI= +google.golang.org/grpc v1.50.1/go.mod h1:ZgQEeidpAuNRZ8iRrlBKXZQP1ghovWIVhdJRyCDK+GI= +google.golang.org/grpc v1.51.0/go.mod h1:wgNDFcnuBGmxLKI/qn4T+m5BtEBYXJPvibbUPsAIPww= +google.golang.org/grpc v1.52.0/go.mod h1:pu6fVzoFb+NBYNAvQL08ic+lvB2IojljRYuun5vorUY= google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.1.0/go.mod h1:6Kw0yEErY5E/yWrBtf03jp27GLLJujG4z/JK95pnjjw= google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= @@ -1010,6 +1558,8 @@ google.golang.org/protobuf v1.27.1/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQ google.golang.org/protobuf v1.28.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= google.golang.org/protobuf v1.28.1 h1:d0NfwRgPtno5B1Wa6L2DAG+KivqkdutMf1UhdNx175w= google.golang.org/protobuf v1.28.1/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= +google.golang.org/protobuf v1.30.0 h1:kPPoIgf3TsEvrm0PFe15JQ+570QVxYzEvvHqChK+cng= +google.golang.org/protobuf v1.30.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=