diff --git a/Makefile b/Makefile index e736101..bff01d8 100644 --- a/Makefile +++ b/Makefile @@ -6,8 +6,6 @@ swagger: cp ../auth/swagger/auth-vernonkeenan.yaml ./swagger/external cp ../crm/swagger/crm-vernonkeenan.yaml ./swagger cp ../crm/swagger/crm-vernonkeenan.yaml ./swagger/external - cp ../devops/swagger/devops-vernonkeenan.yaml ./swagger - cp ../devops/swagger/devops-vernonkeenan.yaml ./swagger/external cp ../stash/swagger/stash-vernonkeenan.yaml ./swagger cp ../stash/swagger/stash-vernonkeenan.yaml ./swagger/external cp ../sf-gate/swagger/sf-gate-vernonkeenan.yaml ./swagger @@ -59,25 +57,6 @@ swagger: sed -i 's|crm.vernonkeenan.com:8080|gw.tnxs.net|g' ./swagger/external/crm-vernonkeenan.yaml sed -i 's|"/v1"|"/vk/crm/v1"|g' ./swagger/external/crm-vernonkeenan.yaml # - # generate devops client - # - mkdir api/devops - swagger generate client \ - --log-output=./swagger/logs/generate-devops-client.log \ - --copyright-file=./build/COPYRIGHT \ - --name=devops \ - --spec=./swagger/devops-vernonkeenan.yaml \ - --target=./api/devops \ - --client-package=devops-client \ - --model-package=devops-models \ - --principal=app.User - # - # update external devops client - # - sed -i 's|"http"|"https"|g' ./swagger/external/devops-vernonkeenan.yaml - sed -i 's|devops.vernonkeenan.com:8080|gw.tnxs.net|g' ./swagger/external/devops-vernonkeenan.yaml - sed -i 's|"/v1"|"/vk/devops/v1"|g' ./swagger/external/devops-vernonkeenan.yaml - # # generate stash client # mkdir api/stash diff --git a/api/devops/devops_client/cluster/get_cluster_parameters.go b/api/devops/devops_client/cluster/get_cluster_parameters.go deleted file mode 100644 index b97a2e9..0000000 --- a/api/devops/devops_client/cluster/get_cluster_parameters.go +++ /dev/null @@ -1,155 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -// (c) 2012-2020 by Taxnexus, Inc. -// All rights reserved worldwide. -// Proprietary product; unlicensed use is not allowed - -package cluster - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewGetClusterParams creates a new GetClusterParams 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 NewGetClusterParams() *GetClusterParams { - return &GetClusterParams{ - timeout: cr.DefaultTimeout, - } -} - -// NewGetClusterParamsWithTimeout creates a new GetClusterParams object -// with the ability to set a timeout on a request. -func NewGetClusterParamsWithTimeout(timeout time.Duration) *GetClusterParams { - return &GetClusterParams{ - timeout: timeout, - } -} - -// NewGetClusterParamsWithContext creates a new GetClusterParams object -// with the ability to set a context for a request. -func NewGetClusterParamsWithContext(ctx context.Context) *GetClusterParams { - return &GetClusterParams{ - Context: ctx, - } -} - -// NewGetClusterParamsWithHTTPClient creates a new GetClusterParams object -// with the ability to set a custom HTTPClient for a request. -func NewGetClusterParamsWithHTTPClient(client *http.Client) *GetClusterParams { - return &GetClusterParams{ - HTTPClient: client, - } -} - -/* -GetClusterParams contains all the parameters to send to the API endpoint - - for the get cluster operation. - - Typically these are written to a http.Request. -*/ -type GetClusterParams struct { - - /* ClusterIDPath. - - Record Id of a Cluster - */ - ClusterIDPath string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithDefaults hydrates default values in the get cluster params (not the query body). -// -// All values with no default are reset to their zero value. -func (o *GetClusterParams) WithDefaults() *GetClusterParams { - o.SetDefaults() - return o -} - -// SetDefaults hydrates default values in the get cluster params (not the query body). -// -// All values with no default are reset to their zero value. -func (o *GetClusterParams) SetDefaults() { - // no default values defined for this parameter -} - -// WithTimeout adds the timeout to the get cluster params -func (o *GetClusterParams) WithTimeout(timeout time.Duration) *GetClusterParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the get cluster params -func (o *GetClusterParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the get cluster params -func (o *GetClusterParams) WithContext(ctx context.Context) *GetClusterParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the get cluster params -func (o *GetClusterParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the get cluster params -func (o *GetClusterParams) WithHTTPClient(client *http.Client) *GetClusterParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the get cluster params -func (o *GetClusterParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithClusterIDPath adds the clusterIDPath to the get cluster params -func (o *GetClusterParams) WithClusterIDPath(clusterIDPath string) *GetClusterParams { - o.SetClusterIDPath(clusterIDPath) - return o -} - -// SetClusterIDPath adds the clusterIdPath to the get cluster params -func (o *GetClusterParams) SetClusterIDPath(clusterIDPath string) { - o.ClusterIDPath = clusterIDPath -} - -// WriteToRequest writes these params to a swagger request -func (o *GetClusterParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // path param clusterIdPath - if err := r.SetPathParam("clusterIdPath", o.ClusterIDPath); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/api/devops/devops_client/cluster/get_cluster_responses.go b/api/devops/devops_client/cluster/get_cluster_responses.go deleted file mode 100644 index df6b388..0000000 --- a/api/devops/devops_client/cluster/get_cluster_responses.go +++ /dev/null @@ -1,555 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -// (c) 2012-2020 by Taxnexus, Inc. -// All rights reserved worldwide. -// Proprietary product; unlicensed use is not allowed - -package cluster - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "code.tnxs.net/vernonkeenan/lib/api/devops/devops_models" -) - -// GetClusterReader is a Reader for the GetCluster structure. -type GetClusterReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *GetClusterReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewGetClusterOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - case 401: - result := NewGetClusterUnauthorized() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return nil, result - case 403: - result := NewGetClusterForbidden() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return nil, result - case 404: - result := NewGetClusterNotFound() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return nil, result - case 422: - result := NewGetClusterUnprocessableEntity() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return nil, result - case 500: - result := NewGetClusterInternalServerError() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return nil, result - default: - return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) - } -} - -// NewGetClusterOK creates a GetClusterOK with default headers values -func NewGetClusterOK() *GetClusterOK { - return &GetClusterOK{} -} - -/* -GetClusterOK describes a response with status code 200, with default header values. - -Single Cluster record response -*/ -type GetClusterOK struct { - AccessControlAllowOrigin string - CacheControl string - - 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 -} - -func (o *GetClusterOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // hydrates response header Access-Control-Allow-Origin - hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") - - if hdrAccessControlAllowOrigin != "" { - o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin - } - - // hydrates response header Cache-Control - hdrCacheControl := response.GetHeader("Cache-Control") - - if hdrCacheControl != "" { - o.CacheControl = hdrCacheControl - } - - o.Payload = new(devops_models.Cluster) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewGetClusterUnauthorized creates a GetClusterUnauthorized with default headers values -func NewGetClusterUnauthorized() *GetClusterUnauthorized { - return &GetClusterUnauthorized{} -} - -/* -GetClusterUnauthorized describes a response with status code 401, with default header values. - -Access Unauthorized, invalid API-KEY was used -*/ -type GetClusterUnauthorized struct { - AccessControlAllowOrigin string - CacheControl string - - 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 -} - -func (o *GetClusterUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // hydrates response header Access-Control-Allow-Origin - hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") - - if hdrAccessControlAllowOrigin != "" { - o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin - } - - // hydrates response header Cache-Control - hdrCacheControl := response.GetHeader("Cache-Control") - - if hdrCacheControl != "" { - o.CacheControl = hdrCacheControl - } - - o.Payload = new(devops_models.Error) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewGetClusterForbidden creates a GetClusterForbidden with default headers values -func NewGetClusterForbidden() *GetClusterForbidden { - return &GetClusterForbidden{} -} - -/* -GetClusterForbidden describes a response with status code 403, with default header values. - -Access forbidden, account lacks access -*/ -type GetClusterForbidden struct { - AccessControlAllowOrigin string - - 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 -} - -func (o *GetClusterForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // hydrates response header Access-Control-Allow-Origin - hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") - - if hdrAccessControlAllowOrigin != "" { - o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin - } - - o.Payload = new(devops_models.Error) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewGetClusterNotFound creates a GetClusterNotFound with default headers values -func NewGetClusterNotFound() *GetClusterNotFound { - return &GetClusterNotFound{} -} - -/* -GetClusterNotFound describes a response with status code 404, with default header values. - -Resource was not found -*/ -type GetClusterNotFound struct { - AccessControlAllowOrigin string - - 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 -} - -func (o *GetClusterNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // hydrates response header Access-Control-Allow-Origin - hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") - - if hdrAccessControlAllowOrigin != "" { - o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin - } - - o.Payload = new(devops_models.Error) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewGetClusterUnprocessableEntity creates a GetClusterUnprocessableEntity with default headers values -func NewGetClusterUnprocessableEntity() *GetClusterUnprocessableEntity { - return &GetClusterUnprocessableEntity{} -} - -/* -GetClusterUnprocessableEntity describes a response with status code 422, with default header values. - -Unprocessable Entity, likely a bad parameter -*/ -type GetClusterUnprocessableEntity struct { - AccessControlAllowOrigin string - CacheControl string - - 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 -} - -func (o *GetClusterUnprocessableEntity) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // hydrates response header Access-Control-Allow-Origin - hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") - - if hdrAccessControlAllowOrigin != "" { - o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin - } - - // hydrates response header Cache-Control - hdrCacheControl := response.GetHeader("Cache-Control") - - if hdrCacheControl != "" { - o.CacheControl = hdrCacheControl - } - - o.Payload = new(devops_models.Error) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewGetClusterInternalServerError creates a GetClusterInternalServerError with default headers values -func NewGetClusterInternalServerError() *GetClusterInternalServerError { - return &GetClusterInternalServerError{} -} - -/* -GetClusterInternalServerError describes a response with status code 500, with default header values. - -Server Internal Error -*/ -type GetClusterInternalServerError struct { - AccessControlAllowOrigin string - - 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 -} - -func (o *GetClusterInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // hydrates response header Access-Control-Allow-Origin - hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") - - if hdrAccessControlAllowOrigin != "" { - o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin - } - - o.Payload = new(devops_models.Error) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} diff --git a/api/devops/devops_client/cluster/get_clusters_observable_parameters.go b/api/devops/devops_client/cluster/get_clusters_observable_parameters.go deleted file mode 100644 index a30308b..0000000 --- a/api/devops/devops_client/cluster/get_clusters_observable_parameters.go +++ /dev/null @@ -1,132 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -// (c) 2012-2020 by Taxnexus, Inc. -// All rights reserved worldwide. -// Proprietary product; unlicensed use is not allowed - -package cluster - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewGetClustersObservableParams creates a new GetClustersObservableParams 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 NewGetClustersObservableParams() *GetClustersObservableParams { - return &GetClustersObservableParams{ - timeout: cr.DefaultTimeout, - } -} - -// NewGetClustersObservableParamsWithTimeout creates a new GetClustersObservableParams object -// with the ability to set a timeout on a request. -func NewGetClustersObservableParamsWithTimeout(timeout time.Duration) *GetClustersObservableParams { - return &GetClustersObservableParams{ - timeout: timeout, - } -} - -// NewGetClustersObservableParamsWithContext creates a new GetClustersObservableParams object -// with the ability to set a context for a request. -func NewGetClustersObservableParamsWithContext(ctx context.Context) *GetClustersObservableParams { - return &GetClustersObservableParams{ - Context: ctx, - } -} - -// NewGetClustersObservableParamsWithHTTPClient creates a new GetClustersObservableParams object -// with the ability to set a custom HTTPClient for a request. -func NewGetClustersObservableParamsWithHTTPClient(client *http.Client) *GetClustersObservableParams { - return &GetClustersObservableParams{ - HTTPClient: client, - } -} - -/* -GetClustersObservableParams contains all the parameters to send to the API endpoint - - for the get clusters observable operation. - - Typically these are written to a http.Request. -*/ -type GetClustersObservableParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithDefaults hydrates default values in the get clusters observable params (not the query body). -// -// All values with no default are reset to their zero value. -func (o *GetClustersObservableParams) WithDefaults() *GetClustersObservableParams { - o.SetDefaults() - return o -} - -// SetDefaults hydrates default values in the get clusters observable params (not the query body). -// -// All values with no default are reset to their zero value. -func (o *GetClustersObservableParams) SetDefaults() { - // no default values defined for this parameter -} - -// WithTimeout adds the timeout to the get clusters observable params -func (o *GetClustersObservableParams) WithTimeout(timeout time.Duration) *GetClustersObservableParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the get clusters observable params -func (o *GetClustersObservableParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the get clusters observable params -func (o *GetClustersObservableParams) WithContext(ctx context.Context) *GetClustersObservableParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the get clusters observable params -func (o *GetClustersObservableParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the get clusters observable params -func (o *GetClustersObservableParams) WithHTTPClient(client *http.Client) *GetClustersObservableParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the get clusters observable params -func (o *GetClustersObservableParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *GetClustersObservableParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/api/devops/devops_client/cluster/get_clusters_observable_responses.go b/api/devops/devops_client/cluster/get_clusters_observable_responses.go deleted file mode 100644 index 8d1f365..0000000 --- a/api/devops/devops_client/cluster/get_clusters_observable_responses.go +++ /dev/null @@ -1,553 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -// (c) 2012-2020 by Taxnexus, Inc. -// All rights reserved worldwide. -// Proprietary product; unlicensed use is not allowed - -package cluster - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "code.tnxs.net/vernonkeenan/lib/api/devops/devops_models" -) - -// GetClustersObservableReader is a Reader for the GetClustersObservable structure. -type GetClustersObservableReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *GetClustersObservableReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewGetClustersObservableOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - case 401: - result := NewGetClustersObservableUnauthorized() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return nil, result - case 403: - result := NewGetClustersObservableForbidden() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return nil, result - case 404: - result := NewGetClustersObservableNotFound() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return nil, result - case 422: - result := NewGetClustersObservableUnprocessableEntity() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return nil, result - case 500: - result := NewGetClustersObservableInternalServerError() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return nil, result - default: - return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) - } -} - -// NewGetClustersObservableOK creates a GetClustersObservableOK with default headers values -func NewGetClustersObservableOK() *GetClustersObservableOK { - return &GetClustersObservableOK{} -} - -/* -GetClustersObservableOK describes a response with status code 200, with default header values. - -Single Cluster record response -*/ -type GetClustersObservableOK struct { - AccessControlAllowOrigin string - CacheControl string - - 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 -} - -func (o *GetClustersObservableOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // hydrates response header Access-Control-Allow-Origin - hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") - - if hdrAccessControlAllowOrigin != "" { - o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin - } - - // hydrates response header Cache-Control - hdrCacheControl := response.GetHeader("Cache-Control") - - if hdrCacheControl != "" { - o.CacheControl = hdrCacheControl - } - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewGetClustersObservableUnauthorized creates a GetClustersObservableUnauthorized with default headers values -func NewGetClustersObservableUnauthorized() *GetClustersObservableUnauthorized { - return &GetClustersObservableUnauthorized{} -} - -/* -GetClustersObservableUnauthorized describes a response with status code 401, with default header values. - -Access Unauthorized, invalid API-KEY was used -*/ -type GetClustersObservableUnauthorized struct { - AccessControlAllowOrigin string - CacheControl string - - 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 -} - -func (o *GetClustersObservableUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // hydrates response header Access-Control-Allow-Origin - hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") - - if hdrAccessControlAllowOrigin != "" { - o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin - } - - // hydrates response header Cache-Control - hdrCacheControl := response.GetHeader("Cache-Control") - - if hdrCacheControl != "" { - o.CacheControl = hdrCacheControl - } - - o.Payload = new(devops_models.Error) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewGetClustersObservableForbidden creates a GetClustersObservableForbidden with default headers values -func NewGetClustersObservableForbidden() *GetClustersObservableForbidden { - return &GetClustersObservableForbidden{} -} - -/* -GetClustersObservableForbidden describes a response with status code 403, with default header values. - -Access forbidden, account lacks access -*/ -type GetClustersObservableForbidden struct { - AccessControlAllowOrigin string - - 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 -} - -func (o *GetClustersObservableForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // hydrates response header Access-Control-Allow-Origin - hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") - - if hdrAccessControlAllowOrigin != "" { - o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin - } - - o.Payload = new(devops_models.Error) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewGetClustersObservableNotFound creates a GetClustersObservableNotFound with default headers values -func NewGetClustersObservableNotFound() *GetClustersObservableNotFound { - return &GetClustersObservableNotFound{} -} - -/* -GetClustersObservableNotFound describes a response with status code 404, with default header values. - -Resource was not found -*/ -type GetClustersObservableNotFound struct { - AccessControlAllowOrigin string - - 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 -} - -func (o *GetClustersObservableNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // hydrates response header Access-Control-Allow-Origin - hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") - - if hdrAccessControlAllowOrigin != "" { - o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin - } - - o.Payload = new(devops_models.Error) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewGetClustersObservableUnprocessableEntity creates a GetClustersObservableUnprocessableEntity with default headers values -func NewGetClustersObservableUnprocessableEntity() *GetClustersObservableUnprocessableEntity { - return &GetClustersObservableUnprocessableEntity{} -} - -/* -GetClustersObservableUnprocessableEntity describes a response with status code 422, with default header values. - -Unprocessable Entity, likely a bad parameter -*/ -type GetClustersObservableUnprocessableEntity struct { - AccessControlAllowOrigin string - CacheControl string - - 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 -} - -func (o *GetClustersObservableUnprocessableEntity) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // hydrates response header Access-Control-Allow-Origin - hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") - - if hdrAccessControlAllowOrigin != "" { - o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin - } - - // hydrates response header Cache-Control - hdrCacheControl := response.GetHeader("Cache-Control") - - if hdrCacheControl != "" { - o.CacheControl = hdrCacheControl - } - - o.Payload = new(devops_models.Error) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewGetClustersObservableInternalServerError creates a GetClustersObservableInternalServerError with default headers values -func NewGetClustersObservableInternalServerError() *GetClustersObservableInternalServerError { - return &GetClustersObservableInternalServerError{} -} - -/* -GetClustersObservableInternalServerError describes a response with status code 500, with default header values. - -Server Internal Error -*/ -type GetClustersObservableInternalServerError struct { - AccessControlAllowOrigin string - - 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 -} - -func (o *GetClustersObservableInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // hydrates response header Access-Control-Allow-Origin - hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") - - if hdrAccessControlAllowOrigin != "" { - o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin - } - - o.Payload = new(devops_models.Error) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} diff --git a/api/devops/devops_client/cors/cluster_options_parameters.go b/api/devops/devops_client/cors/cluster_options_parameters.go deleted file mode 100644 index 55e772a..0000000 --- a/api/devops/devops_client/cors/cluster_options_parameters.go +++ /dev/null @@ -1,132 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -// (c) 2012-2020 by Taxnexus, Inc. -// All rights reserved worldwide. -// Proprietary product; unlicensed use is not allowed - -package cors - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewClusterOptionsParams creates a new ClusterOptionsParams 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 NewClusterOptionsParams() *ClusterOptionsParams { - return &ClusterOptionsParams{ - timeout: cr.DefaultTimeout, - } -} - -// NewClusterOptionsParamsWithTimeout creates a new ClusterOptionsParams object -// with the ability to set a timeout on a request. -func NewClusterOptionsParamsWithTimeout(timeout time.Duration) *ClusterOptionsParams { - return &ClusterOptionsParams{ - timeout: timeout, - } -} - -// NewClusterOptionsParamsWithContext creates a new ClusterOptionsParams object -// with the ability to set a context for a request. -func NewClusterOptionsParamsWithContext(ctx context.Context) *ClusterOptionsParams { - return &ClusterOptionsParams{ - Context: ctx, - } -} - -// NewClusterOptionsParamsWithHTTPClient creates a new ClusterOptionsParams object -// with the ability to set a custom HTTPClient for a request. -func NewClusterOptionsParamsWithHTTPClient(client *http.Client) *ClusterOptionsParams { - return &ClusterOptionsParams{ - HTTPClient: client, - } -} - -/* -ClusterOptionsParams contains all the parameters to send to the API endpoint - - for the cluster options operation. - - Typically these are written to a http.Request. -*/ -type ClusterOptionsParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithDefaults hydrates default values in the cluster options params (not the query body). -// -// All values with no default are reset to their zero value. -func (o *ClusterOptionsParams) WithDefaults() *ClusterOptionsParams { - o.SetDefaults() - return o -} - -// SetDefaults hydrates default values in the cluster options params (not the query body). -// -// All values with no default are reset to their zero value. -func (o *ClusterOptionsParams) SetDefaults() { - // no default values defined for this parameter -} - -// WithTimeout adds the timeout to the cluster options params -func (o *ClusterOptionsParams) WithTimeout(timeout time.Duration) *ClusterOptionsParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the cluster options params -func (o *ClusterOptionsParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the cluster options params -func (o *ClusterOptionsParams) WithContext(ctx context.Context) *ClusterOptionsParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the cluster options params -func (o *ClusterOptionsParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the cluster options params -func (o *ClusterOptionsParams) WithHTTPClient(client *http.Client) *ClusterOptionsParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the cluster options params -func (o *ClusterOptionsParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *ClusterOptionsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/api/devops/devops_client/cors/cluster_options_responses.go b/api/devops/devops_client/cors/cluster_options_responses.go deleted file mode 100644 index f3f7f67..0000000 --- a/api/devops/devops_client/cors/cluster_options_responses.go +++ /dev/null @@ -1,148 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -// (c) 2012-2020 by Taxnexus, Inc. -// All rights reserved worldwide. -// Proprietary product; unlicensed use is not allowed - -package cors - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" -) - -// ClusterOptionsReader is a Reader for the ClusterOptions structure. -type ClusterOptionsReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *ClusterOptionsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewClusterOptionsOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) - } -} - -// NewClusterOptionsOK creates a ClusterOptionsOK with default headers values -func NewClusterOptionsOK() *ClusterOptionsOK { - return &ClusterOptionsOK{} -} - -/* -ClusterOptionsOK describes a response with status code 200, with default header values. - -CORS OPTIONS response -*/ -type ClusterOptionsOK struct { - AccessControlAllowCredentials string - AccessControlAllowHeaders string - AccessControlAllowMethods string - AccessControlAllowOrigin string - AccessControlExposeHeaders string - AccessControlMaxAge string - 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 - hdrAccessControlAllowCredentials := response.GetHeader("Access-Control-Allow-Credentials") - - if hdrAccessControlAllowCredentials != "" { - o.AccessControlAllowCredentials = hdrAccessControlAllowCredentials - } - - // hydrates response header Access-Control-Allow-Headers - hdrAccessControlAllowHeaders := response.GetHeader("Access-Control-Allow-Headers") - - if hdrAccessControlAllowHeaders != "" { - o.AccessControlAllowHeaders = hdrAccessControlAllowHeaders - } - - // hydrates response header Access-Control-Allow-Methods - hdrAccessControlAllowMethods := response.GetHeader("Access-Control-Allow-Methods") - - if hdrAccessControlAllowMethods != "" { - o.AccessControlAllowMethods = hdrAccessControlAllowMethods - } - - // hydrates response header Access-Control-Allow-Origin - hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") - - if hdrAccessControlAllowOrigin != "" { - o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin - } - - // hydrates response header Access-Control-Expose-Headers - hdrAccessControlExposeHeaders := response.GetHeader("Access-Control-Expose-Headers") - - if hdrAccessControlExposeHeaders != "" { - o.AccessControlExposeHeaders = hdrAccessControlExposeHeaders - } - - // hydrates response header Access-Control-Max-Age - hdrAccessControlMaxAge := response.GetHeader("Access-Control-Max-Age") - - if hdrAccessControlMaxAge != "" { - o.AccessControlMaxAge = hdrAccessControlMaxAge - } - - // hydrates response header Cache-Control - hdrCacheControl := response.GetHeader("Cache-Control") - - if hdrCacheControl != "" { - o.CacheControl = hdrCacheControl - } - - return nil -} diff --git a/api/devops/devops_client/cors/clusters_options_parameters.go b/api/devops/devops_client/cors/clusters_options_parameters.go deleted file mode 100644 index fd85f79..0000000 --- a/api/devops/devops_client/cors/clusters_options_parameters.go +++ /dev/null @@ -1,132 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -// (c) 2012-2020 by Taxnexus, Inc. -// All rights reserved worldwide. -// Proprietary product; unlicensed use is not allowed - -package cors - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewClustersOptionsParams creates a new ClustersOptionsParams 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 NewClustersOptionsParams() *ClustersOptionsParams { - return &ClustersOptionsParams{ - timeout: cr.DefaultTimeout, - } -} - -// NewClustersOptionsParamsWithTimeout creates a new ClustersOptionsParams object -// with the ability to set a timeout on a request. -func NewClustersOptionsParamsWithTimeout(timeout time.Duration) *ClustersOptionsParams { - return &ClustersOptionsParams{ - timeout: timeout, - } -} - -// NewClustersOptionsParamsWithContext creates a new ClustersOptionsParams object -// with the ability to set a context for a request. -func NewClustersOptionsParamsWithContext(ctx context.Context) *ClustersOptionsParams { - return &ClustersOptionsParams{ - Context: ctx, - } -} - -// NewClustersOptionsParamsWithHTTPClient creates a new ClustersOptionsParams object -// with the ability to set a custom HTTPClient for a request. -func NewClustersOptionsParamsWithHTTPClient(client *http.Client) *ClustersOptionsParams { - return &ClustersOptionsParams{ - HTTPClient: client, - } -} - -/* -ClustersOptionsParams contains all the parameters to send to the API endpoint - - for the clusters options operation. - - Typically these are written to a http.Request. -*/ -type ClustersOptionsParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithDefaults hydrates default values in the clusters options params (not the query body). -// -// All values with no default are reset to their zero value. -func (o *ClustersOptionsParams) WithDefaults() *ClustersOptionsParams { - o.SetDefaults() - return o -} - -// SetDefaults hydrates default values in the clusters options params (not the query body). -// -// All values with no default are reset to their zero value. -func (o *ClustersOptionsParams) SetDefaults() { - // no default values defined for this parameter -} - -// WithTimeout adds the timeout to the clusters options params -func (o *ClustersOptionsParams) WithTimeout(timeout time.Duration) *ClustersOptionsParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the clusters options params -func (o *ClustersOptionsParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the clusters options params -func (o *ClustersOptionsParams) WithContext(ctx context.Context) *ClustersOptionsParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the clusters options params -func (o *ClustersOptionsParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the clusters options params -func (o *ClustersOptionsParams) WithHTTPClient(client *http.Client) *ClustersOptionsParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the clusters options params -func (o *ClustersOptionsParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *ClustersOptionsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/api/devops/devops_client/cors/clusters_options_responses.go b/api/devops/devops_client/cors/clusters_options_responses.go deleted file mode 100644 index 1a20b31..0000000 --- a/api/devops/devops_client/cors/clusters_options_responses.go +++ /dev/null @@ -1,148 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -// (c) 2012-2020 by Taxnexus, Inc. -// All rights reserved worldwide. -// Proprietary product; unlicensed use is not allowed - -package cors - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" -) - -// ClustersOptionsReader is a Reader for the ClustersOptions structure. -type ClustersOptionsReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *ClustersOptionsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewClustersOptionsOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) - } -} - -// NewClustersOptionsOK creates a ClustersOptionsOK with default headers values -func NewClustersOptionsOK() *ClustersOptionsOK { - return &ClustersOptionsOK{} -} - -/* -ClustersOptionsOK describes a response with status code 200, with default header values. - -CORS OPTIONS response -*/ -type ClustersOptionsOK struct { - AccessControlAllowCredentials string - AccessControlAllowHeaders string - AccessControlAllowMethods string - AccessControlAllowOrigin string - AccessControlExposeHeaders string - AccessControlMaxAge string - 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 - hdrAccessControlAllowCredentials := response.GetHeader("Access-Control-Allow-Credentials") - - if hdrAccessControlAllowCredentials != "" { - o.AccessControlAllowCredentials = hdrAccessControlAllowCredentials - } - - // hydrates response header Access-Control-Allow-Headers - hdrAccessControlAllowHeaders := response.GetHeader("Access-Control-Allow-Headers") - - if hdrAccessControlAllowHeaders != "" { - o.AccessControlAllowHeaders = hdrAccessControlAllowHeaders - } - - // hydrates response header Access-Control-Allow-Methods - hdrAccessControlAllowMethods := response.GetHeader("Access-Control-Allow-Methods") - - if hdrAccessControlAllowMethods != "" { - o.AccessControlAllowMethods = hdrAccessControlAllowMethods - } - - // hydrates response header Access-Control-Allow-Origin - hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") - - if hdrAccessControlAllowOrigin != "" { - o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin - } - - // hydrates response header Access-Control-Expose-Headers - hdrAccessControlExposeHeaders := response.GetHeader("Access-Control-Expose-Headers") - - if hdrAccessControlExposeHeaders != "" { - o.AccessControlExposeHeaders = hdrAccessControlExposeHeaders - } - - // hydrates response header Access-Control-Max-Age - hdrAccessControlMaxAge := response.GetHeader("Access-Control-Max-Age") - - if hdrAccessControlMaxAge != "" { - o.AccessControlMaxAge = hdrAccessControlMaxAge - } - - // hydrates response header Cache-Control - hdrCacheControl := response.GetHeader("Cache-Control") - - if hdrCacheControl != "" { - o.CacheControl = hdrCacheControl - } - - return nil -} diff --git a/api/devops/devops_client/cors/cors_client.go b/api/devops/devops_client/cors/cors_client.go deleted file mode 100644 index aedf11b..0000000 --- a/api/devops/devops_client/cors/cors_client.go +++ /dev/null @@ -1,443 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -// (c) 2012-2020 by Taxnexus, Inc. -// All rights reserved worldwide. -// Proprietary product; unlicensed use is not allowed - -package cors - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" -) - -// New creates a new cors API client. -func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService { - return &Client{transport: transport, formats: formats} -} - -/* -Client for cors API -*/ -type Client struct { - transport runtime.ClientTransport - 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 { - ClusterOptions(params *ClusterOptionsParams, opts ...ClientOption) (*ClusterOptionsOK, error) - - ClustersOptions(params *ClustersOptionsParams, opts ...ClientOption) (*ClustersOptionsOK, error) - - DatabaseOptions(params *DatabaseOptionsParams, opts ...ClientOption) (*DatabaseOptionsOK, error) - - DatabasesOptions(params *DatabasesOptionsParams, opts ...ClientOption) (*DatabasesOptionsOK, error) - - TemplateOptions(params *TemplateOptionsParams, opts ...ClientOption) (*TemplateOptionsOK, error) - - TemplatesOptions(params *TemplatesOptionsParams, opts ...ClientOption) (*TemplatesOptionsOK, error) - - TenantOptions(params *TenantOptionsParams, opts ...ClientOption) (*TenantOptionsOK, error) - - TenantsOptions(params *TenantsOptionsParams, opts ...ClientOption) (*TenantsOptionsOK, error) - - UserOptions(params *UserOptionsParams, opts ...ClientOption) (*UserOptionsOK, error) - - UsersOptions(params *UsersOptionsParams, opts ...ClientOption) (*UsersOptionsOK, error) - - SetTransport(transport runtime.ClientTransport) -} - -/* -ClusterOptions CORS support -*/ -func (a *Client) ClusterOptions(params *ClusterOptionsParams, opts ...ClientOption) (*ClusterOptionsOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewClusterOptionsParams() - } - op := &runtime.ClientOperation{ - ID: "clusterOptions", - Method: "OPTIONS", - PathPattern: "/clusters/observable", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &ClusterOptionsReader{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 - } - success, ok := result.(*ClusterOptionsOK) - if ok { - return success, nil - } - // unexpected success response - // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for clusterOptions: API contract not enforced by server. Client expected to get an error, but got: %T", result) - panic(msg) -} - -/* -ClustersOptions CORS support -*/ -func (a *Client) ClustersOptions(params *ClustersOptionsParams, opts ...ClientOption) (*ClustersOptionsOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewClustersOptionsParams() - } - op := &runtime.ClientOperation{ - ID: "clustersOptions", - Method: "OPTIONS", - PathPattern: "/clusters", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &ClustersOptionsReader{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 - } - success, ok := result.(*ClustersOptionsOK) - if ok { - return success, nil - } - // unexpected success response - // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for clustersOptions: API contract not enforced by server. Client expected to get an error, but got: %T", result) - panic(msg) -} - -/* -DatabaseOptions CORS support -*/ -func (a *Client) DatabaseOptions(params *DatabaseOptionsParams, opts ...ClientOption) (*DatabaseOptionsOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewDatabaseOptionsParams() - } - op := &runtime.ClientOperation{ - ID: "databaseOptions", - Method: "OPTIONS", - PathPattern: "/databases/observable", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &DatabaseOptionsReader{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 - } - success, ok := result.(*DatabaseOptionsOK) - if ok { - return success, nil - } - // unexpected success response - // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for databaseOptions: API contract not enforced by server. Client expected to get an error, but got: %T", result) - panic(msg) -} - -/* -DatabasesOptions CORS support -*/ -func (a *Client) DatabasesOptions(params *DatabasesOptionsParams, opts ...ClientOption) (*DatabasesOptionsOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewDatabasesOptionsParams() - } - op := &runtime.ClientOperation{ - ID: "databasesOptions", - Method: "OPTIONS", - PathPattern: "/databases", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &DatabasesOptionsReader{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 - } - success, ok := result.(*DatabasesOptionsOK) - if ok { - return success, nil - } - // unexpected success response - // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for databasesOptions: API contract not enforced by server. Client expected to get an error, but got: %T", result) - panic(msg) -} - -/* -TemplateOptions CORS support -*/ -func (a *Client) TemplateOptions(params *TemplateOptionsParams, opts ...ClientOption) (*TemplateOptionsOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewTemplateOptionsParams() - } - op := &runtime.ClientOperation{ - ID: "templateOptions", - Method: "OPTIONS", - PathPattern: "/templates/observable", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &TemplateOptionsReader{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 - } - success, ok := result.(*TemplateOptionsOK) - if ok { - return success, nil - } - // unexpected success response - // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for templateOptions: API contract not enforced by server. Client expected to get an error, but got: %T", result) - panic(msg) -} - -/* -TemplatesOptions CORS support -*/ -func (a *Client) TemplatesOptions(params *TemplatesOptionsParams, opts ...ClientOption) (*TemplatesOptionsOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewTemplatesOptionsParams() - } - op := &runtime.ClientOperation{ - ID: "templatesOptions", - Method: "OPTIONS", - PathPattern: "/templates", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &TemplatesOptionsReader{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 - } - success, ok := result.(*TemplatesOptionsOK) - if ok { - return success, nil - } - // unexpected success response - // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for templatesOptions: API contract not enforced by server. Client expected to get an error, but got: %T", result) - panic(msg) -} - -/* -TenantOptions CORS support -*/ -func (a *Client) TenantOptions(params *TenantOptionsParams, opts ...ClientOption) (*TenantOptionsOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewTenantOptionsParams() - } - op := &runtime.ClientOperation{ - ID: "tenantOptions", - Method: "OPTIONS", - PathPattern: "/tenants/observable", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &TenantOptionsReader{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 - } - success, ok := result.(*TenantOptionsOK) - if ok { - return success, nil - } - // unexpected success response - // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for tenantOptions: API contract not enforced by server. Client expected to get an error, but got: %T", result) - panic(msg) -} - -/* -TenantsOptions CORS support -*/ -func (a *Client) TenantsOptions(params *TenantsOptionsParams, opts ...ClientOption) (*TenantsOptionsOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewTenantsOptionsParams() - } - op := &runtime.ClientOperation{ - ID: "tenantsOptions", - Method: "OPTIONS", - PathPattern: "/tenants", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &TenantsOptionsReader{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 - } - success, ok := result.(*TenantsOptionsOK) - if ok { - return success, nil - } - // unexpected success response - // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for tenantsOptions: API contract not enforced by server. Client expected to get an error, but got: %T", result) - panic(msg) -} - -/* -UserOptions CORS support -*/ -func (a *Client) UserOptions(params *UserOptionsParams, opts ...ClientOption) (*UserOptionsOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewUserOptionsParams() - } - op := &runtime.ClientOperation{ - ID: "userOptions", - Method: "OPTIONS", - PathPattern: "/users/observable", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &UserOptionsReader{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 - } - success, ok := result.(*UserOptionsOK) - if ok { - return success, nil - } - // unexpected success response - // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for userOptions: API contract not enforced by server. Client expected to get an error, but got: %T", result) - panic(msg) -} - -/* -UsersOptions CORS support -*/ -func (a *Client) UsersOptions(params *UsersOptionsParams, opts ...ClientOption) (*UsersOptionsOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewUsersOptionsParams() - } - op := &runtime.ClientOperation{ - ID: "usersOptions", - Method: "OPTIONS", - PathPattern: "/users", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &UsersOptionsReader{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 - } - success, ok := result.(*UsersOptionsOK) - if ok { - return success, nil - } - // unexpected success response - // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for usersOptions: API contract not enforced by server. Client expected to get an error, but got: %T", result) - panic(msg) -} - -// SetTransport changes the transport on the client -func (a *Client) SetTransport(transport runtime.ClientTransport) { - a.transport = transport -} diff --git a/api/devops/devops_client/cors/database_options_parameters.go b/api/devops/devops_client/cors/database_options_parameters.go deleted file mode 100644 index a6c2dd6..0000000 --- a/api/devops/devops_client/cors/database_options_parameters.go +++ /dev/null @@ -1,132 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -// (c) 2012-2020 by Taxnexus, Inc. -// All rights reserved worldwide. -// Proprietary product; unlicensed use is not allowed - -package cors - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewDatabaseOptionsParams creates a new DatabaseOptionsParams 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 NewDatabaseOptionsParams() *DatabaseOptionsParams { - return &DatabaseOptionsParams{ - timeout: cr.DefaultTimeout, - } -} - -// NewDatabaseOptionsParamsWithTimeout creates a new DatabaseOptionsParams object -// with the ability to set a timeout on a request. -func NewDatabaseOptionsParamsWithTimeout(timeout time.Duration) *DatabaseOptionsParams { - return &DatabaseOptionsParams{ - timeout: timeout, - } -} - -// NewDatabaseOptionsParamsWithContext creates a new DatabaseOptionsParams object -// with the ability to set a context for a request. -func NewDatabaseOptionsParamsWithContext(ctx context.Context) *DatabaseOptionsParams { - return &DatabaseOptionsParams{ - Context: ctx, - } -} - -// NewDatabaseOptionsParamsWithHTTPClient creates a new DatabaseOptionsParams object -// with the ability to set a custom HTTPClient for a request. -func NewDatabaseOptionsParamsWithHTTPClient(client *http.Client) *DatabaseOptionsParams { - return &DatabaseOptionsParams{ - HTTPClient: client, - } -} - -/* -DatabaseOptionsParams contains all the parameters to send to the API endpoint - - for the database options operation. - - Typically these are written to a http.Request. -*/ -type DatabaseOptionsParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithDefaults hydrates default values in the database options params (not the query body). -// -// All values with no default are reset to their zero value. -func (o *DatabaseOptionsParams) WithDefaults() *DatabaseOptionsParams { - o.SetDefaults() - return o -} - -// SetDefaults hydrates default values in the database options params (not the query body). -// -// All values with no default are reset to their zero value. -func (o *DatabaseOptionsParams) SetDefaults() { - // no default values defined for this parameter -} - -// WithTimeout adds the timeout to the database options params -func (o *DatabaseOptionsParams) WithTimeout(timeout time.Duration) *DatabaseOptionsParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the database options params -func (o *DatabaseOptionsParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the database options params -func (o *DatabaseOptionsParams) WithContext(ctx context.Context) *DatabaseOptionsParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the database options params -func (o *DatabaseOptionsParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the database options params -func (o *DatabaseOptionsParams) WithHTTPClient(client *http.Client) *DatabaseOptionsParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the database options params -func (o *DatabaseOptionsParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *DatabaseOptionsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/api/devops/devops_client/cors/database_options_responses.go b/api/devops/devops_client/cors/database_options_responses.go deleted file mode 100644 index 3a41c1e..0000000 --- a/api/devops/devops_client/cors/database_options_responses.go +++ /dev/null @@ -1,148 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -// (c) 2012-2020 by Taxnexus, Inc. -// All rights reserved worldwide. -// Proprietary product; unlicensed use is not allowed - -package cors - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" -) - -// DatabaseOptionsReader is a Reader for the DatabaseOptions structure. -type DatabaseOptionsReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *DatabaseOptionsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewDatabaseOptionsOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) - } -} - -// NewDatabaseOptionsOK creates a DatabaseOptionsOK with default headers values -func NewDatabaseOptionsOK() *DatabaseOptionsOK { - return &DatabaseOptionsOK{} -} - -/* -DatabaseOptionsOK describes a response with status code 200, with default header values. - -CORS OPTIONS response -*/ -type DatabaseOptionsOK struct { - AccessControlAllowCredentials string - AccessControlAllowHeaders string - AccessControlAllowMethods string - AccessControlAllowOrigin string - AccessControlExposeHeaders string - AccessControlMaxAge string - 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 - hdrAccessControlAllowCredentials := response.GetHeader("Access-Control-Allow-Credentials") - - if hdrAccessControlAllowCredentials != "" { - o.AccessControlAllowCredentials = hdrAccessControlAllowCredentials - } - - // hydrates response header Access-Control-Allow-Headers - hdrAccessControlAllowHeaders := response.GetHeader("Access-Control-Allow-Headers") - - if hdrAccessControlAllowHeaders != "" { - o.AccessControlAllowHeaders = hdrAccessControlAllowHeaders - } - - // hydrates response header Access-Control-Allow-Methods - hdrAccessControlAllowMethods := response.GetHeader("Access-Control-Allow-Methods") - - if hdrAccessControlAllowMethods != "" { - o.AccessControlAllowMethods = hdrAccessControlAllowMethods - } - - // hydrates response header Access-Control-Allow-Origin - hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") - - if hdrAccessControlAllowOrigin != "" { - o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin - } - - // hydrates response header Access-Control-Expose-Headers - hdrAccessControlExposeHeaders := response.GetHeader("Access-Control-Expose-Headers") - - if hdrAccessControlExposeHeaders != "" { - o.AccessControlExposeHeaders = hdrAccessControlExposeHeaders - } - - // hydrates response header Access-Control-Max-Age - hdrAccessControlMaxAge := response.GetHeader("Access-Control-Max-Age") - - if hdrAccessControlMaxAge != "" { - o.AccessControlMaxAge = hdrAccessControlMaxAge - } - - // hydrates response header Cache-Control - hdrCacheControl := response.GetHeader("Cache-Control") - - if hdrCacheControl != "" { - o.CacheControl = hdrCacheControl - } - - return nil -} diff --git a/api/devops/devops_client/cors/databases_options_parameters.go b/api/devops/devops_client/cors/databases_options_parameters.go deleted file mode 100644 index 7593faa..0000000 --- a/api/devops/devops_client/cors/databases_options_parameters.go +++ /dev/null @@ -1,132 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -// (c) 2012-2020 by Taxnexus, Inc. -// All rights reserved worldwide. -// Proprietary product; unlicensed use is not allowed - -package cors - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewDatabasesOptionsParams creates a new DatabasesOptionsParams 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 NewDatabasesOptionsParams() *DatabasesOptionsParams { - return &DatabasesOptionsParams{ - timeout: cr.DefaultTimeout, - } -} - -// NewDatabasesOptionsParamsWithTimeout creates a new DatabasesOptionsParams object -// with the ability to set a timeout on a request. -func NewDatabasesOptionsParamsWithTimeout(timeout time.Duration) *DatabasesOptionsParams { - return &DatabasesOptionsParams{ - timeout: timeout, - } -} - -// NewDatabasesOptionsParamsWithContext creates a new DatabasesOptionsParams object -// with the ability to set a context for a request. -func NewDatabasesOptionsParamsWithContext(ctx context.Context) *DatabasesOptionsParams { - return &DatabasesOptionsParams{ - Context: ctx, - } -} - -// NewDatabasesOptionsParamsWithHTTPClient creates a new DatabasesOptionsParams object -// with the ability to set a custom HTTPClient for a request. -func NewDatabasesOptionsParamsWithHTTPClient(client *http.Client) *DatabasesOptionsParams { - return &DatabasesOptionsParams{ - HTTPClient: client, - } -} - -/* -DatabasesOptionsParams contains all the parameters to send to the API endpoint - - for the databases options operation. - - Typically these are written to a http.Request. -*/ -type DatabasesOptionsParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithDefaults hydrates default values in the databases options params (not the query body). -// -// All values with no default are reset to their zero value. -func (o *DatabasesOptionsParams) WithDefaults() *DatabasesOptionsParams { - o.SetDefaults() - return o -} - -// SetDefaults hydrates default values in the databases options params (not the query body). -// -// All values with no default are reset to their zero value. -func (o *DatabasesOptionsParams) SetDefaults() { - // no default values defined for this parameter -} - -// WithTimeout adds the timeout to the databases options params -func (o *DatabasesOptionsParams) WithTimeout(timeout time.Duration) *DatabasesOptionsParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the databases options params -func (o *DatabasesOptionsParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the databases options params -func (o *DatabasesOptionsParams) WithContext(ctx context.Context) *DatabasesOptionsParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the databases options params -func (o *DatabasesOptionsParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the databases options params -func (o *DatabasesOptionsParams) WithHTTPClient(client *http.Client) *DatabasesOptionsParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the databases options params -func (o *DatabasesOptionsParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *DatabasesOptionsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/api/devops/devops_client/cors/databases_options_responses.go b/api/devops/devops_client/cors/databases_options_responses.go deleted file mode 100644 index 23a4c5e..0000000 --- a/api/devops/devops_client/cors/databases_options_responses.go +++ /dev/null @@ -1,148 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -// (c) 2012-2020 by Taxnexus, Inc. -// All rights reserved worldwide. -// Proprietary product; unlicensed use is not allowed - -package cors - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" -) - -// DatabasesOptionsReader is a Reader for the DatabasesOptions structure. -type DatabasesOptionsReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *DatabasesOptionsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewDatabasesOptionsOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) - } -} - -// NewDatabasesOptionsOK creates a DatabasesOptionsOK with default headers values -func NewDatabasesOptionsOK() *DatabasesOptionsOK { - return &DatabasesOptionsOK{} -} - -/* -DatabasesOptionsOK describes a response with status code 200, with default header values. - -CORS OPTIONS response -*/ -type DatabasesOptionsOK struct { - AccessControlAllowCredentials string - AccessControlAllowHeaders string - AccessControlAllowMethods string - AccessControlAllowOrigin string - AccessControlExposeHeaders string - AccessControlMaxAge string - 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 - hdrAccessControlAllowCredentials := response.GetHeader("Access-Control-Allow-Credentials") - - if hdrAccessControlAllowCredentials != "" { - o.AccessControlAllowCredentials = hdrAccessControlAllowCredentials - } - - // hydrates response header Access-Control-Allow-Headers - hdrAccessControlAllowHeaders := response.GetHeader("Access-Control-Allow-Headers") - - if hdrAccessControlAllowHeaders != "" { - o.AccessControlAllowHeaders = hdrAccessControlAllowHeaders - } - - // hydrates response header Access-Control-Allow-Methods - hdrAccessControlAllowMethods := response.GetHeader("Access-Control-Allow-Methods") - - if hdrAccessControlAllowMethods != "" { - o.AccessControlAllowMethods = hdrAccessControlAllowMethods - } - - // hydrates response header Access-Control-Allow-Origin - hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") - - if hdrAccessControlAllowOrigin != "" { - o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin - } - - // hydrates response header Access-Control-Expose-Headers - hdrAccessControlExposeHeaders := response.GetHeader("Access-Control-Expose-Headers") - - if hdrAccessControlExposeHeaders != "" { - o.AccessControlExposeHeaders = hdrAccessControlExposeHeaders - } - - // hydrates response header Access-Control-Max-Age - hdrAccessControlMaxAge := response.GetHeader("Access-Control-Max-Age") - - if hdrAccessControlMaxAge != "" { - o.AccessControlMaxAge = hdrAccessControlMaxAge - } - - // hydrates response header Cache-Control - hdrCacheControl := response.GetHeader("Cache-Control") - - if hdrCacheControl != "" { - o.CacheControl = hdrCacheControl - } - - return nil -} diff --git a/api/devops/devops_client/cors/template_options_parameters.go b/api/devops/devops_client/cors/template_options_parameters.go deleted file mode 100644 index 6ecc5c2..0000000 --- a/api/devops/devops_client/cors/template_options_parameters.go +++ /dev/null @@ -1,132 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -// (c) 2012-2020 by Taxnexus, Inc. -// All rights reserved worldwide. -// Proprietary product; unlicensed use is not allowed - -package cors - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewTemplateOptionsParams creates a new TemplateOptionsParams 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 NewTemplateOptionsParams() *TemplateOptionsParams { - return &TemplateOptionsParams{ - timeout: cr.DefaultTimeout, - } -} - -// NewTemplateOptionsParamsWithTimeout creates a new TemplateOptionsParams object -// with the ability to set a timeout on a request. -func NewTemplateOptionsParamsWithTimeout(timeout time.Duration) *TemplateOptionsParams { - return &TemplateOptionsParams{ - timeout: timeout, - } -} - -// NewTemplateOptionsParamsWithContext creates a new TemplateOptionsParams object -// with the ability to set a context for a request. -func NewTemplateOptionsParamsWithContext(ctx context.Context) *TemplateOptionsParams { - return &TemplateOptionsParams{ - Context: ctx, - } -} - -// NewTemplateOptionsParamsWithHTTPClient creates a new TemplateOptionsParams object -// with the ability to set a custom HTTPClient for a request. -func NewTemplateOptionsParamsWithHTTPClient(client *http.Client) *TemplateOptionsParams { - return &TemplateOptionsParams{ - HTTPClient: client, - } -} - -/* -TemplateOptionsParams contains all the parameters to send to the API endpoint - - for the template options operation. - - Typically these are written to a http.Request. -*/ -type TemplateOptionsParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithDefaults hydrates default values in the template options params (not the query body). -// -// All values with no default are reset to their zero value. -func (o *TemplateOptionsParams) WithDefaults() *TemplateOptionsParams { - o.SetDefaults() - return o -} - -// SetDefaults hydrates default values in the template options params (not the query body). -// -// All values with no default are reset to their zero value. -func (o *TemplateOptionsParams) SetDefaults() { - // no default values defined for this parameter -} - -// WithTimeout adds the timeout to the template options params -func (o *TemplateOptionsParams) WithTimeout(timeout time.Duration) *TemplateOptionsParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the template options params -func (o *TemplateOptionsParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the template options params -func (o *TemplateOptionsParams) WithContext(ctx context.Context) *TemplateOptionsParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the template options params -func (o *TemplateOptionsParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the template options params -func (o *TemplateOptionsParams) WithHTTPClient(client *http.Client) *TemplateOptionsParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the template options params -func (o *TemplateOptionsParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *TemplateOptionsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/api/devops/devops_client/cors/template_options_responses.go b/api/devops/devops_client/cors/template_options_responses.go deleted file mode 100644 index 595f1fb..0000000 --- a/api/devops/devops_client/cors/template_options_responses.go +++ /dev/null @@ -1,148 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -// (c) 2012-2020 by Taxnexus, Inc. -// All rights reserved worldwide. -// Proprietary product; unlicensed use is not allowed - -package cors - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" -) - -// TemplateOptionsReader is a Reader for the TemplateOptions structure. -type TemplateOptionsReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *TemplateOptionsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewTemplateOptionsOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) - } -} - -// NewTemplateOptionsOK creates a TemplateOptionsOK with default headers values -func NewTemplateOptionsOK() *TemplateOptionsOK { - return &TemplateOptionsOK{} -} - -/* -TemplateOptionsOK describes a response with status code 200, with default header values. - -CORS OPTIONS response -*/ -type TemplateOptionsOK struct { - AccessControlAllowCredentials string - AccessControlAllowHeaders string - AccessControlAllowMethods string - AccessControlAllowOrigin string - AccessControlExposeHeaders string - AccessControlMaxAge string - 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 - hdrAccessControlAllowCredentials := response.GetHeader("Access-Control-Allow-Credentials") - - if hdrAccessControlAllowCredentials != "" { - o.AccessControlAllowCredentials = hdrAccessControlAllowCredentials - } - - // hydrates response header Access-Control-Allow-Headers - hdrAccessControlAllowHeaders := response.GetHeader("Access-Control-Allow-Headers") - - if hdrAccessControlAllowHeaders != "" { - o.AccessControlAllowHeaders = hdrAccessControlAllowHeaders - } - - // hydrates response header Access-Control-Allow-Methods - hdrAccessControlAllowMethods := response.GetHeader("Access-Control-Allow-Methods") - - if hdrAccessControlAllowMethods != "" { - o.AccessControlAllowMethods = hdrAccessControlAllowMethods - } - - // hydrates response header Access-Control-Allow-Origin - hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") - - if hdrAccessControlAllowOrigin != "" { - o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin - } - - // hydrates response header Access-Control-Expose-Headers - hdrAccessControlExposeHeaders := response.GetHeader("Access-Control-Expose-Headers") - - if hdrAccessControlExposeHeaders != "" { - o.AccessControlExposeHeaders = hdrAccessControlExposeHeaders - } - - // hydrates response header Access-Control-Max-Age - hdrAccessControlMaxAge := response.GetHeader("Access-Control-Max-Age") - - if hdrAccessControlMaxAge != "" { - o.AccessControlMaxAge = hdrAccessControlMaxAge - } - - // hydrates response header Cache-Control - hdrCacheControl := response.GetHeader("Cache-Control") - - if hdrCacheControl != "" { - o.CacheControl = hdrCacheControl - } - - return nil -} diff --git a/api/devops/devops_client/cors/templates_options_parameters.go b/api/devops/devops_client/cors/templates_options_parameters.go deleted file mode 100644 index e351481..0000000 --- a/api/devops/devops_client/cors/templates_options_parameters.go +++ /dev/null @@ -1,132 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -// (c) 2012-2020 by Taxnexus, Inc. -// All rights reserved worldwide. -// Proprietary product; unlicensed use is not allowed - -package cors - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewTemplatesOptionsParams creates a new TemplatesOptionsParams 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 NewTemplatesOptionsParams() *TemplatesOptionsParams { - return &TemplatesOptionsParams{ - timeout: cr.DefaultTimeout, - } -} - -// NewTemplatesOptionsParamsWithTimeout creates a new TemplatesOptionsParams object -// with the ability to set a timeout on a request. -func NewTemplatesOptionsParamsWithTimeout(timeout time.Duration) *TemplatesOptionsParams { - return &TemplatesOptionsParams{ - timeout: timeout, - } -} - -// NewTemplatesOptionsParamsWithContext creates a new TemplatesOptionsParams object -// with the ability to set a context for a request. -func NewTemplatesOptionsParamsWithContext(ctx context.Context) *TemplatesOptionsParams { - return &TemplatesOptionsParams{ - Context: ctx, - } -} - -// NewTemplatesOptionsParamsWithHTTPClient creates a new TemplatesOptionsParams object -// with the ability to set a custom HTTPClient for a request. -func NewTemplatesOptionsParamsWithHTTPClient(client *http.Client) *TemplatesOptionsParams { - return &TemplatesOptionsParams{ - HTTPClient: client, - } -} - -/* -TemplatesOptionsParams contains all the parameters to send to the API endpoint - - for the templates options operation. - - Typically these are written to a http.Request. -*/ -type TemplatesOptionsParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithDefaults hydrates default values in the templates options params (not the query body). -// -// All values with no default are reset to their zero value. -func (o *TemplatesOptionsParams) WithDefaults() *TemplatesOptionsParams { - o.SetDefaults() - return o -} - -// SetDefaults hydrates default values in the templates options params (not the query body). -// -// All values with no default are reset to their zero value. -func (o *TemplatesOptionsParams) SetDefaults() { - // no default values defined for this parameter -} - -// WithTimeout adds the timeout to the templates options params -func (o *TemplatesOptionsParams) WithTimeout(timeout time.Duration) *TemplatesOptionsParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the templates options params -func (o *TemplatesOptionsParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the templates options params -func (o *TemplatesOptionsParams) WithContext(ctx context.Context) *TemplatesOptionsParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the templates options params -func (o *TemplatesOptionsParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the templates options params -func (o *TemplatesOptionsParams) WithHTTPClient(client *http.Client) *TemplatesOptionsParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the templates options params -func (o *TemplatesOptionsParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *TemplatesOptionsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/api/devops/devops_client/cors/templates_options_responses.go b/api/devops/devops_client/cors/templates_options_responses.go deleted file mode 100644 index 2eb2959..0000000 --- a/api/devops/devops_client/cors/templates_options_responses.go +++ /dev/null @@ -1,148 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -// (c) 2012-2020 by Taxnexus, Inc. -// All rights reserved worldwide. -// Proprietary product; unlicensed use is not allowed - -package cors - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" -) - -// TemplatesOptionsReader is a Reader for the TemplatesOptions structure. -type TemplatesOptionsReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *TemplatesOptionsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewTemplatesOptionsOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) - } -} - -// NewTemplatesOptionsOK creates a TemplatesOptionsOK with default headers values -func NewTemplatesOptionsOK() *TemplatesOptionsOK { - return &TemplatesOptionsOK{} -} - -/* -TemplatesOptionsOK describes a response with status code 200, with default header values. - -CORS OPTIONS response -*/ -type TemplatesOptionsOK struct { - AccessControlAllowCredentials string - AccessControlAllowHeaders string - AccessControlAllowMethods string - AccessControlAllowOrigin string - AccessControlExposeHeaders string - AccessControlMaxAge string - 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 - hdrAccessControlAllowCredentials := response.GetHeader("Access-Control-Allow-Credentials") - - if hdrAccessControlAllowCredentials != "" { - o.AccessControlAllowCredentials = hdrAccessControlAllowCredentials - } - - // hydrates response header Access-Control-Allow-Headers - hdrAccessControlAllowHeaders := response.GetHeader("Access-Control-Allow-Headers") - - if hdrAccessControlAllowHeaders != "" { - o.AccessControlAllowHeaders = hdrAccessControlAllowHeaders - } - - // hydrates response header Access-Control-Allow-Methods - hdrAccessControlAllowMethods := response.GetHeader("Access-Control-Allow-Methods") - - if hdrAccessControlAllowMethods != "" { - o.AccessControlAllowMethods = hdrAccessControlAllowMethods - } - - // hydrates response header Access-Control-Allow-Origin - hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") - - if hdrAccessControlAllowOrigin != "" { - o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin - } - - // hydrates response header Access-Control-Expose-Headers - hdrAccessControlExposeHeaders := response.GetHeader("Access-Control-Expose-Headers") - - if hdrAccessControlExposeHeaders != "" { - o.AccessControlExposeHeaders = hdrAccessControlExposeHeaders - } - - // hydrates response header Access-Control-Max-Age - hdrAccessControlMaxAge := response.GetHeader("Access-Control-Max-Age") - - if hdrAccessControlMaxAge != "" { - o.AccessControlMaxAge = hdrAccessControlMaxAge - } - - // hydrates response header Cache-Control - hdrCacheControl := response.GetHeader("Cache-Control") - - if hdrCacheControl != "" { - o.CacheControl = hdrCacheControl - } - - return nil -} diff --git a/api/devops/devops_client/cors/tenant_options_parameters.go b/api/devops/devops_client/cors/tenant_options_parameters.go deleted file mode 100644 index 707aff5..0000000 --- a/api/devops/devops_client/cors/tenant_options_parameters.go +++ /dev/null @@ -1,132 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -// (c) 2012-2020 by Taxnexus, Inc. -// All rights reserved worldwide. -// Proprietary product; unlicensed use is not allowed - -package cors - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewTenantOptionsParams creates a new TenantOptionsParams 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 NewTenantOptionsParams() *TenantOptionsParams { - return &TenantOptionsParams{ - timeout: cr.DefaultTimeout, - } -} - -// NewTenantOptionsParamsWithTimeout creates a new TenantOptionsParams object -// with the ability to set a timeout on a request. -func NewTenantOptionsParamsWithTimeout(timeout time.Duration) *TenantOptionsParams { - return &TenantOptionsParams{ - timeout: timeout, - } -} - -// NewTenantOptionsParamsWithContext creates a new TenantOptionsParams object -// with the ability to set a context for a request. -func NewTenantOptionsParamsWithContext(ctx context.Context) *TenantOptionsParams { - return &TenantOptionsParams{ - Context: ctx, - } -} - -// NewTenantOptionsParamsWithHTTPClient creates a new TenantOptionsParams object -// with the ability to set a custom HTTPClient for a request. -func NewTenantOptionsParamsWithHTTPClient(client *http.Client) *TenantOptionsParams { - return &TenantOptionsParams{ - HTTPClient: client, - } -} - -/* -TenantOptionsParams contains all the parameters to send to the API endpoint - - for the tenant options operation. - - Typically these are written to a http.Request. -*/ -type TenantOptionsParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithDefaults hydrates default values in the tenant options params (not the query body). -// -// All values with no default are reset to their zero value. -func (o *TenantOptionsParams) WithDefaults() *TenantOptionsParams { - o.SetDefaults() - return o -} - -// SetDefaults hydrates default values in the tenant options params (not the query body). -// -// All values with no default are reset to their zero value. -func (o *TenantOptionsParams) SetDefaults() { - // no default values defined for this parameter -} - -// WithTimeout adds the timeout to the tenant options params -func (o *TenantOptionsParams) WithTimeout(timeout time.Duration) *TenantOptionsParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the tenant options params -func (o *TenantOptionsParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the tenant options params -func (o *TenantOptionsParams) WithContext(ctx context.Context) *TenantOptionsParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the tenant options params -func (o *TenantOptionsParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the tenant options params -func (o *TenantOptionsParams) WithHTTPClient(client *http.Client) *TenantOptionsParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the tenant options params -func (o *TenantOptionsParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *TenantOptionsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/api/devops/devops_client/cors/tenant_options_responses.go b/api/devops/devops_client/cors/tenant_options_responses.go deleted file mode 100644 index 84e6631..0000000 --- a/api/devops/devops_client/cors/tenant_options_responses.go +++ /dev/null @@ -1,148 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -// (c) 2012-2020 by Taxnexus, Inc. -// All rights reserved worldwide. -// Proprietary product; unlicensed use is not allowed - -package cors - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" -) - -// TenantOptionsReader is a Reader for the TenantOptions structure. -type TenantOptionsReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *TenantOptionsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewTenantOptionsOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) - } -} - -// NewTenantOptionsOK creates a TenantOptionsOK with default headers values -func NewTenantOptionsOK() *TenantOptionsOK { - return &TenantOptionsOK{} -} - -/* -TenantOptionsOK describes a response with status code 200, with default header values. - -CORS OPTIONS response -*/ -type TenantOptionsOK struct { - AccessControlAllowCredentials string - AccessControlAllowHeaders string - AccessControlAllowMethods string - AccessControlAllowOrigin string - AccessControlExposeHeaders string - AccessControlMaxAge string - 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 - hdrAccessControlAllowCredentials := response.GetHeader("Access-Control-Allow-Credentials") - - if hdrAccessControlAllowCredentials != "" { - o.AccessControlAllowCredentials = hdrAccessControlAllowCredentials - } - - // hydrates response header Access-Control-Allow-Headers - hdrAccessControlAllowHeaders := response.GetHeader("Access-Control-Allow-Headers") - - if hdrAccessControlAllowHeaders != "" { - o.AccessControlAllowHeaders = hdrAccessControlAllowHeaders - } - - // hydrates response header Access-Control-Allow-Methods - hdrAccessControlAllowMethods := response.GetHeader("Access-Control-Allow-Methods") - - if hdrAccessControlAllowMethods != "" { - o.AccessControlAllowMethods = hdrAccessControlAllowMethods - } - - // hydrates response header Access-Control-Allow-Origin - hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") - - if hdrAccessControlAllowOrigin != "" { - o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin - } - - // hydrates response header Access-Control-Expose-Headers - hdrAccessControlExposeHeaders := response.GetHeader("Access-Control-Expose-Headers") - - if hdrAccessControlExposeHeaders != "" { - o.AccessControlExposeHeaders = hdrAccessControlExposeHeaders - } - - // hydrates response header Access-Control-Max-Age - hdrAccessControlMaxAge := response.GetHeader("Access-Control-Max-Age") - - if hdrAccessControlMaxAge != "" { - o.AccessControlMaxAge = hdrAccessControlMaxAge - } - - // hydrates response header Cache-Control - hdrCacheControl := response.GetHeader("Cache-Control") - - if hdrCacheControl != "" { - o.CacheControl = hdrCacheControl - } - - return nil -} diff --git a/api/devops/devops_client/cors/tenants_options_parameters.go b/api/devops/devops_client/cors/tenants_options_parameters.go deleted file mode 100644 index 07d0327..0000000 --- a/api/devops/devops_client/cors/tenants_options_parameters.go +++ /dev/null @@ -1,132 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -// (c) 2012-2020 by Taxnexus, Inc. -// All rights reserved worldwide. -// Proprietary product; unlicensed use is not allowed - -package cors - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewTenantsOptionsParams creates a new TenantsOptionsParams 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 NewTenantsOptionsParams() *TenantsOptionsParams { - return &TenantsOptionsParams{ - timeout: cr.DefaultTimeout, - } -} - -// NewTenantsOptionsParamsWithTimeout creates a new TenantsOptionsParams object -// with the ability to set a timeout on a request. -func NewTenantsOptionsParamsWithTimeout(timeout time.Duration) *TenantsOptionsParams { - return &TenantsOptionsParams{ - timeout: timeout, - } -} - -// NewTenantsOptionsParamsWithContext creates a new TenantsOptionsParams object -// with the ability to set a context for a request. -func NewTenantsOptionsParamsWithContext(ctx context.Context) *TenantsOptionsParams { - return &TenantsOptionsParams{ - Context: ctx, - } -} - -// NewTenantsOptionsParamsWithHTTPClient creates a new TenantsOptionsParams object -// with the ability to set a custom HTTPClient for a request. -func NewTenantsOptionsParamsWithHTTPClient(client *http.Client) *TenantsOptionsParams { - return &TenantsOptionsParams{ - HTTPClient: client, - } -} - -/* -TenantsOptionsParams contains all the parameters to send to the API endpoint - - for the tenants options operation. - - Typically these are written to a http.Request. -*/ -type TenantsOptionsParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithDefaults hydrates default values in the tenants options params (not the query body). -// -// All values with no default are reset to their zero value. -func (o *TenantsOptionsParams) WithDefaults() *TenantsOptionsParams { - o.SetDefaults() - return o -} - -// SetDefaults hydrates default values in the tenants options params (not the query body). -// -// All values with no default are reset to their zero value. -func (o *TenantsOptionsParams) SetDefaults() { - // no default values defined for this parameter -} - -// WithTimeout adds the timeout to the tenants options params -func (o *TenantsOptionsParams) WithTimeout(timeout time.Duration) *TenantsOptionsParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the tenants options params -func (o *TenantsOptionsParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the tenants options params -func (o *TenantsOptionsParams) WithContext(ctx context.Context) *TenantsOptionsParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the tenants options params -func (o *TenantsOptionsParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the tenants options params -func (o *TenantsOptionsParams) WithHTTPClient(client *http.Client) *TenantsOptionsParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the tenants options params -func (o *TenantsOptionsParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *TenantsOptionsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/api/devops/devops_client/cors/tenants_options_responses.go b/api/devops/devops_client/cors/tenants_options_responses.go deleted file mode 100644 index 15c5093..0000000 --- a/api/devops/devops_client/cors/tenants_options_responses.go +++ /dev/null @@ -1,148 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -// (c) 2012-2020 by Taxnexus, Inc. -// All rights reserved worldwide. -// Proprietary product; unlicensed use is not allowed - -package cors - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" -) - -// TenantsOptionsReader is a Reader for the TenantsOptions structure. -type TenantsOptionsReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *TenantsOptionsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewTenantsOptionsOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) - } -} - -// NewTenantsOptionsOK creates a TenantsOptionsOK with default headers values -func NewTenantsOptionsOK() *TenantsOptionsOK { - return &TenantsOptionsOK{} -} - -/* -TenantsOptionsOK describes a response with status code 200, with default header values. - -CORS OPTIONS response -*/ -type TenantsOptionsOK struct { - AccessControlAllowCredentials string - AccessControlAllowHeaders string - AccessControlAllowMethods string - AccessControlAllowOrigin string - AccessControlExposeHeaders string - AccessControlMaxAge string - 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 - hdrAccessControlAllowCredentials := response.GetHeader("Access-Control-Allow-Credentials") - - if hdrAccessControlAllowCredentials != "" { - o.AccessControlAllowCredentials = hdrAccessControlAllowCredentials - } - - // hydrates response header Access-Control-Allow-Headers - hdrAccessControlAllowHeaders := response.GetHeader("Access-Control-Allow-Headers") - - if hdrAccessControlAllowHeaders != "" { - o.AccessControlAllowHeaders = hdrAccessControlAllowHeaders - } - - // hydrates response header Access-Control-Allow-Methods - hdrAccessControlAllowMethods := response.GetHeader("Access-Control-Allow-Methods") - - if hdrAccessControlAllowMethods != "" { - o.AccessControlAllowMethods = hdrAccessControlAllowMethods - } - - // hydrates response header Access-Control-Allow-Origin - hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") - - if hdrAccessControlAllowOrigin != "" { - o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin - } - - // hydrates response header Access-Control-Expose-Headers - hdrAccessControlExposeHeaders := response.GetHeader("Access-Control-Expose-Headers") - - if hdrAccessControlExposeHeaders != "" { - o.AccessControlExposeHeaders = hdrAccessControlExposeHeaders - } - - // hydrates response header Access-Control-Max-Age - hdrAccessControlMaxAge := response.GetHeader("Access-Control-Max-Age") - - if hdrAccessControlMaxAge != "" { - o.AccessControlMaxAge = hdrAccessControlMaxAge - } - - // hydrates response header Cache-Control - hdrCacheControl := response.GetHeader("Cache-Control") - - if hdrCacheControl != "" { - o.CacheControl = hdrCacheControl - } - - return nil -} diff --git a/api/devops/devops_client/cors/user_options_parameters.go b/api/devops/devops_client/cors/user_options_parameters.go deleted file mode 100644 index 49b7f67..0000000 --- a/api/devops/devops_client/cors/user_options_parameters.go +++ /dev/null @@ -1,132 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -// (c) 2012-2020 by Taxnexus, Inc. -// All rights reserved worldwide. -// Proprietary product; unlicensed use is not allowed - -package cors - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewUserOptionsParams creates a new UserOptionsParams 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 NewUserOptionsParams() *UserOptionsParams { - return &UserOptionsParams{ - timeout: cr.DefaultTimeout, - } -} - -// NewUserOptionsParamsWithTimeout creates a new UserOptionsParams object -// with the ability to set a timeout on a request. -func NewUserOptionsParamsWithTimeout(timeout time.Duration) *UserOptionsParams { - return &UserOptionsParams{ - timeout: timeout, - } -} - -// NewUserOptionsParamsWithContext creates a new UserOptionsParams object -// with the ability to set a context for a request. -func NewUserOptionsParamsWithContext(ctx context.Context) *UserOptionsParams { - return &UserOptionsParams{ - Context: ctx, - } -} - -// NewUserOptionsParamsWithHTTPClient creates a new UserOptionsParams object -// with the ability to set a custom HTTPClient for a request. -func NewUserOptionsParamsWithHTTPClient(client *http.Client) *UserOptionsParams { - return &UserOptionsParams{ - HTTPClient: client, - } -} - -/* -UserOptionsParams contains all the parameters to send to the API endpoint - - for the user options operation. - - Typically these are written to a http.Request. -*/ -type UserOptionsParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithDefaults hydrates default values in the user options params (not the query body). -// -// All values with no default are reset to their zero value. -func (o *UserOptionsParams) WithDefaults() *UserOptionsParams { - o.SetDefaults() - return o -} - -// SetDefaults hydrates default values in the user options params (not the query body). -// -// All values with no default are reset to their zero value. -func (o *UserOptionsParams) SetDefaults() { - // no default values defined for this parameter -} - -// WithTimeout adds the timeout to the user options params -func (o *UserOptionsParams) WithTimeout(timeout time.Duration) *UserOptionsParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the user options params -func (o *UserOptionsParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the user options params -func (o *UserOptionsParams) WithContext(ctx context.Context) *UserOptionsParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the user options params -func (o *UserOptionsParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the user options params -func (o *UserOptionsParams) WithHTTPClient(client *http.Client) *UserOptionsParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the user options params -func (o *UserOptionsParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *UserOptionsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/api/devops/devops_client/cors/user_options_responses.go b/api/devops/devops_client/cors/user_options_responses.go deleted file mode 100644 index 8a617a8..0000000 --- a/api/devops/devops_client/cors/user_options_responses.go +++ /dev/null @@ -1,148 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -// (c) 2012-2020 by Taxnexus, Inc. -// All rights reserved worldwide. -// Proprietary product; unlicensed use is not allowed - -package cors - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" -) - -// UserOptionsReader is a Reader for the UserOptions structure. -type UserOptionsReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *UserOptionsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewUserOptionsOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) - } -} - -// NewUserOptionsOK creates a UserOptionsOK with default headers values -func NewUserOptionsOK() *UserOptionsOK { - return &UserOptionsOK{} -} - -/* -UserOptionsOK describes a response with status code 200, with default header values. - -CORS OPTIONS response -*/ -type UserOptionsOK struct { - AccessControlAllowCredentials string - AccessControlAllowHeaders string - AccessControlAllowMethods string - AccessControlAllowOrigin string - AccessControlExposeHeaders string - AccessControlMaxAge string - 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 - hdrAccessControlAllowCredentials := response.GetHeader("Access-Control-Allow-Credentials") - - if hdrAccessControlAllowCredentials != "" { - o.AccessControlAllowCredentials = hdrAccessControlAllowCredentials - } - - // hydrates response header Access-Control-Allow-Headers - hdrAccessControlAllowHeaders := response.GetHeader("Access-Control-Allow-Headers") - - if hdrAccessControlAllowHeaders != "" { - o.AccessControlAllowHeaders = hdrAccessControlAllowHeaders - } - - // hydrates response header Access-Control-Allow-Methods - hdrAccessControlAllowMethods := response.GetHeader("Access-Control-Allow-Methods") - - if hdrAccessControlAllowMethods != "" { - o.AccessControlAllowMethods = hdrAccessControlAllowMethods - } - - // hydrates response header Access-Control-Allow-Origin - hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") - - if hdrAccessControlAllowOrigin != "" { - o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin - } - - // hydrates response header Access-Control-Expose-Headers - hdrAccessControlExposeHeaders := response.GetHeader("Access-Control-Expose-Headers") - - if hdrAccessControlExposeHeaders != "" { - o.AccessControlExposeHeaders = hdrAccessControlExposeHeaders - } - - // hydrates response header Access-Control-Max-Age - hdrAccessControlMaxAge := response.GetHeader("Access-Control-Max-Age") - - if hdrAccessControlMaxAge != "" { - o.AccessControlMaxAge = hdrAccessControlMaxAge - } - - // hydrates response header Cache-Control - hdrCacheControl := response.GetHeader("Cache-Control") - - if hdrCacheControl != "" { - o.CacheControl = hdrCacheControl - } - - return nil -} diff --git a/api/devops/devops_client/cors/users_options_parameters.go b/api/devops/devops_client/cors/users_options_parameters.go deleted file mode 100644 index 54ad5ea..0000000 --- a/api/devops/devops_client/cors/users_options_parameters.go +++ /dev/null @@ -1,132 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -// (c) 2012-2020 by Taxnexus, Inc. -// All rights reserved worldwide. -// Proprietary product; unlicensed use is not allowed - -package cors - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewUsersOptionsParams creates a new UsersOptionsParams 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 NewUsersOptionsParams() *UsersOptionsParams { - return &UsersOptionsParams{ - timeout: cr.DefaultTimeout, - } -} - -// NewUsersOptionsParamsWithTimeout creates a new UsersOptionsParams object -// with the ability to set a timeout on a request. -func NewUsersOptionsParamsWithTimeout(timeout time.Duration) *UsersOptionsParams { - return &UsersOptionsParams{ - timeout: timeout, - } -} - -// NewUsersOptionsParamsWithContext creates a new UsersOptionsParams object -// with the ability to set a context for a request. -func NewUsersOptionsParamsWithContext(ctx context.Context) *UsersOptionsParams { - return &UsersOptionsParams{ - Context: ctx, - } -} - -// NewUsersOptionsParamsWithHTTPClient creates a new UsersOptionsParams object -// with the ability to set a custom HTTPClient for a request. -func NewUsersOptionsParamsWithHTTPClient(client *http.Client) *UsersOptionsParams { - return &UsersOptionsParams{ - HTTPClient: client, - } -} - -/* -UsersOptionsParams contains all the parameters to send to the API endpoint - - for the users options operation. - - Typically these are written to a http.Request. -*/ -type UsersOptionsParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithDefaults hydrates default values in the users options params (not the query body). -// -// All values with no default are reset to their zero value. -func (o *UsersOptionsParams) WithDefaults() *UsersOptionsParams { - o.SetDefaults() - return o -} - -// SetDefaults hydrates default values in the users options params (not the query body). -// -// All values with no default are reset to their zero value. -func (o *UsersOptionsParams) SetDefaults() { - // no default values defined for this parameter -} - -// WithTimeout adds the timeout to the users options params -func (o *UsersOptionsParams) WithTimeout(timeout time.Duration) *UsersOptionsParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the users options params -func (o *UsersOptionsParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the users options params -func (o *UsersOptionsParams) WithContext(ctx context.Context) *UsersOptionsParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the users options params -func (o *UsersOptionsParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the users options params -func (o *UsersOptionsParams) WithHTTPClient(client *http.Client) *UsersOptionsParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the users options params -func (o *UsersOptionsParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *UsersOptionsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/api/devops/devops_client/cors/users_options_responses.go b/api/devops/devops_client/cors/users_options_responses.go deleted file mode 100644 index 628b72c..0000000 --- a/api/devops/devops_client/cors/users_options_responses.go +++ /dev/null @@ -1,148 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -// (c) 2012-2020 by Taxnexus, Inc. -// All rights reserved worldwide. -// Proprietary product; unlicensed use is not allowed - -package cors - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" -) - -// UsersOptionsReader is a Reader for the UsersOptions structure. -type UsersOptionsReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *UsersOptionsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewUsersOptionsOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) - } -} - -// NewUsersOptionsOK creates a UsersOptionsOK with default headers values -func NewUsersOptionsOK() *UsersOptionsOK { - return &UsersOptionsOK{} -} - -/* -UsersOptionsOK describes a response with status code 200, with default header values. - -CORS OPTIONS response -*/ -type UsersOptionsOK struct { - AccessControlAllowCredentials string - AccessControlAllowHeaders string - AccessControlAllowMethods string - AccessControlAllowOrigin string - AccessControlExposeHeaders string - AccessControlMaxAge string - 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 - hdrAccessControlAllowCredentials := response.GetHeader("Access-Control-Allow-Credentials") - - if hdrAccessControlAllowCredentials != "" { - o.AccessControlAllowCredentials = hdrAccessControlAllowCredentials - } - - // hydrates response header Access-Control-Allow-Headers - hdrAccessControlAllowHeaders := response.GetHeader("Access-Control-Allow-Headers") - - if hdrAccessControlAllowHeaders != "" { - o.AccessControlAllowHeaders = hdrAccessControlAllowHeaders - } - - // hydrates response header Access-Control-Allow-Methods - hdrAccessControlAllowMethods := response.GetHeader("Access-Control-Allow-Methods") - - if hdrAccessControlAllowMethods != "" { - o.AccessControlAllowMethods = hdrAccessControlAllowMethods - } - - // hydrates response header Access-Control-Allow-Origin - hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") - - if hdrAccessControlAllowOrigin != "" { - o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin - } - - // hydrates response header Access-Control-Expose-Headers - hdrAccessControlExposeHeaders := response.GetHeader("Access-Control-Expose-Headers") - - if hdrAccessControlExposeHeaders != "" { - o.AccessControlExposeHeaders = hdrAccessControlExposeHeaders - } - - // hydrates response header Access-Control-Max-Age - hdrAccessControlMaxAge := response.GetHeader("Access-Control-Max-Age") - - if hdrAccessControlMaxAge != "" { - o.AccessControlMaxAge = hdrAccessControlMaxAge - } - - // hydrates response header Cache-Control - hdrCacheControl := response.GetHeader("Cache-Control") - - if hdrCacheControl != "" { - o.CacheControl = hdrCacheControl - } - - return nil -} diff --git a/api/devops/devops_client/database/get_database_parameters.go b/api/devops/devops_client/database/get_database_parameters.go deleted file mode 100644 index aedc830..0000000 --- a/api/devops/devops_client/database/get_database_parameters.go +++ /dev/null @@ -1,155 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -// (c) 2012-2020 by Taxnexus, Inc. -// All rights reserved worldwide. -// Proprietary product; unlicensed use is not allowed - -package database - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewGetDatabaseParams creates a new GetDatabaseParams 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 NewGetDatabaseParams() *GetDatabaseParams { - return &GetDatabaseParams{ - timeout: cr.DefaultTimeout, - } -} - -// NewGetDatabaseParamsWithTimeout creates a new GetDatabaseParams object -// with the ability to set a timeout on a request. -func NewGetDatabaseParamsWithTimeout(timeout time.Duration) *GetDatabaseParams { - return &GetDatabaseParams{ - timeout: timeout, - } -} - -// NewGetDatabaseParamsWithContext creates a new GetDatabaseParams object -// with the ability to set a context for a request. -func NewGetDatabaseParamsWithContext(ctx context.Context) *GetDatabaseParams { - return &GetDatabaseParams{ - Context: ctx, - } -} - -// NewGetDatabaseParamsWithHTTPClient creates a new GetDatabaseParams object -// with the ability to set a custom HTTPClient for a request. -func NewGetDatabaseParamsWithHTTPClient(client *http.Client) *GetDatabaseParams { - return &GetDatabaseParams{ - HTTPClient: client, - } -} - -/* -GetDatabaseParams contains all the parameters to send to the API endpoint - - for the get database operation. - - Typically these are written to a http.Request. -*/ -type GetDatabaseParams struct { - - /* DatabaseIDPath. - - Record Id of a Database - */ - DatabaseIDPath string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithDefaults hydrates default values in the get database params (not the query body). -// -// All values with no default are reset to their zero value. -func (o *GetDatabaseParams) WithDefaults() *GetDatabaseParams { - o.SetDefaults() - return o -} - -// SetDefaults hydrates default values in the get database params (not the query body). -// -// All values with no default are reset to their zero value. -func (o *GetDatabaseParams) SetDefaults() { - // no default values defined for this parameter -} - -// WithTimeout adds the timeout to the get database params -func (o *GetDatabaseParams) WithTimeout(timeout time.Duration) *GetDatabaseParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the get database params -func (o *GetDatabaseParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the get database params -func (o *GetDatabaseParams) WithContext(ctx context.Context) *GetDatabaseParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the get database params -func (o *GetDatabaseParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the get database params -func (o *GetDatabaseParams) WithHTTPClient(client *http.Client) *GetDatabaseParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the get database params -func (o *GetDatabaseParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithDatabaseIDPath adds the databaseIDPath to the get database params -func (o *GetDatabaseParams) WithDatabaseIDPath(databaseIDPath string) *GetDatabaseParams { - o.SetDatabaseIDPath(databaseIDPath) - return o -} - -// SetDatabaseIDPath adds the databaseIdPath to the get database params -func (o *GetDatabaseParams) SetDatabaseIDPath(databaseIDPath string) { - o.DatabaseIDPath = databaseIDPath -} - -// WriteToRequest writes these params to a swagger request -func (o *GetDatabaseParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // path param databaseIdPath - if err := r.SetPathParam("databaseIdPath", o.DatabaseIDPath); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/api/devops/devops_client/database/get_database_responses.go b/api/devops/devops_client/database/get_database_responses.go deleted file mode 100644 index 33bbc9f..0000000 --- a/api/devops/devops_client/database/get_database_responses.go +++ /dev/null @@ -1,555 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -// (c) 2012-2020 by Taxnexus, Inc. -// All rights reserved worldwide. -// Proprietary product; unlicensed use is not allowed - -package database - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "code.tnxs.net/vernonkeenan/lib/api/devops/devops_models" -) - -// GetDatabaseReader is a Reader for the GetDatabase structure. -type GetDatabaseReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *GetDatabaseReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewGetDatabaseOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - case 401: - result := NewGetDatabaseUnauthorized() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return nil, result - case 403: - result := NewGetDatabaseForbidden() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return nil, result - case 404: - result := NewGetDatabaseNotFound() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return nil, result - case 422: - result := NewGetDatabaseUnprocessableEntity() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return nil, result - case 500: - result := NewGetDatabaseInternalServerError() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return nil, result - default: - return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) - } -} - -// NewGetDatabaseOK creates a GetDatabaseOK with default headers values -func NewGetDatabaseOK() *GetDatabaseOK { - return &GetDatabaseOK{} -} - -/* -GetDatabaseOK describes a response with status code 200, with default header values. - -Single Database record response -*/ -type GetDatabaseOK struct { - AccessControlAllowOrigin string - CacheControl string - - 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 -} - -func (o *GetDatabaseOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // hydrates response header Access-Control-Allow-Origin - hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") - - if hdrAccessControlAllowOrigin != "" { - o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin - } - - // hydrates response header Cache-Control - hdrCacheControl := response.GetHeader("Cache-Control") - - if hdrCacheControl != "" { - o.CacheControl = hdrCacheControl - } - - o.Payload = new(devops_models.Database) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewGetDatabaseUnauthorized creates a GetDatabaseUnauthorized with default headers values -func NewGetDatabaseUnauthorized() *GetDatabaseUnauthorized { - return &GetDatabaseUnauthorized{} -} - -/* -GetDatabaseUnauthorized describes a response with status code 401, with default header values. - -Access Unauthorized, invalid API-KEY was used -*/ -type GetDatabaseUnauthorized struct { - AccessControlAllowOrigin string - CacheControl string - - 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 -} - -func (o *GetDatabaseUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // hydrates response header Access-Control-Allow-Origin - hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") - - if hdrAccessControlAllowOrigin != "" { - o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin - } - - // hydrates response header Cache-Control - hdrCacheControl := response.GetHeader("Cache-Control") - - if hdrCacheControl != "" { - o.CacheControl = hdrCacheControl - } - - o.Payload = new(devops_models.Error) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewGetDatabaseForbidden creates a GetDatabaseForbidden with default headers values -func NewGetDatabaseForbidden() *GetDatabaseForbidden { - return &GetDatabaseForbidden{} -} - -/* -GetDatabaseForbidden describes a response with status code 403, with default header values. - -Access forbidden, account lacks access -*/ -type GetDatabaseForbidden struct { - AccessControlAllowOrigin string - - 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 -} - -func (o *GetDatabaseForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // hydrates response header Access-Control-Allow-Origin - hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") - - if hdrAccessControlAllowOrigin != "" { - o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin - } - - o.Payload = new(devops_models.Error) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewGetDatabaseNotFound creates a GetDatabaseNotFound with default headers values -func NewGetDatabaseNotFound() *GetDatabaseNotFound { - return &GetDatabaseNotFound{} -} - -/* -GetDatabaseNotFound describes a response with status code 404, with default header values. - -Resource was not found -*/ -type GetDatabaseNotFound struct { - AccessControlAllowOrigin string - - 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 -} - -func (o *GetDatabaseNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // hydrates response header Access-Control-Allow-Origin - hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") - - if hdrAccessControlAllowOrigin != "" { - o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin - } - - o.Payload = new(devops_models.Error) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewGetDatabaseUnprocessableEntity creates a GetDatabaseUnprocessableEntity with default headers values -func NewGetDatabaseUnprocessableEntity() *GetDatabaseUnprocessableEntity { - return &GetDatabaseUnprocessableEntity{} -} - -/* -GetDatabaseUnprocessableEntity describes a response with status code 422, with default header values. - -Unprocessable Entity, likely a bad parameter -*/ -type GetDatabaseUnprocessableEntity struct { - AccessControlAllowOrigin string - CacheControl string - - 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 -} - -func (o *GetDatabaseUnprocessableEntity) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // hydrates response header Access-Control-Allow-Origin - hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") - - if hdrAccessControlAllowOrigin != "" { - o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin - } - - // hydrates response header Cache-Control - hdrCacheControl := response.GetHeader("Cache-Control") - - if hdrCacheControl != "" { - o.CacheControl = hdrCacheControl - } - - o.Payload = new(devops_models.Error) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewGetDatabaseInternalServerError creates a GetDatabaseInternalServerError with default headers values -func NewGetDatabaseInternalServerError() *GetDatabaseInternalServerError { - return &GetDatabaseInternalServerError{} -} - -/* -GetDatabaseInternalServerError describes a response with status code 500, with default header values. - -Server Internal Error -*/ -type GetDatabaseInternalServerError struct { - AccessControlAllowOrigin string - - 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 -} - -func (o *GetDatabaseInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // hydrates response header Access-Control-Allow-Origin - hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") - - if hdrAccessControlAllowOrigin != "" { - o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin - } - - o.Payload = new(devops_models.Error) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} diff --git a/api/devops/devops_client/database/get_databases_observable_parameters.go b/api/devops/devops_client/database/get_databases_observable_parameters.go deleted file mode 100644 index b2bbaa4..0000000 --- a/api/devops/devops_client/database/get_databases_observable_parameters.go +++ /dev/null @@ -1,132 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -// (c) 2012-2020 by Taxnexus, Inc. -// All rights reserved worldwide. -// Proprietary product; unlicensed use is not allowed - -package database - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewGetDatabasesObservableParams creates a new GetDatabasesObservableParams 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 NewGetDatabasesObservableParams() *GetDatabasesObservableParams { - return &GetDatabasesObservableParams{ - timeout: cr.DefaultTimeout, - } -} - -// NewGetDatabasesObservableParamsWithTimeout creates a new GetDatabasesObservableParams object -// with the ability to set a timeout on a request. -func NewGetDatabasesObservableParamsWithTimeout(timeout time.Duration) *GetDatabasesObservableParams { - return &GetDatabasesObservableParams{ - timeout: timeout, - } -} - -// NewGetDatabasesObservableParamsWithContext creates a new GetDatabasesObservableParams object -// with the ability to set a context for a request. -func NewGetDatabasesObservableParamsWithContext(ctx context.Context) *GetDatabasesObservableParams { - return &GetDatabasesObservableParams{ - Context: ctx, - } -} - -// NewGetDatabasesObservableParamsWithHTTPClient creates a new GetDatabasesObservableParams object -// with the ability to set a custom HTTPClient for a request. -func NewGetDatabasesObservableParamsWithHTTPClient(client *http.Client) *GetDatabasesObservableParams { - return &GetDatabasesObservableParams{ - HTTPClient: client, - } -} - -/* -GetDatabasesObservableParams contains all the parameters to send to the API endpoint - - for the get databases observable operation. - - Typically these are written to a http.Request. -*/ -type GetDatabasesObservableParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithDefaults hydrates default values in the get databases observable params (not the query body). -// -// All values with no default are reset to their zero value. -func (o *GetDatabasesObservableParams) WithDefaults() *GetDatabasesObservableParams { - o.SetDefaults() - return o -} - -// SetDefaults hydrates default values in the get databases observable params (not the query body). -// -// All values with no default are reset to their zero value. -func (o *GetDatabasesObservableParams) SetDefaults() { - // no default values defined for this parameter -} - -// WithTimeout adds the timeout to the get databases observable params -func (o *GetDatabasesObservableParams) WithTimeout(timeout time.Duration) *GetDatabasesObservableParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the get databases observable params -func (o *GetDatabasesObservableParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the get databases observable params -func (o *GetDatabasesObservableParams) WithContext(ctx context.Context) *GetDatabasesObservableParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the get databases observable params -func (o *GetDatabasesObservableParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the get databases observable params -func (o *GetDatabasesObservableParams) WithHTTPClient(client *http.Client) *GetDatabasesObservableParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the get databases observable params -func (o *GetDatabasesObservableParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *GetDatabasesObservableParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/api/devops/devops_client/database/get_databases_observable_responses.go b/api/devops/devops_client/database/get_databases_observable_responses.go deleted file mode 100644 index d4eb544..0000000 --- a/api/devops/devops_client/database/get_databases_observable_responses.go +++ /dev/null @@ -1,553 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -// (c) 2012-2020 by Taxnexus, Inc. -// All rights reserved worldwide. -// Proprietary product; unlicensed use is not allowed - -package database - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "code.tnxs.net/vernonkeenan/lib/api/devops/devops_models" -) - -// GetDatabasesObservableReader is a Reader for the GetDatabasesObservable structure. -type GetDatabasesObservableReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *GetDatabasesObservableReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewGetDatabasesObservableOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - case 401: - result := NewGetDatabasesObservableUnauthorized() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return nil, result - case 403: - result := NewGetDatabasesObservableForbidden() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return nil, result - case 404: - result := NewGetDatabasesObservableNotFound() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return nil, result - case 422: - result := NewGetDatabasesObservableUnprocessableEntity() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return nil, result - case 500: - result := NewGetDatabasesObservableInternalServerError() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return nil, result - default: - return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) - } -} - -// NewGetDatabasesObservableOK creates a GetDatabasesObservableOK with default headers values -func NewGetDatabasesObservableOK() *GetDatabasesObservableOK { - return &GetDatabasesObservableOK{} -} - -/* -GetDatabasesObservableOK describes a response with status code 200, with default header values. - -Single Database record response -*/ -type GetDatabasesObservableOK struct { - AccessControlAllowOrigin string - CacheControl string - - 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 -} - -func (o *GetDatabasesObservableOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // hydrates response header Access-Control-Allow-Origin - hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") - - if hdrAccessControlAllowOrigin != "" { - o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin - } - - // hydrates response header Cache-Control - hdrCacheControl := response.GetHeader("Cache-Control") - - if hdrCacheControl != "" { - o.CacheControl = hdrCacheControl - } - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewGetDatabasesObservableUnauthorized creates a GetDatabasesObservableUnauthorized with default headers values -func NewGetDatabasesObservableUnauthorized() *GetDatabasesObservableUnauthorized { - return &GetDatabasesObservableUnauthorized{} -} - -/* -GetDatabasesObservableUnauthorized describes a response with status code 401, with default header values. - -Access Unauthorized, invalid API-KEY was used -*/ -type GetDatabasesObservableUnauthorized struct { - AccessControlAllowOrigin string - CacheControl string - - 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 -} - -func (o *GetDatabasesObservableUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // hydrates response header Access-Control-Allow-Origin - hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") - - if hdrAccessControlAllowOrigin != "" { - o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin - } - - // hydrates response header Cache-Control - hdrCacheControl := response.GetHeader("Cache-Control") - - if hdrCacheControl != "" { - o.CacheControl = hdrCacheControl - } - - o.Payload = new(devops_models.Error) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewGetDatabasesObservableForbidden creates a GetDatabasesObservableForbidden with default headers values -func NewGetDatabasesObservableForbidden() *GetDatabasesObservableForbidden { - return &GetDatabasesObservableForbidden{} -} - -/* -GetDatabasesObservableForbidden describes a response with status code 403, with default header values. - -Access forbidden, account lacks access -*/ -type GetDatabasesObservableForbidden struct { - AccessControlAllowOrigin string - - 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 -} - -func (o *GetDatabasesObservableForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // hydrates response header Access-Control-Allow-Origin - hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") - - if hdrAccessControlAllowOrigin != "" { - o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin - } - - o.Payload = new(devops_models.Error) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewGetDatabasesObservableNotFound creates a GetDatabasesObservableNotFound with default headers values -func NewGetDatabasesObservableNotFound() *GetDatabasesObservableNotFound { - return &GetDatabasesObservableNotFound{} -} - -/* -GetDatabasesObservableNotFound describes a response with status code 404, with default header values. - -Resource was not found -*/ -type GetDatabasesObservableNotFound struct { - AccessControlAllowOrigin string - - 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 -} - -func (o *GetDatabasesObservableNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // hydrates response header Access-Control-Allow-Origin - hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") - - if hdrAccessControlAllowOrigin != "" { - o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin - } - - o.Payload = new(devops_models.Error) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewGetDatabasesObservableUnprocessableEntity creates a GetDatabasesObservableUnprocessableEntity with default headers values -func NewGetDatabasesObservableUnprocessableEntity() *GetDatabasesObservableUnprocessableEntity { - return &GetDatabasesObservableUnprocessableEntity{} -} - -/* -GetDatabasesObservableUnprocessableEntity describes a response with status code 422, with default header values. - -Unprocessable Entity, likely a bad parameter -*/ -type GetDatabasesObservableUnprocessableEntity struct { - AccessControlAllowOrigin string - CacheControl string - - 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 -} - -func (o *GetDatabasesObservableUnprocessableEntity) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // hydrates response header Access-Control-Allow-Origin - hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") - - if hdrAccessControlAllowOrigin != "" { - o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin - } - - // hydrates response header Cache-Control - hdrCacheControl := response.GetHeader("Cache-Control") - - if hdrCacheControl != "" { - o.CacheControl = hdrCacheControl - } - - o.Payload = new(devops_models.Error) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewGetDatabasesObservableInternalServerError creates a GetDatabasesObservableInternalServerError with default headers values -func NewGetDatabasesObservableInternalServerError() *GetDatabasesObservableInternalServerError { - return &GetDatabasesObservableInternalServerError{} -} - -/* -GetDatabasesObservableInternalServerError describes a response with status code 500, with default header values. - -Server Internal Error -*/ -type GetDatabasesObservableInternalServerError struct { - AccessControlAllowOrigin string - - 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 -} - -func (o *GetDatabasesObservableInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // hydrates response header Access-Control-Allow-Origin - hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") - - if hdrAccessControlAllowOrigin != "" { - o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin - } - - o.Payload = new(devops_models.Error) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} diff --git a/api/devops/devops_client/devops_client.go b/api/devops/devops_client/devops_client.go deleted file mode 100644 index 16f3d34..0000000 --- a/api/devops/devops_client/devops_client.go +++ /dev/null @@ -1,141 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -// (c) 2012-2020 by Taxnexus, Inc. -// All rights reserved worldwide. -// Proprietary product; unlicensed use is not allowed - -package devops_client - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "github.com/go-openapi/runtime" - httptransport "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" - - "code.tnxs.net/vernonkeenan/lib/api/devops/devops_client/cluster" - "code.tnxs.net/vernonkeenan/lib/api/devops/devops_client/cors" - "code.tnxs.net/vernonkeenan/lib/api/devops/devops_client/database" - "code.tnxs.net/vernonkeenan/lib/api/devops/devops_client/template" - "code.tnxs.net/vernonkeenan/lib/api/devops/devops_client/tenant" - "code.tnxs.net/vernonkeenan/lib/api/devops/devops_client/user" -) - -// Default devops HTTP client. -var Default = NewHTTPClient(nil) - -const ( - // DefaultHost is the default Host - // found in Meta (info) section of spec file - DefaultHost string = "devops.vernonkeenan.com:8080" - // DefaultBasePath is the default BasePath - // found in Meta (info) section of spec file - DefaultBasePath string = "/v1" -) - -// DefaultSchemes are the default schemes found in Meta (info) section of spec file -var DefaultSchemes = []string{"http"} - -// NewHTTPClient creates a new devops HTTP client. -func NewHTTPClient(formats strfmt.Registry) *Devops { - return NewHTTPClientWithConfig(formats, nil) -} - -// NewHTTPClientWithConfig creates a new devops HTTP client, -// using a customizable transport config. -func NewHTTPClientWithConfig(formats strfmt.Registry, cfg *TransportConfig) *Devops { - // ensure nullable parameters have default - if cfg == nil { - cfg = DefaultTransportConfig() - } - - // create transport and client - transport := httptransport.New(cfg.Host, cfg.BasePath, cfg.Schemes) - return New(transport, formats) -} - -// New creates a new devops client -func New(transport runtime.ClientTransport, formats strfmt.Registry) *Devops { - // ensure nullable parameters have default - if formats == nil { - formats = strfmt.Default - } - - cli := new(Devops) - cli.Transport = transport - cli.Cluster = cluster.New(transport, formats) - cli.Cors = cors.New(transport, formats) - cli.Database = database.New(transport, formats) - cli.Template = template.New(transport, formats) - cli.Tenant = tenant.New(transport, formats) - cli.User = user.New(transport, formats) - return cli -} - -// DefaultTransportConfig creates a TransportConfig with the -// default settings taken from the meta section of the spec file. -func DefaultTransportConfig() *TransportConfig { - return &TransportConfig{ - Host: DefaultHost, - BasePath: DefaultBasePath, - Schemes: DefaultSchemes, - } -} - -// TransportConfig contains the transport related info, -// found in the meta section of the spec file. -type TransportConfig struct { - Host string - BasePath string - Schemes []string -} - -// WithHost overrides the default host, -// provided by the meta section of the spec file. -func (cfg *TransportConfig) WithHost(host string) *TransportConfig { - cfg.Host = host - return cfg -} - -// WithBasePath overrides the default basePath, -// provided by the meta section of the spec file. -func (cfg *TransportConfig) WithBasePath(basePath string) *TransportConfig { - cfg.BasePath = basePath - return cfg -} - -// WithSchemes overrides the default schemes, -// provided by the meta section of the spec file. -func (cfg *TransportConfig) WithSchemes(schemes []string) *TransportConfig { - cfg.Schemes = schemes - return cfg -} - -// Devops is a client for devops -type Devops struct { - Cluster cluster.ClientService - - Cors cors.ClientService - - Database database.ClientService - - Template template.ClientService - - Tenant tenant.ClientService - - User user.ClientService - - Transport runtime.ClientTransport -} - -// SetTransport changes the transport on the client and all its subresources -func (c *Devops) SetTransport(transport runtime.ClientTransport) { - c.Transport = transport - c.Cluster.SetTransport(transport) - c.Cors.SetTransport(transport) - c.Database.SetTransport(transport) - c.Template.SetTransport(transport) - c.Tenant.SetTransport(transport) - c.User.SetTransport(transport) -} diff --git a/api/devops/devops_client/template/get_template_parameters.go b/api/devops/devops_client/template/get_template_parameters.go deleted file mode 100644 index 2efac73..0000000 --- a/api/devops/devops_client/template/get_template_parameters.go +++ /dev/null @@ -1,155 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -// (c) 2012-2020 by Taxnexus, Inc. -// All rights reserved worldwide. -// Proprietary product; unlicensed use is not allowed - -package template - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewGetTemplateParams creates a new GetTemplateParams 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 NewGetTemplateParams() *GetTemplateParams { - return &GetTemplateParams{ - timeout: cr.DefaultTimeout, - } -} - -// NewGetTemplateParamsWithTimeout creates a new GetTemplateParams object -// with the ability to set a timeout on a request. -func NewGetTemplateParamsWithTimeout(timeout time.Duration) *GetTemplateParams { - return &GetTemplateParams{ - timeout: timeout, - } -} - -// NewGetTemplateParamsWithContext creates a new GetTemplateParams object -// with the ability to set a context for a request. -func NewGetTemplateParamsWithContext(ctx context.Context) *GetTemplateParams { - return &GetTemplateParams{ - Context: ctx, - } -} - -// NewGetTemplateParamsWithHTTPClient creates a new GetTemplateParams object -// with the ability to set a custom HTTPClient for a request. -func NewGetTemplateParamsWithHTTPClient(client *http.Client) *GetTemplateParams { - return &GetTemplateParams{ - HTTPClient: client, - } -} - -/* -GetTemplateParams contains all the parameters to send to the API endpoint - - for the get template operation. - - Typically these are written to a http.Request. -*/ -type GetTemplateParams struct { - - /* TemplateIDPath. - - Record Id of a Template - */ - TemplateIDPath string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithDefaults hydrates default values in the get template params (not the query body). -// -// All values with no default are reset to their zero value. -func (o *GetTemplateParams) WithDefaults() *GetTemplateParams { - o.SetDefaults() - return o -} - -// SetDefaults hydrates default values in the get template params (not the query body). -// -// All values with no default are reset to their zero value. -func (o *GetTemplateParams) SetDefaults() { - // no default values defined for this parameter -} - -// WithTimeout adds the timeout to the get template params -func (o *GetTemplateParams) WithTimeout(timeout time.Duration) *GetTemplateParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the get template params -func (o *GetTemplateParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the get template params -func (o *GetTemplateParams) WithContext(ctx context.Context) *GetTemplateParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the get template params -func (o *GetTemplateParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the get template params -func (o *GetTemplateParams) WithHTTPClient(client *http.Client) *GetTemplateParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the get template params -func (o *GetTemplateParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithTemplateIDPath adds the templateIDPath to the get template params -func (o *GetTemplateParams) WithTemplateIDPath(templateIDPath string) *GetTemplateParams { - o.SetTemplateIDPath(templateIDPath) - return o -} - -// SetTemplateIDPath adds the templateIdPath to the get template params -func (o *GetTemplateParams) SetTemplateIDPath(templateIDPath string) { - o.TemplateIDPath = templateIDPath -} - -// WriteToRequest writes these params to a swagger request -func (o *GetTemplateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // path param templateIdPath - if err := r.SetPathParam("templateIdPath", o.TemplateIDPath); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/api/devops/devops_client/template/get_template_responses.go b/api/devops/devops_client/template/get_template_responses.go deleted file mode 100644 index df068eb..0000000 --- a/api/devops/devops_client/template/get_template_responses.go +++ /dev/null @@ -1,555 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -// (c) 2012-2020 by Taxnexus, Inc. -// All rights reserved worldwide. -// Proprietary product; unlicensed use is not allowed - -package template - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "code.tnxs.net/vernonkeenan/lib/api/devops/devops_models" -) - -// GetTemplateReader is a Reader for the GetTemplate structure. -type GetTemplateReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *GetTemplateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewGetTemplateOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - case 401: - result := NewGetTemplateUnauthorized() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return nil, result - case 403: - result := NewGetTemplateForbidden() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return nil, result - case 404: - result := NewGetTemplateNotFound() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return nil, result - case 422: - result := NewGetTemplateUnprocessableEntity() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return nil, result - case 500: - result := NewGetTemplateInternalServerError() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return nil, result - default: - return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) - } -} - -// NewGetTemplateOK creates a GetTemplateOK with default headers values -func NewGetTemplateOK() *GetTemplateOK { - return &GetTemplateOK{} -} - -/* -GetTemplateOK describes a response with status code 200, with default header values. - -Single Template record response -*/ -type GetTemplateOK struct { - AccessControlAllowOrigin string - CacheControl string - - 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 -} - -func (o *GetTemplateOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // hydrates response header Access-Control-Allow-Origin - hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") - - if hdrAccessControlAllowOrigin != "" { - o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin - } - - // hydrates response header Cache-Control - hdrCacheControl := response.GetHeader("Cache-Control") - - if hdrCacheControl != "" { - o.CacheControl = hdrCacheControl - } - - o.Payload = new(devops_models.Template) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewGetTemplateUnauthorized creates a GetTemplateUnauthorized with default headers values -func NewGetTemplateUnauthorized() *GetTemplateUnauthorized { - return &GetTemplateUnauthorized{} -} - -/* -GetTemplateUnauthorized describes a response with status code 401, with default header values. - -Access Unauthorized, invalid API-KEY was used -*/ -type GetTemplateUnauthorized struct { - AccessControlAllowOrigin string - CacheControl string - - 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 -} - -func (o *GetTemplateUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // hydrates response header Access-Control-Allow-Origin - hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") - - if hdrAccessControlAllowOrigin != "" { - o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin - } - - // hydrates response header Cache-Control - hdrCacheControl := response.GetHeader("Cache-Control") - - if hdrCacheControl != "" { - o.CacheControl = hdrCacheControl - } - - o.Payload = new(devops_models.Error) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewGetTemplateForbidden creates a GetTemplateForbidden with default headers values -func NewGetTemplateForbidden() *GetTemplateForbidden { - return &GetTemplateForbidden{} -} - -/* -GetTemplateForbidden describes a response with status code 403, with default header values. - -Access forbidden, account lacks access -*/ -type GetTemplateForbidden struct { - AccessControlAllowOrigin string - - 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 -} - -func (o *GetTemplateForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // hydrates response header Access-Control-Allow-Origin - hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") - - if hdrAccessControlAllowOrigin != "" { - o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin - } - - o.Payload = new(devops_models.Error) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewGetTemplateNotFound creates a GetTemplateNotFound with default headers values -func NewGetTemplateNotFound() *GetTemplateNotFound { - return &GetTemplateNotFound{} -} - -/* -GetTemplateNotFound describes a response with status code 404, with default header values. - -Resource was not found -*/ -type GetTemplateNotFound struct { - AccessControlAllowOrigin string - - 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 -} - -func (o *GetTemplateNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // hydrates response header Access-Control-Allow-Origin - hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") - - if hdrAccessControlAllowOrigin != "" { - o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin - } - - o.Payload = new(devops_models.Error) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewGetTemplateUnprocessableEntity creates a GetTemplateUnprocessableEntity with default headers values -func NewGetTemplateUnprocessableEntity() *GetTemplateUnprocessableEntity { - return &GetTemplateUnprocessableEntity{} -} - -/* -GetTemplateUnprocessableEntity describes a response with status code 422, with default header values. - -Unprocessable Entity, likely a bad parameter -*/ -type GetTemplateUnprocessableEntity struct { - AccessControlAllowOrigin string - CacheControl string - - 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 -} - -func (o *GetTemplateUnprocessableEntity) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // hydrates response header Access-Control-Allow-Origin - hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") - - if hdrAccessControlAllowOrigin != "" { - o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin - } - - // hydrates response header Cache-Control - hdrCacheControl := response.GetHeader("Cache-Control") - - if hdrCacheControl != "" { - o.CacheControl = hdrCacheControl - } - - o.Payload = new(devops_models.Error) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewGetTemplateInternalServerError creates a GetTemplateInternalServerError with default headers values -func NewGetTemplateInternalServerError() *GetTemplateInternalServerError { - return &GetTemplateInternalServerError{} -} - -/* -GetTemplateInternalServerError describes a response with status code 500, with default header values. - -Server Internal Error -*/ -type GetTemplateInternalServerError struct { - AccessControlAllowOrigin string - - 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 -} - -func (o *GetTemplateInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // hydrates response header Access-Control-Allow-Origin - hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") - - if hdrAccessControlAllowOrigin != "" { - o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin - } - - o.Payload = new(devops_models.Error) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} diff --git a/api/devops/devops_client/template/get_templates_observable_parameters.go b/api/devops/devops_client/template/get_templates_observable_parameters.go deleted file mode 100644 index b87d56a..0000000 --- a/api/devops/devops_client/template/get_templates_observable_parameters.go +++ /dev/null @@ -1,132 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -// (c) 2012-2020 by Taxnexus, Inc. -// All rights reserved worldwide. -// Proprietary product; unlicensed use is not allowed - -package template - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewGetTemplatesObservableParams creates a new GetTemplatesObservableParams 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 NewGetTemplatesObservableParams() *GetTemplatesObservableParams { - return &GetTemplatesObservableParams{ - timeout: cr.DefaultTimeout, - } -} - -// NewGetTemplatesObservableParamsWithTimeout creates a new GetTemplatesObservableParams object -// with the ability to set a timeout on a request. -func NewGetTemplatesObservableParamsWithTimeout(timeout time.Duration) *GetTemplatesObservableParams { - return &GetTemplatesObservableParams{ - timeout: timeout, - } -} - -// NewGetTemplatesObservableParamsWithContext creates a new GetTemplatesObservableParams object -// with the ability to set a context for a request. -func NewGetTemplatesObservableParamsWithContext(ctx context.Context) *GetTemplatesObservableParams { - return &GetTemplatesObservableParams{ - Context: ctx, - } -} - -// NewGetTemplatesObservableParamsWithHTTPClient creates a new GetTemplatesObservableParams object -// with the ability to set a custom HTTPClient for a request. -func NewGetTemplatesObservableParamsWithHTTPClient(client *http.Client) *GetTemplatesObservableParams { - return &GetTemplatesObservableParams{ - HTTPClient: client, - } -} - -/* -GetTemplatesObservableParams contains all the parameters to send to the API endpoint - - for the get templates observable operation. - - Typically these are written to a http.Request. -*/ -type GetTemplatesObservableParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithDefaults hydrates default values in the get templates observable params (not the query body). -// -// All values with no default are reset to their zero value. -func (o *GetTemplatesObservableParams) WithDefaults() *GetTemplatesObservableParams { - o.SetDefaults() - return o -} - -// SetDefaults hydrates default values in the get templates observable params (not the query body). -// -// All values with no default are reset to their zero value. -func (o *GetTemplatesObservableParams) SetDefaults() { - // no default values defined for this parameter -} - -// WithTimeout adds the timeout to the get templates observable params -func (o *GetTemplatesObservableParams) WithTimeout(timeout time.Duration) *GetTemplatesObservableParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the get templates observable params -func (o *GetTemplatesObservableParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the get templates observable params -func (o *GetTemplatesObservableParams) WithContext(ctx context.Context) *GetTemplatesObservableParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the get templates observable params -func (o *GetTemplatesObservableParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the get templates observable params -func (o *GetTemplatesObservableParams) WithHTTPClient(client *http.Client) *GetTemplatesObservableParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the get templates observable params -func (o *GetTemplatesObservableParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *GetTemplatesObservableParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/api/devops/devops_client/template/get_templates_observable_responses.go b/api/devops/devops_client/template/get_templates_observable_responses.go deleted file mode 100644 index 14d9538..0000000 --- a/api/devops/devops_client/template/get_templates_observable_responses.go +++ /dev/null @@ -1,553 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -// (c) 2012-2020 by Taxnexus, Inc. -// All rights reserved worldwide. -// Proprietary product; unlicensed use is not allowed - -package template - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "code.tnxs.net/vernonkeenan/lib/api/devops/devops_models" -) - -// GetTemplatesObservableReader is a Reader for the GetTemplatesObservable structure. -type GetTemplatesObservableReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *GetTemplatesObservableReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewGetTemplatesObservableOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - case 401: - result := NewGetTemplatesObservableUnauthorized() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return nil, result - case 403: - result := NewGetTemplatesObservableForbidden() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return nil, result - case 404: - result := NewGetTemplatesObservableNotFound() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return nil, result - case 422: - result := NewGetTemplatesObservableUnprocessableEntity() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return nil, result - case 500: - result := NewGetTemplatesObservableInternalServerError() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return nil, result - default: - return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) - } -} - -// NewGetTemplatesObservableOK creates a GetTemplatesObservableOK with default headers values -func NewGetTemplatesObservableOK() *GetTemplatesObservableOK { - return &GetTemplatesObservableOK{} -} - -/* -GetTemplatesObservableOK describes a response with status code 200, with default header values. - -Simple Template record response -*/ -type GetTemplatesObservableOK struct { - AccessControlAllowOrigin string - CacheControl string - - 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 -} - -func (o *GetTemplatesObservableOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // hydrates response header Access-Control-Allow-Origin - hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") - - if hdrAccessControlAllowOrigin != "" { - o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin - } - - // hydrates response header Cache-Control - hdrCacheControl := response.GetHeader("Cache-Control") - - if hdrCacheControl != "" { - o.CacheControl = hdrCacheControl - } - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewGetTemplatesObservableUnauthorized creates a GetTemplatesObservableUnauthorized with default headers values -func NewGetTemplatesObservableUnauthorized() *GetTemplatesObservableUnauthorized { - return &GetTemplatesObservableUnauthorized{} -} - -/* -GetTemplatesObservableUnauthorized describes a response with status code 401, with default header values. - -Access Unauthorized, invalid API-KEY was used -*/ -type GetTemplatesObservableUnauthorized struct { - AccessControlAllowOrigin string - CacheControl string - - 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 -} - -func (o *GetTemplatesObservableUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // hydrates response header Access-Control-Allow-Origin - hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") - - if hdrAccessControlAllowOrigin != "" { - o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin - } - - // hydrates response header Cache-Control - hdrCacheControl := response.GetHeader("Cache-Control") - - if hdrCacheControl != "" { - o.CacheControl = hdrCacheControl - } - - o.Payload = new(devops_models.Error) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewGetTemplatesObservableForbidden creates a GetTemplatesObservableForbidden with default headers values -func NewGetTemplatesObservableForbidden() *GetTemplatesObservableForbidden { - return &GetTemplatesObservableForbidden{} -} - -/* -GetTemplatesObservableForbidden describes a response with status code 403, with default header values. - -Access forbidden, account lacks access -*/ -type GetTemplatesObservableForbidden struct { - AccessControlAllowOrigin string - - 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 -} - -func (o *GetTemplatesObservableForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // hydrates response header Access-Control-Allow-Origin - hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") - - if hdrAccessControlAllowOrigin != "" { - o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin - } - - o.Payload = new(devops_models.Error) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewGetTemplatesObservableNotFound creates a GetTemplatesObservableNotFound with default headers values -func NewGetTemplatesObservableNotFound() *GetTemplatesObservableNotFound { - return &GetTemplatesObservableNotFound{} -} - -/* -GetTemplatesObservableNotFound describes a response with status code 404, with default header values. - -Resource was not found -*/ -type GetTemplatesObservableNotFound struct { - AccessControlAllowOrigin string - - 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 -} - -func (o *GetTemplatesObservableNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // hydrates response header Access-Control-Allow-Origin - hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") - - if hdrAccessControlAllowOrigin != "" { - o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin - } - - o.Payload = new(devops_models.Error) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewGetTemplatesObservableUnprocessableEntity creates a GetTemplatesObservableUnprocessableEntity with default headers values -func NewGetTemplatesObservableUnprocessableEntity() *GetTemplatesObservableUnprocessableEntity { - return &GetTemplatesObservableUnprocessableEntity{} -} - -/* -GetTemplatesObservableUnprocessableEntity describes a response with status code 422, with default header values. - -Unprocessable Entity, likely a bad parameter -*/ -type GetTemplatesObservableUnprocessableEntity struct { - AccessControlAllowOrigin string - CacheControl string - - 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 -} - -func (o *GetTemplatesObservableUnprocessableEntity) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // hydrates response header Access-Control-Allow-Origin - hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") - - if hdrAccessControlAllowOrigin != "" { - o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin - } - - // hydrates response header Cache-Control - hdrCacheControl := response.GetHeader("Cache-Control") - - if hdrCacheControl != "" { - o.CacheControl = hdrCacheControl - } - - o.Payload = new(devops_models.Error) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewGetTemplatesObservableInternalServerError creates a GetTemplatesObservableInternalServerError with default headers values -func NewGetTemplatesObservableInternalServerError() *GetTemplatesObservableInternalServerError { - return &GetTemplatesObservableInternalServerError{} -} - -/* -GetTemplatesObservableInternalServerError describes a response with status code 500, with default header values. - -Server Internal Error -*/ -type GetTemplatesObservableInternalServerError struct { - AccessControlAllowOrigin string - - 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 -} - -func (o *GetTemplatesObservableInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // hydrates response header Access-Control-Allow-Origin - hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") - - if hdrAccessControlAllowOrigin != "" { - o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin - } - - o.Payload = new(devops_models.Error) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} diff --git a/api/devops/devops_client/tenant/get_tenant_parameters.go b/api/devops/devops_client/tenant/get_tenant_parameters.go deleted file mode 100644 index 8ff7ca2..0000000 --- a/api/devops/devops_client/tenant/get_tenant_parameters.go +++ /dev/null @@ -1,155 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -// (c) 2012-2020 by Taxnexus, Inc. -// All rights reserved worldwide. -// Proprietary product; unlicensed use is not allowed - -package tenant - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewGetTenantParams creates a new GetTenantParams 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 NewGetTenantParams() *GetTenantParams { - return &GetTenantParams{ - timeout: cr.DefaultTimeout, - } -} - -// NewGetTenantParamsWithTimeout creates a new GetTenantParams object -// with the ability to set a timeout on a request. -func NewGetTenantParamsWithTimeout(timeout time.Duration) *GetTenantParams { - return &GetTenantParams{ - timeout: timeout, - } -} - -// NewGetTenantParamsWithContext creates a new GetTenantParams object -// with the ability to set a context for a request. -func NewGetTenantParamsWithContext(ctx context.Context) *GetTenantParams { - return &GetTenantParams{ - Context: ctx, - } -} - -// NewGetTenantParamsWithHTTPClient creates a new GetTenantParams object -// with the ability to set a custom HTTPClient for a request. -func NewGetTenantParamsWithHTTPClient(client *http.Client) *GetTenantParams { - return &GetTenantParams{ - HTTPClient: client, - } -} - -/* -GetTenantParams contains all the parameters to send to the API endpoint - - for the get tenant operation. - - Typically these are written to a http.Request. -*/ -type GetTenantParams struct { - - /* TenantIDPath. - - Record Id of a Tenant - */ - TenantIDPath string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithDefaults hydrates default values in the get tenant params (not the query body). -// -// All values with no default are reset to their zero value. -func (o *GetTenantParams) WithDefaults() *GetTenantParams { - o.SetDefaults() - return o -} - -// SetDefaults hydrates default values in the get tenant params (not the query body). -// -// All values with no default are reset to their zero value. -func (o *GetTenantParams) SetDefaults() { - // no default values defined for this parameter -} - -// WithTimeout adds the timeout to the get tenant params -func (o *GetTenantParams) WithTimeout(timeout time.Duration) *GetTenantParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the get tenant params -func (o *GetTenantParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the get tenant params -func (o *GetTenantParams) WithContext(ctx context.Context) *GetTenantParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the get tenant params -func (o *GetTenantParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the get tenant params -func (o *GetTenantParams) WithHTTPClient(client *http.Client) *GetTenantParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the get tenant params -func (o *GetTenantParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithTenantIDPath adds the tenantIDPath to the get tenant params -func (o *GetTenantParams) WithTenantIDPath(tenantIDPath string) *GetTenantParams { - o.SetTenantIDPath(tenantIDPath) - return o -} - -// SetTenantIDPath adds the tenantIdPath to the get tenant params -func (o *GetTenantParams) SetTenantIDPath(tenantIDPath string) { - o.TenantIDPath = tenantIDPath -} - -// WriteToRequest writes these params to a swagger request -func (o *GetTenantParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // path param tenantIdPath - if err := r.SetPathParam("tenantIdPath", o.TenantIDPath); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/api/devops/devops_client/tenant/get_tenant_responses.go b/api/devops/devops_client/tenant/get_tenant_responses.go deleted file mode 100644 index 2789b57..0000000 --- a/api/devops/devops_client/tenant/get_tenant_responses.go +++ /dev/null @@ -1,555 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -// (c) 2012-2020 by Taxnexus, Inc. -// All rights reserved worldwide. -// Proprietary product; unlicensed use is not allowed - -package tenant - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "code.tnxs.net/vernonkeenan/lib/api/devops/devops_models" -) - -// GetTenantReader is a Reader for the GetTenant structure. -type GetTenantReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *GetTenantReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewGetTenantOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - case 401: - result := NewGetTenantUnauthorized() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return nil, result - case 403: - result := NewGetTenantForbidden() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return nil, result - case 404: - result := NewGetTenantNotFound() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return nil, result - case 422: - result := NewGetTenantUnprocessableEntity() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return nil, result - case 500: - result := NewGetTenantInternalServerError() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return nil, result - default: - return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) - } -} - -// NewGetTenantOK creates a GetTenantOK with default headers values -func NewGetTenantOK() *GetTenantOK { - return &GetTenantOK{} -} - -/* -GetTenantOK describes a response with status code 200, with default header values. - -Single Tenant record response -*/ -type GetTenantOK struct { - AccessControlAllowOrigin string - CacheControl string - - 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 -} - -func (o *GetTenantOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // hydrates response header Access-Control-Allow-Origin - hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") - - if hdrAccessControlAllowOrigin != "" { - o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin - } - - // hydrates response header Cache-Control - hdrCacheControl := response.GetHeader("Cache-Control") - - if hdrCacheControl != "" { - o.CacheControl = hdrCacheControl - } - - o.Payload = new(devops_models.Tenant) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewGetTenantUnauthorized creates a GetTenantUnauthorized with default headers values -func NewGetTenantUnauthorized() *GetTenantUnauthorized { - return &GetTenantUnauthorized{} -} - -/* -GetTenantUnauthorized describes a response with status code 401, with default header values. - -Access Unauthorized, invalid API-KEY was used -*/ -type GetTenantUnauthorized struct { - AccessControlAllowOrigin string - CacheControl string - - 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 -} - -func (o *GetTenantUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // hydrates response header Access-Control-Allow-Origin - hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") - - if hdrAccessControlAllowOrigin != "" { - o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin - } - - // hydrates response header Cache-Control - hdrCacheControl := response.GetHeader("Cache-Control") - - if hdrCacheControl != "" { - o.CacheControl = hdrCacheControl - } - - o.Payload = new(devops_models.Error) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewGetTenantForbidden creates a GetTenantForbidden with default headers values -func NewGetTenantForbidden() *GetTenantForbidden { - return &GetTenantForbidden{} -} - -/* -GetTenantForbidden describes a response with status code 403, with default header values. - -Access forbidden, account lacks access -*/ -type GetTenantForbidden struct { - AccessControlAllowOrigin string - - 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 -} - -func (o *GetTenantForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // hydrates response header Access-Control-Allow-Origin - hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") - - if hdrAccessControlAllowOrigin != "" { - o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin - } - - o.Payload = new(devops_models.Error) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewGetTenantNotFound creates a GetTenantNotFound with default headers values -func NewGetTenantNotFound() *GetTenantNotFound { - return &GetTenantNotFound{} -} - -/* -GetTenantNotFound describes a response with status code 404, with default header values. - -Resource was not found -*/ -type GetTenantNotFound struct { - AccessControlAllowOrigin string - - 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 -} - -func (o *GetTenantNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // hydrates response header Access-Control-Allow-Origin - hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") - - if hdrAccessControlAllowOrigin != "" { - o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin - } - - o.Payload = new(devops_models.Error) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewGetTenantUnprocessableEntity creates a GetTenantUnprocessableEntity with default headers values -func NewGetTenantUnprocessableEntity() *GetTenantUnprocessableEntity { - return &GetTenantUnprocessableEntity{} -} - -/* -GetTenantUnprocessableEntity describes a response with status code 422, with default header values. - -Unprocessable Entity, likely a bad parameter -*/ -type GetTenantUnprocessableEntity struct { - AccessControlAllowOrigin string - CacheControl string - - 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 -} - -func (o *GetTenantUnprocessableEntity) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // hydrates response header Access-Control-Allow-Origin - hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") - - if hdrAccessControlAllowOrigin != "" { - o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin - } - - // hydrates response header Cache-Control - hdrCacheControl := response.GetHeader("Cache-Control") - - if hdrCacheControl != "" { - o.CacheControl = hdrCacheControl - } - - o.Payload = new(devops_models.Error) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewGetTenantInternalServerError creates a GetTenantInternalServerError with default headers values -func NewGetTenantInternalServerError() *GetTenantInternalServerError { - return &GetTenantInternalServerError{} -} - -/* -GetTenantInternalServerError describes a response with status code 500, with default header values. - -Server Internal Error -*/ -type GetTenantInternalServerError struct { - AccessControlAllowOrigin string - - 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 -} - -func (o *GetTenantInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // hydrates response header Access-Control-Allow-Origin - hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") - - if hdrAccessControlAllowOrigin != "" { - o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin - } - - o.Payload = new(devops_models.Error) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} diff --git a/api/devops/devops_client/tenant/get_tenants_observable_parameters.go b/api/devops/devops_client/tenant/get_tenants_observable_parameters.go deleted file mode 100644 index 7b01a05..0000000 --- a/api/devops/devops_client/tenant/get_tenants_observable_parameters.go +++ /dev/null @@ -1,132 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -// (c) 2012-2020 by Taxnexus, Inc. -// All rights reserved worldwide. -// Proprietary product; unlicensed use is not allowed - -package tenant - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewGetTenantsObservableParams creates a new GetTenantsObservableParams 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 NewGetTenantsObservableParams() *GetTenantsObservableParams { - return &GetTenantsObservableParams{ - timeout: cr.DefaultTimeout, - } -} - -// NewGetTenantsObservableParamsWithTimeout creates a new GetTenantsObservableParams object -// with the ability to set a timeout on a request. -func NewGetTenantsObservableParamsWithTimeout(timeout time.Duration) *GetTenantsObservableParams { - return &GetTenantsObservableParams{ - timeout: timeout, - } -} - -// NewGetTenantsObservableParamsWithContext creates a new GetTenantsObservableParams object -// with the ability to set a context for a request. -func NewGetTenantsObservableParamsWithContext(ctx context.Context) *GetTenantsObservableParams { - return &GetTenantsObservableParams{ - Context: ctx, - } -} - -// NewGetTenantsObservableParamsWithHTTPClient creates a new GetTenantsObservableParams object -// with the ability to set a custom HTTPClient for a request. -func NewGetTenantsObservableParamsWithHTTPClient(client *http.Client) *GetTenantsObservableParams { - return &GetTenantsObservableParams{ - HTTPClient: client, - } -} - -/* -GetTenantsObservableParams contains all the parameters to send to the API endpoint - - for the get tenants observable operation. - - Typically these are written to a http.Request. -*/ -type GetTenantsObservableParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithDefaults hydrates default values in the get tenants observable params (not the query body). -// -// All values with no default are reset to their zero value. -func (o *GetTenantsObservableParams) WithDefaults() *GetTenantsObservableParams { - o.SetDefaults() - return o -} - -// SetDefaults hydrates default values in the get tenants observable params (not the query body). -// -// All values with no default are reset to their zero value. -func (o *GetTenantsObservableParams) SetDefaults() { - // no default values defined for this parameter -} - -// WithTimeout adds the timeout to the get tenants observable params -func (o *GetTenantsObservableParams) WithTimeout(timeout time.Duration) *GetTenantsObservableParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the get tenants observable params -func (o *GetTenantsObservableParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the get tenants observable params -func (o *GetTenantsObservableParams) WithContext(ctx context.Context) *GetTenantsObservableParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the get tenants observable params -func (o *GetTenantsObservableParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the get tenants observable params -func (o *GetTenantsObservableParams) WithHTTPClient(client *http.Client) *GetTenantsObservableParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the get tenants observable params -func (o *GetTenantsObservableParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *GetTenantsObservableParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/api/devops/devops_client/tenant/get_tenants_observable_responses.go b/api/devops/devops_client/tenant/get_tenants_observable_responses.go deleted file mode 100644 index 8b66deb..0000000 --- a/api/devops/devops_client/tenant/get_tenants_observable_responses.go +++ /dev/null @@ -1,553 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -// (c) 2012-2020 by Taxnexus, Inc. -// All rights reserved worldwide. -// Proprietary product; unlicensed use is not allowed - -package tenant - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "code.tnxs.net/vernonkeenan/lib/api/devops/devops_models" -) - -// GetTenantsObservableReader is a Reader for the GetTenantsObservable structure. -type GetTenantsObservableReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *GetTenantsObservableReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewGetTenantsObservableOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - case 401: - result := NewGetTenantsObservableUnauthorized() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return nil, result - case 403: - result := NewGetTenantsObservableForbidden() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return nil, result - case 404: - result := NewGetTenantsObservableNotFound() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return nil, result - case 422: - result := NewGetTenantsObservableUnprocessableEntity() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return nil, result - case 500: - result := NewGetTenantsObservableInternalServerError() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return nil, result - default: - return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) - } -} - -// NewGetTenantsObservableOK creates a GetTenantsObservableOK with default headers values -func NewGetTenantsObservableOK() *GetTenantsObservableOK { - return &GetTenantsObservableOK{} -} - -/* -GetTenantsObservableOK describes a response with status code 200, with default header values. - -Single Tenant record response -*/ -type GetTenantsObservableOK struct { - AccessControlAllowOrigin string - CacheControl string - - 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 -} - -func (o *GetTenantsObservableOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // hydrates response header Access-Control-Allow-Origin - hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") - - if hdrAccessControlAllowOrigin != "" { - o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin - } - - // hydrates response header Cache-Control - hdrCacheControl := response.GetHeader("Cache-Control") - - if hdrCacheControl != "" { - o.CacheControl = hdrCacheControl - } - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewGetTenantsObservableUnauthorized creates a GetTenantsObservableUnauthorized with default headers values -func NewGetTenantsObservableUnauthorized() *GetTenantsObservableUnauthorized { - return &GetTenantsObservableUnauthorized{} -} - -/* -GetTenantsObservableUnauthorized describes a response with status code 401, with default header values. - -Access Unauthorized, invalid API-KEY was used -*/ -type GetTenantsObservableUnauthorized struct { - AccessControlAllowOrigin string - CacheControl string - - 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 -} - -func (o *GetTenantsObservableUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // hydrates response header Access-Control-Allow-Origin - hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") - - if hdrAccessControlAllowOrigin != "" { - o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin - } - - // hydrates response header Cache-Control - hdrCacheControl := response.GetHeader("Cache-Control") - - if hdrCacheControl != "" { - o.CacheControl = hdrCacheControl - } - - o.Payload = new(devops_models.Error) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewGetTenantsObservableForbidden creates a GetTenantsObservableForbidden with default headers values -func NewGetTenantsObservableForbidden() *GetTenantsObservableForbidden { - return &GetTenantsObservableForbidden{} -} - -/* -GetTenantsObservableForbidden describes a response with status code 403, with default header values. - -Access forbidden, account lacks access -*/ -type GetTenantsObservableForbidden struct { - AccessControlAllowOrigin string - - 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 -} - -func (o *GetTenantsObservableForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // hydrates response header Access-Control-Allow-Origin - hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") - - if hdrAccessControlAllowOrigin != "" { - o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin - } - - o.Payload = new(devops_models.Error) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewGetTenantsObservableNotFound creates a GetTenantsObservableNotFound with default headers values -func NewGetTenantsObservableNotFound() *GetTenantsObservableNotFound { - return &GetTenantsObservableNotFound{} -} - -/* -GetTenantsObservableNotFound describes a response with status code 404, with default header values. - -Resource was not found -*/ -type GetTenantsObservableNotFound struct { - AccessControlAllowOrigin string - - 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 -} - -func (o *GetTenantsObservableNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // hydrates response header Access-Control-Allow-Origin - hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") - - if hdrAccessControlAllowOrigin != "" { - o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin - } - - o.Payload = new(devops_models.Error) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewGetTenantsObservableUnprocessableEntity creates a GetTenantsObservableUnprocessableEntity with default headers values -func NewGetTenantsObservableUnprocessableEntity() *GetTenantsObservableUnprocessableEntity { - return &GetTenantsObservableUnprocessableEntity{} -} - -/* -GetTenantsObservableUnprocessableEntity describes a response with status code 422, with default header values. - -Unprocessable Entity, likely a bad parameter -*/ -type GetTenantsObservableUnprocessableEntity struct { - AccessControlAllowOrigin string - CacheControl string - - 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 -} - -func (o *GetTenantsObservableUnprocessableEntity) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // hydrates response header Access-Control-Allow-Origin - hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") - - if hdrAccessControlAllowOrigin != "" { - o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin - } - - // hydrates response header Cache-Control - hdrCacheControl := response.GetHeader("Cache-Control") - - if hdrCacheControl != "" { - o.CacheControl = hdrCacheControl - } - - o.Payload = new(devops_models.Error) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewGetTenantsObservableInternalServerError creates a GetTenantsObservableInternalServerError with default headers values -func NewGetTenantsObservableInternalServerError() *GetTenantsObservableInternalServerError { - return &GetTenantsObservableInternalServerError{} -} - -/* -GetTenantsObservableInternalServerError describes a response with status code 500, with default header values. - -Server Internal Error -*/ -type GetTenantsObservableInternalServerError struct { - AccessControlAllowOrigin string - - 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 -} - -func (o *GetTenantsObservableInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // hydrates response header Access-Control-Allow-Origin - hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") - - if hdrAccessControlAllowOrigin != "" { - o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin - } - - o.Payload = new(devops_models.Error) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} diff --git a/api/devops/devops_client/user/get_user_parameters.go b/api/devops/devops_client/user/get_user_parameters.go deleted file mode 100644 index 1fb79e2..0000000 --- a/api/devops/devops_client/user/get_user_parameters.go +++ /dev/null @@ -1,155 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -// (c) 2012-2020 by Taxnexus, Inc. -// All rights reserved worldwide. -// Proprietary product; unlicensed use is not allowed - -package user - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewGetUserParams creates a new GetUserParams 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 NewGetUserParams() *GetUserParams { - return &GetUserParams{ - timeout: cr.DefaultTimeout, - } -} - -// NewGetUserParamsWithTimeout creates a new GetUserParams object -// with the ability to set a timeout on a request. -func NewGetUserParamsWithTimeout(timeout time.Duration) *GetUserParams { - return &GetUserParams{ - timeout: timeout, - } -} - -// NewGetUserParamsWithContext creates a new GetUserParams object -// with the ability to set a context for a request. -func NewGetUserParamsWithContext(ctx context.Context) *GetUserParams { - return &GetUserParams{ - Context: ctx, - } -} - -// NewGetUserParamsWithHTTPClient creates a new GetUserParams object -// with the ability to set a custom HTTPClient for a request. -func NewGetUserParamsWithHTTPClient(client *http.Client) *GetUserParams { - return &GetUserParams{ - HTTPClient: client, - } -} - -/* -GetUserParams contains all the parameters to send to the API endpoint - - for the get user operation. - - Typically these are written to a http.Request. -*/ -type GetUserParams struct { - - /* UserIDPath. - - Record Id of a User - */ - UserIDPath string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithDefaults hydrates default values in the get user params (not the query body). -// -// All values with no default are reset to their zero value. -func (o *GetUserParams) WithDefaults() *GetUserParams { - o.SetDefaults() - return o -} - -// SetDefaults hydrates default values in the get user params (not the query body). -// -// All values with no default are reset to their zero value. -func (o *GetUserParams) SetDefaults() { - // no default values defined for this parameter -} - -// WithTimeout adds the timeout to the get user params -func (o *GetUserParams) WithTimeout(timeout time.Duration) *GetUserParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the get user params -func (o *GetUserParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the get user params -func (o *GetUserParams) WithContext(ctx context.Context) *GetUserParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the get user params -func (o *GetUserParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the get user params -func (o *GetUserParams) WithHTTPClient(client *http.Client) *GetUserParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the get user params -func (o *GetUserParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithUserIDPath adds the userIDPath to the get user params -func (o *GetUserParams) WithUserIDPath(userIDPath string) *GetUserParams { - o.SetUserIDPath(userIDPath) - return o -} - -// SetUserIDPath adds the userIdPath to the get user params -func (o *GetUserParams) SetUserIDPath(userIDPath string) { - o.UserIDPath = userIDPath -} - -// WriteToRequest writes these params to a swagger request -func (o *GetUserParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // path param userIdPath - if err := r.SetPathParam("userIdPath", o.UserIDPath); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/api/devops/devops_client/user/get_user_responses.go b/api/devops/devops_client/user/get_user_responses.go deleted file mode 100644 index 5f12076..0000000 --- a/api/devops/devops_client/user/get_user_responses.go +++ /dev/null @@ -1,555 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -// (c) 2012-2020 by Taxnexus, Inc. -// All rights reserved worldwide. -// Proprietary product; unlicensed use is not allowed - -package user - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "code.tnxs.net/vernonkeenan/lib/api/devops/devops_models" -) - -// GetUserReader is a Reader for the GetUser structure. -type GetUserReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *GetUserReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewGetUserOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - case 401: - result := NewGetUserUnauthorized() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return nil, result - case 403: - result := NewGetUserForbidden() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return nil, result - case 404: - result := NewGetUserNotFound() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return nil, result - case 422: - result := NewGetUserUnprocessableEntity() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return nil, result - case 500: - result := NewGetUserInternalServerError() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return nil, result - default: - return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) - } -} - -// NewGetUserOK creates a GetUserOK with default headers values -func NewGetUserOK() *GetUserOK { - return &GetUserOK{} -} - -/* -GetUserOK describes a response with status code 200, with default header values. - -Single User record response -*/ -type GetUserOK struct { - AccessControlAllowOrigin string - CacheControl string - - 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 -} - -func (o *GetUserOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // hydrates response header Access-Control-Allow-Origin - hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") - - if hdrAccessControlAllowOrigin != "" { - o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin - } - - // hydrates response header Cache-Control - hdrCacheControl := response.GetHeader("Cache-Control") - - if hdrCacheControl != "" { - o.CacheControl = hdrCacheControl - } - - o.Payload = new(devops_models.User) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewGetUserUnauthorized creates a GetUserUnauthorized with default headers values -func NewGetUserUnauthorized() *GetUserUnauthorized { - return &GetUserUnauthorized{} -} - -/* -GetUserUnauthorized describes a response with status code 401, with default header values. - -Access Unauthorized, invalid API-KEY was used -*/ -type GetUserUnauthorized struct { - AccessControlAllowOrigin string - CacheControl string - - 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 -} - -func (o *GetUserUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // hydrates response header Access-Control-Allow-Origin - hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") - - if hdrAccessControlAllowOrigin != "" { - o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin - } - - // hydrates response header Cache-Control - hdrCacheControl := response.GetHeader("Cache-Control") - - if hdrCacheControl != "" { - o.CacheControl = hdrCacheControl - } - - o.Payload = new(devops_models.Error) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewGetUserForbidden creates a GetUserForbidden with default headers values -func NewGetUserForbidden() *GetUserForbidden { - return &GetUserForbidden{} -} - -/* -GetUserForbidden describes a response with status code 403, with default header values. - -Access forbidden, account lacks access -*/ -type GetUserForbidden struct { - AccessControlAllowOrigin string - - 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 -} - -func (o *GetUserForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // hydrates response header Access-Control-Allow-Origin - hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") - - if hdrAccessControlAllowOrigin != "" { - o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin - } - - o.Payload = new(devops_models.Error) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewGetUserNotFound creates a GetUserNotFound with default headers values -func NewGetUserNotFound() *GetUserNotFound { - return &GetUserNotFound{} -} - -/* -GetUserNotFound describes a response with status code 404, with default header values. - -Resource was not found -*/ -type GetUserNotFound struct { - AccessControlAllowOrigin string - - 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 -} - -func (o *GetUserNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // hydrates response header Access-Control-Allow-Origin - hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") - - if hdrAccessControlAllowOrigin != "" { - o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin - } - - o.Payload = new(devops_models.Error) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewGetUserUnprocessableEntity creates a GetUserUnprocessableEntity with default headers values -func NewGetUserUnprocessableEntity() *GetUserUnprocessableEntity { - return &GetUserUnprocessableEntity{} -} - -/* -GetUserUnprocessableEntity describes a response with status code 422, with default header values. - -Unprocessable Entity, likely a bad parameter -*/ -type GetUserUnprocessableEntity struct { - AccessControlAllowOrigin string - CacheControl string - - 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 -} - -func (o *GetUserUnprocessableEntity) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // hydrates response header Access-Control-Allow-Origin - hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") - - if hdrAccessControlAllowOrigin != "" { - o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin - } - - // hydrates response header Cache-Control - hdrCacheControl := response.GetHeader("Cache-Control") - - if hdrCacheControl != "" { - o.CacheControl = hdrCacheControl - } - - o.Payload = new(devops_models.Error) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewGetUserInternalServerError creates a GetUserInternalServerError with default headers values -func NewGetUserInternalServerError() *GetUserInternalServerError { - return &GetUserInternalServerError{} -} - -/* -GetUserInternalServerError describes a response with status code 500, with default header values. - -Server Internal Error -*/ -type GetUserInternalServerError struct { - AccessControlAllowOrigin string - - 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 -} - -func (o *GetUserInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // hydrates response header Access-Control-Allow-Origin - hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") - - if hdrAccessControlAllowOrigin != "" { - o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin - } - - o.Payload = new(devops_models.Error) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} diff --git a/api/devops/devops_client/user/get_users_observable_parameters.go b/api/devops/devops_client/user/get_users_observable_parameters.go deleted file mode 100644 index e891386..0000000 --- a/api/devops/devops_client/user/get_users_observable_parameters.go +++ /dev/null @@ -1,132 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -// (c) 2012-2020 by Taxnexus, Inc. -// All rights reserved worldwide. -// Proprietary product; unlicensed use is not allowed - -package user - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewGetUsersObservableParams creates a new GetUsersObservableParams 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 NewGetUsersObservableParams() *GetUsersObservableParams { - return &GetUsersObservableParams{ - timeout: cr.DefaultTimeout, - } -} - -// NewGetUsersObservableParamsWithTimeout creates a new GetUsersObservableParams object -// with the ability to set a timeout on a request. -func NewGetUsersObservableParamsWithTimeout(timeout time.Duration) *GetUsersObservableParams { - return &GetUsersObservableParams{ - timeout: timeout, - } -} - -// NewGetUsersObservableParamsWithContext creates a new GetUsersObservableParams object -// with the ability to set a context for a request. -func NewGetUsersObservableParamsWithContext(ctx context.Context) *GetUsersObservableParams { - return &GetUsersObservableParams{ - Context: ctx, - } -} - -// NewGetUsersObservableParamsWithHTTPClient creates a new GetUsersObservableParams object -// with the ability to set a custom HTTPClient for a request. -func NewGetUsersObservableParamsWithHTTPClient(client *http.Client) *GetUsersObservableParams { - return &GetUsersObservableParams{ - HTTPClient: client, - } -} - -/* -GetUsersObservableParams contains all the parameters to send to the API endpoint - - for the get users observable operation. - - Typically these are written to a http.Request. -*/ -type GetUsersObservableParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithDefaults hydrates default values in the get users observable params (not the query body). -// -// All values with no default are reset to their zero value. -func (o *GetUsersObservableParams) WithDefaults() *GetUsersObservableParams { - o.SetDefaults() - return o -} - -// SetDefaults hydrates default values in the get users observable params (not the query body). -// -// All values with no default are reset to their zero value. -func (o *GetUsersObservableParams) SetDefaults() { - // no default values defined for this parameter -} - -// WithTimeout adds the timeout to the get users observable params -func (o *GetUsersObservableParams) WithTimeout(timeout time.Duration) *GetUsersObservableParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the get users observable params -func (o *GetUsersObservableParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the get users observable params -func (o *GetUsersObservableParams) WithContext(ctx context.Context) *GetUsersObservableParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the get users observable params -func (o *GetUsersObservableParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the get users observable params -func (o *GetUsersObservableParams) WithHTTPClient(client *http.Client) *GetUsersObservableParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the get users observable params -func (o *GetUsersObservableParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *GetUsersObservableParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/api/devops/devops_client/user/get_users_observable_responses.go b/api/devops/devops_client/user/get_users_observable_responses.go deleted file mode 100644 index 9ebca7d..0000000 --- a/api/devops/devops_client/user/get_users_observable_responses.go +++ /dev/null @@ -1,553 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -// (c) 2012-2020 by Taxnexus, Inc. -// All rights reserved worldwide. -// Proprietary product; unlicensed use is not allowed - -package user - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "code.tnxs.net/vernonkeenan/lib/api/devops/devops_models" -) - -// GetUsersObservableReader is a Reader for the GetUsersObservable structure. -type GetUsersObservableReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *GetUsersObservableReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewGetUsersObservableOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - case 401: - result := NewGetUsersObservableUnauthorized() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return nil, result - case 403: - result := NewGetUsersObservableForbidden() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return nil, result - case 404: - result := NewGetUsersObservableNotFound() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return nil, result - case 422: - result := NewGetUsersObservableUnprocessableEntity() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return nil, result - case 500: - result := NewGetUsersObservableInternalServerError() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return nil, result - default: - return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) - } -} - -// NewGetUsersObservableOK creates a GetUsersObservableOK with default headers values -func NewGetUsersObservableOK() *GetUsersObservableOK { - return &GetUsersObservableOK{} -} - -/* -GetUsersObservableOK describes a response with status code 200, with default header values. - -Simple User record response -*/ -type GetUsersObservableOK struct { - AccessControlAllowOrigin string - CacheControl string - - 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 -} - -func (o *GetUsersObservableOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // hydrates response header Access-Control-Allow-Origin - hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") - - if hdrAccessControlAllowOrigin != "" { - o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin - } - - // hydrates response header Cache-Control - hdrCacheControl := response.GetHeader("Cache-Control") - - if hdrCacheControl != "" { - o.CacheControl = hdrCacheControl - } - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewGetUsersObservableUnauthorized creates a GetUsersObservableUnauthorized with default headers values -func NewGetUsersObservableUnauthorized() *GetUsersObservableUnauthorized { - return &GetUsersObservableUnauthorized{} -} - -/* -GetUsersObservableUnauthorized describes a response with status code 401, with default header values. - -Access Unauthorized, invalid API-KEY was used -*/ -type GetUsersObservableUnauthorized struct { - AccessControlAllowOrigin string - CacheControl string - - 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 -} - -func (o *GetUsersObservableUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // hydrates response header Access-Control-Allow-Origin - hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") - - if hdrAccessControlAllowOrigin != "" { - o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin - } - - // hydrates response header Cache-Control - hdrCacheControl := response.GetHeader("Cache-Control") - - if hdrCacheControl != "" { - o.CacheControl = hdrCacheControl - } - - o.Payload = new(devops_models.Error) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewGetUsersObservableForbidden creates a GetUsersObservableForbidden with default headers values -func NewGetUsersObservableForbidden() *GetUsersObservableForbidden { - return &GetUsersObservableForbidden{} -} - -/* -GetUsersObservableForbidden describes a response with status code 403, with default header values. - -Access forbidden, account lacks access -*/ -type GetUsersObservableForbidden struct { - AccessControlAllowOrigin string - - 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 -} - -func (o *GetUsersObservableForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // hydrates response header Access-Control-Allow-Origin - hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") - - if hdrAccessControlAllowOrigin != "" { - o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin - } - - o.Payload = new(devops_models.Error) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewGetUsersObservableNotFound creates a GetUsersObservableNotFound with default headers values -func NewGetUsersObservableNotFound() *GetUsersObservableNotFound { - return &GetUsersObservableNotFound{} -} - -/* -GetUsersObservableNotFound describes a response with status code 404, with default header values. - -Resource was not found -*/ -type GetUsersObservableNotFound struct { - AccessControlAllowOrigin string - - 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 -} - -func (o *GetUsersObservableNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // hydrates response header Access-Control-Allow-Origin - hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") - - if hdrAccessControlAllowOrigin != "" { - o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin - } - - o.Payload = new(devops_models.Error) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewGetUsersObservableUnprocessableEntity creates a GetUsersObservableUnprocessableEntity with default headers values -func NewGetUsersObservableUnprocessableEntity() *GetUsersObservableUnprocessableEntity { - return &GetUsersObservableUnprocessableEntity{} -} - -/* -GetUsersObservableUnprocessableEntity describes a response with status code 422, with default header values. - -Unprocessable Entity, likely a bad parameter -*/ -type GetUsersObservableUnprocessableEntity struct { - AccessControlAllowOrigin string - CacheControl string - - 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 -} - -func (o *GetUsersObservableUnprocessableEntity) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // hydrates response header Access-Control-Allow-Origin - hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") - - if hdrAccessControlAllowOrigin != "" { - o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin - } - - // hydrates response header Cache-Control - hdrCacheControl := response.GetHeader("Cache-Control") - - if hdrCacheControl != "" { - o.CacheControl = hdrCacheControl - } - - o.Payload = new(devops_models.Error) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewGetUsersObservableInternalServerError creates a GetUsersObservableInternalServerError with default headers values -func NewGetUsersObservableInternalServerError() *GetUsersObservableInternalServerError { - return &GetUsersObservableInternalServerError{} -} - -/* -GetUsersObservableInternalServerError describes a response with status code 500, with default header values. - -Server Internal Error -*/ -type GetUsersObservableInternalServerError struct { - AccessControlAllowOrigin string - - 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 -} - -func (o *GetUsersObservableInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // hydrates response header Access-Control-Allow-Origin - hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") - - if hdrAccessControlAllowOrigin != "" { - o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin - } - - o.Payload = new(devops_models.Error) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} diff --git a/api/devops/devops_models/delete_response.go b/api/devops/devops_models/delete_response.go deleted file mode 100644 index f0b8c46..0000000 --- a/api/devops/devops_models/delete_response.go +++ /dev/null @@ -1,166 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -// (c) 2012-2020 by Taxnexus, Inc. -// All rights reserved worldwide. -// Proprietary product; unlicensed use is not allowed - -package devops_models - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "strconv" - - "github.com/go-openapi/errors" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// DeleteResponse delete response -// -// swagger:model DeleteResponse -type DeleteResponse struct { - - // data - Data []*Message `json:"Data"` - - // meta - Meta *ResponseMeta `json:"Meta,omitempty"` -} - -// Validate validates this delete response -func (m *DeleteResponse) Validate(formats strfmt.Registry) error { - var res []error - - if err := m.validateData(formats); err != nil { - res = append(res, err) - } - - if err := m.validateMeta(formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -func (m *DeleteResponse) validateData(formats strfmt.Registry) error { - if swag.IsZero(m.Data) { // not required - return nil - } - - for i := 0; i < len(m.Data); i++ { - if swag.IsZero(m.Data[i]) { // not required - continue - } - - if m.Data[i] != nil { - if err := m.Data[i].Validate(formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("Data" + "." + strconv.Itoa(i)) - } else if ce, ok := err.(*errors.CompositeError); ok { - return ce.ValidateName("Data" + "." + strconv.Itoa(i)) - } - return err - } - } - - } - - return nil -} - -func (m *DeleteResponse) validateMeta(formats strfmt.Registry) error { - if swag.IsZero(m.Meta) { // not required - return nil - } - - if m.Meta != nil { - if err := m.Meta.Validate(formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("Meta") - } else if ce, ok := err.(*errors.CompositeError); ok { - return ce.ValidateName("Meta") - } - return err - } - } - - return nil -} - -// ContextValidate validate this delete response based on the context it is used -func (m *DeleteResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error { - var res []error - - if err := m.contextValidateData(ctx, formats); err != nil { - res = append(res, err) - } - - if err := m.contextValidateMeta(ctx, formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -func (m *DeleteResponse) contextValidateData(ctx context.Context, formats strfmt.Registry) error { - - for i := 0; i < len(m.Data); i++ { - - if m.Data[i] != nil { - if err := m.Data[i].ContextValidate(ctx, formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("Data" + "." + strconv.Itoa(i)) - } else if ce, ok := err.(*errors.CompositeError); ok { - return ce.ValidateName("Data" + "." + strconv.Itoa(i)) - } - return err - } - } - - } - - return nil -} - -func (m *DeleteResponse) contextValidateMeta(ctx context.Context, formats strfmt.Registry) error { - - if m.Meta != nil { - if err := m.Meta.ContextValidate(ctx, formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("Meta") - } else if ce, ok := err.(*errors.CompositeError); ok { - return ce.ValidateName("Meta") - } - return err - } - } - - return nil -} - -// MarshalBinary interface implementation -func (m *DeleteResponse) MarshalBinary() ([]byte, error) { - if m == nil { - return nil, nil - } - return swag.WriteJSON(m) -} - -// UnmarshalBinary interface implementation -func (m *DeleteResponse) UnmarshalBinary(b []byte) error { - var res DeleteResponse - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *m = res - return nil -} diff --git a/api/members/members_client/attendees/attendees_client.go b/api/members/members_client/attendees/attendees_client.go new file mode 100644 index 0000000..20573bd --- /dev/null +++ b/api/members/members_client/attendees/attendees_client.go @@ -0,0 +1,203 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package attendees + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" +) + +// New creates a new attendees API client. +func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService { + return &Client{transport: transport, formats: formats} +} + +/* +Client for attendees API +*/ +type Client struct { + transport runtime.ClientTransport + 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 { + CreateAttendee(params *CreateAttendeeParams, opts ...ClientOption) (*CreateAttendeeCreated, error) + + DeleteAttendee(params *DeleteAttendeeParams, opts ...ClientOption) (*DeleteAttendeeNoContent, error) + + GetAttendees(params *GetAttendeesParams, opts ...ClientOption) (*GetAttendeesOK, error) + + UpdateAttendee(params *UpdateAttendeeParams, opts ...ClientOption) (*UpdateAttendeeOK, error) + + SetTransport(transport runtime.ClientTransport) +} + +/* +CreateAttendee creates a new attendee +*/ +func (a *Client) CreateAttendee(params *CreateAttendeeParams, opts ...ClientOption) (*CreateAttendeeCreated, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewCreateAttendeeParams() + } + op := &runtime.ClientOperation{ + ID: "createAttendee", + Method: "POST", + PathPattern: "/attendees", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &CreateAttendeeReader{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 + } + success, ok := result.(*CreateAttendeeCreated) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for createAttendee: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +DeleteAttendee deletes a attendee +*/ +func (a *Client) DeleteAttendee(params *DeleteAttendeeParams, opts ...ClientOption) (*DeleteAttendeeNoContent, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewDeleteAttendeeParams() + } + op := &runtime.ClientOperation{ + ID: "deleteAttendee", + Method: "DELETE", + PathPattern: "/attendees", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &DeleteAttendeeReader{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 + } + success, ok := result.(*DeleteAttendeeNoContent) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for deleteAttendee: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +GetAttendees gets a list of attendees +*/ +func (a *Client) GetAttendees(params *GetAttendeesParams, opts ...ClientOption) (*GetAttendeesOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewGetAttendeesParams() + } + op := &runtime.ClientOperation{ + ID: "getAttendees", + Method: "GET", + PathPattern: "/attendees", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &GetAttendeesReader{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 + } + success, ok := result.(*GetAttendeesOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for getAttendees: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +UpdateAttendee updates an existing attendee +*/ +func (a *Client) UpdateAttendee(params *UpdateAttendeeParams, opts ...ClientOption) (*UpdateAttendeeOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewUpdateAttendeeParams() + } + op := &runtime.ClientOperation{ + ID: "updateAttendee", + Method: "PUT", + PathPattern: "/attendees", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &UpdateAttendeeReader{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 + } + success, ok := result.(*UpdateAttendeeOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for updateAttendee: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +// SetTransport changes the transport on the client +func (a *Client) SetTransport(transport runtime.ClientTransport) { + a.transport = transport +} diff --git a/api/members/members_client/operations/create_attendee_parameters.go b/api/members/members_client/attendees/create_attendee_parameters.go similarity index 99% rename from api/members/members_client/operations/create_attendee_parameters.go rename to api/members/members_client/attendees/create_attendee_parameters.go index e802bdd..6b5929e 100644 --- a/api/members/members_client/operations/create_attendee_parameters.go +++ b/api/members/members_client/attendees/create_attendee_parameters.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package attendees // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/operations/create_attendee_responses.go b/api/members/members_client/attendees/create_attendee_responses.go similarity index 99% rename from api/members/members_client/operations/create_attendee_responses.go rename to api/members/members_client/attendees/create_attendee_responses.go index 2665106..cc25770 100644 --- a/api/members/members_client/operations/create_attendee_responses.go +++ b/api/members/members_client/attendees/create_attendee_responses.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package attendees // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/operations/delete_attendee_parameters.go b/api/members/members_client/attendees/delete_attendee_parameters.go similarity index 99% rename from api/members/members_client/operations/delete_attendee_parameters.go rename to api/members/members_client/attendees/delete_attendee_parameters.go index e826552..45bc1d8 100644 --- a/api/members/members_client/operations/delete_attendee_parameters.go +++ b/api/members/members_client/attendees/delete_attendee_parameters.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package attendees // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/operations/delete_attendee_responses.go b/api/members/members_client/attendees/delete_attendee_responses.go similarity index 99% rename from api/members/members_client/operations/delete_attendee_responses.go rename to api/members/members_client/attendees/delete_attendee_responses.go index 1cd0309..5f103c5 100644 --- a/api/members/members_client/operations/delete_attendee_responses.go +++ b/api/members/members_client/attendees/delete_attendee_responses.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package attendees // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/operations/get_attendees_parameters.go b/api/members/members_client/attendees/get_attendees_parameters.go similarity index 99% rename from api/members/members_client/operations/get_attendees_parameters.go rename to api/members/members_client/attendees/get_attendees_parameters.go index 8a03b00..ab01332 100644 --- a/api/members/members_client/operations/get_attendees_parameters.go +++ b/api/members/members_client/attendees/get_attendees_parameters.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package attendees // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/operations/get_attendees_responses.go b/api/members/members_client/attendees/get_attendees_responses.go similarity index 99% rename from api/members/members_client/operations/get_attendees_responses.go rename to api/members/members_client/attendees/get_attendees_responses.go index 125b214..e22394b 100644 --- a/api/members/members_client/operations/get_attendees_responses.go +++ b/api/members/members_client/attendees/get_attendees_responses.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package attendees // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/operations/update_attendee_parameters.go b/api/members/members_client/attendees/update_attendee_parameters.go similarity index 99% rename from api/members/members_client/operations/update_attendee_parameters.go rename to api/members/members_client/attendees/update_attendee_parameters.go index d91f88f..4426a29 100644 --- a/api/members/members_client/operations/update_attendee_parameters.go +++ b/api/members/members_client/attendees/update_attendee_parameters.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package attendees // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/operations/update_attendee_responses.go b/api/members/members_client/attendees/update_attendee_responses.go similarity index 99% rename from api/members/members_client/operations/update_attendee_responses.go rename to api/members/members_client/attendees/update_attendee_responses.go index 09e5082..ea9f85b 100644 --- a/api/members/members_client/operations/update_attendee_responses.go +++ b/api/members/members_client/attendees/update_attendee_responses.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package attendees // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/certificates/certificates_client.go b/api/members/members_client/certificates/certificates_client.go new file mode 100644 index 0000000..418a957 --- /dev/null +++ b/api/members/members_client/certificates/certificates_client.go @@ -0,0 +1,203 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package certificates + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" +) + +// New creates a new certificates API client. +func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService { + return &Client{transport: transport, formats: formats} +} + +/* +Client for certificates API +*/ +type Client struct { + transport runtime.ClientTransport + 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 { + CreateCertificate(params *CreateCertificateParams, opts ...ClientOption) (*CreateCertificateCreated, error) + + DeleteCertificate(params *DeleteCertificateParams, opts ...ClientOption) (*DeleteCertificateNoContent, error) + + GetCertificates(params *GetCertificatesParams, opts ...ClientOption) (*GetCertificatesOK, error) + + UpdateCertificate(params *UpdateCertificateParams, opts ...ClientOption) (*UpdateCertificateOK, error) + + SetTransport(transport runtime.ClientTransport) +} + +/* +CreateCertificate creates a new certificate +*/ +func (a *Client) CreateCertificate(params *CreateCertificateParams, opts ...ClientOption) (*CreateCertificateCreated, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewCreateCertificateParams() + } + op := &runtime.ClientOperation{ + ID: "createCertificate", + Method: "POST", + PathPattern: "/certificates", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &CreateCertificateReader{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 + } + success, ok := result.(*CreateCertificateCreated) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for createCertificate: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +DeleteCertificate deletes a certificate +*/ +func (a *Client) DeleteCertificate(params *DeleteCertificateParams, opts ...ClientOption) (*DeleteCertificateNoContent, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewDeleteCertificateParams() + } + op := &runtime.ClientOperation{ + ID: "deleteCertificate", + Method: "DELETE", + PathPattern: "/certificates", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &DeleteCertificateReader{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 + } + success, ok := result.(*DeleteCertificateNoContent) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for deleteCertificate: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +GetCertificates gets a list of certificates +*/ +func (a *Client) GetCertificates(params *GetCertificatesParams, opts ...ClientOption) (*GetCertificatesOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewGetCertificatesParams() + } + op := &runtime.ClientOperation{ + ID: "getCertificates", + Method: "GET", + PathPattern: "/certificates", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &GetCertificatesReader{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 + } + success, ok := result.(*GetCertificatesOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for getCertificates: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +UpdateCertificate updates an existing certificate +*/ +func (a *Client) UpdateCertificate(params *UpdateCertificateParams, opts ...ClientOption) (*UpdateCertificateOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewUpdateCertificateParams() + } + op := &runtime.ClientOperation{ + ID: "updateCertificate", + Method: "PUT", + PathPattern: "/certificates", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &UpdateCertificateReader{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 + } + success, ok := result.(*UpdateCertificateOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for updateCertificate: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +// SetTransport changes the transport on the client +func (a *Client) SetTransport(transport runtime.ClientTransport) { + a.transport = transport +} diff --git a/api/members/members_client/operations/create_certificate_parameters.go b/api/members/members_client/certificates/create_certificate_parameters.go similarity index 99% rename from api/members/members_client/operations/create_certificate_parameters.go rename to api/members/members_client/certificates/create_certificate_parameters.go index 2b9dc50..dab52e8 100644 --- a/api/members/members_client/operations/create_certificate_parameters.go +++ b/api/members/members_client/certificates/create_certificate_parameters.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package certificates // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/operations/create_certificate_responses.go b/api/members/members_client/certificates/create_certificate_responses.go similarity index 99% rename from api/members/members_client/operations/create_certificate_responses.go rename to api/members/members_client/certificates/create_certificate_responses.go index fe91cd8..0b8d913 100644 --- a/api/members/members_client/operations/create_certificate_responses.go +++ b/api/members/members_client/certificates/create_certificate_responses.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package certificates // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/operations/delete_certificate_parameters.go b/api/members/members_client/certificates/delete_certificate_parameters.go similarity index 99% rename from api/members/members_client/operations/delete_certificate_parameters.go rename to api/members/members_client/certificates/delete_certificate_parameters.go index 740b2eb..3efd012 100644 --- a/api/members/members_client/operations/delete_certificate_parameters.go +++ b/api/members/members_client/certificates/delete_certificate_parameters.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package certificates // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/operations/delete_certificate_responses.go b/api/members/members_client/certificates/delete_certificate_responses.go similarity index 99% rename from api/members/members_client/operations/delete_certificate_responses.go rename to api/members/members_client/certificates/delete_certificate_responses.go index 647306c..e15c050 100644 --- a/api/members/members_client/operations/delete_certificate_responses.go +++ b/api/members/members_client/certificates/delete_certificate_responses.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package certificates // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/operations/get_certificates_parameters.go b/api/members/members_client/certificates/get_certificates_parameters.go similarity index 99% rename from api/members/members_client/operations/get_certificates_parameters.go rename to api/members/members_client/certificates/get_certificates_parameters.go index db16ae6..b1346b7 100644 --- a/api/members/members_client/operations/get_certificates_parameters.go +++ b/api/members/members_client/certificates/get_certificates_parameters.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package certificates // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/operations/get_certificates_responses.go b/api/members/members_client/certificates/get_certificates_responses.go similarity index 99% rename from api/members/members_client/operations/get_certificates_responses.go rename to api/members/members_client/certificates/get_certificates_responses.go index 6dafc30..e011c57 100644 --- a/api/members/members_client/operations/get_certificates_responses.go +++ b/api/members/members_client/certificates/get_certificates_responses.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package certificates // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/operations/update_certificate_parameters.go b/api/members/members_client/certificates/update_certificate_parameters.go similarity index 99% rename from api/members/members_client/operations/update_certificate_parameters.go rename to api/members/members_client/certificates/update_certificate_parameters.go index 1dde6ad..99b88e8 100644 --- a/api/members/members_client/operations/update_certificate_parameters.go +++ b/api/members/members_client/certificates/update_certificate_parameters.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package certificates // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/operations/update_certificate_responses.go b/api/members/members_client/certificates/update_certificate_responses.go similarity index 99% rename from api/members/members_client/operations/update_certificate_responses.go rename to api/members/members_client/certificates/update_certificate_responses.go index a97781b..fb749c4 100644 --- a/api/members/members_client/operations/update_certificate_responses.go +++ b/api/members/members_client/certificates/update_certificate_responses.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package certificates // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/devops/devops_client/cluster/cluster_client.go b/api/members/members_client/clusters/clusters_client.go similarity index 62% rename from api/devops/devops_client/cluster/cluster_client.go rename to api/members/members_client/clusters/clusters_client.go index 6ef77a5..1454feb 100644 --- a/api/devops/devops_client/cluster/cluster_client.go +++ b/api/members/members_client/clusters/clusters_client.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package cluster +package clusters // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command @@ -16,13 +16,13 @@ import ( "github.com/go-openapi/strfmt" ) -// New creates a new cluster API client. +// New creates a new clusters API client. func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService { return &Client{transport: transport, formats: formats} } /* -Client for cluster API +Client for clusters API */ type Client struct { transport runtime.ClientTransport @@ -34,12 +34,8 @@ type ClientOption func(*runtime.ClientOperation) // ClientService is the interface for Client methods type ClientService interface { - GetCluster(params *GetClusterParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetClusterOK, error) - GetClusters(params *GetClustersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetClustersOK, error) - GetClustersObservable(params *GetClustersObservableParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetClustersObservableOK, error) - PostClusters(params *PostClustersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostClustersOK, error) PutClusters(params *PutClustersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PutClustersOK, error) @@ -47,47 +43,6 @@ type ClientService interface { SetTransport(transport runtime.ClientTransport) } -/* -GetCluster gets a single cluster object - -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 - if params == nil { - params = NewGetClusterParams() - } - op := &runtime.ClientOperation{ - ID: "getCluster", - Method: "GET", - PathPattern: "/clusters/{clusterIdPath}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &GetClusterReader{formats: a.formats}, - AuthInfo: authInfo, - Context: params.Context, - Client: params.HTTPClient, - } - for _, opt := range opts { - opt(op) - } - - result, err := a.transport.Submit(op) - if err != nil { - return nil, err - } - success, ok := result.(*GetClusterOK) - if ok { - return success, nil - } - // unexpected success response - // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for getCluster: API contract not enforced by server. Client expected to get an error, but got: %T", result) - panic(msg) -} - /* GetClusters gets a list clusters @@ -129,47 +84,6 @@ func (a *Client) GetClusters(params *GetClustersParams, authInfo runtime.ClientA panic(msg) } -/* -GetClustersObservable gets clusters in an 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 - if params == nil { - params = NewGetClustersObservableParams() - } - op := &runtime.ClientOperation{ - ID: "getClustersObservable", - Method: "GET", - PathPattern: "/clusters/observable", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &GetClustersObservableReader{formats: a.formats}, - AuthInfo: authInfo, - Context: params.Context, - Client: params.HTTPClient, - } - for _, opt := range opts { - opt(op) - } - - result, err := a.transport.Submit(op) - if err != nil { - return nil, err - } - success, ok := result.(*GetClustersObservableOK) - if ok { - return success, nil - } - // unexpected success response - // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for getClustersObservable: API contract not enforced by server. Client expected to get an error, but got: %T", result) - panic(msg) -} - /* PostClusters creates new clusters diff --git a/api/devops/devops_client/cluster/get_clusters_parameters.go b/api/members/members_client/clusters/get_clusters_parameters.go similarity index 88% rename from api/devops/devops_client/cluster/get_clusters_parameters.go rename to api/members/members_client/clusters/get_clusters_parameters.go index 19c7cac..8a055b0 100644 --- a/api/devops/devops_client/cluster/get_clusters_parameters.go +++ b/api/members/members_client/clusters/get_clusters_parameters.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package cluster +package clusters // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command @@ -72,12 +72,6 @@ type GetClustersParams struct { */ ClusterID *string - /* CompanyID. - - Record Id of a Company - */ - CompanyID *string - /* Limit. How many objects to return at one time @@ -88,7 +82,7 @@ type GetClustersParams struct { /* Offset. - How many objects to skip? (default 0) + How many objects to skip? Format: int64 */ @@ -158,17 +152,6 @@ func (o *GetClustersParams) SetClusterID(clusterID *string) { o.ClusterID = clusterID } -// WithCompanyID adds the companyID to the get clusters params -func (o *GetClustersParams) WithCompanyID(companyID *string) *GetClustersParams { - o.SetCompanyID(companyID) - return o -} - -// SetCompanyID adds the companyId to the get clusters params -func (o *GetClustersParams) SetCompanyID(companyID *string) { - o.CompanyID = companyID -} - // WithLimit adds the limit to the get clusters params func (o *GetClustersParams) WithLimit(limit *int64) *GetClustersParams { o.SetLimit(limit) @@ -216,23 +199,6 @@ func (o *GetClustersParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.R } } - if o.CompanyID != nil { - - // query param companyId - var qrCompanyID string - - if o.CompanyID != nil { - qrCompanyID = *o.CompanyID - } - qCompanyID := qrCompanyID - if qCompanyID != "" { - - if err := r.SetQueryParam("companyId", qCompanyID); err != nil { - return err - } - } - } - if o.Limit != nil { // query param limit diff --git a/api/devops/devops_client/cluster/get_clusters_responses.go b/api/members/members_client/clusters/get_clusters_responses.go similarity index 94% rename from api/devops/devops_client/cluster/get_clusters_responses.go rename to api/members/members_client/clusters/get_clusters_responses.go index 9fc34b1..2727881 100644 --- a/api/devops/devops_client/cluster/get_clusters_responses.go +++ b/api/members/members_client/clusters/get_clusters_responses.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package cluster +package clusters // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command @@ -16,7 +16,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "code.tnxs.net/vernonkeenan/lib/api/devops/devops_models" + "code.tnxs.net/vernonkeenan/lib/api/members/members_models" ) // GetClustersReader is a Reader for the GetClusters structure. @@ -82,7 +82,7 @@ type GetClustersOK struct { AccessControlAllowOrigin string CacheControl string - Payload *devops_models.ClusterResponse + Payload *members_models.ClusterResponse } // IsSuccess returns true when this get clusters o k response has a 2xx status code @@ -123,7 +123,7 @@ func (o *GetClustersOK) String() string { return fmt.Sprintf("[GET /clusters][%d] getClustersOK %+v", 200, o.Payload) } -func (o *GetClustersOK) GetPayload() *devops_models.ClusterResponse { +func (o *GetClustersOK) GetPayload() *members_models.ClusterResponse { return o.Payload } @@ -143,7 +143,7 @@ func (o *GetClustersOK) readResponse(response runtime.ClientResponse, consumer r o.CacheControl = hdrCacheControl } - o.Payload = new(devops_models.ClusterResponse) + o.Payload = new(members_models.ClusterResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { @@ -167,7 +167,7 @@ type GetClustersUnauthorized struct { AccessControlAllowOrigin string CacheControl string - Payload *devops_models.Error + Payload *members_models.Error } // IsSuccess returns true when this get clusters unauthorized response has a 2xx status code @@ -208,7 +208,7 @@ func (o *GetClustersUnauthorized) String() string { return fmt.Sprintf("[GET /clusters][%d] getClustersUnauthorized %+v", 401, o.Payload) } -func (o *GetClustersUnauthorized) GetPayload() *devops_models.Error { +func (o *GetClustersUnauthorized) GetPayload() *members_models.Error { return o.Payload } @@ -228,7 +228,7 @@ func (o *GetClustersUnauthorized) readResponse(response runtime.ClientResponse, o.CacheControl = hdrCacheControl } - o.Payload = new(devops_models.Error) + o.Payload = new(members_models.Error) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { @@ -251,7 +251,7 @@ Access forbidden, account lacks access type GetClustersForbidden struct { AccessControlAllowOrigin string - Payload *devops_models.Error + Payload *members_models.Error } // IsSuccess returns true when this get clusters forbidden response has a 2xx status code @@ -292,7 +292,7 @@ func (o *GetClustersForbidden) String() string { return fmt.Sprintf("[GET /clusters][%d] getClustersForbidden %+v", 403, o.Payload) } -func (o *GetClustersForbidden) GetPayload() *devops_models.Error { +func (o *GetClustersForbidden) GetPayload() *members_models.Error { return o.Payload } @@ -305,7 +305,7 @@ func (o *GetClustersForbidden) readResponse(response runtime.ClientResponse, con o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin } - o.Payload = new(devops_models.Error) + o.Payload = new(members_models.Error) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { @@ -328,7 +328,7 @@ Resource was not found type GetClustersNotFound struct { AccessControlAllowOrigin string - Payload *devops_models.Error + Payload *members_models.Error } // IsSuccess returns true when this get clusters not found response has a 2xx status code @@ -369,7 +369,7 @@ func (o *GetClustersNotFound) String() string { return fmt.Sprintf("[GET /clusters][%d] getClustersNotFound %+v", 404, o.Payload) } -func (o *GetClustersNotFound) GetPayload() *devops_models.Error { +func (o *GetClustersNotFound) GetPayload() *members_models.Error { return o.Payload } @@ -382,7 +382,7 @@ func (o *GetClustersNotFound) readResponse(response runtime.ClientResponse, cons o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin } - o.Payload = new(devops_models.Error) + o.Payload = new(members_models.Error) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { @@ -406,7 +406,7 @@ type GetClustersUnprocessableEntity struct { AccessControlAllowOrigin string CacheControl string - Payload *devops_models.Error + Payload *members_models.Error } // IsSuccess returns true when this get clusters unprocessable entity response has a 2xx status code @@ -447,7 +447,7 @@ func (o *GetClustersUnprocessableEntity) String() string { return fmt.Sprintf("[GET /clusters][%d] getClustersUnprocessableEntity %+v", 422, o.Payload) } -func (o *GetClustersUnprocessableEntity) GetPayload() *devops_models.Error { +func (o *GetClustersUnprocessableEntity) GetPayload() *members_models.Error { return o.Payload } @@ -467,7 +467,7 @@ func (o *GetClustersUnprocessableEntity) readResponse(response runtime.ClientRes o.CacheControl = hdrCacheControl } - o.Payload = new(devops_models.Error) + o.Payload = new(members_models.Error) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { @@ -490,7 +490,7 @@ Server Internal Error type GetClustersInternalServerError struct { AccessControlAllowOrigin string - Payload *devops_models.Error + Payload *members_models.Error } // IsSuccess returns true when this get clusters internal server error response has a 2xx status code @@ -531,7 +531,7 @@ func (o *GetClustersInternalServerError) String() string { return fmt.Sprintf("[GET /clusters][%d] getClustersInternalServerError %+v", 500, o.Payload) } -func (o *GetClustersInternalServerError) GetPayload() *devops_models.Error { +func (o *GetClustersInternalServerError) GetPayload() *members_models.Error { return o.Payload } @@ -544,7 +544,7 @@ func (o *GetClustersInternalServerError) readResponse(response runtime.ClientRes o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin } - o.Payload = new(devops_models.Error) + o.Payload = new(members_models.Error) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { diff --git a/api/devops/devops_client/cluster/post_clusters_parameters.go b/api/members/members_client/clusters/post_clusters_parameters.go similarity index 93% rename from api/devops/devops_client/cluster/post_clusters_parameters.go rename to api/members/members_client/clusters/post_clusters_parameters.go index c83d77a..3137420 100644 --- a/api/devops/devops_client/cluster/post_clusters_parameters.go +++ b/api/members/members_client/clusters/post_clusters_parameters.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package cluster +package clusters // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command @@ -19,7 +19,7 @@ import ( cr "github.com/go-openapi/runtime/client" "github.com/go-openapi/strfmt" - "code.tnxs.net/vernonkeenan/lib/api/devops/devops_models" + "code.tnxs.net/vernonkeenan/lib/api/members/members_models" ) // NewPostClustersParams creates a new PostClustersParams object, @@ -71,7 +71,7 @@ type PostClustersParams struct { An array of Cluster records */ - ClusterRequest *devops_models.ClusterRequest + ClusterRequest *members_models.ClusterRequest timeout time.Duration Context context.Context @@ -127,13 +127,13 @@ func (o *PostClustersParams) SetHTTPClient(client *http.Client) { } // WithClusterRequest adds the clusterRequest to the post clusters params -func (o *PostClustersParams) WithClusterRequest(clusterRequest *devops_models.ClusterRequest) *PostClustersParams { +func (o *PostClustersParams) WithClusterRequest(clusterRequest *members_models.ClusterRequest) *PostClustersParams { o.SetClusterRequest(clusterRequest) return o } // SetClusterRequest adds the clusterRequest to the post clusters params -func (o *PostClustersParams) SetClusterRequest(clusterRequest *devops_models.ClusterRequest) { +func (o *PostClustersParams) SetClusterRequest(clusterRequest *members_models.ClusterRequest) { o.ClusterRequest = clusterRequest } diff --git a/api/devops/devops_client/cluster/post_clusters_responses.go b/api/members/members_client/clusters/post_clusters_responses.go similarity index 94% rename from api/devops/devops_client/cluster/post_clusters_responses.go rename to api/members/members_client/clusters/post_clusters_responses.go index 17602a9..03b3f1c 100644 --- a/api/devops/devops_client/cluster/post_clusters_responses.go +++ b/api/members/members_client/clusters/post_clusters_responses.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package cluster +package clusters // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command @@ -16,7 +16,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "code.tnxs.net/vernonkeenan/lib/api/devops/devops_models" + "code.tnxs.net/vernonkeenan/lib/api/members/members_models" ) // PostClustersReader is a Reader for the PostClusters structure. @@ -82,7 +82,7 @@ type PostClustersOK struct { AccessControlAllowOrigin string CacheControl string - Payload *devops_models.ClusterResponse + Payload *members_models.ClusterResponse } // IsSuccess returns true when this post clusters o k response has a 2xx status code @@ -123,7 +123,7 @@ func (o *PostClustersOK) String() string { return fmt.Sprintf("[POST /clusters][%d] postClustersOK %+v", 200, o.Payload) } -func (o *PostClustersOK) GetPayload() *devops_models.ClusterResponse { +func (o *PostClustersOK) GetPayload() *members_models.ClusterResponse { return o.Payload } @@ -143,7 +143,7 @@ func (o *PostClustersOK) readResponse(response runtime.ClientResponse, consumer o.CacheControl = hdrCacheControl } - o.Payload = new(devops_models.ClusterResponse) + o.Payload = new(members_models.ClusterResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { @@ -167,7 +167,7 @@ type PostClustersUnauthorized struct { AccessControlAllowOrigin string CacheControl string - Payload *devops_models.Error + Payload *members_models.Error } // IsSuccess returns true when this post clusters unauthorized response has a 2xx status code @@ -208,7 +208,7 @@ func (o *PostClustersUnauthorized) String() string { return fmt.Sprintf("[POST /clusters][%d] postClustersUnauthorized %+v", 401, o.Payload) } -func (o *PostClustersUnauthorized) GetPayload() *devops_models.Error { +func (o *PostClustersUnauthorized) GetPayload() *members_models.Error { return o.Payload } @@ -228,7 +228,7 @@ func (o *PostClustersUnauthorized) readResponse(response runtime.ClientResponse, o.CacheControl = hdrCacheControl } - o.Payload = new(devops_models.Error) + o.Payload = new(members_models.Error) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { @@ -251,7 +251,7 @@ Access forbidden, account lacks access type PostClustersForbidden struct { AccessControlAllowOrigin string - Payload *devops_models.Error + Payload *members_models.Error } // IsSuccess returns true when this post clusters forbidden response has a 2xx status code @@ -292,7 +292,7 @@ func (o *PostClustersForbidden) String() string { return fmt.Sprintf("[POST /clusters][%d] postClustersForbidden %+v", 403, o.Payload) } -func (o *PostClustersForbidden) GetPayload() *devops_models.Error { +func (o *PostClustersForbidden) GetPayload() *members_models.Error { return o.Payload } @@ -305,7 +305,7 @@ func (o *PostClustersForbidden) readResponse(response runtime.ClientResponse, co o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin } - o.Payload = new(devops_models.Error) + o.Payload = new(members_models.Error) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { @@ -328,7 +328,7 @@ Resource was not found type PostClustersNotFound struct { AccessControlAllowOrigin string - Payload *devops_models.Error + Payload *members_models.Error } // IsSuccess returns true when this post clusters not found response has a 2xx status code @@ -369,7 +369,7 @@ func (o *PostClustersNotFound) String() string { return fmt.Sprintf("[POST /clusters][%d] postClustersNotFound %+v", 404, o.Payload) } -func (o *PostClustersNotFound) GetPayload() *devops_models.Error { +func (o *PostClustersNotFound) GetPayload() *members_models.Error { return o.Payload } @@ -382,7 +382,7 @@ func (o *PostClustersNotFound) readResponse(response runtime.ClientResponse, con o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin } - o.Payload = new(devops_models.Error) + o.Payload = new(members_models.Error) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { @@ -406,7 +406,7 @@ type PostClustersUnprocessableEntity struct { AccessControlAllowOrigin string CacheControl string - Payload *devops_models.Error + Payload *members_models.Error } // IsSuccess returns true when this post clusters unprocessable entity response has a 2xx status code @@ -447,7 +447,7 @@ func (o *PostClustersUnprocessableEntity) String() string { return fmt.Sprintf("[POST /clusters][%d] postClustersUnprocessableEntity %+v", 422, o.Payload) } -func (o *PostClustersUnprocessableEntity) GetPayload() *devops_models.Error { +func (o *PostClustersUnprocessableEntity) GetPayload() *members_models.Error { return o.Payload } @@ -467,7 +467,7 @@ func (o *PostClustersUnprocessableEntity) readResponse(response runtime.ClientRe o.CacheControl = hdrCacheControl } - o.Payload = new(devops_models.Error) + o.Payload = new(members_models.Error) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { @@ -490,7 +490,7 @@ Server Internal Error type PostClustersInternalServerError struct { AccessControlAllowOrigin string - Payload *devops_models.Error + Payload *members_models.Error } // IsSuccess returns true when this post clusters internal server error response has a 2xx status code @@ -531,7 +531,7 @@ func (o *PostClustersInternalServerError) String() string { return fmt.Sprintf("[POST /clusters][%d] postClustersInternalServerError %+v", 500, o.Payload) } -func (o *PostClustersInternalServerError) GetPayload() *devops_models.Error { +func (o *PostClustersInternalServerError) GetPayload() *members_models.Error { return o.Payload } @@ -544,7 +544,7 @@ func (o *PostClustersInternalServerError) readResponse(response runtime.ClientRe o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin } - o.Payload = new(devops_models.Error) + o.Payload = new(members_models.Error) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { diff --git a/api/devops/devops_client/cluster/put_clusters_parameters.go b/api/members/members_client/clusters/put_clusters_parameters.go similarity index 92% rename from api/devops/devops_client/cluster/put_clusters_parameters.go rename to api/members/members_client/clusters/put_clusters_parameters.go index 56419bf..ec86fc0 100644 --- a/api/devops/devops_client/cluster/put_clusters_parameters.go +++ b/api/members/members_client/clusters/put_clusters_parameters.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package cluster +package clusters // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command @@ -19,7 +19,7 @@ import ( cr "github.com/go-openapi/runtime/client" "github.com/go-openapi/strfmt" - "code.tnxs.net/vernonkeenan/lib/api/devops/devops_models" + "code.tnxs.net/vernonkeenan/lib/api/members/members_models" ) // NewPutClustersParams creates a new PutClustersParams object, @@ -71,7 +71,7 @@ type PutClustersParams struct { An array of Cluster records */ - ClusterRequest *devops_models.ClusterRequest + ClusterRequest *members_models.ClusterRequest timeout time.Duration Context context.Context @@ -127,13 +127,13 @@ func (o *PutClustersParams) SetHTTPClient(client *http.Client) { } // WithClusterRequest adds the clusterRequest to the put clusters params -func (o *PutClustersParams) WithClusterRequest(clusterRequest *devops_models.ClusterRequest) *PutClustersParams { +func (o *PutClustersParams) WithClusterRequest(clusterRequest *members_models.ClusterRequest) *PutClustersParams { o.SetClusterRequest(clusterRequest) return o } // SetClusterRequest adds the clusterRequest to the put clusters params -func (o *PutClustersParams) SetClusterRequest(clusterRequest *devops_models.ClusterRequest) { +func (o *PutClustersParams) SetClusterRequest(clusterRequest *members_models.ClusterRequest) { o.ClusterRequest = clusterRequest } diff --git a/api/devops/devops_client/cluster/put_clusters_responses.go b/api/members/members_client/clusters/put_clusters_responses.go similarity index 94% rename from api/devops/devops_client/cluster/put_clusters_responses.go rename to api/members/members_client/clusters/put_clusters_responses.go index f093255..c19f8db 100644 --- a/api/devops/devops_client/cluster/put_clusters_responses.go +++ b/api/members/members_client/clusters/put_clusters_responses.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package cluster +package clusters // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command @@ -16,7 +16,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "code.tnxs.net/vernonkeenan/lib/api/devops/devops_models" + "code.tnxs.net/vernonkeenan/lib/api/members/members_models" ) // PutClustersReader is a Reader for the PutClusters structure. @@ -82,7 +82,7 @@ type PutClustersOK struct { AccessControlAllowOrigin string CacheControl string - Payload *devops_models.ClusterResponse + Payload *members_models.ClusterResponse } // IsSuccess returns true when this put clusters o k response has a 2xx status code @@ -123,7 +123,7 @@ func (o *PutClustersOK) String() string { return fmt.Sprintf("[PUT /clusters][%d] putClustersOK %+v", 200, o.Payload) } -func (o *PutClustersOK) GetPayload() *devops_models.ClusterResponse { +func (o *PutClustersOK) GetPayload() *members_models.ClusterResponse { return o.Payload } @@ -143,7 +143,7 @@ func (o *PutClustersOK) readResponse(response runtime.ClientResponse, consumer r o.CacheControl = hdrCacheControl } - o.Payload = new(devops_models.ClusterResponse) + o.Payload = new(members_models.ClusterResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { @@ -167,7 +167,7 @@ type PutClustersUnauthorized struct { AccessControlAllowOrigin string CacheControl string - Payload *devops_models.Error + Payload *members_models.Error } // IsSuccess returns true when this put clusters unauthorized response has a 2xx status code @@ -208,7 +208,7 @@ func (o *PutClustersUnauthorized) String() string { return fmt.Sprintf("[PUT /clusters][%d] putClustersUnauthorized %+v", 401, o.Payload) } -func (o *PutClustersUnauthorized) GetPayload() *devops_models.Error { +func (o *PutClustersUnauthorized) GetPayload() *members_models.Error { return o.Payload } @@ -228,7 +228,7 @@ func (o *PutClustersUnauthorized) readResponse(response runtime.ClientResponse, o.CacheControl = hdrCacheControl } - o.Payload = new(devops_models.Error) + o.Payload = new(members_models.Error) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { @@ -251,7 +251,7 @@ Access forbidden, account lacks access type PutClustersForbidden struct { AccessControlAllowOrigin string - Payload *devops_models.Error + Payload *members_models.Error } // IsSuccess returns true when this put clusters forbidden response has a 2xx status code @@ -292,7 +292,7 @@ func (o *PutClustersForbidden) String() string { return fmt.Sprintf("[PUT /clusters][%d] putClustersForbidden %+v", 403, o.Payload) } -func (o *PutClustersForbidden) GetPayload() *devops_models.Error { +func (o *PutClustersForbidden) GetPayload() *members_models.Error { return o.Payload } @@ -305,7 +305,7 @@ func (o *PutClustersForbidden) readResponse(response runtime.ClientResponse, con o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin } - o.Payload = new(devops_models.Error) + o.Payload = new(members_models.Error) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { @@ -328,7 +328,7 @@ Resource was not found type PutClustersNotFound struct { AccessControlAllowOrigin string - Payload *devops_models.Error + Payload *members_models.Error } // IsSuccess returns true when this put clusters not found response has a 2xx status code @@ -369,7 +369,7 @@ func (o *PutClustersNotFound) String() string { return fmt.Sprintf("[PUT /clusters][%d] putClustersNotFound %+v", 404, o.Payload) } -func (o *PutClustersNotFound) GetPayload() *devops_models.Error { +func (o *PutClustersNotFound) GetPayload() *members_models.Error { return o.Payload } @@ -382,7 +382,7 @@ func (o *PutClustersNotFound) readResponse(response runtime.ClientResponse, cons o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin } - o.Payload = new(devops_models.Error) + o.Payload = new(members_models.Error) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { @@ -406,7 +406,7 @@ type PutClustersUnprocessableEntity struct { AccessControlAllowOrigin string CacheControl string - Payload *devops_models.Error + Payload *members_models.Error } // IsSuccess returns true when this put clusters unprocessable entity response has a 2xx status code @@ -447,7 +447,7 @@ func (o *PutClustersUnprocessableEntity) String() string { return fmt.Sprintf("[PUT /clusters][%d] putClustersUnprocessableEntity %+v", 422, o.Payload) } -func (o *PutClustersUnprocessableEntity) GetPayload() *devops_models.Error { +func (o *PutClustersUnprocessableEntity) GetPayload() *members_models.Error { return o.Payload } @@ -467,7 +467,7 @@ func (o *PutClustersUnprocessableEntity) readResponse(response runtime.ClientRes o.CacheControl = hdrCacheControl } - o.Payload = new(devops_models.Error) + o.Payload = new(members_models.Error) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { @@ -490,7 +490,7 @@ Server Internal Error type PutClustersInternalServerError struct { AccessControlAllowOrigin string - Payload *devops_models.Error + Payload *members_models.Error } // IsSuccess returns true when this put clusters internal server error response has a 2xx status code @@ -531,7 +531,7 @@ func (o *PutClustersInternalServerError) String() string { return fmt.Sprintf("[PUT /clusters][%d] putClustersInternalServerError %+v", 500, o.Payload) } -func (o *PutClustersInternalServerError) GetPayload() *devops_models.Error { +func (o *PutClustersInternalServerError) GetPayload() *members_models.Error { return o.Payload } @@ -544,7 +544,7 @@ func (o *PutClustersInternalServerError) readResponse(response runtime.ClientRes o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin } - o.Payload = new(devops_models.Error) + o.Payload = new(members_models.Error) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { diff --git a/api/members/members_client/course_lessons/course_lessons_client.go b/api/members/members_client/course_lessons/course_lessons_client.go new file mode 100644 index 0000000..701f624 --- /dev/null +++ b/api/members/members_client/course_lessons/course_lessons_client.go @@ -0,0 +1,203 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package course_lessons + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" +) + +// New creates a new course lessons API client. +func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService { + return &Client{transport: transport, formats: formats} +} + +/* +Client for course lessons API +*/ +type Client struct { + transport runtime.ClientTransport + 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 { + CreateCourseLesson(params *CreateCourseLessonParams, opts ...ClientOption) (*CreateCourseLessonCreated, error) + + DeleteCourseLesson(params *DeleteCourseLessonParams, opts ...ClientOption) (*DeleteCourseLessonNoContent, error) + + GetCourseLessons(params *GetCourseLessonsParams, opts ...ClientOption) (*GetCourseLessonsOK, error) + + UpdateCourseLesson(params *UpdateCourseLessonParams, opts ...ClientOption) (*UpdateCourseLessonOK, error) + + SetTransport(transport runtime.ClientTransport) +} + +/* +CreateCourseLesson creates a new course lesson +*/ +func (a *Client) CreateCourseLesson(params *CreateCourseLessonParams, opts ...ClientOption) (*CreateCourseLessonCreated, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewCreateCourseLessonParams() + } + op := &runtime.ClientOperation{ + ID: "createCourseLesson", + Method: "POST", + PathPattern: "/courselessons", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &CreateCourseLessonReader{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 + } + success, ok := result.(*CreateCourseLessonCreated) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for createCourseLesson: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +DeleteCourseLesson deletes a course lesson +*/ +func (a *Client) DeleteCourseLesson(params *DeleteCourseLessonParams, opts ...ClientOption) (*DeleteCourseLessonNoContent, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewDeleteCourseLessonParams() + } + op := &runtime.ClientOperation{ + ID: "deleteCourseLesson", + Method: "DELETE", + PathPattern: "/courselessons", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &DeleteCourseLessonReader{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 + } + success, ok := result.(*DeleteCourseLessonNoContent) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for deleteCourseLesson: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +GetCourseLessons gets a list of course lessons +*/ +func (a *Client) GetCourseLessons(params *GetCourseLessonsParams, opts ...ClientOption) (*GetCourseLessonsOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewGetCourseLessonsParams() + } + op := &runtime.ClientOperation{ + ID: "getCourseLessons", + Method: "GET", + PathPattern: "/courselessons", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &GetCourseLessonsReader{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 + } + success, ok := result.(*GetCourseLessonsOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for getCourseLessons: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +UpdateCourseLesson updates an existing course lesson +*/ +func (a *Client) UpdateCourseLesson(params *UpdateCourseLessonParams, opts ...ClientOption) (*UpdateCourseLessonOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewUpdateCourseLessonParams() + } + op := &runtime.ClientOperation{ + ID: "updateCourseLesson", + Method: "PUT", + PathPattern: "/courselessons", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &UpdateCourseLessonReader{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 + } + success, ok := result.(*UpdateCourseLessonOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for updateCourseLesson: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +// SetTransport changes the transport on the client +func (a *Client) SetTransport(transport runtime.ClientTransport) { + a.transport = transport +} diff --git a/api/members/members_client/operations/create_course_lesson_parameters.go b/api/members/members_client/course_lessons/create_course_lesson_parameters.go similarity index 99% rename from api/members/members_client/operations/create_course_lesson_parameters.go rename to api/members/members_client/course_lessons/create_course_lesson_parameters.go index 62e66d1..022903a 100644 --- a/api/members/members_client/operations/create_course_lesson_parameters.go +++ b/api/members/members_client/course_lessons/create_course_lesson_parameters.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package course_lessons // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/operations/create_course_lesson_responses.go b/api/members/members_client/course_lessons/create_course_lesson_responses.go similarity index 99% rename from api/members/members_client/operations/create_course_lesson_responses.go rename to api/members/members_client/course_lessons/create_course_lesson_responses.go index b5ecb7f..d6dae13 100644 --- a/api/members/members_client/operations/create_course_lesson_responses.go +++ b/api/members/members_client/course_lessons/create_course_lesson_responses.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package course_lessons // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/operations/delete_course_lesson_parameters.go b/api/members/members_client/course_lessons/delete_course_lesson_parameters.go similarity index 99% rename from api/members/members_client/operations/delete_course_lesson_parameters.go rename to api/members/members_client/course_lessons/delete_course_lesson_parameters.go index cfac4e1..d94eae7 100644 --- a/api/members/members_client/operations/delete_course_lesson_parameters.go +++ b/api/members/members_client/course_lessons/delete_course_lesson_parameters.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package course_lessons // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/operations/delete_course_lesson_responses.go b/api/members/members_client/course_lessons/delete_course_lesson_responses.go similarity index 99% rename from api/members/members_client/operations/delete_course_lesson_responses.go rename to api/members/members_client/course_lessons/delete_course_lesson_responses.go index fb5948a..2e46212 100644 --- a/api/members/members_client/operations/delete_course_lesson_responses.go +++ b/api/members/members_client/course_lessons/delete_course_lesson_responses.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package course_lessons // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/operations/get_course_lessons_parameters.go b/api/members/members_client/course_lessons/get_course_lessons_parameters.go similarity index 99% rename from api/members/members_client/operations/get_course_lessons_parameters.go rename to api/members/members_client/course_lessons/get_course_lessons_parameters.go index b0eb495..19cb1e8 100644 --- a/api/members/members_client/operations/get_course_lessons_parameters.go +++ b/api/members/members_client/course_lessons/get_course_lessons_parameters.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package course_lessons // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/operations/get_course_lessons_responses.go b/api/members/members_client/course_lessons/get_course_lessons_responses.go similarity index 99% rename from api/members/members_client/operations/get_course_lessons_responses.go rename to api/members/members_client/course_lessons/get_course_lessons_responses.go index 15fb8ca..ee1e2ad 100644 --- a/api/members/members_client/operations/get_course_lessons_responses.go +++ b/api/members/members_client/course_lessons/get_course_lessons_responses.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package course_lessons // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/operations/update_course_lesson_parameters.go b/api/members/members_client/course_lessons/update_course_lesson_parameters.go similarity index 99% rename from api/members/members_client/operations/update_course_lesson_parameters.go rename to api/members/members_client/course_lessons/update_course_lesson_parameters.go index d0ca76a..21d4219 100644 --- a/api/members/members_client/operations/update_course_lesson_parameters.go +++ b/api/members/members_client/course_lessons/update_course_lesson_parameters.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package course_lessons // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/operations/update_course_lesson_responses.go b/api/members/members_client/course_lessons/update_course_lesson_responses.go similarity index 99% rename from api/members/members_client/operations/update_course_lesson_responses.go rename to api/members/members_client/course_lessons/update_course_lesson_responses.go index f0ad2c9..6145f17 100644 --- a/api/members/members_client/operations/update_course_lesson_responses.go +++ b/api/members/members_client/course_lessons/update_course_lesson_responses.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package course_lessons // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/course_sections/course_sections_client.go b/api/members/members_client/course_sections/course_sections_client.go new file mode 100644 index 0000000..40f1938 --- /dev/null +++ b/api/members/members_client/course_sections/course_sections_client.go @@ -0,0 +1,203 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package course_sections + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" +) + +// New creates a new course sections API client. +func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService { + return &Client{transport: transport, formats: formats} +} + +/* +Client for course sections API +*/ +type Client struct { + transport runtime.ClientTransport + 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 { + CreateCourseSection(params *CreateCourseSectionParams, opts ...ClientOption) (*CreateCourseSectionCreated, error) + + DeleteCourseSection(params *DeleteCourseSectionParams, opts ...ClientOption) (*DeleteCourseSectionNoContent, error) + + GetCourseSections(params *GetCourseSectionsParams, opts ...ClientOption) (*GetCourseSectionsOK, error) + + UpdateCourseSection(params *UpdateCourseSectionParams, opts ...ClientOption) (*UpdateCourseSectionOK, error) + + SetTransport(transport runtime.ClientTransport) +} + +/* +CreateCourseSection creates a new course section +*/ +func (a *Client) CreateCourseSection(params *CreateCourseSectionParams, opts ...ClientOption) (*CreateCourseSectionCreated, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewCreateCourseSectionParams() + } + op := &runtime.ClientOperation{ + ID: "createCourseSection", + Method: "POST", + PathPattern: "/coursesections", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &CreateCourseSectionReader{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 + } + success, ok := result.(*CreateCourseSectionCreated) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for createCourseSection: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +DeleteCourseSection deletes a course section +*/ +func (a *Client) DeleteCourseSection(params *DeleteCourseSectionParams, opts ...ClientOption) (*DeleteCourseSectionNoContent, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewDeleteCourseSectionParams() + } + op := &runtime.ClientOperation{ + ID: "deleteCourseSection", + Method: "DELETE", + PathPattern: "/coursesections", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &DeleteCourseSectionReader{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 + } + success, ok := result.(*DeleteCourseSectionNoContent) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for deleteCourseSection: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +GetCourseSections gets a list of course sections +*/ +func (a *Client) GetCourseSections(params *GetCourseSectionsParams, opts ...ClientOption) (*GetCourseSectionsOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewGetCourseSectionsParams() + } + op := &runtime.ClientOperation{ + ID: "getCourseSections", + Method: "GET", + PathPattern: "/coursesections", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &GetCourseSectionsReader{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 + } + success, ok := result.(*GetCourseSectionsOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for getCourseSections: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +UpdateCourseSection updates an existing course section +*/ +func (a *Client) UpdateCourseSection(params *UpdateCourseSectionParams, opts ...ClientOption) (*UpdateCourseSectionOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewUpdateCourseSectionParams() + } + op := &runtime.ClientOperation{ + ID: "updateCourseSection", + Method: "PUT", + PathPattern: "/coursesections", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &UpdateCourseSectionReader{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 + } + success, ok := result.(*UpdateCourseSectionOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for updateCourseSection: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +// SetTransport changes the transport on the client +func (a *Client) SetTransport(transport runtime.ClientTransport) { + a.transport = transport +} diff --git a/api/members/members_client/operations/create_course_section_parameters.go b/api/members/members_client/course_sections/create_course_section_parameters.go similarity index 99% rename from api/members/members_client/operations/create_course_section_parameters.go rename to api/members/members_client/course_sections/create_course_section_parameters.go index 1a6d9bd..fdbdf2b 100644 --- a/api/members/members_client/operations/create_course_section_parameters.go +++ b/api/members/members_client/course_sections/create_course_section_parameters.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package course_sections // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/operations/create_course_section_responses.go b/api/members/members_client/course_sections/create_course_section_responses.go similarity index 99% rename from api/members/members_client/operations/create_course_section_responses.go rename to api/members/members_client/course_sections/create_course_section_responses.go index 0c68a17..9033879 100644 --- a/api/members/members_client/operations/create_course_section_responses.go +++ b/api/members/members_client/course_sections/create_course_section_responses.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package course_sections // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/operations/delete_course_section_parameters.go b/api/members/members_client/course_sections/delete_course_section_parameters.go similarity index 99% rename from api/members/members_client/operations/delete_course_section_parameters.go rename to api/members/members_client/course_sections/delete_course_section_parameters.go index 9933ac9..3e35658 100644 --- a/api/members/members_client/operations/delete_course_section_parameters.go +++ b/api/members/members_client/course_sections/delete_course_section_parameters.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package course_sections // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/operations/delete_course_section_responses.go b/api/members/members_client/course_sections/delete_course_section_responses.go similarity index 99% rename from api/members/members_client/operations/delete_course_section_responses.go rename to api/members/members_client/course_sections/delete_course_section_responses.go index cb3074a..8d72a93 100644 --- a/api/members/members_client/operations/delete_course_section_responses.go +++ b/api/members/members_client/course_sections/delete_course_section_responses.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package course_sections // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/operations/get_course_sections_parameters.go b/api/members/members_client/course_sections/get_course_sections_parameters.go similarity index 99% rename from api/members/members_client/operations/get_course_sections_parameters.go rename to api/members/members_client/course_sections/get_course_sections_parameters.go index 34c891c..efffdc5 100644 --- a/api/members/members_client/operations/get_course_sections_parameters.go +++ b/api/members/members_client/course_sections/get_course_sections_parameters.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package course_sections // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/operations/get_course_sections_responses.go b/api/members/members_client/course_sections/get_course_sections_responses.go similarity index 99% rename from api/members/members_client/operations/get_course_sections_responses.go rename to api/members/members_client/course_sections/get_course_sections_responses.go index fc74974..625d837 100644 --- a/api/members/members_client/operations/get_course_sections_responses.go +++ b/api/members/members_client/course_sections/get_course_sections_responses.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package course_sections // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/operations/update_course_section_parameters.go b/api/members/members_client/course_sections/update_course_section_parameters.go similarity index 99% rename from api/members/members_client/operations/update_course_section_parameters.go rename to api/members/members_client/course_sections/update_course_section_parameters.go index 90e95f5..2936b49 100644 --- a/api/members/members_client/operations/update_course_section_parameters.go +++ b/api/members/members_client/course_sections/update_course_section_parameters.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package course_sections // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/operations/update_course_section_responses.go b/api/members/members_client/course_sections/update_course_section_responses.go similarity index 99% rename from api/members/members_client/operations/update_course_section_responses.go rename to api/members/members_client/course_sections/update_course_section_responses.go index d3fa51d..1e9f6e4 100644 --- a/api/members/members_client/operations/update_course_section_responses.go +++ b/api/members/members_client/course_sections/update_course_section_responses.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package course_sections // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/courses/courses_client.go b/api/members/members_client/courses/courses_client.go new file mode 100644 index 0000000..7fab222 --- /dev/null +++ b/api/members/members_client/courses/courses_client.go @@ -0,0 +1,203 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package courses + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" +) + +// New creates a new courses API client. +func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService { + return &Client{transport: transport, formats: formats} +} + +/* +Client for courses API +*/ +type Client struct { + transport runtime.ClientTransport + 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 { + CreateCourse(params *CreateCourseParams, opts ...ClientOption) (*CreateCourseCreated, error) + + DeleteCourse(params *DeleteCourseParams, opts ...ClientOption) (*DeleteCourseNoContent, error) + + GetCourses(params *GetCoursesParams, opts ...ClientOption) (*GetCoursesOK, error) + + UpdateCourse(params *UpdateCourseParams, opts ...ClientOption) (*UpdateCourseOK, error) + + SetTransport(transport runtime.ClientTransport) +} + +/* +CreateCourse creates a new course +*/ +func (a *Client) CreateCourse(params *CreateCourseParams, opts ...ClientOption) (*CreateCourseCreated, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewCreateCourseParams() + } + op := &runtime.ClientOperation{ + ID: "createCourse", + Method: "POST", + PathPattern: "/courses", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &CreateCourseReader{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 + } + success, ok := result.(*CreateCourseCreated) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for createCourse: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +DeleteCourse deletes a course +*/ +func (a *Client) DeleteCourse(params *DeleteCourseParams, opts ...ClientOption) (*DeleteCourseNoContent, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewDeleteCourseParams() + } + op := &runtime.ClientOperation{ + ID: "deleteCourse", + Method: "DELETE", + PathPattern: "/courses", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &DeleteCourseReader{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 + } + success, ok := result.(*DeleteCourseNoContent) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for deleteCourse: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +GetCourses gets a list of courses +*/ +func (a *Client) GetCourses(params *GetCoursesParams, opts ...ClientOption) (*GetCoursesOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewGetCoursesParams() + } + op := &runtime.ClientOperation{ + ID: "getCourses", + Method: "GET", + PathPattern: "/courses", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &GetCoursesReader{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 + } + success, ok := result.(*GetCoursesOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for getCourses: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +UpdateCourse updates an existing course +*/ +func (a *Client) UpdateCourse(params *UpdateCourseParams, opts ...ClientOption) (*UpdateCourseOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewUpdateCourseParams() + } + op := &runtime.ClientOperation{ + ID: "updateCourse", + Method: "PUT", + PathPattern: "/courses", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &UpdateCourseReader{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 + } + success, ok := result.(*UpdateCourseOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for updateCourse: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +// SetTransport changes the transport on the client +func (a *Client) SetTransport(transport runtime.ClientTransport) { + a.transport = transport +} diff --git a/api/members/members_client/operations/create_course_parameters.go b/api/members/members_client/courses/create_course_parameters.go similarity index 99% rename from api/members/members_client/operations/create_course_parameters.go rename to api/members/members_client/courses/create_course_parameters.go index 3112852..e9890e6 100644 --- a/api/members/members_client/operations/create_course_parameters.go +++ b/api/members/members_client/courses/create_course_parameters.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package courses // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/operations/create_course_responses.go b/api/members/members_client/courses/create_course_responses.go similarity index 99% rename from api/members/members_client/operations/create_course_responses.go rename to api/members/members_client/courses/create_course_responses.go index 41d3894..613d8aa 100644 --- a/api/members/members_client/operations/create_course_responses.go +++ b/api/members/members_client/courses/create_course_responses.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package courses // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/operations/delete_course_parameters.go b/api/members/members_client/courses/delete_course_parameters.go similarity index 99% rename from api/members/members_client/operations/delete_course_parameters.go rename to api/members/members_client/courses/delete_course_parameters.go index 306e3cc..c2df771 100644 --- a/api/members/members_client/operations/delete_course_parameters.go +++ b/api/members/members_client/courses/delete_course_parameters.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package courses // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/operations/delete_course_responses.go b/api/members/members_client/courses/delete_course_responses.go similarity index 99% rename from api/members/members_client/operations/delete_course_responses.go rename to api/members/members_client/courses/delete_course_responses.go index c18a782..ef56fca 100644 --- a/api/members/members_client/operations/delete_course_responses.go +++ b/api/members/members_client/courses/delete_course_responses.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package courses // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/operations/get_courses_parameters.go b/api/members/members_client/courses/get_courses_parameters.go similarity index 99% rename from api/members/members_client/operations/get_courses_parameters.go rename to api/members/members_client/courses/get_courses_parameters.go index 080ebca..dbbe3b1 100644 --- a/api/members/members_client/operations/get_courses_parameters.go +++ b/api/members/members_client/courses/get_courses_parameters.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package courses // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/operations/get_courses_responses.go b/api/members/members_client/courses/get_courses_responses.go similarity index 99% rename from api/members/members_client/operations/get_courses_responses.go rename to api/members/members_client/courses/get_courses_responses.go index 19ecc2d..6e22007 100644 --- a/api/members/members_client/operations/get_courses_responses.go +++ b/api/members/members_client/courses/get_courses_responses.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package courses // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/operations/update_course_parameters.go b/api/members/members_client/courses/update_course_parameters.go similarity index 99% rename from api/members/members_client/operations/update_course_parameters.go rename to api/members/members_client/courses/update_course_parameters.go index b7b341f..991ed2e 100644 --- a/api/members/members_client/operations/update_course_parameters.go +++ b/api/members/members_client/courses/update_course_parameters.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package courses // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/operations/update_course_responses.go b/api/members/members_client/courses/update_course_responses.go similarity index 99% rename from api/members/members_client/operations/update_course_responses.go rename to api/members/members_client/courses/update_course_responses.go index d15975a..285785b 100644 --- a/api/members/members_client/operations/update_course_responses.go +++ b/api/members/members_client/courses/update_course_responses.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package courses // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/devops/devops_client/database/database_client.go b/api/members/members_client/databases/databases_client.go similarity index 62% rename from api/devops/devops_client/database/database_client.go rename to api/members/members_client/databases/databases_client.go index 209a5c1..50a88a2 100644 --- a/api/devops/devops_client/database/database_client.go +++ b/api/members/members_client/databases/databases_client.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package database +package databases // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command @@ -16,13 +16,13 @@ import ( "github.com/go-openapi/strfmt" ) -// New creates a new database API client. +// New creates a new databases API client. func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService { return &Client{transport: transport, formats: formats} } /* -Client for database API +Client for databases API */ type Client struct { transport runtime.ClientTransport @@ -34,12 +34,8 @@ type ClientOption func(*runtime.ClientOperation) // ClientService is the interface for Client methods type ClientService interface { - GetDatabase(params *GetDatabaseParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetDatabaseOK, error) - GetDatabases(params *GetDatabasesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetDatabasesOK, error) - GetDatabasesObservable(params *GetDatabasesObservableParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetDatabasesObservableOK, error) - PostDatabases(params *PostDatabasesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostDatabasesOK, error) PutDatabases(params *PutDatabasesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PutDatabasesOK, error) @@ -47,47 +43,6 @@ type ClientService interface { SetTransport(transport runtime.ClientTransport) } -/* -GetDatabase gets a single database object - -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 - if params == nil { - params = NewGetDatabaseParams() - } - op := &runtime.ClientOperation{ - ID: "getDatabase", - Method: "GET", - PathPattern: "/databases/{databaseIdPath}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &GetDatabaseReader{formats: a.formats}, - AuthInfo: authInfo, - Context: params.Context, - Client: params.HTTPClient, - } - for _, opt := range opts { - opt(op) - } - - result, err := a.transport.Submit(op) - if err != nil { - return nil, err - } - success, ok := result.(*GetDatabaseOK) - if ok { - return success, nil - } - // unexpected success response - // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for getDatabase: API contract not enforced by server. Client expected to get an error, but got: %T", result) - panic(msg) -} - /* GetDatabases gets a list databases @@ -129,47 +84,6 @@ func (a *Client) GetDatabases(params *GetDatabasesParams, authInfo runtime.Clien panic(msg) } -/* -GetDatabasesObservable gets databases in an 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 - if params == nil { - params = NewGetDatabasesObservableParams() - } - op := &runtime.ClientOperation{ - ID: "getDatabasesObservable", - Method: "GET", - PathPattern: "/databases/observable", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &GetDatabasesObservableReader{formats: a.formats}, - AuthInfo: authInfo, - Context: params.Context, - Client: params.HTTPClient, - } - for _, opt := range opts { - opt(op) - } - - result, err := a.transport.Submit(op) - if err != nil { - return nil, err - } - success, ok := result.(*GetDatabasesObservableOK) - if ok { - return success, nil - } - // unexpected success response - // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for getDatabasesObservable: API contract not enforced by server. Client expected to get an error, but got: %T", result) - panic(msg) -} - /* PostDatabases creates new databases diff --git a/api/devops/devops_client/database/get_databases_parameters.go b/api/members/members_client/databases/get_databases_parameters.go similarity index 81% rename from api/devops/devops_client/database/get_databases_parameters.go rename to api/members/members_client/databases/get_databases_parameters.go index 02ab761..a7be4e4 100644 --- a/api/devops/devops_client/database/get_databases_parameters.go +++ b/api/members/members_client/databases/get_databases_parameters.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package database +package databases // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command @@ -66,17 +66,11 @@ GetDatabasesParams contains all the parameters to send to the API endpoint */ type GetDatabasesParams struct { - /* CompanyID. - - Record Id of a Company - */ - CompanyID *string - /* DatabaseID. Record Id of a Database */ - DatabaseID *string + DatabaseID string /* Limit. @@ -88,7 +82,7 @@ type GetDatabasesParams struct { /* Offset. - How many objects to skip? (default 0) + How many objects to skip? Format: int64 */ @@ -147,25 +141,14 @@ func (o *GetDatabasesParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } -// WithCompanyID adds the companyID to the get databases params -func (o *GetDatabasesParams) WithCompanyID(companyID *string) *GetDatabasesParams { - o.SetCompanyID(companyID) - return o -} - -// SetCompanyID adds the companyId to the get databases params -func (o *GetDatabasesParams) SetCompanyID(companyID *string) { - o.CompanyID = companyID -} - // WithDatabaseID adds the databaseID to the get databases params -func (o *GetDatabasesParams) WithDatabaseID(databaseID *string) *GetDatabasesParams { +func (o *GetDatabasesParams) WithDatabaseID(databaseID string) *GetDatabasesParams { o.SetDatabaseID(databaseID) return o } // SetDatabaseID adds the databaseId to the get databases params -func (o *GetDatabasesParams) SetDatabaseID(databaseID *string) { +func (o *GetDatabasesParams) SetDatabaseID(databaseID string) { o.DatabaseID = databaseID } @@ -199,37 +182,13 @@ func (o *GetDatabasesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt. } var res []error - if o.CompanyID != nil { + // query param databaseId + qrDatabaseID := o.DatabaseID + qDatabaseID := qrDatabaseID + if qDatabaseID != "" { - // query param companyId - var qrCompanyID string - - if o.CompanyID != nil { - qrCompanyID = *o.CompanyID - } - qCompanyID := qrCompanyID - if qCompanyID != "" { - - if err := r.SetQueryParam("companyId", qCompanyID); err != nil { - return err - } - } - } - - if o.DatabaseID != nil { - - // query param databaseId - var qrDatabaseID string - - if o.DatabaseID != nil { - qrDatabaseID = *o.DatabaseID - } - qDatabaseID := qrDatabaseID - if qDatabaseID != "" { - - if err := r.SetQueryParam("databaseId", qDatabaseID); err != nil { - return err - } + if err := r.SetQueryParam("databaseId", qDatabaseID); err != nil { + return err } } diff --git a/api/devops/devops_client/database/get_databases_responses.go b/api/members/members_client/databases/get_databases_responses.go similarity index 94% rename from api/devops/devops_client/database/get_databases_responses.go rename to api/members/members_client/databases/get_databases_responses.go index 2ce03d6..0381f56 100644 --- a/api/devops/devops_client/database/get_databases_responses.go +++ b/api/members/members_client/databases/get_databases_responses.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package database +package databases // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command @@ -16,7 +16,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "code.tnxs.net/vernonkeenan/lib/api/devops/devops_models" + "code.tnxs.net/vernonkeenan/lib/api/members/members_models" ) // GetDatabasesReader is a Reader for the GetDatabases structure. @@ -81,7 +81,7 @@ Response with Database objects type GetDatabasesOK struct { AccessControlAllowOrigin string - Payload *devops_models.DatabaseResponse + Payload *members_models.DatabaseResponse } // IsSuccess returns true when this get databases o k response has a 2xx status code @@ -122,7 +122,7 @@ func (o *GetDatabasesOK) String() string { return fmt.Sprintf("[GET /databases][%d] getDatabasesOK %+v", 200, o.Payload) } -func (o *GetDatabasesOK) GetPayload() *devops_models.DatabaseResponse { +func (o *GetDatabasesOK) GetPayload() *members_models.DatabaseResponse { return o.Payload } @@ -135,7 +135,7 @@ func (o *GetDatabasesOK) readResponse(response runtime.ClientResponse, consumer o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin } - o.Payload = new(devops_models.DatabaseResponse) + o.Payload = new(members_models.DatabaseResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { @@ -159,7 +159,7 @@ type GetDatabasesUnauthorized struct { AccessControlAllowOrigin string CacheControl string - Payload *devops_models.Error + Payload *members_models.Error } // IsSuccess returns true when this get databases unauthorized response has a 2xx status code @@ -200,7 +200,7 @@ func (o *GetDatabasesUnauthorized) String() string { return fmt.Sprintf("[GET /databases][%d] getDatabasesUnauthorized %+v", 401, o.Payload) } -func (o *GetDatabasesUnauthorized) GetPayload() *devops_models.Error { +func (o *GetDatabasesUnauthorized) GetPayload() *members_models.Error { return o.Payload } @@ -220,7 +220,7 @@ func (o *GetDatabasesUnauthorized) readResponse(response runtime.ClientResponse, o.CacheControl = hdrCacheControl } - o.Payload = new(devops_models.Error) + o.Payload = new(members_models.Error) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { @@ -243,7 +243,7 @@ Access forbidden, account lacks access type GetDatabasesForbidden struct { AccessControlAllowOrigin string - Payload *devops_models.Error + Payload *members_models.Error } // IsSuccess returns true when this get databases forbidden response has a 2xx status code @@ -284,7 +284,7 @@ func (o *GetDatabasesForbidden) String() string { return fmt.Sprintf("[GET /databases][%d] getDatabasesForbidden %+v", 403, o.Payload) } -func (o *GetDatabasesForbidden) GetPayload() *devops_models.Error { +func (o *GetDatabasesForbidden) GetPayload() *members_models.Error { return o.Payload } @@ -297,7 +297,7 @@ func (o *GetDatabasesForbidden) readResponse(response runtime.ClientResponse, co o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin } - o.Payload = new(devops_models.Error) + o.Payload = new(members_models.Error) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { @@ -320,7 +320,7 @@ Resource was not found type GetDatabasesNotFound struct { AccessControlAllowOrigin string - Payload *devops_models.Error + Payload *members_models.Error } // IsSuccess returns true when this get databases not found response has a 2xx status code @@ -361,7 +361,7 @@ func (o *GetDatabasesNotFound) String() string { return fmt.Sprintf("[GET /databases][%d] getDatabasesNotFound %+v", 404, o.Payload) } -func (o *GetDatabasesNotFound) GetPayload() *devops_models.Error { +func (o *GetDatabasesNotFound) GetPayload() *members_models.Error { return o.Payload } @@ -374,7 +374,7 @@ func (o *GetDatabasesNotFound) readResponse(response runtime.ClientResponse, con o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin } - o.Payload = new(devops_models.Error) + o.Payload = new(members_models.Error) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { @@ -398,7 +398,7 @@ type GetDatabasesUnprocessableEntity struct { AccessControlAllowOrigin string CacheControl string - Payload *devops_models.Error + Payload *members_models.Error } // IsSuccess returns true when this get databases unprocessable entity response has a 2xx status code @@ -439,7 +439,7 @@ func (o *GetDatabasesUnprocessableEntity) String() string { return fmt.Sprintf("[GET /databases][%d] getDatabasesUnprocessableEntity %+v", 422, o.Payload) } -func (o *GetDatabasesUnprocessableEntity) GetPayload() *devops_models.Error { +func (o *GetDatabasesUnprocessableEntity) GetPayload() *members_models.Error { return o.Payload } @@ -459,7 +459,7 @@ func (o *GetDatabasesUnprocessableEntity) readResponse(response runtime.ClientRe o.CacheControl = hdrCacheControl } - o.Payload = new(devops_models.Error) + o.Payload = new(members_models.Error) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { @@ -482,7 +482,7 @@ Server Internal Error type GetDatabasesInternalServerError struct { AccessControlAllowOrigin string - Payload *devops_models.Error + Payload *members_models.Error } // IsSuccess returns true when this get databases internal server error response has a 2xx status code @@ -523,7 +523,7 @@ func (o *GetDatabasesInternalServerError) String() string { return fmt.Sprintf("[GET /databases][%d] getDatabasesInternalServerError %+v", 500, o.Payload) } -func (o *GetDatabasesInternalServerError) GetPayload() *devops_models.Error { +func (o *GetDatabasesInternalServerError) GetPayload() *members_models.Error { return o.Payload } @@ -536,7 +536,7 @@ func (o *GetDatabasesInternalServerError) readResponse(response runtime.ClientRe o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin } - o.Payload = new(devops_models.Error) + o.Payload = new(members_models.Error) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { diff --git a/api/devops/devops_client/database/post_databases_parameters.go b/api/members/members_client/databases/post_databases_parameters.go similarity index 95% rename from api/devops/devops_client/database/post_databases_parameters.go rename to api/members/members_client/databases/post_databases_parameters.go index b0eda84..44c0c8e 100644 --- a/api/devops/devops_client/database/post_databases_parameters.go +++ b/api/members/members_client/databases/post_databases_parameters.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package database +package databases // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command @@ -19,7 +19,7 @@ import ( cr "github.com/go-openapi/runtime/client" "github.com/go-openapi/strfmt" - "code.tnxs.net/vernonkeenan/lib/api/devops/devops_models" + "code.tnxs.net/vernonkeenan/lib/api/members/members_models" ) // NewPostDatabasesParams creates a new PostDatabasesParams object, @@ -71,7 +71,7 @@ type PostDatabasesParams struct { An array of Database records */ - DatabaseRequest *devops_models.DatabaseRequest + DatabaseRequest *members_models.DatabaseRequest timeout time.Duration Context context.Context @@ -127,13 +127,13 @@ func (o *PostDatabasesParams) SetHTTPClient(client *http.Client) { } // WithDatabaseRequest adds the databaseRequest to the post databases params -func (o *PostDatabasesParams) WithDatabaseRequest(databaseRequest *devops_models.DatabaseRequest) *PostDatabasesParams { +func (o *PostDatabasesParams) WithDatabaseRequest(databaseRequest *members_models.DatabaseRequest) *PostDatabasesParams { o.SetDatabaseRequest(databaseRequest) return o } // SetDatabaseRequest adds the databaseRequest to the post databases params -func (o *PostDatabasesParams) SetDatabaseRequest(databaseRequest *devops_models.DatabaseRequest) { +func (o *PostDatabasesParams) SetDatabaseRequest(databaseRequest *members_models.DatabaseRequest) { o.DatabaseRequest = databaseRequest } diff --git a/api/devops/devops_client/database/post_databases_responses.go b/api/members/members_client/databases/post_databases_responses.go similarity index 94% rename from api/devops/devops_client/database/post_databases_responses.go rename to api/members/members_client/databases/post_databases_responses.go index b0d800a..785c73b 100644 --- a/api/devops/devops_client/database/post_databases_responses.go +++ b/api/members/members_client/databases/post_databases_responses.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package database +package databases // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command @@ -16,7 +16,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "code.tnxs.net/vernonkeenan/lib/api/devops/devops_models" + "code.tnxs.net/vernonkeenan/lib/api/members/members_models" ) // PostDatabasesReader is a Reader for the PostDatabases structure. @@ -81,7 +81,7 @@ Response with Database objects type PostDatabasesOK struct { AccessControlAllowOrigin string - Payload *devops_models.DatabaseResponse + Payload *members_models.DatabaseResponse } // IsSuccess returns true when this post databases o k response has a 2xx status code @@ -122,7 +122,7 @@ func (o *PostDatabasesOK) String() string { return fmt.Sprintf("[POST /databases][%d] postDatabasesOK %+v", 200, o.Payload) } -func (o *PostDatabasesOK) GetPayload() *devops_models.DatabaseResponse { +func (o *PostDatabasesOK) GetPayload() *members_models.DatabaseResponse { return o.Payload } @@ -135,7 +135,7 @@ func (o *PostDatabasesOK) readResponse(response runtime.ClientResponse, consumer o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin } - o.Payload = new(devops_models.DatabaseResponse) + o.Payload = new(members_models.DatabaseResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { @@ -159,7 +159,7 @@ type PostDatabasesUnauthorized struct { AccessControlAllowOrigin string CacheControl string - Payload *devops_models.Error + Payload *members_models.Error } // IsSuccess returns true when this post databases unauthorized response has a 2xx status code @@ -200,7 +200,7 @@ func (o *PostDatabasesUnauthorized) String() string { return fmt.Sprintf("[POST /databases][%d] postDatabasesUnauthorized %+v", 401, o.Payload) } -func (o *PostDatabasesUnauthorized) GetPayload() *devops_models.Error { +func (o *PostDatabasesUnauthorized) GetPayload() *members_models.Error { return o.Payload } @@ -220,7 +220,7 @@ func (o *PostDatabasesUnauthorized) readResponse(response runtime.ClientResponse o.CacheControl = hdrCacheControl } - o.Payload = new(devops_models.Error) + o.Payload = new(members_models.Error) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { @@ -243,7 +243,7 @@ Access forbidden, account lacks access type PostDatabasesForbidden struct { AccessControlAllowOrigin string - Payload *devops_models.Error + Payload *members_models.Error } // IsSuccess returns true when this post databases forbidden response has a 2xx status code @@ -284,7 +284,7 @@ func (o *PostDatabasesForbidden) String() string { return fmt.Sprintf("[POST /databases][%d] postDatabasesForbidden %+v", 403, o.Payload) } -func (o *PostDatabasesForbidden) GetPayload() *devops_models.Error { +func (o *PostDatabasesForbidden) GetPayload() *members_models.Error { return o.Payload } @@ -297,7 +297,7 @@ func (o *PostDatabasesForbidden) readResponse(response runtime.ClientResponse, c o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin } - o.Payload = new(devops_models.Error) + o.Payload = new(members_models.Error) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { @@ -320,7 +320,7 @@ Resource was not found type PostDatabasesNotFound struct { AccessControlAllowOrigin string - Payload *devops_models.Error + Payload *members_models.Error } // IsSuccess returns true when this post databases not found response has a 2xx status code @@ -361,7 +361,7 @@ func (o *PostDatabasesNotFound) String() string { return fmt.Sprintf("[POST /databases][%d] postDatabasesNotFound %+v", 404, o.Payload) } -func (o *PostDatabasesNotFound) GetPayload() *devops_models.Error { +func (o *PostDatabasesNotFound) GetPayload() *members_models.Error { return o.Payload } @@ -374,7 +374,7 @@ func (o *PostDatabasesNotFound) readResponse(response runtime.ClientResponse, co o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin } - o.Payload = new(devops_models.Error) + o.Payload = new(members_models.Error) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { @@ -398,7 +398,7 @@ type PostDatabasesUnprocessableEntity struct { AccessControlAllowOrigin string CacheControl string - Payload *devops_models.Error + Payload *members_models.Error } // IsSuccess returns true when this post databases unprocessable entity response has a 2xx status code @@ -439,7 +439,7 @@ func (o *PostDatabasesUnprocessableEntity) String() string { return fmt.Sprintf("[POST /databases][%d] postDatabasesUnprocessableEntity %+v", 422, o.Payload) } -func (o *PostDatabasesUnprocessableEntity) GetPayload() *devops_models.Error { +func (o *PostDatabasesUnprocessableEntity) GetPayload() *members_models.Error { return o.Payload } @@ -459,7 +459,7 @@ func (o *PostDatabasesUnprocessableEntity) readResponse(response runtime.ClientR o.CacheControl = hdrCacheControl } - o.Payload = new(devops_models.Error) + o.Payload = new(members_models.Error) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { @@ -482,7 +482,7 @@ Server Internal Error type PostDatabasesInternalServerError struct { AccessControlAllowOrigin string - Payload *devops_models.Error + Payload *members_models.Error } // IsSuccess returns true when this post databases internal server error response has a 2xx status code @@ -523,7 +523,7 @@ func (o *PostDatabasesInternalServerError) String() string { return fmt.Sprintf("[POST /databases][%d] postDatabasesInternalServerError %+v", 500, o.Payload) } -func (o *PostDatabasesInternalServerError) GetPayload() *devops_models.Error { +func (o *PostDatabasesInternalServerError) GetPayload() *members_models.Error { return o.Payload } @@ -536,7 +536,7 @@ func (o *PostDatabasesInternalServerError) readResponse(response runtime.ClientR o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin } - o.Payload = new(devops_models.Error) + o.Payload = new(members_models.Error) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { diff --git a/api/devops/devops_client/database/put_databases_parameters.go b/api/members/members_client/databases/put_databases_parameters.go similarity index 95% rename from api/devops/devops_client/database/put_databases_parameters.go rename to api/members/members_client/databases/put_databases_parameters.go index a75a3f8..7c4bb11 100644 --- a/api/devops/devops_client/database/put_databases_parameters.go +++ b/api/members/members_client/databases/put_databases_parameters.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package database +package databases // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command @@ -19,7 +19,7 @@ import ( cr "github.com/go-openapi/runtime/client" "github.com/go-openapi/strfmt" - "code.tnxs.net/vernonkeenan/lib/api/devops/devops_models" + "code.tnxs.net/vernonkeenan/lib/api/members/members_models" ) // NewPutDatabasesParams creates a new PutDatabasesParams object, @@ -71,7 +71,7 @@ type PutDatabasesParams struct { An array of Database records */ - DatabaseRequest *devops_models.DatabaseRequest + DatabaseRequest *members_models.DatabaseRequest timeout time.Duration Context context.Context @@ -127,13 +127,13 @@ func (o *PutDatabasesParams) SetHTTPClient(client *http.Client) { } // WithDatabaseRequest adds the databaseRequest to the put databases params -func (o *PutDatabasesParams) WithDatabaseRequest(databaseRequest *devops_models.DatabaseRequest) *PutDatabasesParams { +func (o *PutDatabasesParams) WithDatabaseRequest(databaseRequest *members_models.DatabaseRequest) *PutDatabasesParams { o.SetDatabaseRequest(databaseRequest) return o } // SetDatabaseRequest adds the databaseRequest to the put databases params -func (o *PutDatabasesParams) SetDatabaseRequest(databaseRequest *devops_models.DatabaseRequest) { +func (o *PutDatabasesParams) SetDatabaseRequest(databaseRequest *members_models.DatabaseRequest) { o.DatabaseRequest = databaseRequest } diff --git a/api/devops/devops_client/database/put_databases_responses.go b/api/members/members_client/databases/put_databases_responses.go similarity index 94% rename from api/devops/devops_client/database/put_databases_responses.go rename to api/members/members_client/databases/put_databases_responses.go index 62d9d98..65bf64f 100644 --- a/api/devops/devops_client/database/put_databases_responses.go +++ b/api/members/members_client/databases/put_databases_responses.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package database +package databases // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command @@ -16,7 +16,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "code.tnxs.net/vernonkeenan/lib/api/devops/devops_models" + "code.tnxs.net/vernonkeenan/lib/api/members/members_models" ) // PutDatabasesReader is a Reader for the PutDatabases structure. @@ -81,7 +81,7 @@ Response with Database objects type PutDatabasesOK struct { AccessControlAllowOrigin string - Payload *devops_models.DatabaseResponse + Payload *members_models.DatabaseResponse } // IsSuccess returns true when this put databases o k response has a 2xx status code @@ -122,7 +122,7 @@ func (o *PutDatabasesOK) String() string { return fmt.Sprintf("[PUT /databases][%d] putDatabasesOK %+v", 200, o.Payload) } -func (o *PutDatabasesOK) GetPayload() *devops_models.DatabaseResponse { +func (o *PutDatabasesOK) GetPayload() *members_models.DatabaseResponse { return o.Payload } @@ -135,7 +135,7 @@ func (o *PutDatabasesOK) readResponse(response runtime.ClientResponse, consumer o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin } - o.Payload = new(devops_models.DatabaseResponse) + o.Payload = new(members_models.DatabaseResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { @@ -159,7 +159,7 @@ type PutDatabasesUnauthorized struct { AccessControlAllowOrigin string CacheControl string - Payload *devops_models.Error + Payload *members_models.Error } // IsSuccess returns true when this put databases unauthorized response has a 2xx status code @@ -200,7 +200,7 @@ func (o *PutDatabasesUnauthorized) String() string { return fmt.Sprintf("[PUT /databases][%d] putDatabasesUnauthorized %+v", 401, o.Payload) } -func (o *PutDatabasesUnauthorized) GetPayload() *devops_models.Error { +func (o *PutDatabasesUnauthorized) GetPayload() *members_models.Error { return o.Payload } @@ -220,7 +220,7 @@ func (o *PutDatabasesUnauthorized) readResponse(response runtime.ClientResponse, o.CacheControl = hdrCacheControl } - o.Payload = new(devops_models.Error) + o.Payload = new(members_models.Error) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { @@ -243,7 +243,7 @@ Access forbidden, account lacks access type PutDatabasesForbidden struct { AccessControlAllowOrigin string - Payload *devops_models.Error + Payload *members_models.Error } // IsSuccess returns true when this put databases forbidden response has a 2xx status code @@ -284,7 +284,7 @@ func (o *PutDatabasesForbidden) String() string { return fmt.Sprintf("[PUT /databases][%d] putDatabasesForbidden %+v", 403, o.Payload) } -func (o *PutDatabasesForbidden) GetPayload() *devops_models.Error { +func (o *PutDatabasesForbidden) GetPayload() *members_models.Error { return o.Payload } @@ -297,7 +297,7 @@ func (o *PutDatabasesForbidden) readResponse(response runtime.ClientResponse, co o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin } - o.Payload = new(devops_models.Error) + o.Payload = new(members_models.Error) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { @@ -320,7 +320,7 @@ Resource was not found type PutDatabasesNotFound struct { AccessControlAllowOrigin string - Payload *devops_models.Error + Payload *members_models.Error } // IsSuccess returns true when this put databases not found response has a 2xx status code @@ -361,7 +361,7 @@ func (o *PutDatabasesNotFound) String() string { return fmt.Sprintf("[PUT /databases][%d] putDatabasesNotFound %+v", 404, o.Payload) } -func (o *PutDatabasesNotFound) GetPayload() *devops_models.Error { +func (o *PutDatabasesNotFound) GetPayload() *members_models.Error { return o.Payload } @@ -374,7 +374,7 @@ func (o *PutDatabasesNotFound) readResponse(response runtime.ClientResponse, con o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin } - o.Payload = new(devops_models.Error) + o.Payload = new(members_models.Error) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { @@ -398,7 +398,7 @@ type PutDatabasesUnprocessableEntity struct { AccessControlAllowOrigin string CacheControl string - Payload *devops_models.Error + Payload *members_models.Error } // IsSuccess returns true when this put databases unprocessable entity response has a 2xx status code @@ -439,7 +439,7 @@ func (o *PutDatabasesUnprocessableEntity) String() string { return fmt.Sprintf("[PUT /databases][%d] putDatabasesUnprocessableEntity %+v", 422, o.Payload) } -func (o *PutDatabasesUnprocessableEntity) GetPayload() *devops_models.Error { +func (o *PutDatabasesUnprocessableEntity) GetPayload() *members_models.Error { return o.Payload } @@ -459,7 +459,7 @@ func (o *PutDatabasesUnprocessableEntity) readResponse(response runtime.ClientRe o.CacheControl = hdrCacheControl } - o.Payload = new(devops_models.Error) + o.Payload = new(members_models.Error) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { @@ -482,7 +482,7 @@ Server Internal Error type PutDatabasesInternalServerError struct { AccessControlAllowOrigin string - Payload *devops_models.Error + Payload *members_models.Error } // IsSuccess returns true when this put databases internal server error response has a 2xx status code @@ -523,7 +523,7 @@ func (o *PutDatabasesInternalServerError) String() string { return fmt.Sprintf("[PUT /databases][%d] putDatabasesInternalServerError %+v", 500, o.Payload) } -func (o *PutDatabasesInternalServerError) GetPayload() *devops_models.Error { +func (o *PutDatabasesInternalServerError) GetPayload() *members_models.Error { return o.Payload } @@ -536,7 +536,7 @@ func (o *PutDatabasesInternalServerError) readResponse(response runtime.ClientRe o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin } - o.Payload = new(devops_models.Error) + o.Payload = new(members_models.Error) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { diff --git a/api/members/members_client/operations/create_enrollment_parameters.go b/api/members/members_client/enrollments/create_enrollment_parameters.go similarity index 99% rename from api/members/members_client/operations/create_enrollment_parameters.go rename to api/members/members_client/enrollments/create_enrollment_parameters.go index f61c743..51a79fd 100644 --- a/api/members/members_client/operations/create_enrollment_parameters.go +++ b/api/members/members_client/enrollments/create_enrollment_parameters.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package enrollments // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/operations/create_enrollment_responses.go b/api/members/members_client/enrollments/create_enrollment_responses.go similarity index 99% rename from api/members/members_client/operations/create_enrollment_responses.go rename to api/members/members_client/enrollments/create_enrollment_responses.go index 3637194..25df58b 100644 --- a/api/members/members_client/operations/create_enrollment_responses.go +++ b/api/members/members_client/enrollments/create_enrollment_responses.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package enrollments // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/operations/delete_enrollment_parameters.go b/api/members/members_client/enrollments/delete_enrollment_parameters.go similarity index 99% rename from api/members/members_client/operations/delete_enrollment_parameters.go rename to api/members/members_client/enrollments/delete_enrollment_parameters.go index 64d78bf..6999504 100644 --- a/api/members/members_client/operations/delete_enrollment_parameters.go +++ b/api/members/members_client/enrollments/delete_enrollment_parameters.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package enrollments // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/operations/delete_enrollment_responses.go b/api/members/members_client/enrollments/delete_enrollment_responses.go similarity index 99% rename from api/members/members_client/operations/delete_enrollment_responses.go rename to api/members/members_client/enrollments/delete_enrollment_responses.go index b3382e1..f59b9dc 100644 --- a/api/members/members_client/operations/delete_enrollment_responses.go +++ b/api/members/members_client/enrollments/delete_enrollment_responses.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package enrollments // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/enrollments/enrollments_client.go b/api/members/members_client/enrollments/enrollments_client.go new file mode 100644 index 0000000..224a6a6 --- /dev/null +++ b/api/members/members_client/enrollments/enrollments_client.go @@ -0,0 +1,203 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package enrollments + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" +) + +// New creates a new enrollments API client. +func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService { + return &Client{transport: transport, formats: formats} +} + +/* +Client for enrollments API +*/ +type Client struct { + transport runtime.ClientTransport + 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 { + CreateEnrollment(params *CreateEnrollmentParams, opts ...ClientOption) (*CreateEnrollmentCreated, error) + + DeleteEnrollment(params *DeleteEnrollmentParams, opts ...ClientOption) (*DeleteEnrollmentNoContent, error) + + GetEnrollments(params *GetEnrollmentsParams, opts ...ClientOption) (*GetEnrollmentsOK, error) + + UpdateEnrollment(params *UpdateEnrollmentParams, opts ...ClientOption) (*UpdateEnrollmentOK, error) + + SetTransport(transport runtime.ClientTransport) +} + +/* +CreateEnrollment creates a new enrollment +*/ +func (a *Client) CreateEnrollment(params *CreateEnrollmentParams, opts ...ClientOption) (*CreateEnrollmentCreated, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewCreateEnrollmentParams() + } + op := &runtime.ClientOperation{ + ID: "createEnrollment", + Method: "POST", + PathPattern: "/enrollments", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &CreateEnrollmentReader{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 + } + success, ok := result.(*CreateEnrollmentCreated) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for createEnrollment: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +DeleteEnrollment deletes a enrollment +*/ +func (a *Client) DeleteEnrollment(params *DeleteEnrollmentParams, opts ...ClientOption) (*DeleteEnrollmentNoContent, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewDeleteEnrollmentParams() + } + op := &runtime.ClientOperation{ + ID: "deleteEnrollment", + Method: "DELETE", + PathPattern: "/enrollments", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &DeleteEnrollmentReader{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 + } + success, ok := result.(*DeleteEnrollmentNoContent) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for deleteEnrollment: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +GetEnrollments gets a list of enrollments +*/ +func (a *Client) GetEnrollments(params *GetEnrollmentsParams, opts ...ClientOption) (*GetEnrollmentsOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewGetEnrollmentsParams() + } + op := &runtime.ClientOperation{ + ID: "getEnrollments", + Method: "GET", + PathPattern: "/enrollments", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &GetEnrollmentsReader{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 + } + success, ok := result.(*GetEnrollmentsOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for getEnrollments: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +UpdateEnrollment updates an existing enrollment +*/ +func (a *Client) UpdateEnrollment(params *UpdateEnrollmentParams, opts ...ClientOption) (*UpdateEnrollmentOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewUpdateEnrollmentParams() + } + op := &runtime.ClientOperation{ + ID: "updateEnrollment", + Method: "PUT", + PathPattern: "/enrollments", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &UpdateEnrollmentReader{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 + } + success, ok := result.(*UpdateEnrollmentOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for updateEnrollment: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +// SetTransport changes the transport on the client +func (a *Client) SetTransport(transport runtime.ClientTransport) { + a.transport = transport +} diff --git a/api/members/members_client/operations/get_enrollments_parameters.go b/api/members/members_client/enrollments/get_enrollments_parameters.go similarity index 99% rename from api/members/members_client/operations/get_enrollments_parameters.go rename to api/members/members_client/enrollments/get_enrollments_parameters.go index c6a8072..30f1e83 100644 --- a/api/members/members_client/operations/get_enrollments_parameters.go +++ b/api/members/members_client/enrollments/get_enrollments_parameters.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package enrollments // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/operations/get_enrollments_responses.go b/api/members/members_client/enrollments/get_enrollments_responses.go similarity index 99% rename from api/members/members_client/operations/get_enrollments_responses.go rename to api/members/members_client/enrollments/get_enrollments_responses.go index 3b6e83d..7079423 100644 --- a/api/members/members_client/operations/get_enrollments_responses.go +++ b/api/members/members_client/enrollments/get_enrollments_responses.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package enrollments // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/operations/update_enrollment_parameters.go b/api/members/members_client/enrollments/update_enrollment_parameters.go similarity index 99% rename from api/members/members_client/operations/update_enrollment_parameters.go rename to api/members/members_client/enrollments/update_enrollment_parameters.go index feaa994..c16f096 100644 --- a/api/members/members_client/operations/update_enrollment_parameters.go +++ b/api/members/members_client/enrollments/update_enrollment_parameters.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package enrollments // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/operations/update_enrollment_responses.go b/api/members/members_client/enrollments/update_enrollment_responses.go similarity index 99% rename from api/members/members_client/operations/update_enrollment_responses.go rename to api/members/members_client/enrollments/update_enrollment_responses.go index 9bbca66..abe6b1c 100644 --- a/api/members/members_client/operations/update_enrollment_responses.go +++ b/api/members/members_client/enrollments/update_enrollment_responses.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package enrollments // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/operations/create_event_category_parameters.go b/api/members/members_client/event_categories/create_event_category_parameters.go similarity index 99% rename from api/members/members_client/operations/create_event_category_parameters.go rename to api/members/members_client/event_categories/create_event_category_parameters.go index 2f94395..7fbba18 100644 --- a/api/members/members_client/operations/create_event_category_parameters.go +++ b/api/members/members_client/event_categories/create_event_category_parameters.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package event_categories // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/operations/create_event_category_responses.go b/api/members/members_client/event_categories/create_event_category_responses.go similarity index 93% rename from api/members/members_client/operations/create_event_category_responses.go rename to api/members/members_client/event_categories/create_event_category_responses.go index 6c4393e..18a683e 100644 --- a/api/members/members_client/operations/create_event_category_responses.go +++ b/api/members/members_client/event_categories/create_event_category_responses.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package event_categories // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command @@ -79,11 +79,11 @@ func (o *CreateEventCategoryCreated) Code() int { } func (o *CreateEventCategoryCreated) Error() string { - return fmt.Sprintf("[POST /eventcategorys][%d] createEventCategoryCreated ", 201) + return fmt.Sprintf("[POST /eventcategories][%d] createEventCategoryCreated ", 201) } func (o *CreateEventCategoryCreated) String() string { - return fmt.Sprintf("[POST /eventcategorys][%d] createEventCategoryCreated ", 201) + return fmt.Sprintf("[POST /eventcategories][%d] createEventCategoryCreated ", 201) } func (o *CreateEventCategoryCreated) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { diff --git a/api/members/members_client/operations/delete_event_category_parameters.go b/api/members/members_client/event_categories/delete_event_category_parameters.go similarity index 99% rename from api/members/members_client/operations/delete_event_category_parameters.go rename to api/members/members_client/event_categories/delete_event_category_parameters.go index 55a1154..66f713d 100644 --- a/api/members/members_client/operations/delete_event_category_parameters.go +++ b/api/members/members_client/event_categories/delete_event_category_parameters.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package event_categories // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/operations/delete_event_category_responses.go b/api/members/members_client/event_categories/delete_event_category_responses.go similarity index 93% rename from api/members/members_client/operations/delete_event_category_responses.go rename to api/members/members_client/event_categories/delete_event_category_responses.go index ca56bbd..263f6f2 100644 --- a/api/members/members_client/operations/delete_event_category_responses.go +++ b/api/members/members_client/event_categories/delete_event_category_responses.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package event_categories // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command @@ -79,11 +79,11 @@ func (o *DeleteEventCategoryNoContent) Code() int { } func (o *DeleteEventCategoryNoContent) Error() string { - return fmt.Sprintf("[DELETE /eventcategorys][%d] deleteEventCategoryNoContent ", 204) + return fmt.Sprintf("[DELETE /eventcategories][%d] deleteEventCategoryNoContent ", 204) } func (o *DeleteEventCategoryNoContent) String() string { - return fmt.Sprintf("[DELETE /eventcategorys][%d] deleteEventCategoryNoContent ", 204) + return fmt.Sprintf("[DELETE /eventcategories][%d] deleteEventCategoryNoContent ", 204) } func (o *DeleteEventCategoryNoContent) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { diff --git a/api/members/members_client/event_categories/event_categories_client.go b/api/members/members_client/event_categories/event_categories_client.go new file mode 100644 index 0000000..f8650a0 --- /dev/null +++ b/api/members/members_client/event_categories/event_categories_client.go @@ -0,0 +1,203 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package event_categories + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" +) + +// New creates a new event categories API client. +func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService { + return &Client{transport: transport, formats: formats} +} + +/* +Client for event categories API +*/ +type Client struct { + transport runtime.ClientTransport + 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 { + CreateEventCategory(params *CreateEventCategoryParams, opts ...ClientOption) (*CreateEventCategoryCreated, error) + + DeleteEventCategory(params *DeleteEventCategoryParams, opts ...ClientOption) (*DeleteEventCategoryNoContent, error) + + GetEventCategorys(params *GetEventCategorysParams, opts ...ClientOption) (*GetEventCategorysOK, error) + + UpdateEventCategory(params *UpdateEventCategoryParams, opts ...ClientOption) (*UpdateEventCategoryOK, error) + + SetTransport(transport runtime.ClientTransport) +} + +/* +CreateEventCategory creates a new event category +*/ +func (a *Client) CreateEventCategory(params *CreateEventCategoryParams, opts ...ClientOption) (*CreateEventCategoryCreated, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewCreateEventCategoryParams() + } + op := &runtime.ClientOperation{ + ID: "createEventCategory", + Method: "POST", + PathPattern: "/eventcategories", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &CreateEventCategoryReader{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 + } + success, ok := result.(*CreateEventCategoryCreated) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for createEventCategory: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +DeleteEventCategory deletes a event category +*/ +func (a *Client) DeleteEventCategory(params *DeleteEventCategoryParams, opts ...ClientOption) (*DeleteEventCategoryNoContent, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewDeleteEventCategoryParams() + } + op := &runtime.ClientOperation{ + ID: "deleteEventCategory", + Method: "DELETE", + PathPattern: "/eventcategories", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &DeleteEventCategoryReader{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 + } + success, ok := result.(*DeleteEventCategoryNoContent) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for deleteEventCategory: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +GetEventCategorys gets a list of event categories +*/ +func (a *Client) GetEventCategorys(params *GetEventCategorysParams, opts ...ClientOption) (*GetEventCategorysOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewGetEventCategorysParams() + } + op := &runtime.ClientOperation{ + ID: "getEventCategorys", + Method: "GET", + PathPattern: "/eventcategories", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &GetEventCategorysReader{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 + } + success, ok := result.(*GetEventCategorysOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for getEventCategorys: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +UpdateEventCategory updates an existing event category +*/ +func (a *Client) UpdateEventCategory(params *UpdateEventCategoryParams, opts ...ClientOption) (*UpdateEventCategoryOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewUpdateEventCategoryParams() + } + op := &runtime.ClientOperation{ + ID: "updateEventCategory", + Method: "PUT", + PathPattern: "/eventcategories", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &UpdateEventCategoryReader{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 + } + success, ok := result.(*UpdateEventCategoryOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for updateEventCategory: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +// SetTransport changes the transport on the client +func (a *Client) SetTransport(transport runtime.ClientTransport) { + a.transport = transport +} diff --git a/api/members/members_client/operations/get_event_categorys_parameters.go b/api/members/members_client/event_categories/get_event_categorys_parameters.go similarity index 99% rename from api/members/members_client/operations/get_event_categorys_parameters.go rename to api/members/members_client/event_categories/get_event_categorys_parameters.go index 6309a20..7cc2abe 100644 --- a/api/members/members_client/operations/get_event_categorys_parameters.go +++ b/api/members/members_client/event_categories/get_event_categorys_parameters.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package event_categories // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/operations/get_event_categorys_responses.go b/api/members/members_client/event_categories/get_event_categorys_responses.go similarity index 93% rename from api/members/members_client/operations/get_event_categorys_responses.go rename to api/members/members_client/event_categories/get_event_categorys_responses.go index 30adda5..efedf84 100644 --- a/api/members/members_client/operations/get_event_categorys_responses.go +++ b/api/members/members_client/event_categories/get_event_categorys_responses.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package event_categories // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command @@ -79,11 +79,11 @@ func (o *GetEventCategorysOK) Code() int { } func (o *GetEventCategorysOK) Error() string { - return fmt.Sprintf("[GET /eventcategorys][%d] getEventCategorysOK ", 200) + return fmt.Sprintf("[GET /eventcategories][%d] getEventCategorysOK ", 200) } func (o *GetEventCategorysOK) String() string { - return fmt.Sprintf("[GET /eventcategorys][%d] getEventCategorysOK ", 200) + return fmt.Sprintf("[GET /eventcategories][%d] getEventCategorysOK ", 200) } func (o *GetEventCategorysOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { diff --git a/api/members/members_client/operations/update_event_category_parameters.go b/api/members/members_client/event_categories/update_event_category_parameters.go similarity index 99% rename from api/members/members_client/operations/update_event_category_parameters.go rename to api/members/members_client/event_categories/update_event_category_parameters.go index 5422601..da1ef43 100644 --- a/api/members/members_client/operations/update_event_category_parameters.go +++ b/api/members/members_client/event_categories/update_event_category_parameters.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package event_categories // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/operations/update_event_category_responses.go b/api/members/members_client/event_categories/update_event_category_responses.go similarity index 93% rename from api/members/members_client/operations/update_event_category_responses.go rename to api/members/members_client/event_categories/update_event_category_responses.go index 18cfabb..9a8d416 100644 --- a/api/members/members_client/operations/update_event_category_responses.go +++ b/api/members/members_client/event_categories/update_event_category_responses.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package event_categories // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command @@ -79,11 +79,11 @@ func (o *UpdateEventCategoryOK) Code() int { } func (o *UpdateEventCategoryOK) Error() string { - return fmt.Sprintf("[PUT /eventcategorys][%d] updateEventCategoryOK ", 200) + return fmt.Sprintf("[PUT /eventcategories][%d] updateEventCategoryOK ", 200) } func (o *UpdateEventCategoryOK) String() string { - return fmt.Sprintf("[PUT /eventcategorys][%d] updateEventCategoryOK ", 200) + return fmt.Sprintf("[PUT /eventcategories][%d] updateEventCategoryOK ", 200) } func (o *UpdateEventCategoryOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { diff --git a/api/members/members_client/operations/create_event_category_assignment_parameters.go b/api/members/members_client/event_category_assignments/create_event_category_assignment_parameters.go similarity index 99% rename from api/members/members_client/operations/create_event_category_assignment_parameters.go rename to api/members/members_client/event_category_assignments/create_event_category_assignment_parameters.go index 00c7e57..d0e6459 100644 --- a/api/members/members_client/operations/create_event_category_assignment_parameters.go +++ b/api/members/members_client/event_category_assignments/create_event_category_assignment_parameters.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package event_category_assignments // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/operations/create_event_category_assignment_responses.go b/api/members/members_client/event_category_assignments/create_event_category_assignment_responses.go similarity index 98% rename from api/members/members_client/operations/create_event_category_assignment_responses.go rename to api/members/members_client/event_category_assignments/create_event_category_assignment_responses.go index 0c747ee..faf15ac 100644 --- a/api/members/members_client/operations/create_event_category_assignment_responses.go +++ b/api/members/members_client/event_category_assignments/create_event_category_assignment_responses.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package event_category_assignments // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/operations/delete_event_category_assignment_parameters.go b/api/members/members_client/event_category_assignments/delete_event_category_assignment_parameters.go similarity index 99% rename from api/members/members_client/operations/delete_event_category_assignment_parameters.go rename to api/members/members_client/event_category_assignments/delete_event_category_assignment_parameters.go index 4593fe0..239e437 100644 --- a/api/members/members_client/operations/delete_event_category_assignment_parameters.go +++ b/api/members/members_client/event_category_assignments/delete_event_category_assignment_parameters.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package event_category_assignments // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/operations/delete_event_category_assignment_responses.go b/api/members/members_client/event_category_assignments/delete_event_category_assignment_responses.go similarity index 98% rename from api/members/members_client/operations/delete_event_category_assignment_responses.go rename to api/members/members_client/event_category_assignments/delete_event_category_assignment_responses.go index 0e01148..4f123fa 100644 --- a/api/members/members_client/operations/delete_event_category_assignment_responses.go +++ b/api/members/members_client/event_category_assignments/delete_event_category_assignment_responses.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package event_category_assignments // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/event_category_assignments/event_category_assignments_client.go b/api/members/members_client/event_category_assignments/event_category_assignments_client.go new file mode 100644 index 0000000..54dacd3 --- /dev/null +++ b/api/members/members_client/event_category_assignments/event_category_assignments_client.go @@ -0,0 +1,203 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package event_category_assignments + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" +) + +// New creates a new event category assignments API client. +func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService { + return &Client{transport: transport, formats: formats} +} + +/* +Client for event category assignments API +*/ +type Client struct { + transport runtime.ClientTransport + 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 { + CreateEventCategoryAssignment(params *CreateEventCategoryAssignmentParams, opts ...ClientOption) (*CreateEventCategoryAssignmentCreated, error) + + DeleteEventCategoryAssignment(params *DeleteEventCategoryAssignmentParams, opts ...ClientOption) (*DeleteEventCategoryAssignmentNoContent, error) + + GetEventCategoryAssignments(params *GetEventCategoryAssignmentsParams, opts ...ClientOption) (*GetEventCategoryAssignmentsOK, error) + + UpdateEventCategoryAssignment(params *UpdateEventCategoryAssignmentParams, opts ...ClientOption) (*UpdateEventCategoryAssignmentOK, error) + + SetTransport(transport runtime.ClientTransport) +} + +/* +CreateEventCategoryAssignment creates a new event category assignment +*/ +func (a *Client) CreateEventCategoryAssignment(params *CreateEventCategoryAssignmentParams, opts ...ClientOption) (*CreateEventCategoryAssignmentCreated, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewCreateEventCategoryAssignmentParams() + } + op := &runtime.ClientOperation{ + ID: "createEventCategoryAssignment", + Method: "POST", + PathPattern: "/eventcategoryassignments", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &CreateEventCategoryAssignmentReader{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 + } + success, ok := result.(*CreateEventCategoryAssignmentCreated) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for createEventCategoryAssignment: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +DeleteEventCategoryAssignment deletes a event category assignment +*/ +func (a *Client) DeleteEventCategoryAssignment(params *DeleteEventCategoryAssignmentParams, opts ...ClientOption) (*DeleteEventCategoryAssignmentNoContent, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewDeleteEventCategoryAssignmentParams() + } + op := &runtime.ClientOperation{ + ID: "deleteEventCategoryAssignment", + Method: "DELETE", + PathPattern: "/eventcategoryassignments", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &DeleteEventCategoryAssignmentReader{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 + } + success, ok := result.(*DeleteEventCategoryAssignmentNoContent) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for deleteEventCategoryAssignment: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +GetEventCategoryAssignments gets a list of event categoryassignments +*/ +func (a *Client) GetEventCategoryAssignments(params *GetEventCategoryAssignmentsParams, opts ...ClientOption) (*GetEventCategoryAssignmentsOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewGetEventCategoryAssignmentsParams() + } + op := &runtime.ClientOperation{ + ID: "getEventCategoryAssignments", + Method: "GET", + PathPattern: "/eventcategoryassignments", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &GetEventCategoryAssignmentsReader{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 + } + success, ok := result.(*GetEventCategoryAssignmentsOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for getEventCategoryAssignments: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +UpdateEventCategoryAssignment updates an existing event category assignment +*/ +func (a *Client) UpdateEventCategoryAssignment(params *UpdateEventCategoryAssignmentParams, opts ...ClientOption) (*UpdateEventCategoryAssignmentOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewUpdateEventCategoryAssignmentParams() + } + op := &runtime.ClientOperation{ + ID: "updateEventCategoryAssignment", + Method: "PUT", + PathPattern: "/eventcategoryassignments", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &UpdateEventCategoryAssignmentReader{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 + } + success, ok := result.(*UpdateEventCategoryAssignmentOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for updateEventCategoryAssignment: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +// SetTransport changes the transport on the client +func (a *Client) SetTransport(transport runtime.ClientTransport) { + a.transport = transport +} diff --git a/api/members/members_client/event_category_assignments/get_event_category_assignments_parameters.go b/api/members/members_client/event_category_assignments/get_event_category_assignments_parameters.go new file mode 100644 index 0000000..7d88a08 --- /dev/null +++ b/api/members/members_client/event_category_assignments/get_event_category_assignments_parameters.go @@ -0,0 +1,240 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package event_category_assignments + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// NewGetEventCategoryAssignmentsParams creates a new GetEventCategoryAssignmentsParams 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 NewGetEventCategoryAssignmentsParams() *GetEventCategoryAssignmentsParams { + return &GetEventCategoryAssignmentsParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewGetEventCategoryAssignmentsParamsWithTimeout creates a new GetEventCategoryAssignmentsParams object +// with the ability to set a timeout on a request. +func NewGetEventCategoryAssignmentsParamsWithTimeout(timeout time.Duration) *GetEventCategoryAssignmentsParams { + return &GetEventCategoryAssignmentsParams{ + timeout: timeout, + } +} + +// NewGetEventCategoryAssignmentsParamsWithContext creates a new GetEventCategoryAssignmentsParams object +// with the ability to set a context for a request. +func NewGetEventCategoryAssignmentsParamsWithContext(ctx context.Context) *GetEventCategoryAssignmentsParams { + return &GetEventCategoryAssignmentsParams{ + Context: ctx, + } +} + +// NewGetEventCategoryAssignmentsParamsWithHTTPClient creates a new GetEventCategoryAssignmentsParams object +// with the ability to set a custom HTTPClient for a request. +func NewGetEventCategoryAssignmentsParamsWithHTTPClient(client *http.Client) *GetEventCategoryAssignmentsParams { + return &GetEventCategoryAssignmentsParams{ + HTTPClient: client, + } +} + +/* +GetEventCategoryAssignmentsParams contains all the parameters to send to the API endpoint + + for the get event category assignments operation. + + Typically these are written to a http.Request. +*/ +type GetEventCategoryAssignmentsParams struct { + + /* ID. + + Unique Record ID + */ + ID *string + + /* Limit. + + How many objects to return at one time + + Format: int64 + */ + Limit *int64 + + /* Offset. + + How many objects to skip? + + Format: int64 + */ + Offset *int64 + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the get event category assignments params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *GetEventCategoryAssignmentsParams) WithDefaults() *GetEventCategoryAssignmentsParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the get event category assignments params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *GetEventCategoryAssignmentsParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the get event category assignments params +func (o *GetEventCategoryAssignmentsParams) WithTimeout(timeout time.Duration) *GetEventCategoryAssignmentsParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the get event category assignments params +func (o *GetEventCategoryAssignmentsParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the get event category assignments params +func (o *GetEventCategoryAssignmentsParams) WithContext(ctx context.Context) *GetEventCategoryAssignmentsParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the get event category assignments params +func (o *GetEventCategoryAssignmentsParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the get event category assignments params +func (o *GetEventCategoryAssignmentsParams) WithHTTPClient(client *http.Client) *GetEventCategoryAssignmentsParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the get event category assignments params +func (o *GetEventCategoryAssignmentsParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithID adds the id to the get event category assignments params +func (o *GetEventCategoryAssignmentsParams) WithID(id *string) *GetEventCategoryAssignmentsParams { + o.SetID(id) + return o +} + +// SetID adds the id to the get event category assignments params +func (o *GetEventCategoryAssignmentsParams) SetID(id *string) { + o.ID = id +} + +// WithLimit adds the limit to the get event category assignments params +func (o *GetEventCategoryAssignmentsParams) WithLimit(limit *int64) *GetEventCategoryAssignmentsParams { + o.SetLimit(limit) + return o +} + +// SetLimit adds the limit to the get event category assignments params +func (o *GetEventCategoryAssignmentsParams) SetLimit(limit *int64) { + o.Limit = limit +} + +// WithOffset adds the offset to the get event category assignments params +func (o *GetEventCategoryAssignmentsParams) WithOffset(offset *int64) *GetEventCategoryAssignmentsParams { + o.SetOffset(offset) + return o +} + +// SetOffset adds the offset to the get event category assignments params +func (o *GetEventCategoryAssignmentsParams) SetOffset(offset *int64) { + o.Offset = offset +} + +// WriteToRequest writes these params to a swagger request +func (o *GetEventCategoryAssignmentsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + + if o.ID != nil { + + // query param id + var qrID string + + if o.ID != nil { + qrID = *o.ID + } + qID := qrID + if qID != "" { + + if err := r.SetQueryParam("id", qID); err != nil { + return err + } + } + } + + if o.Limit != nil { + + // query param limit + var qrLimit int64 + + if o.Limit != nil { + qrLimit = *o.Limit + } + qLimit := swag.FormatInt64(qrLimit) + if qLimit != "" { + + if err := r.SetQueryParam("limit", qLimit); err != nil { + return err + } + } + } + + if o.Offset != nil { + + // query param offset + var qrOffset int64 + + if o.Offset != nil { + qrOffset = *o.Offset + } + qOffset := swag.FormatInt64(qrOffset) + if qOffset != "" { + + if err := r.SetQueryParam("offset", qOffset); err != nil { + return err + } + } + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/api/members/members_client/event_category_assignments/get_event_category_assignments_responses.go b/api/members/members_client/event_category_assignments/get_event_category_assignments_responses.go new file mode 100644 index 0000000..e609986 --- /dev/null +++ b/api/members/members_client/event_category_assignments/get_event_category_assignments_responses.go @@ -0,0 +1,92 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package event_category_assignments + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" +) + +// GetEventCategoryAssignmentsReader is a Reader for the GetEventCategoryAssignments structure. +type GetEventCategoryAssignmentsReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *GetEventCategoryAssignmentsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 200: + result := NewGetEventCategoryAssignmentsOK() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewGetEventCategoryAssignmentsOK creates a GetEventCategoryAssignmentsOK with default headers values +func NewGetEventCategoryAssignmentsOK() *GetEventCategoryAssignmentsOK { + return &GetEventCategoryAssignmentsOK{} +} + +/* +GetEventCategoryAssignmentsOK describes a response with status code 200, with default header values. + +OK +*/ +type GetEventCategoryAssignmentsOK struct { +} + +// IsSuccess returns true when this get event category assignments o k response has a 2xx status code +func (o *GetEventCategoryAssignmentsOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get event category assignments o k response has a 3xx status code +func (o *GetEventCategoryAssignmentsOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get event category assignments o k response has a 4xx status code +func (o *GetEventCategoryAssignmentsOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get event category assignments o k response has a 5xx status code +func (o *GetEventCategoryAssignmentsOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get event category assignments o k response a status code equal to that given +func (o *GetEventCategoryAssignmentsOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get event category assignments o k response +func (o *GetEventCategoryAssignmentsOK) Code() int { + return 200 +} + +func (o *GetEventCategoryAssignmentsOK) Error() string { + return fmt.Sprintf("[GET /eventcategoryassignments][%d] getEventCategoryAssignmentsOK ", 200) +} + +func (o *GetEventCategoryAssignmentsOK) String() string { + return fmt.Sprintf("[GET /eventcategoryassignments][%d] getEventCategoryAssignmentsOK ", 200) +} + +func (o *GetEventCategoryAssignmentsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + return nil +} diff --git a/api/members/members_client/operations/update_event_category_assignment_parameters.go b/api/members/members_client/event_category_assignments/update_event_category_assignment_parameters.go similarity index 99% rename from api/members/members_client/operations/update_event_category_assignment_parameters.go rename to api/members/members_client/event_category_assignments/update_event_category_assignment_parameters.go index 9bdc1e9..7f06d60 100644 --- a/api/members/members_client/operations/update_event_category_assignment_parameters.go +++ b/api/members/members_client/event_category_assignments/update_event_category_assignment_parameters.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package event_category_assignments // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/operations/update_event_category_assignment_responses.go b/api/members/members_client/event_category_assignments/update_event_category_assignment_responses.go similarity index 98% rename from api/members/members_client/operations/update_event_category_assignment_responses.go rename to api/members/members_client/event_category_assignments/update_event_category_assignment_responses.go index a799db3..9d0fcc1 100644 --- a/api/members/members_client/operations/update_event_category_assignment_responses.go +++ b/api/members/members_client/event_category_assignments/update_event_category_assignment_responses.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package event_category_assignments // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/operations/create_event_parameters.go b/api/members/members_client/events/create_event_parameters.go similarity index 99% rename from api/members/members_client/operations/create_event_parameters.go rename to api/members/members_client/events/create_event_parameters.go index 27a4fc4..554bd93 100644 --- a/api/members/members_client/operations/create_event_parameters.go +++ b/api/members/members_client/events/create_event_parameters.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package events // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/operations/create_event_responses.go b/api/members/members_client/events/create_event_responses.go similarity index 99% rename from api/members/members_client/operations/create_event_responses.go rename to api/members/members_client/events/create_event_responses.go index 5e601b2..8e28684 100644 --- a/api/members/members_client/operations/create_event_responses.go +++ b/api/members/members_client/events/create_event_responses.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package events // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/operations/delete_event_parameters.go b/api/members/members_client/events/delete_event_parameters.go similarity index 99% rename from api/members/members_client/operations/delete_event_parameters.go rename to api/members/members_client/events/delete_event_parameters.go index 0bd76d9..9ec1f56 100644 --- a/api/members/members_client/operations/delete_event_parameters.go +++ b/api/members/members_client/events/delete_event_parameters.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package events // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/operations/delete_event_responses.go b/api/members/members_client/events/delete_event_responses.go similarity index 99% rename from api/members/members_client/operations/delete_event_responses.go rename to api/members/members_client/events/delete_event_responses.go index 96c6af9..e123c38 100644 --- a/api/members/members_client/operations/delete_event_responses.go +++ b/api/members/members_client/events/delete_event_responses.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package events // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/events/events_client.go b/api/members/members_client/events/events_client.go new file mode 100644 index 0000000..23ba495 --- /dev/null +++ b/api/members/members_client/events/events_client.go @@ -0,0 +1,203 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package events + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" +) + +// New creates a new events API client. +func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService { + return &Client{transport: transport, formats: formats} +} + +/* +Client for events API +*/ +type Client struct { + transport runtime.ClientTransport + 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 { + CreateEvent(params *CreateEventParams, opts ...ClientOption) (*CreateEventCreated, error) + + DeleteEvent(params *DeleteEventParams, opts ...ClientOption) (*DeleteEventNoContent, error) + + GetEvents(params *GetEventsParams, opts ...ClientOption) (*GetEventsOK, error) + + UpdateEvent(params *UpdateEventParams, opts ...ClientOption) (*UpdateEventOK, error) + + SetTransport(transport runtime.ClientTransport) +} + +/* +CreateEvent creates a new event +*/ +func (a *Client) CreateEvent(params *CreateEventParams, opts ...ClientOption) (*CreateEventCreated, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewCreateEventParams() + } + op := &runtime.ClientOperation{ + ID: "createEvent", + Method: "POST", + PathPattern: "/events", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &CreateEventReader{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 + } + success, ok := result.(*CreateEventCreated) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for createEvent: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +DeleteEvent deletes a event +*/ +func (a *Client) DeleteEvent(params *DeleteEventParams, opts ...ClientOption) (*DeleteEventNoContent, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewDeleteEventParams() + } + op := &runtime.ClientOperation{ + ID: "deleteEvent", + Method: "DELETE", + PathPattern: "/events", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &DeleteEventReader{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 + } + success, ok := result.(*DeleteEventNoContent) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for deleteEvent: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +GetEvents gets a list of events +*/ +func (a *Client) GetEvents(params *GetEventsParams, opts ...ClientOption) (*GetEventsOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewGetEventsParams() + } + op := &runtime.ClientOperation{ + ID: "getEvents", + Method: "GET", + PathPattern: "/events", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &GetEventsReader{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 + } + success, ok := result.(*GetEventsOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for getEvents: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +UpdateEvent updates an existing event +*/ +func (a *Client) UpdateEvent(params *UpdateEventParams, opts ...ClientOption) (*UpdateEventOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewUpdateEventParams() + } + op := &runtime.ClientOperation{ + ID: "updateEvent", + Method: "PUT", + PathPattern: "/events", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &UpdateEventReader{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 + } + success, ok := result.(*UpdateEventOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for updateEvent: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +// SetTransport changes the transport on the client +func (a *Client) SetTransport(transport runtime.ClientTransport) { + a.transport = transport +} diff --git a/api/members/members_client/operations/get_events_parameters.go b/api/members/members_client/events/get_events_parameters.go similarity index 99% rename from api/members/members_client/operations/get_events_parameters.go rename to api/members/members_client/events/get_events_parameters.go index 9b48aa6..64cfe14 100644 --- a/api/members/members_client/operations/get_events_parameters.go +++ b/api/members/members_client/events/get_events_parameters.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package events // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/operations/get_events_responses.go b/api/members/members_client/events/get_events_responses.go similarity index 99% rename from api/members/members_client/operations/get_events_responses.go rename to api/members/members_client/events/get_events_responses.go index 6c6a53a..b8181cc 100644 --- a/api/members/members_client/operations/get_events_responses.go +++ b/api/members/members_client/events/get_events_responses.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package events // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/operations/update_event_parameters.go b/api/members/members_client/events/update_event_parameters.go similarity index 99% rename from api/members/members_client/operations/update_event_parameters.go rename to api/members/members_client/events/update_event_parameters.go index e26e321..c28a4bb 100644 --- a/api/members/members_client/operations/update_event_parameters.go +++ b/api/members/members_client/events/update_event_parameters.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package events // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/operations/update_event_responses.go b/api/members/members_client/events/update_event_responses.go similarity index 99% rename from api/members/members_client/operations/update_event_responses.go rename to api/members/members_client/events/update_event_responses.go index a56b29e..0d122d8 100644 --- a/api/members/members_client/operations/update_event_responses.go +++ b/api/members/members_client/events/update_event_responses.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package events // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/operations/create_favorite_parameters.go b/api/members/members_client/favorites/create_favorite_parameters.go similarity index 99% rename from api/members/members_client/operations/create_favorite_parameters.go rename to api/members/members_client/favorites/create_favorite_parameters.go index 49e4398..875df47 100644 --- a/api/members/members_client/operations/create_favorite_parameters.go +++ b/api/members/members_client/favorites/create_favorite_parameters.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package favorites // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/operations/create_favorite_responses.go b/api/members/members_client/favorites/create_favorite_responses.go similarity index 99% rename from api/members/members_client/operations/create_favorite_responses.go rename to api/members/members_client/favorites/create_favorite_responses.go index 1c5ea89..2e780ac 100644 --- a/api/members/members_client/operations/create_favorite_responses.go +++ b/api/members/members_client/favorites/create_favorite_responses.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package favorites // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/operations/delete_favorite_parameters.go b/api/members/members_client/favorites/delete_favorite_parameters.go similarity index 99% rename from api/members/members_client/operations/delete_favorite_parameters.go rename to api/members/members_client/favorites/delete_favorite_parameters.go index c5d271d..de660bf 100644 --- a/api/members/members_client/operations/delete_favorite_parameters.go +++ b/api/members/members_client/favorites/delete_favorite_parameters.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package favorites // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/operations/delete_favorite_responses.go b/api/members/members_client/favorites/delete_favorite_responses.go similarity index 99% rename from api/members/members_client/operations/delete_favorite_responses.go rename to api/members/members_client/favorites/delete_favorite_responses.go index f757eaf..20e2393 100644 --- a/api/members/members_client/operations/delete_favorite_responses.go +++ b/api/members/members_client/favorites/delete_favorite_responses.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package favorites // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/favorites/favorites_client.go b/api/members/members_client/favorites/favorites_client.go new file mode 100644 index 0000000..6518510 --- /dev/null +++ b/api/members/members_client/favorites/favorites_client.go @@ -0,0 +1,203 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package favorites + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" +) + +// New creates a new favorites API client. +func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService { + return &Client{transport: transport, formats: formats} +} + +/* +Client for favorites API +*/ +type Client struct { + transport runtime.ClientTransport + 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 { + CreateFavorite(params *CreateFavoriteParams, opts ...ClientOption) (*CreateFavoriteCreated, error) + + DeleteFavorite(params *DeleteFavoriteParams, opts ...ClientOption) (*DeleteFavoriteNoContent, error) + + GetFavorites(params *GetFavoritesParams, opts ...ClientOption) (*GetFavoritesOK, error) + + UpdateFavorite(params *UpdateFavoriteParams, opts ...ClientOption) (*UpdateFavoriteOK, error) + + SetTransport(transport runtime.ClientTransport) +} + +/* +CreateFavorite creates a new favorite +*/ +func (a *Client) CreateFavorite(params *CreateFavoriteParams, opts ...ClientOption) (*CreateFavoriteCreated, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewCreateFavoriteParams() + } + op := &runtime.ClientOperation{ + ID: "createFavorite", + Method: "POST", + PathPattern: "/favorites", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &CreateFavoriteReader{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 + } + success, ok := result.(*CreateFavoriteCreated) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for createFavorite: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +DeleteFavorite deletes a favorite +*/ +func (a *Client) DeleteFavorite(params *DeleteFavoriteParams, opts ...ClientOption) (*DeleteFavoriteNoContent, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewDeleteFavoriteParams() + } + op := &runtime.ClientOperation{ + ID: "deleteFavorite", + Method: "DELETE", + PathPattern: "/favorites", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &DeleteFavoriteReader{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 + } + success, ok := result.(*DeleteFavoriteNoContent) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for deleteFavorite: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +GetFavorites gets a list of favorites +*/ +func (a *Client) GetFavorites(params *GetFavoritesParams, opts ...ClientOption) (*GetFavoritesOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewGetFavoritesParams() + } + op := &runtime.ClientOperation{ + ID: "getFavorites", + Method: "GET", + PathPattern: "/favorites", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &GetFavoritesReader{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 + } + success, ok := result.(*GetFavoritesOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for getFavorites: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +UpdateFavorite updates an existing favorite +*/ +func (a *Client) UpdateFavorite(params *UpdateFavoriteParams, opts ...ClientOption) (*UpdateFavoriteOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewUpdateFavoriteParams() + } + op := &runtime.ClientOperation{ + ID: "updateFavorite", + Method: "PUT", + PathPattern: "/favorites", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &UpdateFavoriteReader{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 + } + success, ok := result.(*UpdateFavoriteOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for updateFavorite: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +// SetTransport changes the transport on the client +func (a *Client) SetTransport(transport runtime.ClientTransport) { + a.transport = transport +} diff --git a/api/members/members_client/operations/get_favorites_parameters.go b/api/members/members_client/favorites/get_favorites_parameters.go similarity index 99% rename from api/members/members_client/operations/get_favorites_parameters.go rename to api/members/members_client/favorites/get_favorites_parameters.go index e332cbc..6d9a77a 100644 --- a/api/members/members_client/operations/get_favorites_parameters.go +++ b/api/members/members_client/favorites/get_favorites_parameters.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package favorites // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/operations/get_favorites_responses.go b/api/members/members_client/favorites/get_favorites_responses.go similarity index 99% rename from api/members/members_client/operations/get_favorites_responses.go rename to api/members/members_client/favorites/get_favorites_responses.go index 36ab5c7..97890ce 100644 --- a/api/members/members_client/operations/get_favorites_responses.go +++ b/api/members/members_client/favorites/get_favorites_responses.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package favorites // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/operations/update_favorite_parameters.go b/api/members/members_client/favorites/update_favorite_parameters.go similarity index 99% rename from api/members/members_client/operations/update_favorite_parameters.go rename to api/members/members_client/favorites/update_favorite_parameters.go index 7eea62d..d5e065b 100644 --- a/api/members/members_client/operations/update_favorite_parameters.go +++ b/api/members/members_client/favorites/update_favorite_parameters.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package favorites // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/operations/update_favorite_responses.go b/api/members/members_client/favorites/update_favorite_responses.go similarity index 99% rename from api/members/members_client/operations/update_favorite_responses.go rename to api/members/members_client/favorites/update_favorite_responses.go index 6f70b35..35c07d0 100644 --- a/api/members/members_client/operations/update_favorite_responses.go +++ b/api/members/members_client/favorites/update_favorite_responses.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package favorites // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/operations/create_invoice_parameters.go b/api/members/members_client/invoices/create_invoice_parameters.go similarity index 99% rename from api/members/members_client/operations/create_invoice_parameters.go rename to api/members/members_client/invoices/create_invoice_parameters.go index 237424f..14bde8c 100644 --- a/api/members/members_client/operations/create_invoice_parameters.go +++ b/api/members/members_client/invoices/create_invoice_parameters.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package invoices // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/operations/create_invoice_responses.go b/api/members/members_client/invoices/create_invoice_responses.go similarity index 99% rename from api/members/members_client/operations/create_invoice_responses.go rename to api/members/members_client/invoices/create_invoice_responses.go index 7433f79..b7de261 100644 --- a/api/members/members_client/operations/create_invoice_responses.go +++ b/api/members/members_client/invoices/create_invoice_responses.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package invoices // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/operations/delete_invoice_parameters.go b/api/members/members_client/invoices/delete_invoice_parameters.go similarity index 99% rename from api/members/members_client/operations/delete_invoice_parameters.go rename to api/members/members_client/invoices/delete_invoice_parameters.go index 82248c5..4b1da34 100644 --- a/api/members/members_client/operations/delete_invoice_parameters.go +++ b/api/members/members_client/invoices/delete_invoice_parameters.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package invoices // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/operations/delete_invoice_responses.go b/api/members/members_client/invoices/delete_invoice_responses.go similarity index 99% rename from api/members/members_client/operations/delete_invoice_responses.go rename to api/members/members_client/invoices/delete_invoice_responses.go index fff13fc..f62c587 100644 --- a/api/members/members_client/operations/delete_invoice_responses.go +++ b/api/members/members_client/invoices/delete_invoice_responses.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package invoices // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/operations/get_invoices_parameters.go b/api/members/members_client/invoices/get_invoices_parameters.go similarity index 99% rename from api/members/members_client/operations/get_invoices_parameters.go rename to api/members/members_client/invoices/get_invoices_parameters.go index 1beeb3b..fab6cfd 100644 --- a/api/members/members_client/operations/get_invoices_parameters.go +++ b/api/members/members_client/invoices/get_invoices_parameters.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package invoices // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/operations/get_invoices_responses.go b/api/members/members_client/invoices/get_invoices_responses.go similarity index 99% rename from api/members/members_client/operations/get_invoices_responses.go rename to api/members/members_client/invoices/get_invoices_responses.go index c5fe76f..2ed8273 100644 --- a/api/members/members_client/operations/get_invoices_responses.go +++ b/api/members/members_client/invoices/get_invoices_responses.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package invoices // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/devops/devops_client/template/template_client.go b/api/members/members_client/invoices/invoices_client.go similarity index 55% rename from api/devops/devops_client/template/template_client.go rename to api/members/members_client/invoices/invoices_client.go index 46eda40..c299f26 100644 --- a/api/devops/devops_client/template/template_client.go +++ b/api/members/members_client/invoices/invoices_client.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package template +package invoices // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command @@ -16,13 +16,13 @@ import ( "github.com/go-openapi/strfmt" ) -// New creates a new template API client. +// New creates a new invoices API client. func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService { return &Client{transport: transport, formats: formats} } /* -Client for template API +Client for invoices API */ type Client struct { transport runtime.ClientTransport @@ -34,160 +34,34 @@ type ClientOption func(*runtime.ClientOperation) // ClientService is the interface for Client methods type ClientService interface { - GetTemplate(params *GetTemplateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetTemplateOK, error) + CreateInvoice(params *CreateInvoiceParams, opts ...ClientOption) (*CreateInvoiceCreated, error) - GetTemplates(params *GetTemplatesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetTemplatesOK, error) + DeleteInvoice(params *DeleteInvoiceParams, opts ...ClientOption) (*DeleteInvoiceNoContent, error) - GetTemplatesObservable(params *GetTemplatesObservableParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetTemplatesObservableOK, error) + GetInvoices(params *GetInvoicesParams, opts ...ClientOption) (*GetInvoicesOK, error) - PostTemplates(params *PostTemplatesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostTemplatesOK, error) + UpdateInvoice(params *UpdateInvoiceParams, opts ...ClientOption) (*UpdateInvoiceOK, error) SetTransport(transport runtime.ClientTransport) } /* -GetTemplate gets a single template object - -Return a single Template object from datastore as a Singleton +CreateInvoice creates a new invoice */ -func (a *Client) GetTemplate(params *GetTemplateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetTemplateOK, error) { +func (a *Client) CreateInvoice(params *CreateInvoiceParams, opts ...ClientOption) (*CreateInvoiceCreated, error) { // TODO: Validate the params before sending if params == nil { - params = NewGetTemplateParams() + params = NewCreateInvoiceParams() } op := &runtime.ClientOperation{ - ID: "getTemplate", - Method: "GET", - PathPattern: "/templates/{templateIdPath}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &GetTemplateReader{formats: a.formats}, - AuthInfo: authInfo, - Context: params.Context, - Client: params.HTTPClient, - } - for _, opt := range opts { - opt(op) - } - - result, err := a.transport.Submit(op) - if err != nil { - return nil, err - } - success, ok := result.(*GetTemplateOK) - if ok { - return success, nil - } - // unexpected success response - // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for getTemplate: API contract not enforced by server. Client expected to get an error, but got: %T", result) - panic(msg) -} - -/* -GetTemplates gets a list templates - -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 - if params == nil { - params = NewGetTemplatesParams() - } - op := &runtime.ClientOperation{ - ID: "getTemplates", - Method: "GET", - PathPattern: "/templates", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &GetTemplatesReader{formats: a.formats}, - AuthInfo: authInfo, - Context: params.Context, - Client: params.HTTPClient, - } - for _, opt := range opts { - opt(op) - } - - result, err := a.transport.Submit(op) - if err != nil { - return nil, err - } - success, ok := result.(*GetTemplatesOK) - if ok { - return success, nil - } - // unexpected success response - // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for getTemplates: API contract not enforced by server. Client expected to get an error, but got: %T", result) - panic(msg) -} - -/* -GetTemplatesObservable gets templates in an 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 - if params == nil { - params = NewGetTemplatesObservableParams() - } - op := &runtime.ClientOperation{ - ID: "getTemplatesObservable", - Method: "GET", - PathPattern: "/templates/observable", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &GetTemplatesObservableReader{formats: a.formats}, - AuthInfo: authInfo, - Context: params.Context, - Client: params.HTTPClient, - } - for _, opt := range opts { - opt(op) - } - - result, err := a.transport.Submit(op) - if err != nil { - return nil, err - } - success, ok := result.(*GetTemplatesObservableOK) - if ok { - return success, nil - } - // unexpected success response - // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for getTemplatesObservable: API contract not enforced by server. Client expected to get an error, but got: %T", result) - panic(msg) -} - -/* -PostTemplates creates new templates - -Create new Templates -*/ -func (a *Client) PostTemplates(params *PostTemplatesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostTemplatesOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewPostTemplatesParams() - } - op := &runtime.ClientOperation{ - ID: "postTemplates", + ID: "createInvoice", Method: "POST", - PathPattern: "/templates", + PathPattern: "/invoices", ProducesMediaTypes: []string{"application/json"}, ConsumesMediaTypes: []string{"application/json"}, Schemes: []string{"http"}, Params: params, - Reader: &PostTemplatesReader{formats: a.formats}, - AuthInfo: authInfo, + Reader: &CreateInvoiceReader{formats: a.formats}, Context: params.Context, Client: params.HTTPClient, } @@ -199,13 +73,127 @@ func (a *Client) PostTemplates(params *PostTemplatesParams, authInfo runtime.Cli if err != nil { return nil, err } - success, ok := result.(*PostTemplatesOK) + success, ok := result.(*CreateInvoiceCreated) if ok { return success, nil } // unexpected success response // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for postTemplates: API contract not enforced by server. Client expected to get an error, but got: %T", result) + msg := fmt.Sprintf("unexpected success response for createInvoice: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +DeleteInvoice deletes a invoice +*/ +func (a *Client) DeleteInvoice(params *DeleteInvoiceParams, opts ...ClientOption) (*DeleteInvoiceNoContent, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewDeleteInvoiceParams() + } + op := &runtime.ClientOperation{ + ID: "deleteInvoice", + Method: "DELETE", + PathPattern: "/invoices", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &DeleteInvoiceReader{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 + } + success, ok := result.(*DeleteInvoiceNoContent) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for deleteInvoice: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +GetInvoices gets a list of invoices +*/ +func (a *Client) GetInvoices(params *GetInvoicesParams, opts ...ClientOption) (*GetInvoicesOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewGetInvoicesParams() + } + op := &runtime.ClientOperation{ + ID: "getInvoices", + Method: "GET", + PathPattern: "/invoices", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &GetInvoicesReader{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 + } + success, ok := result.(*GetInvoicesOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for getInvoices: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +UpdateInvoice updates an existing invoice +*/ +func (a *Client) UpdateInvoice(params *UpdateInvoiceParams, opts ...ClientOption) (*UpdateInvoiceOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewUpdateInvoiceParams() + } + op := &runtime.ClientOperation{ + ID: "updateInvoice", + Method: "PUT", + PathPattern: "/invoices", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &UpdateInvoiceReader{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 + } + success, ok := result.(*UpdateInvoiceOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for updateInvoice: API contract not enforced by server. Client expected to get an error, but got: %T", result) panic(msg) } diff --git a/api/members/members_client/operations/update_invoice_parameters.go b/api/members/members_client/invoices/update_invoice_parameters.go similarity index 99% rename from api/members/members_client/operations/update_invoice_parameters.go rename to api/members/members_client/invoices/update_invoice_parameters.go index df32f1d..967d08d 100644 --- a/api/members/members_client/operations/update_invoice_parameters.go +++ b/api/members/members_client/invoices/update_invoice_parameters.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package invoices // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/operations/update_invoice_responses.go b/api/members/members_client/invoices/update_invoice_responses.go similarity index 99% rename from api/members/members_client/operations/update_invoice_responses.go rename to api/members/members_client/invoices/update_invoice_responses.go index d1e2c84..08f57dc 100644 --- a/api/members/members_client/operations/update_invoice_responses.go +++ b/api/members/members_client/invoices/update_invoice_responses.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package invoices // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/operations/create_issued_certificate_parameters.go b/api/members/members_client/issued_certificates/create_issued_certificate_parameters.go similarity index 99% rename from api/members/members_client/operations/create_issued_certificate_parameters.go rename to api/members/members_client/issued_certificates/create_issued_certificate_parameters.go index b9e477a..d242114 100644 --- a/api/members/members_client/operations/create_issued_certificate_parameters.go +++ b/api/members/members_client/issued_certificates/create_issued_certificate_parameters.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package issued_certificates // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/operations/create_issued_certificate_responses.go b/api/members/members_client/issued_certificates/create_issued_certificate_responses.go similarity index 99% rename from api/members/members_client/operations/create_issued_certificate_responses.go rename to api/members/members_client/issued_certificates/create_issued_certificate_responses.go index 0ba12b2..71747c8 100644 --- a/api/members/members_client/operations/create_issued_certificate_responses.go +++ b/api/members/members_client/issued_certificates/create_issued_certificate_responses.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package issued_certificates // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/operations/delete_issued_certificate_parameters.go b/api/members/members_client/issued_certificates/delete_issued_certificate_parameters.go similarity index 99% rename from api/members/members_client/operations/delete_issued_certificate_parameters.go rename to api/members/members_client/issued_certificates/delete_issued_certificate_parameters.go index 35b9acf..b9ce08b 100644 --- a/api/members/members_client/operations/delete_issued_certificate_parameters.go +++ b/api/members/members_client/issued_certificates/delete_issued_certificate_parameters.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package issued_certificates // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/operations/delete_issued_certificate_responses.go b/api/members/members_client/issued_certificates/delete_issued_certificate_responses.go similarity index 99% rename from api/members/members_client/operations/delete_issued_certificate_responses.go rename to api/members/members_client/issued_certificates/delete_issued_certificate_responses.go index 50379b8..af7e9c8 100644 --- a/api/members/members_client/operations/delete_issued_certificate_responses.go +++ b/api/members/members_client/issued_certificates/delete_issued_certificate_responses.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package issued_certificates // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/issued_certificates/get_issued_certificates_parameters.go b/api/members/members_client/issued_certificates/get_issued_certificates_parameters.go new file mode 100644 index 0000000..5049d91 --- /dev/null +++ b/api/members/members_client/issued_certificates/get_issued_certificates_parameters.go @@ -0,0 +1,240 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package issued_certificates + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// NewGetIssuedCertificatesParams creates a new GetIssuedCertificatesParams 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 NewGetIssuedCertificatesParams() *GetIssuedCertificatesParams { + return &GetIssuedCertificatesParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewGetIssuedCertificatesParamsWithTimeout creates a new GetIssuedCertificatesParams object +// with the ability to set a timeout on a request. +func NewGetIssuedCertificatesParamsWithTimeout(timeout time.Duration) *GetIssuedCertificatesParams { + return &GetIssuedCertificatesParams{ + timeout: timeout, + } +} + +// NewGetIssuedCertificatesParamsWithContext creates a new GetIssuedCertificatesParams object +// with the ability to set a context for a request. +func NewGetIssuedCertificatesParamsWithContext(ctx context.Context) *GetIssuedCertificatesParams { + return &GetIssuedCertificatesParams{ + Context: ctx, + } +} + +// NewGetIssuedCertificatesParamsWithHTTPClient creates a new GetIssuedCertificatesParams object +// with the ability to set a custom HTTPClient for a request. +func NewGetIssuedCertificatesParamsWithHTTPClient(client *http.Client) *GetIssuedCertificatesParams { + return &GetIssuedCertificatesParams{ + HTTPClient: client, + } +} + +/* +GetIssuedCertificatesParams contains all the parameters to send to the API endpoint + + for the get issued certificates operation. + + Typically these are written to a http.Request. +*/ +type GetIssuedCertificatesParams struct { + + /* ID. + + Unique Record ID + */ + ID *string + + /* Limit. + + How many objects to return at one time + + Format: int64 + */ + Limit *int64 + + /* Offset. + + How many objects to skip? + + Format: int64 + */ + Offset *int64 + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the get issued certificates params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *GetIssuedCertificatesParams) WithDefaults() *GetIssuedCertificatesParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the get issued certificates params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *GetIssuedCertificatesParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the get issued certificates params +func (o *GetIssuedCertificatesParams) WithTimeout(timeout time.Duration) *GetIssuedCertificatesParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the get issued certificates params +func (o *GetIssuedCertificatesParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the get issued certificates params +func (o *GetIssuedCertificatesParams) WithContext(ctx context.Context) *GetIssuedCertificatesParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the get issued certificates params +func (o *GetIssuedCertificatesParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the get issued certificates params +func (o *GetIssuedCertificatesParams) WithHTTPClient(client *http.Client) *GetIssuedCertificatesParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the get issued certificates params +func (o *GetIssuedCertificatesParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithID adds the id to the get issued certificates params +func (o *GetIssuedCertificatesParams) WithID(id *string) *GetIssuedCertificatesParams { + o.SetID(id) + return o +} + +// SetID adds the id to the get issued certificates params +func (o *GetIssuedCertificatesParams) SetID(id *string) { + o.ID = id +} + +// WithLimit adds the limit to the get issued certificates params +func (o *GetIssuedCertificatesParams) WithLimit(limit *int64) *GetIssuedCertificatesParams { + o.SetLimit(limit) + return o +} + +// SetLimit adds the limit to the get issued certificates params +func (o *GetIssuedCertificatesParams) SetLimit(limit *int64) { + o.Limit = limit +} + +// WithOffset adds the offset to the get issued certificates params +func (o *GetIssuedCertificatesParams) WithOffset(offset *int64) *GetIssuedCertificatesParams { + o.SetOffset(offset) + return o +} + +// SetOffset adds the offset to the get issued certificates params +func (o *GetIssuedCertificatesParams) SetOffset(offset *int64) { + o.Offset = offset +} + +// WriteToRequest writes these params to a swagger request +func (o *GetIssuedCertificatesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + + if o.ID != nil { + + // query param id + var qrID string + + if o.ID != nil { + qrID = *o.ID + } + qID := qrID + if qID != "" { + + if err := r.SetQueryParam("id", qID); err != nil { + return err + } + } + } + + if o.Limit != nil { + + // query param limit + var qrLimit int64 + + if o.Limit != nil { + qrLimit = *o.Limit + } + qLimit := swag.FormatInt64(qrLimit) + if qLimit != "" { + + if err := r.SetQueryParam("limit", qLimit); err != nil { + return err + } + } + } + + if o.Offset != nil { + + // query param offset + var qrOffset int64 + + if o.Offset != nil { + qrOffset = *o.Offset + } + qOffset := swag.FormatInt64(qrOffset) + if qOffset != "" { + + if err := r.SetQueryParam("offset", qOffset); err != nil { + return err + } + } + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/api/members/members_client/issued_certificates/get_issued_certificates_responses.go b/api/members/members_client/issued_certificates/get_issued_certificates_responses.go new file mode 100644 index 0000000..9a741f9 --- /dev/null +++ b/api/members/members_client/issued_certificates/get_issued_certificates_responses.go @@ -0,0 +1,92 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package issued_certificates + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" +) + +// GetIssuedCertificatesReader is a Reader for the GetIssuedCertificates structure. +type GetIssuedCertificatesReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *GetIssuedCertificatesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 200: + result := NewGetIssuedCertificatesOK() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewGetIssuedCertificatesOK creates a GetIssuedCertificatesOK with default headers values +func NewGetIssuedCertificatesOK() *GetIssuedCertificatesOK { + return &GetIssuedCertificatesOK{} +} + +/* +GetIssuedCertificatesOK describes a response with status code 200, with default header values. + +OK +*/ +type GetIssuedCertificatesOK struct { +} + +// IsSuccess returns true when this get issued certificates o k response has a 2xx status code +func (o *GetIssuedCertificatesOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get issued certificates o k response has a 3xx status code +func (o *GetIssuedCertificatesOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get issued certificates o k response has a 4xx status code +func (o *GetIssuedCertificatesOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get issued certificates o k response has a 5xx status code +func (o *GetIssuedCertificatesOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get issued certificates o k response a status code equal to that given +func (o *GetIssuedCertificatesOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get issued certificates o k response +func (o *GetIssuedCertificatesOK) Code() int { + return 200 +} + +func (o *GetIssuedCertificatesOK) Error() string { + return fmt.Sprintf("[GET /issuedcertificates][%d] getIssuedCertificatesOK ", 200) +} + +func (o *GetIssuedCertificatesOK) String() string { + return fmt.Sprintf("[GET /issuedcertificates][%d] getIssuedCertificatesOK ", 200) +} + +func (o *GetIssuedCertificatesOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + return nil +} diff --git a/api/members/members_client/issued_certificates/issued_certificates_client.go b/api/members/members_client/issued_certificates/issued_certificates_client.go new file mode 100644 index 0000000..edfa11b --- /dev/null +++ b/api/members/members_client/issued_certificates/issued_certificates_client.go @@ -0,0 +1,203 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package issued_certificates + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" +) + +// New creates a new issued certificates API client. +func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService { + return &Client{transport: transport, formats: formats} +} + +/* +Client for issued certificates API +*/ +type Client struct { + transport runtime.ClientTransport + 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 { + CreateIssuedCertificate(params *CreateIssuedCertificateParams, opts ...ClientOption) (*CreateIssuedCertificateCreated, error) + + DeleteIssuedCertificate(params *DeleteIssuedCertificateParams, opts ...ClientOption) (*DeleteIssuedCertificateNoContent, error) + + GetIssuedCertificates(params *GetIssuedCertificatesParams, opts ...ClientOption) (*GetIssuedCertificatesOK, error) + + UpdateIssuedCertificate(params *UpdateIssuedCertificateParams, opts ...ClientOption) (*UpdateIssuedCertificateOK, error) + + SetTransport(transport runtime.ClientTransport) +} + +/* +CreateIssuedCertificate creates a new issued certificate +*/ +func (a *Client) CreateIssuedCertificate(params *CreateIssuedCertificateParams, opts ...ClientOption) (*CreateIssuedCertificateCreated, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewCreateIssuedCertificateParams() + } + op := &runtime.ClientOperation{ + ID: "createIssuedCertificate", + Method: "POST", + PathPattern: "/issuedcertificates", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &CreateIssuedCertificateReader{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 + } + success, ok := result.(*CreateIssuedCertificateCreated) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for createIssuedCertificate: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +DeleteIssuedCertificate deletes a issued certificate +*/ +func (a *Client) DeleteIssuedCertificate(params *DeleteIssuedCertificateParams, opts ...ClientOption) (*DeleteIssuedCertificateNoContent, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewDeleteIssuedCertificateParams() + } + op := &runtime.ClientOperation{ + ID: "deleteIssuedCertificate", + Method: "DELETE", + PathPattern: "/issuedcertificates", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &DeleteIssuedCertificateReader{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 + } + success, ok := result.(*DeleteIssuedCertificateNoContent) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for deleteIssuedCertificate: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +GetIssuedCertificates gets a list of issued certificates +*/ +func (a *Client) GetIssuedCertificates(params *GetIssuedCertificatesParams, opts ...ClientOption) (*GetIssuedCertificatesOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewGetIssuedCertificatesParams() + } + op := &runtime.ClientOperation{ + ID: "getIssuedCertificates", + Method: "GET", + PathPattern: "/issuedcertificates", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &GetIssuedCertificatesReader{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 + } + success, ok := result.(*GetIssuedCertificatesOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for getIssuedCertificates: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +UpdateIssuedCertificate updates an existing issued certificate +*/ +func (a *Client) UpdateIssuedCertificate(params *UpdateIssuedCertificateParams, opts ...ClientOption) (*UpdateIssuedCertificateOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewUpdateIssuedCertificateParams() + } + op := &runtime.ClientOperation{ + ID: "updateIssuedCertificate", + Method: "PUT", + PathPattern: "/issuedcertificates", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &UpdateIssuedCertificateReader{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 + } + success, ok := result.(*UpdateIssuedCertificateOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for updateIssuedCertificate: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +// SetTransport changes the transport on the client +func (a *Client) SetTransport(transport runtime.ClientTransport) { + a.transport = transport +} diff --git a/api/members/members_client/operations/update_issued_certificate_parameters.go b/api/members/members_client/issued_certificates/update_issued_certificate_parameters.go similarity index 99% rename from api/members/members_client/operations/update_issued_certificate_parameters.go rename to api/members/members_client/issued_certificates/update_issued_certificate_parameters.go index dfdccef..3af7b97 100644 --- a/api/members/members_client/operations/update_issued_certificate_parameters.go +++ b/api/members/members_client/issued_certificates/update_issued_certificate_parameters.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package issued_certificates // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/operations/update_issued_certificate_responses.go b/api/members/members_client/issued_certificates/update_issued_certificate_responses.go similarity index 99% rename from api/members/members_client/operations/update_issued_certificate_responses.go rename to api/members/members_client/issued_certificates/update_issued_certificate_responses.go index 34c565b..24859b8 100644 --- a/api/members/members_client/operations/update_issued_certificate_responses.go +++ b/api/members/members_client/issued_certificates/update_issued_certificate_responses.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package issued_certificates // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/operations/create_lesson_progress_parameters.go b/api/members/members_client/lesson_progress/create_lesson_progress_parameters.go similarity index 99% rename from api/members/members_client/operations/create_lesson_progress_parameters.go rename to api/members/members_client/lesson_progress/create_lesson_progress_parameters.go index dff6072..2d1a55d 100644 --- a/api/members/members_client/operations/create_lesson_progress_parameters.go +++ b/api/members/members_client/lesson_progress/create_lesson_progress_parameters.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package lesson_progress // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/operations/create_lesson_progress_responses.go b/api/members/members_client/lesson_progress/create_lesson_progress_responses.go similarity index 99% rename from api/members/members_client/operations/create_lesson_progress_responses.go rename to api/members/members_client/lesson_progress/create_lesson_progress_responses.go index 964cd65..170d29d 100644 --- a/api/members/members_client/operations/create_lesson_progress_responses.go +++ b/api/members/members_client/lesson_progress/create_lesson_progress_responses.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package lesson_progress // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/operations/delete_lesson_progress_parameters.go b/api/members/members_client/lesson_progress/delete_lesson_progress_parameters.go similarity index 99% rename from api/members/members_client/operations/delete_lesson_progress_parameters.go rename to api/members/members_client/lesson_progress/delete_lesson_progress_parameters.go index e3042e5..7e221fe 100644 --- a/api/members/members_client/operations/delete_lesson_progress_parameters.go +++ b/api/members/members_client/lesson_progress/delete_lesson_progress_parameters.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package lesson_progress // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/operations/delete_lesson_progress_responses.go b/api/members/members_client/lesson_progress/delete_lesson_progress_responses.go similarity index 99% rename from api/members/members_client/operations/delete_lesson_progress_responses.go rename to api/members/members_client/lesson_progress/delete_lesson_progress_responses.go index 1450b51..1771e30 100644 --- a/api/members/members_client/operations/delete_lesson_progress_responses.go +++ b/api/members/members_client/lesson_progress/delete_lesson_progress_responses.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package lesson_progress // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/operations/get_lesson_progress_parameters.go b/api/members/members_client/lesson_progress/get_lesson_progress_parameters.go similarity index 99% rename from api/members/members_client/operations/get_lesson_progress_parameters.go rename to api/members/members_client/lesson_progress/get_lesson_progress_parameters.go index a02805d..a393f5c 100644 --- a/api/members/members_client/operations/get_lesson_progress_parameters.go +++ b/api/members/members_client/lesson_progress/get_lesson_progress_parameters.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package lesson_progress // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/operations/get_lesson_progress_responses.go b/api/members/members_client/lesson_progress/get_lesson_progress_responses.go similarity index 99% rename from api/members/members_client/operations/get_lesson_progress_responses.go rename to api/members/members_client/lesson_progress/get_lesson_progress_responses.go index a4ba03c..6f68bf2 100644 --- a/api/members/members_client/operations/get_lesson_progress_responses.go +++ b/api/members/members_client/lesson_progress/get_lesson_progress_responses.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package lesson_progress // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/lesson_progress/lesson_progress_client.go b/api/members/members_client/lesson_progress/lesson_progress_client.go new file mode 100644 index 0000000..1774e2c --- /dev/null +++ b/api/members/members_client/lesson_progress/lesson_progress_client.go @@ -0,0 +1,203 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package lesson_progress + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" +) + +// New creates a new lesson progress API client. +func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService { + return &Client{transport: transport, formats: formats} +} + +/* +Client for lesson progress API +*/ +type Client struct { + transport runtime.ClientTransport + 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 { + CreateLessonProgress(params *CreateLessonProgressParams, opts ...ClientOption) (*CreateLessonProgressCreated, error) + + DeleteLessonProgress(params *DeleteLessonProgressParams, opts ...ClientOption) (*DeleteLessonProgressNoContent, error) + + GetLessonProgress(params *GetLessonProgressParams, opts ...ClientOption) (*GetLessonProgressOK, error) + + UpdateLessonProgress(params *UpdateLessonProgressParams, opts ...ClientOption) (*UpdateLessonProgressOK, error) + + SetTransport(transport runtime.ClientTransport) +} + +/* +CreateLessonProgress creates a new lesson progress +*/ +func (a *Client) CreateLessonProgress(params *CreateLessonProgressParams, opts ...ClientOption) (*CreateLessonProgressCreated, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewCreateLessonProgressParams() + } + op := &runtime.ClientOperation{ + ID: "createLessonProgress", + Method: "POST", + PathPattern: "/lessonprogress", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &CreateLessonProgressReader{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 + } + success, ok := result.(*CreateLessonProgressCreated) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for createLessonProgress: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +DeleteLessonProgress deletes a lesson progress +*/ +func (a *Client) DeleteLessonProgress(params *DeleteLessonProgressParams, opts ...ClientOption) (*DeleteLessonProgressNoContent, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewDeleteLessonProgressParams() + } + op := &runtime.ClientOperation{ + ID: "deleteLessonProgress", + Method: "DELETE", + PathPattern: "/lessonprogress", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &DeleteLessonProgressReader{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 + } + success, ok := result.(*DeleteLessonProgressNoContent) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for deleteLessonProgress: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +GetLessonProgress gets a list of lesson progress +*/ +func (a *Client) GetLessonProgress(params *GetLessonProgressParams, opts ...ClientOption) (*GetLessonProgressOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewGetLessonProgressParams() + } + op := &runtime.ClientOperation{ + ID: "getLessonProgress", + Method: "GET", + PathPattern: "/lessonprogress", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &GetLessonProgressReader{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 + } + success, ok := result.(*GetLessonProgressOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for getLessonProgress: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +UpdateLessonProgress updates an existing lesson progress +*/ +func (a *Client) UpdateLessonProgress(params *UpdateLessonProgressParams, opts ...ClientOption) (*UpdateLessonProgressOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewUpdateLessonProgressParams() + } + op := &runtime.ClientOperation{ + ID: "updateLessonProgress", + Method: "PUT", + PathPattern: "/lessonprogress", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &UpdateLessonProgressReader{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 + } + success, ok := result.(*UpdateLessonProgressOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for updateLessonProgress: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +// SetTransport changes the transport on the client +func (a *Client) SetTransport(transport runtime.ClientTransport) { + a.transport = transport +} diff --git a/api/members/members_client/operations/update_lesson_progress_parameters.go b/api/members/members_client/lesson_progress/update_lesson_progress_parameters.go similarity index 99% rename from api/members/members_client/operations/update_lesson_progress_parameters.go rename to api/members/members_client/lesson_progress/update_lesson_progress_parameters.go index 1eb7b2b..b1f39be 100644 --- a/api/members/members_client/operations/update_lesson_progress_parameters.go +++ b/api/members/members_client/lesson_progress/update_lesson_progress_parameters.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package lesson_progress // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/operations/update_lesson_progress_responses.go b/api/members/members_client/lesson_progress/update_lesson_progress_responses.go similarity index 99% rename from api/members/members_client/operations/update_lesson_progress_responses.go rename to api/members/members_client/lesson_progress/update_lesson_progress_responses.go index 816df80..1602be8 100644 --- a/api/members/members_client/operations/update_lesson_progress_responses.go +++ b/api/members/members_client/lesson_progress/update_lesson_progress_responses.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package lesson_progress // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/members_client.go b/api/members/members_client/members_client.go index baa3a62..5c6bc85 100644 --- a/api/members/members_client/members_client.go +++ b/api/members/members_client/members_client.go @@ -10,10 +10,35 @@ package members_client // Editing this file might prove futile when you re-run the swagger generate command import ( - "code.tnxs.net/vernonkeenan/lib/api/members/members_client/operations" "github.com/go-openapi/runtime" httptransport "github.com/go-openapi/runtime/client" "github.com/go-openapi/strfmt" + + "code.tnxs.net/vernonkeenan/lib/api/members/members_client/attendees" + "code.tnxs.net/vernonkeenan/lib/api/members/members_client/certificates" + "code.tnxs.net/vernonkeenan/lib/api/members/members_client/clusters" + "code.tnxs.net/vernonkeenan/lib/api/members/members_client/course_lessons" + "code.tnxs.net/vernonkeenan/lib/api/members/members_client/course_sections" + "code.tnxs.net/vernonkeenan/lib/api/members/members_client/courses" + "code.tnxs.net/vernonkeenan/lib/api/members/members_client/databases" + "code.tnxs.net/vernonkeenan/lib/api/members/members_client/enrollments" + "code.tnxs.net/vernonkeenan/lib/api/members/members_client/event_categories" + "code.tnxs.net/vernonkeenan/lib/api/members/members_client/event_category_assignments" + "code.tnxs.net/vernonkeenan/lib/api/members/members_client/events" + "code.tnxs.net/vernonkeenan/lib/api/members/members_client/favorites" + "code.tnxs.net/vernonkeenan/lib/api/members/members_client/invoices" + "code.tnxs.net/vernonkeenan/lib/api/members/members_client/issued_certificates" + "code.tnxs.net/vernonkeenan/lib/api/members/members_client/lesson_progress" + "code.tnxs.net/vernonkeenan/lib/api/members/members_client/orders" + "code.tnxs.net/vernonkeenan/lib/api/members/members_client/payment_methods" + "code.tnxs.net/vernonkeenan/lib/api/members/members_client/research_project_companies" + "code.tnxs.net/vernonkeenan/lib/api/members/members_client/research_project_topics" + "code.tnxs.net/vernonkeenan/lib/api/members/members_client/research_projects" + "code.tnxs.net/vernonkeenan/lib/api/members/members_client/templates" + "code.tnxs.net/vernonkeenan/lib/api/members/members_client/tenants" + "code.tnxs.net/vernonkeenan/lib/api/members/members_client/tickets" + "code.tnxs.net/vernonkeenan/lib/api/members/members_client/transactions" + "code.tnxs.net/vernonkeenan/lib/api/members/members_client/users" ) // Default members HTTP client. @@ -58,7 +83,31 @@ func New(transport runtime.ClientTransport, formats strfmt.Registry) *Members { cli := new(Members) cli.Transport = transport - cli.Operations = operations.New(transport, formats) + cli.Attendees = attendees.New(transport, formats) + cli.Certificates = certificates.New(transport, formats) + cli.Clusters = clusters.New(transport, formats) + cli.CourseLessons = course_lessons.New(transport, formats) + cli.CourseSections = course_sections.New(transport, formats) + cli.Courses = courses.New(transport, formats) + cli.Databases = databases.New(transport, formats) + cli.Enrollments = enrollments.New(transport, formats) + cli.EventCategories = event_categories.New(transport, formats) + cli.EventCategoryAssignments = event_category_assignments.New(transport, formats) + cli.Events = events.New(transport, formats) + cli.Favorites = favorites.New(transport, formats) + cli.Invoices = invoices.New(transport, formats) + cli.IssuedCertificates = issued_certificates.New(transport, formats) + cli.LessonProgress = lesson_progress.New(transport, formats) + cli.Orders = orders.New(transport, formats) + cli.PaymentMethods = payment_methods.New(transport, formats) + cli.ResearchProjectCompanies = research_project_companies.New(transport, formats) + cli.ResearchProjectTopics = research_project_topics.New(transport, formats) + cli.ResearchProjects = research_projects.New(transport, formats) + cli.Templates = templates.New(transport, formats) + cli.Tenants = tenants.New(transport, formats) + cli.Tickets = tickets.New(transport, formats) + cli.Transactions = transactions.New(transport, formats) + cli.Users = users.New(transport, formats) return cli } @@ -103,7 +152,55 @@ func (cfg *TransportConfig) WithSchemes(schemes []string) *TransportConfig { // Members is a client for members type Members struct { - Operations operations.ClientService + Attendees attendees.ClientService + + Certificates certificates.ClientService + + Clusters clusters.ClientService + + CourseLessons course_lessons.ClientService + + CourseSections course_sections.ClientService + + Courses courses.ClientService + + Databases databases.ClientService + + Enrollments enrollments.ClientService + + EventCategories event_categories.ClientService + + EventCategoryAssignments event_category_assignments.ClientService + + Events events.ClientService + + Favorites favorites.ClientService + + Invoices invoices.ClientService + + IssuedCertificates issued_certificates.ClientService + + LessonProgress lesson_progress.ClientService + + Orders orders.ClientService + + PaymentMethods payment_methods.ClientService + + ResearchProjectCompanies research_project_companies.ClientService + + ResearchProjectTopics research_project_topics.ClientService + + ResearchProjects research_projects.ClientService + + Templates templates.ClientService + + Tenants tenants.ClientService + + Tickets tickets.ClientService + + Transactions transactions.ClientService + + Users users.ClientService Transport runtime.ClientTransport } @@ -111,5 +208,29 @@ type Members struct { // SetTransport changes the transport on the client and all its subresources func (c *Members) SetTransport(transport runtime.ClientTransport) { c.Transport = transport - c.Operations.SetTransport(transport) + c.Attendees.SetTransport(transport) + c.Certificates.SetTransport(transport) + c.Clusters.SetTransport(transport) + c.CourseLessons.SetTransport(transport) + c.CourseSections.SetTransport(transport) + c.Courses.SetTransport(transport) + c.Databases.SetTransport(transport) + c.Enrollments.SetTransport(transport) + c.EventCategories.SetTransport(transport) + c.EventCategoryAssignments.SetTransport(transport) + c.Events.SetTransport(transport) + c.Favorites.SetTransport(transport) + c.Invoices.SetTransport(transport) + c.IssuedCertificates.SetTransport(transport) + c.LessonProgress.SetTransport(transport) + c.Orders.SetTransport(transport) + c.PaymentMethods.SetTransport(transport) + c.ResearchProjectCompanies.SetTransport(transport) + c.ResearchProjectTopics.SetTransport(transport) + c.ResearchProjects.SetTransport(transport) + c.Templates.SetTransport(transport) + c.Tenants.SetTransport(transport) + c.Tickets.SetTransport(transport) + c.Transactions.SetTransport(transport) + c.Users.SetTransport(transport) } diff --git a/api/members/members_client/operations/get_event_categoryassignments_parameters.go b/api/members/members_client/operations/get_event_categoryassignments_parameters.go deleted file mode 100644 index feefd2d..0000000 --- a/api/members/members_client/operations/get_event_categoryassignments_parameters.go +++ /dev/null @@ -1,240 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -// (c) 2012-2020 by Taxnexus, Inc. -// All rights reserved worldwide. -// Proprietary product; unlicensed use is not allowed - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// NewGetEventCategoryassignmentsParams creates a new GetEventCategoryassignmentsParams 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 NewGetEventCategoryassignmentsParams() *GetEventCategoryassignmentsParams { - return &GetEventCategoryassignmentsParams{ - timeout: cr.DefaultTimeout, - } -} - -// NewGetEventCategoryassignmentsParamsWithTimeout creates a new GetEventCategoryassignmentsParams object -// with the ability to set a timeout on a request. -func NewGetEventCategoryassignmentsParamsWithTimeout(timeout time.Duration) *GetEventCategoryassignmentsParams { - return &GetEventCategoryassignmentsParams{ - timeout: timeout, - } -} - -// NewGetEventCategoryassignmentsParamsWithContext creates a new GetEventCategoryassignmentsParams object -// with the ability to set a context for a request. -func NewGetEventCategoryassignmentsParamsWithContext(ctx context.Context) *GetEventCategoryassignmentsParams { - return &GetEventCategoryassignmentsParams{ - Context: ctx, - } -} - -// NewGetEventCategoryassignmentsParamsWithHTTPClient creates a new GetEventCategoryassignmentsParams object -// with the ability to set a custom HTTPClient for a request. -func NewGetEventCategoryassignmentsParamsWithHTTPClient(client *http.Client) *GetEventCategoryassignmentsParams { - return &GetEventCategoryassignmentsParams{ - HTTPClient: client, - } -} - -/* -GetEventCategoryassignmentsParams contains all the parameters to send to the API endpoint - - for the get event categoryassignments operation. - - Typically these are written to a http.Request. -*/ -type GetEventCategoryassignmentsParams struct { - - /* ID. - - Unique Record ID - */ - ID *string - - /* Limit. - - How many objects to return at one time - - Format: int64 - */ - Limit *int64 - - /* Offset. - - How many objects to skip? - - Format: int64 - */ - Offset *int64 - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithDefaults hydrates default values in the get event categoryassignments params (not the query body). -// -// All values with no default are reset to their zero value. -func (o *GetEventCategoryassignmentsParams) WithDefaults() *GetEventCategoryassignmentsParams { - o.SetDefaults() - return o -} - -// SetDefaults hydrates default values in the get event categoryassignments params (not the query body). -// -// All values with no default are reset to their zero value. -func (o *GetEventCategoryassignmentsParams) SetDefaults() { - // no default values defined for this parameter -} - -// WithTimeout adds the timeout to the get event categoryassignments params -func (o *GetEventCategoryassignmentsParams) WithTimeout(timeout time.Duration) *GetEventCategoryassignmentsParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the get event categoryassignments params -func (o *GetEventCategoryassignmentsParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the get event categoryassignments params -func (o *GetEventCategoryassignmentsParams) WithContext(ctx context.Context) *GetEventCategoryassignmentsParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the get event categoryassignments params -func (o *GetEventCategoryassignmentsParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the get event categoryassignments params -func (o *GetEventCategoryassignmentsParams) WithHTTPClient(client *http.Client) *GetEventCategoryassignmentsParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the get event categoryassignments params -func (o *GetEventCategoryassignmentsParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithID adds the id to the get event categoryassignments params -func (o *GetEventCategoryassignmentsParams) WithID(id *string) *GetEventCategoryassignmentsParams { - o.SetID(id) - return o -} - -// SetID adds the id to the get event categoryassignments params -func (o *GetEventCategoryassignmentsParams) SetID(id *string) { - o.ID = id -} - -// WithLimit adds the limit to the get event categoryassignments params -func (o *GetEventCategoryassignmentsParams) WithLimit(limit *int64) *GetEventCategoryassignmentsParams { - o.SetLimit(limit) - return o -} - -// SetLimit adds the limit to the get event categoryassignments params -func (o *GetEventCategoryassignmentsParams) SetLimit(limit *int64) { - o.Limit = limit -} - -// WithOffset adds the offset to the get event categoryassignments params -func (o *GetEventCategoryassignmentsParams) WithOffset(offset *int64) *GetEventCategoryassignmentsParams { - o.SetOffset(offset) - return o -} - -// SetOffset adds the offset to the get event categoryassignments params -func (o *GetEventCategoryassignmentsParams) SetOffset(offset *int64) { - o.Offset = offset -} - -// WriteToRequest writes these params to a swagger request -func (o *GetEventCategoryassignmentsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if o.ID != nil { - - // query param id - var qrID string - - if o.ID != nil { - qrID = *o.ID - } - qID := qrID - if qID != "" { - - if err := r.SetQueryParam("id", qID); err != nil { - return err - } - } - } - - if o.Limit != nil { - - // query param limit - var qrLimit int64 - - if o.Limit != nil { - qrLimit = *o.Limit - } - qLimit := swag.FormatInt64(qrLimit) - if qLimit != "" { - - if err := r.SetQueryParam("limit", qLimit); err != nil { - return err - } - } - } - - if o.Offset != nil { - - // query param offset - var qrOffset int64 - - if o.Offset != nil { - qrOffset = *o.Offset - } - qOffset := swag.FormatInt64(qrOffset) - if qOffset != "" { - - if err := r.SetQueryParam("offset", qOffset); err != nil { - return err - } - } - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/api/members/members_client/operations/get_event_categoryassignments_responses.go b/api/members/members_client/operations/get_event_categoryassignments_responses.go deleted file mode 100644 index f1f24e9..0000000 --- a/api/members/members_client/operations/get_event_categoryassignments_responses.go +++ /dev/null @@ -1,92 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -// (c) 2012-2020 by Taxnexus, Inc. -// All rights reserved worldwide. -// Proprietary product; unlicensed use is not allowed - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" -) - -// GetEventCategoryassignmentsReader is a Reader for the GetEventCategoryassignments structure. -type GetEventCategoryassignmentsReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *GetEventCategoryassignmentsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewGetEventCategoryassignmentsOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) - } -} - -// NewGetEventCategoryassignmentsOK creates a GetEventCategoryassignmentsOK with default headers values -func NewGetEventCategoryassignmentsOK() *GetEventCategoryassignmentsOK { - return &GetEventCategoryassignmentsOK{} -} - -/* -GetEventCategoryassignmentsOK describes a response with status code 200, with default header values. - -OK -*/ -type GetEventCategoryassignmentsOK struct { -} - -// IsSuccess returns true when this get event categoryassignments o k response has a 2xx status code -func (o *GetEventCategoryassignmentsOK) IsSuccess() bool { - return true -} - -// IsRedirect returns true when this get event categoryassignments o k response has a 3xx status code -func (o *GetEventCategoryassignmentsOK) IsRedirect() bool { - return false -} - -// IsClientError returns true when this get event categoryassignments o k response has a 4xx status code -func (o *GetEventCategoryassignmentsOK) IsClientError() bool { - return false -} - -// IsServerError returns true when this get event categoryassignments o k response has a 5xx status code -func (o *GetEventCategoryassignmentsOK) IsServerError() bool { - return false -} - -// IsCode returns true when this get event categoryassignments o k response a status code equal to that given -func (o *GetEventCategoryassignmentsOK) IsCode(code int) bool { - return code == 200 -} - -// Code gets the status code for the get event categoryassignments o k response -func (o *GetEventCategoryassignmentsOK) Code() int { - return 200 -} - -func (o *GetEventCategoryassignmentsOK) Error() string { - return fmt.Sprintf("[GET /eventcategoryassignments][%d] getEventCategoryassignmentsOK ", 200) -} - -func (o *GetEventCategoryassignmentsOK) String() string { - return fmt.Sprintf("[GET /eventcategoryassignments][%d] getEventCategoryassignmentsOK ", 200) -} - -func (o *GetEventCategoryassignmentsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - return nil -} diff --git a/api/members/members_client/operations/get_issuedcertificates_parameters.go b/api/members/members_client/operations/get_issuedcertificates_parameters.go deleted file mode 100644 index 737a315..0000000 --- a/api/members/members_client/operations/get_issuedcertificates_parameters.go +++ /dev/null @@ -1,240 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -// (c) 2012-2020 by Taxnexus, Inc. -// All rights reserved worldwide. -// Proprietary product; unlicensed use is not allowed - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// NewGetIssuedcertificatesParams creates a new GetIssuedcertificatesParams 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 NewGetIssuedcertificatesParams() *GetIssuedcertificatesParams { - return &GetIssuedcertificatesParams{ - timeout: cr.DefaultTimeout, - } -} - -// NewGetIssuedcertificatesParamsWithTimeout creates a new GetIssuedcertificatesParams object -// with the ability to set a timeout on a request. -func NewGetIssuedcertificatesParamsWithTimeout(timeout time.Duration) *GetIssuedcertificatesParams { - return &GetIssuedcertificatesParams{ - timeout: timeout, - } -} - -// NewGetIssuedcertificatesParamsWithContext creates a new GetIssuedcertificatesParams object -// with the ability to set a context for a request. -func NewGetIssuedcertificatesParamsWithContext(ctx context.Context) *GetIssuedcertificatesParams { - return &GetIssuedcertificatesParams{ - Context: ctx, - } -} - -// NewGetIssuedcertificatesParamsWithHTTPClient creates a new GetIssuedcertificatesParams object -// with the ability to set a custom HTTPClient for a request. -func NewGetIssuedcertificatesParamsWithHTTPClient(client *http.Client) *GetIssuedcertificatesParams { - return &GetIssuedcertificatesParams{ - HTTPClient: client, - } -} - -/* -GetIssuedcertificatesParams contains all the parameters to send to the API endpoint - - for the get issuedcertificates operation. - - Typically these are written to a http.Request. -*/ -type GetIssuedcertificatesParams struct { - - /* ID. - - Unique Record ID - */ - ID *string - - /* Limit. - - How many objects to return at one time - - Format: int64 - */ - Limit *int64 - - /* Offset. - - How many objects to skip? - - Format: int64 - */ - Offset *int64 - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithDefaults hydrates default values in the get issuedcertificates params (not the query body). -// -// All values with no default are reset to their zero value. -func (o *GetIssuedcertificatesParams) WithDefaults() *GetIssuedcertificatesParams { - o.SetDefaults() - return o -} - -// SetDefaults hydrates default values in the get issuedcertificates params (not the query body). -// -// All values with no default are reset to their zero value. -func (o *GetIssuedcertificatesParams) SetDefaults() { - // no default values defined for this parameter -} - -// WithTimeout adds the timeout to the get issuedcertificates params -func (o *GetIssuedcertificatesParams) WithTimeout(timeout time.Duration) *GetIssuedcertificatesParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the get issuedcertificates params -func (o *GetIssuedcertificatesParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the get issuedcertificates params -func (o *GetIssuedcertificatesParams) WithContext(ctx context.Context) *GetIssuedcertificatesParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the get issuedcertificates params -func (o *GetIssuedcertificatesParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the get issuedcertificates params -func (o *GetIssuedcertificatesParams) WithHTTPClient(client *http.Client) *GetIssuedcertificatesParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the get issuedcertificates params -func (o *GetIssuedcertificatesParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithID adds the id to the get issuedcertificates params -func (o *GetIssuedcertificatesParams) WithID(id *string) *GetIssuedcertificatesParams { - o.SetID(id) - return o -} - -// SetID adds the id to the get issuedcertificates params -func (o *GetIssuedcertificatesParams) SetID(id *string) { - o.ID = id -} - -// WithLimit adds the limit to the get issuedcertificates params -func (o *GetIssuedcertificatesParams) WithLimit(limit *int64) *GetIssuedcertificatesParams { - o.SetLimit(limit) - return o -} - -// SetLimit adds the limit to the get issuedcertificates params -func (o *GetIssuedcertificatesParams) SetLimit(limit *int64) { - o.Limit = limit -} - -// WithOffset adds the offset to the get issuedcertificates params -func (o *GetIssuedcertificatesParams) WithOffset(offset *int64) *GetIssuedcertificatesParams { - o.SetOffset(offset) - return o -} - -// SetOffset adds the offset to the get issuedcertificates params -func (o *GetIssuedcertificatesParams) SetOffset(offset *int64) { - o.Offset = offset -} - -// WriteToRequest writes these params to a swagger request -func (o *GetIssuedcertificatesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if o.ID != nil { - - // query param id - var qrID string - - if o.ID != nil { - qrID = *o.ID - } - qID := qrID - if qID != "" { - - if err := r.SetQueryParam("id", qID); err != nil { - return err - } - } - } - - if o.Limit != nil { - - // query param limit - var qrLimit int64 - - if o.Limit != nil { - qrLimit = *o.Limit - } - qLimit := swag.FormatInt64(qrLimit) - if qLimit != "" { - - if err := r.SetQueryParam("limit", qLimit); err != nil { - return err - } - } - } - - if o.Offset != nil { - - // query param offset - var qrOffset int64 - - if o.Offset != nil { - qrOffset = *o.Offset - } - qOffset := swag.FormatInt64(qrOffset) - if qOffset != "" { - - if err := r.SetQueryParam("offset", qOffset); err != nil { - return err - } - } - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/api/members/members_client/operations/get_issuedcertificates_responses.go b/api/members/members_client/operations/get_issuedcertificates_responses.go deleted file mode 100644 index ac1d82e..0000000 --- a/api/members/members_client/operations/get_issuedcertificates_responses.go +++ /dev/null @@ -1,92 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -// (c) 2012-2020 by Taxnexus, Inc. -// All rights reserved worldwide. -// Proprietary product; unlicensed use is not allowed - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" -) - -// GetIssuedcertificatesReader is a Reader for the GetIssuedcertificates structure. -type GetIssuedcertificatesReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *GetIssuedcertificatesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewGetIssuedcertificatesOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) - } -} - -// NewGetIssuedcertificatesOK creates a GetIssuedcertificatesOK with default headers values -func NewGetIssuedcertificatesOK() *GetIssuedcertificatesOK { - return &GetIssuedcertificatesOK{} -} - -/* -GetIssuedcertificatesOK describes a response with status code 200, with default header values. - -OK -*/ -type GetIssuedcertificatesOK struct { -} - -// IsSuccess returns true when this get issuedcertificates o k response has a 2xx status code -func (o *GetIssuedcertificatesOK) IsSuccess() bool { - return true -} - -// IsRedirect returns true when this get issuedcertificates o k response has a 3xx status code -func (o *GetIssuedcertificatesOK) IsRedirect() bool { - return false -} - -// IsClientError returns true when this get issuedcertificates o k response has a 4xx status code -func (o *GetIssuedcertificatesOK) IsClientError() bool { - return false -} - -// IsServerError returns true when this get issuedcertificates o k response has a 5xx status code -func (o *GetIssuedcertificatesOK) IsServerError() bool { - return false -} - -// IsCode returns true when this get issuedcertificates o k response a status code equal to that given -func (o *GetIssuedcertificatesOK) IsCode(code int) bool { - return code == 200 -} - -// Code gets the status code for the get issuedcertificates o k response -func (o *GetIssuedcertificatesOK) Code() int { - return 200 -} - -func (o *GetIssuedcertificatesOK) Error() string { - return fmt.Sprintf("[GET /issuedcertificates][%d] getIssuedcertificatesOK ", 200) -} - -func (o *GetIssuedcertificatesOK) String() string { - return fmt.Sprintf("[GET /issuedcertificates][%d] getIssuedcertificatesOK ", 200) -} - -func (o *GetIssuedcertificatesOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - return nil -} diff --git a/api/members/members_client/operations/get_research_project_companys_responses.go b/api/members/members_client/operations/get_research_project_companys_responses.go deleted file mode 100644 index 62ece95..0000000 --- a/api/members/members_client/operations/get_research_project_companys_responses.go +++ /dev/null @@ -1,92 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -// (c) 2012-2020 by Taxnexus, Inc. -// All rights reserved worldwide. -// Proprietary product; unlicensed use is not allowed - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" -) - -// GetResearchProjectCompanysReader is a Reader for the GetResearchProjectCompanys structure. -type GetResearchProjectCompanysReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *GetResearchProjectCompanysReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewGetResearchProjectCompanysOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) - } -} - -// NewGetResearchProjectCompanysOK creates a GetResearchProjectCompanysOK with default headers values -func NewGetResearchProjectCompanysOK() *GetResearchProjectCompanysOK { - return &GetResearchProjectCompanysOK{} -} - -/* -GetResearchProjectCompanysOK describes a response with status code 200, with default header values. - -OK -*/ -type GetResearchProjectCompanysOK struct { -} - -// IsSuccess returns true when this get research project companys o k response has a 2xx status code -func (o *GetResearchProjectCompanysOK) IsSuccess() bool { - return true -} - -// IsRedirect returns true when this get research project companys o k response has a 3xx status code -func (o *GetResearchProjectCompanysOK) IsRedirect() bool { - return false -} - -// IsClientError returns true when this get research project companys o k response has a 4xx status code -func (o *GetResearchProjectCompanysOK) IsClientError() bool { - return false -} - -// IsServerError returns true when this get research project companys o k response has a 5xx status code -func (o *GetResearchProjectCompanysOK) IsServerError() bool { - return false -} - -// IsCode returns true when this get research project companys o k response a status code equal to that given -func (o *GetResearchProjectCompanysOK) IsCode(code int) bool { - return code == 200 -} - -// Code gets the status code for the get research project companys o k response -func (o *GetResearchProjectCompanysOK) Code() int { - return 200 -} - -func (o *GetResearchProjectCompanysOK) Error() string { - return fmt.Sprintf("[GET /researchprojectcompanys][%d] getResearchProjectCompanysOK ", 200) -} - -func (o *GetResearchProjectCompanysOK) String() string { - return fmt.Sprintf("[GET /researchprojectcompanys][%d] getResearchProjectCompanysOK ", 200) -} - -func (o *GetResearchProjectCompanysOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - return nil -} diff --git a/api/members/members_client/operations/operations_client.go b/api/members/members_client/operations/operations_client.go deleted file mode 100644 index 9949337..0000000 --- a/api/members/members_client/operations/operations_client.go +++ /dev/null @@ -1,3243 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -// (c) 2012-2020 by Taxnexus, Inc. -// All rights reserved worldwide. -// Proprietary product; unlicensed use is not allowed - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" -) - -// New creates a new operations API client. -func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService { - return &Client{transport: transport, formats: formats} -} - -/* -Client for operations API -*/ -type Client struct { - transport runtime.ClientTransport - 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 { - CreateAttendee(params *CreateAttendeeParams, opts ...ClientOption) (*CreateAttendeeCreated, error) - - CreateCertificate(params *CreateCertificateParams, opts ...ClientOption) (*CreateCertificateCreated, error) - - CreateCourse(params *CreateCourseParams, opts ...ClientOption) (*CreateCourseCreated, error) - - CreateCourseLesson(params *CreateCourseLessonParams, opts ...ClientOption) (*CreateCourseLessonCreated, error) - - CreateCourseSection(params *CreateCourseSectionParams, opts ...ClientOption) (*CreateCourseSectionCreated, error) - - CreateEnrollment(params *CreateEnrollmentParams, opts ...ClientOption) (*CreateEnrollmentCreated, error) - - CreateEvent(params *CreateEventParams, opts ...ClientOption) (*CreateEventCreated, error) - - CreateEventCategory(params *CreateEventCategoryParams, opts ...ClientOption) (*CreateEventCategoryCreated, error) - - CreateEventCategoryAssignment(params *CreateEventCategoryAssignmentParams, opts ...ClientOption) (*CreateEventCategoryAssignmentCreated, error) - - CreateFavorite(params *CreateFavoriteParams, opts ...ClientOption) (*CreateFavoriteCreated, error) - - CreateInvoice(params *CreateInvoiceParams, opts ...ClientOption) (*CreateInvoiceCreated, error) - - CreateIssuedCertificate(params *CreateIssuedCertificateParams, opts ...ClientOption) (*CreateIssuedCertificateCreated, error) - - CreateLessonProgress(params *CreateLessonProgressParams, opts ...ClientOption) (*CreateLessonProgressCreated, error) - - CreateOrder(params *CreateOrderParams, opts ...ClientOption) (*CreateOrderCreated, error) - - CreatePaymentMethod(params *CreatePaymentMethodParams, opts ...ClientOption) (*CreatePaymentMethodCreated, error) - - CreateResearchProject(params *CreateResearchProjectParams, opts ...ClientOption) (*CreateResearchProjectCreated, error) - - CreateResearchProjectCompany(params *CreateResearchProjectCompanyParams, opts ...ClientOption) (*CreateResearchProjectCompanyCreated, error) - - CreateResearchProjectTopic(params *CreateResearchProjectTopicParams, opts ...ClientOption) (*CreateResearchProjectTopicCreated, error) - - CreateTicket(params *CreateTicketParams, opts ...ClientOption) (*CreateTicketCreated, error) - - CreateTransaction(params *CreateTransactionParams, opts ...ClientOption) (*CreateTransactionCreated, error) - - DeleteAttendee(params *DeleteAttendeeParams, opts ...ClientOption) (*DeleteAttendeeNoContent, error) - - DeleteCertificate(params *DeleteCertificateParams, opts ...ClientOption) (*DeleteCertificateNoContent, error) - - DeleteCourse(params *DeleteCourseParams, opts ...ClientOption) (*DeleteCourseNoContent, error) - - DeleteCourseLesson(params *DeleteCourseLessonParams, opts ...ClientOption) (*DeleteCourseLessonNoContent, error) - - DeleteCourseSection(params *DeleteCourseSectionParams, opts ...ClientOption) (*DeleteCourseSectionNoContent, error) - - DeleteEnrollment(params *DeleteEnrollmentParams, opts ...ClientOption) (*DeleteEnrollmentNoContent, error) - - DeleteEvent(params *DeleteEventParams, opts ...ClientOption) (*DeleteEventNoContent, error) - - DeleteEventCategory(params *DeleteEventCategoryParams, opts ...ClientOption) (*DeleteEventCategoryNoContent, error) - - DeleteEventCategoryAssignment(params *DeleteEventCategoryAssignmentParams, opts ...ClientOption) (*DeleteEventCategoryAssignmentNoContent, error) - - DeleteFavorite(params *DeleteFavoriteParams, opts ...ClientOption) (*DeleteFavoriteNoContent, error) - - DeleteInvoice(params *DeleteInvoiceParams, opts ...ClientOption) (*DeleteInvoiceNoContent, error) - - DeleteIssuedCertificate(params *DeleteIssuedCertificateParams, opts ...ClientOption) (*DeleteIssuedCertificateNoContent, error) - - DeleteLessonProgress(params *DeleteLessonProgressParams, opts ...ClientOption) (*DeleteLessonProgressNoContent, error) - - DeleteOrder(params *DeleteOrderParams, opts ...ClientOption) (*DeleteOrderNoContent, error) - - DeletePaymentMethod(params *DeletePaymentMethodParams, opts ...ClientOption) (*DeletePaymentMethodNoContent, error) - - DeleteResearchProject(params *DeleteResearchProjectParams, opts ...ClientOption) (*DeleteResearchProjectNoContent, error) - - DeleteResearchProjectCompany(params *DeleteResearchProjectCompanyParams, opts ...ClientOption) (*DeleteResearchProjectCompanyNoContent, error) - - DeleteResearchProjectTopic(params *DeleteResearchProjectTopicParams, opts ...ClientOption) (*DeleteResearchProjectTopicNoContent, error) - - DeleteTicket(params *DeleteTicketParams, opts ...ClientOption) (*DeleteTicketNoContent, error) - - DeleteTransaction(params *DeleteTransactionParams, opts ...ClientOption) (*DeleteTransactionNoContent, error) - - GetAttendees(params *GetAttendeesParams, opts ...ClientOption) (*GetAttendeesOK, error) - - GetCertificates(params *GetCertificatesParams, opts ...ClientOption) (*GetCertificatesOK, error) - - GetCourseLessons(params *GetCourseLessonsParams, opts ...ClientOption) (*GetCourseLessonsOK, error) - - GetCourseSections(params *GetCourseSectionsParams, opts ...ClientOption) (*GetCourseSectionsOK, error) - - GetCourses(params *GetCoursesParams, opts ...ClientOption) (*GetCoursesOK, error) - - GetEnrollments(params *GetEnrollmentsParams, opts ...ClientOption) (*GetEnrollmentsOK, error) - - GetEventCategoryassignments(params *GetEventCategoryassignmentsParams, opts ...ClientOption) (*GetEventCategoryassignmentsOK, error) - - GetEventCategorys(params *GetEventCategorysParams, opts ...ClientOption) (*GetEventCategorysOK, error) - - GetEvents(params *GetEventsParams, opts ...ClientOption) (*GetEventsOK, error) - - GetFavorites(params *GetFavoritesParams, opts ...ClientOption) (*GetFavoritesOK, error) - - GetInvoices(params *GetInvoicesParams, opts ...ClientOption) (*GetInvoicesOK, error) - - GetIssuedcertificates(params *GetIssuedcertificatesParams, opts ...ClientOption) (*GetIssuedcertificatesOK, error) - - GetLessonProgress(params *GetLessonProgressParams, opts ...ClientOption) (*GetLessonProgressOK, error) - - GetOrders(params *GetOrdersParams, opts ...ClientOption) (*GetOrdersOK, error) - - GetPaymentMethods(params *GetPaymentMethodsParams, opts ...ClientOption) (*GetPaymentMethodsOK, error) - - GetResearchProjectCompanys(params *GetResearchProjectCompanysParams, opts ...ClientOption) (*GetResearchProjectCompanysOK, error) - - GetResearchProjectTopics(params *GetResearchProjectTopicsParams, opts ...ClientOption) (*GetResearchProjectTopicsOK, error) - - GetResearchProjects(params *GetResearchProjectsParams, opts ...ClientOption) (*GetResearchProjectsOK, error) - - GetTickets(params *GetTicketsParams, opts ...ClientOption) (*GetTicketsOK, error) - - GetTransactions(params *GetTransactionsParams, opts ...ClientOption) (*GetTransactionsOK, error) - - UpdateAttendee(params *UpdateAttendeeParams, opts ...ClientOption) (*UpdateAttendeeOK, error) - - UpdateCertificate(params *UpdateCertificateParams, opts ...ClientOption) (*UpdateCertificateOK, error) - - UpdateCourse(params *UpdateCourseParams, opts ...ClientOption) (*UpdateCourseOK, error) - - UpdateCourseLesson(params *UpdateCourseLessonParams, opts ...ClientOption) (*UpdateCourseLessonOK, error) - - UpdateCourseSection(params *UpdateCourseSectionParams, opts ...ClientOption) (*UpdateCourseSectionOK, error) - - UpdateEnrollment(params *UpdateEnrollmentParams, opts ...ClientOption) (*UpdateEnrollmentOK, error) - - UpdateEvent(params *UpdateEventParams, opts ...ClientOption) (*UpdateEventOK, error) - - UpdateEventCategory(params *UpdateEventCategoryParams, opts ...ClientOption) (*UpdateEventCategoryOK, error) - - UpdateEventCategoryAssignment(params *UpdateEventCategoryAssignmentParams, opts ...ClientOption) (*UpdateEventCategoryAssignmentOK, error) - - UpdateFavorite(params *UpdateFavoriteParams, opts ...ClientOption) (*UpdateFavoriteOK, error) - - UpdateInvoice(params *UpdateInvoiceParams, opts ...ClientOption) (*UpdateInvoiceOK, error) - - UpdateIssuedCertificate(params *UpdateIssuedCertificateParams, opts ...ClientOption) (*UpdateIssuedCertificateOK, error) - - UpdateLessonProgress(params *UpdateLessonProgressParams, opts ...ClientOption) (*UpdateLessonProgressOK, error) - - UpdateOrder(params *UpdateOrderParams, opts ...ClientOption) (*UpdateOrderOK, error) - - UpdatePaymentMethod(params *UpdatePaymentMethodParams, opts ...ClientOption) (*UpdatePaymentMethodOK, error) - - UpdateResearchProject(params *UpdateResearchProjectParams, opts ...ClientOption) (*UpdateResearchProjectOK, error) - - UpdateResearchProjectCompany(params *UpdateResearchProjectCompanyParams, opts ...ClientOption) (*UpdateResearchProjectCompanyOK, error) - - UpdateResearchProjectTopic(params *UpdateResearchProjectTopicParams, opts ...ClientOption) (*UpdateResearchProjectTopicOK, error) - - UpdateTicket(params *UpdateTicketParams, opts ...ClientOption) (*UpdateTicketOK, error) - - UpdateTransaction(params *UpdateTransactionParams, opts ...ClientOption) (*UpdateTransactionOK, error) - - SetTransport(transport runtime.ClientTransport) -} - -/* -CreateAttendee creates a new attendee -*/ -func (a *Client) CreateAttendee(params *CreateAttendeeParams, opts ...ClientOption) (*CreateAttendeeCreated, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewCreateAttendeeParams() - } - op := &runtime.ClientOperation{ - ID: "createAttendee", - Method: "POST", - PathPattern: "/attendees", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &CreateAttendeeReader{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 - } - success, ok := result.(*CreateAttendeeCreated) - if ok { - return success, nil - } - // unexpected success response - // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for createAttendee: API contract not enforced by server. Client expected to get an error, but got: %T", result) - panic(msg) -} - -/* -CreateCertificate creates a new certificate -*/ -func (a *Client) CreateCertificate(params *CreateCertificateParams, opts ...ClientOption) (*CreateCertificateCreated, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewCreateCertificateParams() - } - op := &runtime.ClientOperation{ - ID: "createCertificate", - Method: "POST", - PathPattern: "/certificates", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &CreateCertificateReader{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 - } - success, ok := result.(*CreateCertificateCreated) - if ok { - return success, nil - } - // unexpected success response - // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for createCertificate: API contract not enforced by server. Client expected to get an error, but got: %T", result) - panic(msg) -} - -/* -CreateCourse creates a new course -*/ -func (a *Client) CreateCourse(params *CreateCourseParams, opts ...ClientOption) (*CreateCourseCreated, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewCreateCourseParams() - } - op := &runtime.ClientOperation{ - ID: "createCourse", - Method: "POST", - PathPattern: "/courses", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &CreateCourseReader{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 - } - success, ok := result.(*CreateCourseCreated) - if ok { - return success, nil - } - // unexpected success response - // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for createCourse: API contract not enforced by server. Client expected to get an error, but got: %T", result) - panic(msg) -} - -/* -CreateCourseLesson creates a new course lesson -*/ -func (a *Client) CreateCourseLesson(params *CreateCourseLessonParams, opts ...ClientOption) (*CreateCourseLessonCreated, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewCreateCourseLessonParams() - } - op := &runtime.ClientOperation{ - ID: "createCourseLesson", - Method: "POST", - PathPattern: "/courselessons", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &CreateCourseLessonReader{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 - } - success, ok := result.(*CreateCourseLessonCreated) - if ok { - return success, nil - } - // unexpected success response - // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for createCourseLesson: API contract not enforced by server. Client expected to get an error, but got: %T", result) - panic(msg) -} - -/* -CreateCourseSection creates a new course section -*/ -func (a *Client) CreateCourseSection(params *CreateCourseSectionParams, opts ...ClientOption) (*CreateCourseSectionCreated, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewCreateCourseSectionParams() - } - op := &runtime.ClientOperation{ - ID: "createCourseSection", - Method: "POST", - PathPattern: "/coursesections", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &CreateCourseSectionReader{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 - } - success, ok := result.(*CreateCourseSectionCreated) - if ok { - return success, nil - } - // unexpected success response - // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for createCourseSection: API contract not enforced by server. Client expected to get an error, but got: %T", result) - panic(msg) -} - -/* -CreateEnrollment creates a new enrollment -*/ -func (a *Client) CreateEnrollment(params *CreateEnrollmentParams, opts ...ClientOption) (*CreateEnrollmentCreated, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewCreateEnrollmentParams() - } - op := &runtime.ClientOperation{ - ID: "createEnrollment", - Method: "POST", - PathPattern: "/enrollments", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &CreateEnrollmentReader{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 - } - success, ok := result.(*CreateEnrollmentCreated) - if ok { - return success, nil - } - // unexpected success response - // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for createEnrollment: API contract not enforced by server. Client expected to get an error, but got: %T", result) - panic(msg) -} - -/* -CreateEvent creates a new event -*/ -func (a *Client) CreateEvent(params *CreateEventParams, opts ...ClientOption) (*CreateEventCreated, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewCreateEventParams() - } - op := &runtime.ClientOperation{ - ID: "createEvent", - Method: "POST", - PathPattern: "/events", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &CreateEventReader{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 - } - success, ok := result.(*CreateEventCreated) - if ok { - return success, nil - } - // unexpected success response - // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for createEvent: API contract not enforced by server. Client expected to get an error, but got: %T", result) - panic(msg) -} - -/* -CreateEventCategory creates a new event category -*/ -func (a *Client) CreateEventCategory(params *CreateEventCategoryParams, opts ...ClientOption) (*CreateEventCategoryCreated, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewCreateEventCategoryParams() - } - op := &runtime.ClientOperation{ - ID: "createEventCategory", - Method: "POST", - PathPattern: "/eventcategorys", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &CreateEventCategoryReader{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 - } - success, ok := result.(*CreateEventCategoryCreated) - if ok { - return success, nil - } - // unexpected success response - // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for createEventCategory: API contract not enforced by server. Client expected to get an error, but got: %T", result) - panic(msg) -} - -/* -CreateEventCategoryAssignment creates a new event category assignment -*/ -func (a *Client) CreateEventCategoryAssignment(params *CreateEventCategoryAssignmentParams, opts ...ClientOption) (*CreateEventCategoryAssignmentCreated, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewCreateEventCategoryAssignmentParams() - } - op := &runtime.ClientOperation{ - ID: "createEventCategoryAssignment", - Method: "POST", - PathPattern: "/eventcategoryassignments", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &CreateEventCategoryAssignmentReader{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 - } - success, ok := result.(*CreateEventCategoryAssignmentCreated) - if ok { - return success, nil - } - // unexpected success response - // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for createEventCategoryAssignment: API contract not enforced by server. Client expected to get an error, but got: %T", result) - panic(msg) -} - -/* -CreateFavorite creates a new favorite -*/ -func (a *Client) CreateFavorite(params *CreateFavoriteParams, opts ...ClientOption) (*CreateFavoriteCreated, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewCreateFavoriteParams() - } - op := &runtime.ClientOperation{ - ID: "createFavorite", - Method: "POST", - PathPattern: "/favorites", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &CreateFavoriteReader{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 - } - success, ok := result.(*CreateFavoriteCreated) - if ok { - return success, nil - } - // unexpected success response - // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for createFavorite: API contract not enforced by server. Client expected to get an error, but got: %T", result) - panic(msg) -} - -/* -CreateInvoice creates a new invoice -*/ -func (a *Client) CreateInvoice(params *CreateInvoiceParams, opts ...ClientOption) (*CreateInvoiceCreated, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewCreateInvoiceParams() - } - op := &runtime.ClientOperation{ - ID: "createInvoice", - Method: "POST", - PathPattern: "/invoices", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &CreateInvoiceReader{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 - } - success, ok := result.(*CreateInvoiceCreated) - if ok { - return success, nil - } - // unexpected success response - // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for createInvoice: API contract not enforced by server. Client expected to get an error, but got: %T", result) - panic(msg) -} - -/* -CreateIssuedCertificate creates a new issued certificate -*/ -func (a *Client) CreateIssuedCertificate(params *CreateIssuedCertificateParams, opts ...ClientOption) (*CreateIssuedCertificateCreated, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewCreateIssuedCertificateParams() - } - op := &runtime.ClientOperation{ - ID: "createIssuedCertificate", - Method: "POST", - PathPattern: "/issuedcertificates", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &CreateIssuedCertificateReader{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 - } - success, ok := result.(*CreateIssuedCertificateCreated) - if ok { - return success, nil - } - // unexpected success response - // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for createIssuedCertificate: API contract not enforced by server. Client expected to get an error, but got: %T", result) - panic(msg) -} - -/* -CreateLessonProgress creates a new lesson progress -*/ -func (a *Client) CreateLessonProgress(params *CreateLessonProgressParams, opts ...ClientOption) (*CreateLessonProgressCreated, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewCreateLessonProgressParams() - } - op := &runtime.ClientOperation{ - ID: "createLessonProgress", - Method: "POST", - PathPattern: "/lessonprogress", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &CreateLessonProgressReader{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 - } - success, ok := result.(*CreateLessonProgressCreated) - if ok { - return success, nil - } - // unexpected success response - // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for createLessonProgress: API contract not enforced by server. Client expected to get an error, but got: %T", result) - panic(msg) -} - -/* -CreateOrder creates a new order -*/ -func (a *Client) CreateOrder(params *CreateOrderParams, opts ...ClientOption) (*CreateOrderCreated, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewCreateOrderParams() - } - op := &runtime.ClientOperation{ - ID: "createOrder", - Method: "POST", - PathPattern: "/orders", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &CreateOrderReader{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 - } - success, ok := result.(*CreateOrderCreated) - if ok { - return success, nil - } - // unexpected success response - // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for createOrder: API contract not enforced by server. Client expected to get an error, but got: %T", result) - panic(msg) -} - -/* -CreatePaymentMethod creates a new payment method -*/ -func (a *Client) CreatePaymentMethod(params *CreatePaymentMethodParams, opts ...ClientOption) (*CreatePaymentMethodCreated, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewCreatePaymentMethodParams() - } - op := &runtime.ClientOperation{ - ID: "createPaymentMethod", - Method: "POST", - PathPattern: "/paymentmethods", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &CreatePaymentMethodReader{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 - } - success, ok := result.(*CreatePaymentMethodCreated) - if ok { - return success, nil - } - // unexpected success response - // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for createPaymentMethod: API contract not enforced by server. Client expected to get an error, but got: %T", result) - panic(msg) -} - -/* -CreateResearchProject creates a new research project -*/ -func (a *Client) CreateResearchProject(params *CreateResearchProjectParams, opts ...ClientOption) (*CreateResearchProjectCreated, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewCreateResearchProjectParams() - } - op := &runtime.ClientOperation{ - ID: "createResearchProject", - Method: "POST", - PathPattern: "/researchprojects", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &CreateResearchProjectReader{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 - } - success, ok := result.(*CreateResearchProjectCreated) - if ok { - return success, nil - } - // unexpected success response - // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for createResearchProject: API contract not enforced by server. Client expected to get an error, but got: %T", result) - panic(msg) -} - -/* -CreateResearchProjectCompany creates a new research project company -*/ -func (a *Client) CreateResearchProjectCompany(params *CreateResearchProjectCompanyParams, opts ...ClientOption) (*CreateResearchProjectCompanyCreated, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewCreateResearchProjectCompanyParams() - } - op := &runtime.ClientOperation{ - ID: "createResearchProjectCompany", - Method: "POST", - PathPattern: "/researchprojectcompanys", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &CreateResearchProjectCompanyReader{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 - } - success, ok := result.(*CreateResearchProjectCompanyCreated) - if ok { - return success, nil - } - // unexpected success response - // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for createResearchProjectCompany: API contract not enforced by server. Client expected to get an error, but got: %T", result) - panic(msg) -} - -/* -CreateResearchProjectTopic creates a new research project topic -*/ -func (a *Client) CreateResearchProjectTopic(params *CreateResearchProjectTopicParams, opts ...ClientOption) (*CreateResearchProjectTopicCreated, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewCreateResearchProjectTopicParams() - } - op := &runtime.ClientOperation{ - ID: "createResearchProjectTopic", - Method: "POST", - PathPattern: "/researchprojecttopics", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &CreateResearchProjectTopicReader{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 - } - success, ok := result.(*CreateResearchProjectTopicCreated) - if ok { - return success, nil - } - // unexpected success response - // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for createResearchProjectTopic: API contract not enforced by server. Client expected to get an error, but got: %T", result) - panic(msg) -} - -/* -CreateTicket creates a new ticket -*/ -func (a *Client) CreateTicket(params *CreateTicketParams, opts ...ClientOption) (*CreateTicketCreated, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewCreateTicketParams() - } - op := &runtime.ClientOperation{ - ID: "createTicket", - Method: "POST", - PathPattern: "/tickets", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &CreateTicketReader{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 - } - success, ok := result.(*CreateTicketCreated) - if ok { - return success, nil - } - // unexpected success response - // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for createTicket: API contract not enforced by server. Client expected to get an error, but got: %T", result) - panic(msg) -} - -/* -CreateTransaction creates a new transaction -*/ -func (a *Client) CreateTransaction(params *CreateTransactionParams, opts ...ClientOption) (*CreateTransactionCreated, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewCreateTransactionParams() - } - op := &runtime.ClientOperation{ - ID: "createTransaction", - Method: "POST", - PathPattern: "/transactions", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &CreateTransactionReader{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 - } - success, ok := result.(*CreateTransactionCreated) - if ok { - return success, nil - } - // unexpected success response - // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for createTransaction: API contract not enforced by server. Client expected to get an error, but got: %T", result) - panic(msg) -} - -/* -DeleteAttendee deletes a attendee -*/ -func (a *Client) DeleteAttendee(params *DeleteAttendeeParams, opts ...ClientOption) (*DeleteAttendeeNoContent, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewDeleteAttendeeParams() - } - op := &runtime.ClientOperation{ - ID: "deleteAttendee", - Method: "DELETE", - PathPattern: "/attendees", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &DeleteAttendeeReader{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 - } - success, ok := result.(*DeleteAttendeeNoContent) - if ok { - return success, nil - } - // unexpected success response - // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for deleteAttendee: API contract not enforced by server. Client expected to get an error, but got: %T", result) - panic(msg) -} - -/* -DeleteCertificate deletes a certificate -*/ -func (a *Client) DeleteCertificate(params *DeleteCertificateParams, opts ...ClientOption) (*DeleteCertificateNoContent, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewDeleteCertificateParams() - } - op := &runtime.ClientOperation{ - ID: "deleteCertificate", - Method: "DELETE", - PathPattern: "/certificates", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &DeleteCertificateReader{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 - } - success, ok := result.(*DeleteCertificateNoContent) - if ok { - return success, nil - } - // unexpected success response - // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for deleteCertificate: API contract not enforced by server. Client expected to get an error, but got: %T", result) - panic(msg) -} - -/* -DeleteCourse deletes a course -*/ -func (a *Client) DeleteCourse(params *DeleteCourseParams, opts ...ClientOption) (*DeleteCourseNoContent, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewDeleteCourseParams() - } - op := &runtime.ClientOperation{ - ID: "deleteCourse", - Method: "DELETE", - PathPattern: "/courses", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &DeleteCourseReader{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 - } - success, ok := result.(*DeleteCourseNoContent) - if ok { - return success, nil - } - // unexpected success response - // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for deleteCourse: API contract not enforced by server. Client expected to get an error, but got: %T", result) - panic(msg) -} - -/* -DeleteCourseLesson deletes a course lesson -*/ -func (a *Client) DeleteCourseLesson(params *DeleteCourseLessonParams, opts ...ClientOption) (*DeleteCourseLessonNoContent, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewDeleteCourseLessonParams() - } - op := &runtime.ClientOperation{ - ID: "deleteCourseLesson", - Method: "DELETE", - PathPattern: "/courselessons", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &DeleteCourseLessonReader{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 - } - success, ok := result.(*DeleteCourseLessonNoContent) - if ok { - return success, nil - } - // unexpected success response - // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for deleteCourseLesson: API contract not enforced by server. Client expected to get an error, but got: %T", result) - panic(msg) -} - -/* -DeleteCourseSection deletes a course section -*/ -func (a *Client) DeleteCourseSection(params *DeleteCourseSectionParams, opts ...ClientOption) (*DeleteCourseSectionNoContent, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewDeleteCourseSectionParams() - } - op := &runtime.ClientOperation{ - ID: "deleteCourseSection", - Method: "DELETE", - PathPattern: "/coursesections", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &DeleteCourseSectionReader{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 - } - success, ok := result.(*DeleteCourseSectionNoContent) - if ok { - return success, nil - } - // unexpected success response - // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for deleteCourseSection: API contract not enforced by server. Client expected to get an error, but got: %T", result) - panic(msg) -} - -/* -DeleteEnrollment deletes a enrollment -*/ -func (a *Client) DeleteEnrollment(params *DeleteEnrollmentParams, opts ...ClientOption) (*DeleteEnrollmentNoContent, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewDeleteEnrollmentParams() - } - op := &runtime.ClientOperation{ - ID: "deleteEnrollment", - Method: "DELETE", - PathPattern: "/enrollments", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &DeleteEnrollmentReader{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 - } - success, ok := result.(*DeleteEnrollmentNoContent) - if ok { - return success, nil - } - // unexpected success response - // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for deleteEnrollment: API contract not enforced by server. Client expected to get an error, but got: %T", result) - panic(msg) -} - -/* -DeleteEvent deletes a event -*/ -func (a *Client) DeleteEvent(params *DeleteEventParams, opts ...ClientOption) (*DeleteEventNoContent, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewDeleteEventParams() - } - op := &runtime.ClientOperation{ - ID: "deleteEvent", - Method: "DELETE", - PathPattern: "/events", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &DeleteEventReader{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 - } - success, ok := result.(*DeleteEventNoContent) - if ok { - return success, nil - } - // unexpected success response - // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for deleteEvent: API contract not enforced by server. Client expected to get an error, but got: %T", result) - panic(msg) -} - -/* -DeleteEventCategory deletes a event category -*/ -func (a *Client) DeleteEventCategory(params *DeleteEventCategoryParams, opts ...ClientOption) (*DeleteEventCategoryNoContent, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewDeleteEventCategoryParams() - } - op := &runtime.ClientOperation{ - ID: "deleteEventCategory", - Method: "DELETE", - PathPattern: "/eventcategorys", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &DeleteEventCategoryReader{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 - } - success, ok := result.(*DeleteEventCategoryNoContent) - if ok { - return success, nil - } - // unexpected success response - // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for deleteEventCategory: API contract not enforced by server. Client expected to get an error, but got: %T", result) - panic(msg) -} - -/* -DeleteEventCategoryAssignment deletes a event category assignment -*/ -func (a *Client) DeleteEventCategoryAssignment(params *DeleteEventCategoryAssignmentParams, opts ...ClientOption) (*DeleteEventCategoryAssignmentNoContent, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewDeleteEventCategoryAssignmentParams() - } - op := &runtime.ClientOperation{ - ID: "deleteEventCategoryAssignment", - Method: "DELETE", - PathPattern: "/eventcategoryassignments", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &DeleteEventCategoryAssignmentReader{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 - } - success, ok := result.(*DeleteEventCategoryAssignmentNoContent) - if ok { - return success, nil - } - // unexpected success response - // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for deleteEventCategoryAssignment: API contract not enforced by server. Client expected to get an error, but got: %T", result) - panic(msg) -} - -/* -DeleteFavorite deletes a favorite -*/ -func (a *Client) DeleteFavorite(params *DeleteFavoriteParams, opts ...ClientOption) (*DeleteFavoriteNoContent, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewDeleteFavoriteParams() - } - op := &runtime.ClientOperation{ - ID: "deleteFavorite", - Method: "DELETE", - PathPattern: "/favorites", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &DeleteFavoriteReader{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 - } - success, ok := result.(*DeleteFavoriteNoContent) - if ok { - return success, nil - } - // unexpected success response - // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for deleteFavorite: API contract not enforced by server. Client expected to get an error, but got: %T", result) - panic(msg) -} - -/* -DeleteInvoice deletes a invoice -*/ -func (a *Client) DeleteInvoice(params *DeleteInvoiceParams, opts ...ClientOption) (*DeleteInvoiceNoContent, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewDeleteInvoiceParams() - } - op := &runtime.ClientOperation{ - ID: "deleteInvoice", - Method: "DELETE", - PathPattern: "/invoices", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &DeleteInvoiceReader{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 - } - success, ok := result.(*DeleteInvoiceNoContent) - if ok { - return success, nil - } - // unexpected success response - // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for deleteInvoice: API contract not enforced by server. Client expected to get an error, but got: %T", result) - panic(msg) -} - -/* -DeleteIssuedCertificate deletes a issued certificate -*/ -func (a *Client) DeleteIssuedCertificate(params *DeleteIssuedCertificateParams, opts ...ClientOption) (*DeleteIssuedCertificateNoContent, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewDeleteIssuedCertificateParams() - } - op := &runtime.ClientOperation{ - ID: "deleteIssuedCertificate", - Method: "DELETE", - PathPattern: "/issuedcertificates", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &DeleteIssuedCertificateReader{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 - } - success, ok := result.(*DeleteIssuedCertificateNoContent) - if ok { - return success, nil - } - // unexpected success response - // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for deleteIssuedCertificate: API contract not enforced by server. Client expected to get an error, but got: %T", result) - panic(msg) -} - -/* -DeleteLessonProgress deletes a lesson progress -*/ -func (a *Client) DeleteLessonProgress(params *DeleteLessonProgressParams, opts ...ClientOption) (*DeleteLessonProgressNoContent, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewDeleteLessonProgressParams() - } - op := &runtime.ClientOperation{ - ID: "deleteLessonProgress", - Method: "DELETE", - PathPattern: "/lessonprogress", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &DeleteLessonProgressReader{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 - } - success, ok := result.(*DeleteLessonProgressNoContent) - if ok { - return success, nil - } - // unexpected success response - // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for deleteLessonProgress: API contract not enforced by server. Client expected to get an error, but got: %T", result) - panic(msg) -} - -/* -DeleteOrder deletes a order -*/ -func (a *Client) DeleteOrder(params *DeleteOrderParams, opts ...ClientOption) (*DeleteOrderNoContent, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewDeleteOrderParams() - } - op := &runtime.ClientOperation{ - ID: "deleteOrder", - Method: "DELETE", - PathPattern: "/orders", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &DeleteOrderReader{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 - } - success, ok := result.(*DeleteOrderNoContent) - if ok { - return success, nil - } - // unexpected success response - // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for deleteOrder: API contract not enforced by server. Client expected to get an error, but got: %T", result) - panic(msg) -} - -/* -DeletePaymentMethod deletes a payment method -*/ -func (a *Client) DeletePaymentMethod(params *DeletePaymentMethodParams, opts ...ClientOption) (*DeletePaymentMethodNoContent, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewDeletePaymentMethodParams() - } - op := &runtime.ClientOperation{ - ID: "deletePaymentMethod", - Method: "DELETE", - PathPattern: "/paymentmethods", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &DeletePaymentMethodReader{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 - } - success, ok := result.(*DeletePaymentMethodNoContent) - if ok { - return success, nil - } - // unexpected success response - // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for deletePaymentMethod: API contract not enforced by server. Client expected to get an error, but got: %T", result) - panic(msg) -} - -/* -DeleteResearchProject deletes a research project -*/ -func (a *Client) DeleteResearchProject(params *DeleteResearchProjectParams, opts ...ClientOption) (*DeleteResearchProjectNoContent, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewDeleteResearchProjectParams() - } - op := &runtime.ClientOperation{ - ID: "deleteResearchProject", - Method: "DELETE", - PathPattern: "/researchprojects", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &DeleteResearchProjectReader{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 - } - success, ok := result.(*DeleteResearchProjectNoContent) - if ok { - return success, nil - } - // unexpected success response - // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for deleteResearchProject: API contract not enforced by server. Client expected to get an error, but got: %T", result) - panic(msg) -} - -/* -DeleteResearchProjectCompany deletes a research project company -*/ -func (a *Client) DeleteResearchProjectCompany(params *DeleteResearchProjectCompanyParams, opts ...ClientOption) (*DeleteResearchProjectCompanyNoContent, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewDeleteResearchProjectCompanyParams() - } - op := &runtime.ClientOperation{ - ID: "deleteResearchProjectCompany", - Method: "DELETE", - PathPattern: "/researchprojectcompanys", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &DeleteResearchProjectCompanyReader{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 - } - success, ok := result.(*DeleteResearchProjectCompanyNoContent) - if ok { - return success, nil - } - // unexpected success response - // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for deleteResearchProjectCompany: API contract not enforced by server. Client expected to get an error, but got: %T", result) - panic(msg) -} - -/* -DeleteResearchProjectTopic deletes a research project topic -*/ -func (a *Client) DeleteResearchProjectTopic(params *DeleteResearchProjectTopicParams, opts ...ClientOption) (*DeleteResearchProjectTopicNoContent, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewDeleteResearchProjectTopicParams() - } - op := &runtime.ClientOperation{ - ID: "deleteResearchProjectTopic", - Method: "DELETE", - PathPattern: "/researchprojecttopics", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &DeleteResearchProjectTopicReader{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 - } - success, ok := result.(*DeleteResearchProjectTopicNoContent) - if ok { - return success, nil - } - // unexpected success response - // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for deleteResearchProjectTopic: API contract not enforced by server. Client expected to get an error, but got: %T", result) - panic(msg) -} - -/* -DeleteTicket deletes a ticket -*/ -func (a *Client) DeleteTicket(params *DeleteTicketParams, opts ...ClientOption) (*DeleteTicketNoContent, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewDeleteTicketParams() - } - op := &runtime.ClientOperation{ - ID: "deleteTicket", - Method: "DELETE", - PathPattern: "/tickets", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &DeleteTicketReader{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 - } - success, ok := result.(*DeleteTicketNoContent) - if ok { - return success, nil - } - // unexpected success response - // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for deleteTicket: API contract not enforced by server. Client expected to get an error, but got: %T", result) - panic(msg) -} - -/* -DeleteTransaction deletes a transaction -*/ -func (a *Client) DeleteTransaction(params *DeleteTransactionParams, opts ...ClientOption) (*DeleteTransactionNoContent, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewDeleteTransactionParams() - } - op := &runtime.ClientOperation{ - ID: "deleteTransaction", - Method: "DELETE", - PathPattern: "/transactions", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &DeleteTransactionReader{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 - } - success, ok := result.(*DeleteTransactionNoContent) - if ok { - return success, nil - } - // unexpected success response - // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for deleteTransaction: API contract not enforced by server. Client expected to get an error, but got: %T", result) - panic(msg) -} - -/* -GetAttendees gets a list of attendees -*/ -func (a *Client) GetAttendees(params *GetAttendeesParams, opts ...ClientOption) (*GetAttendeesOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewGetAttendeesParams() - } - op := &runtime.ClientOperation{ - ID: "getAttendees", - Method: "GET", - PathPattern: "/attendees", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &GetAttendeesReader{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 - } - success, ok := result.(*GetAttendeesOK) - if ok { - return success, nil - } - // unexpected success response - // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for getAttendees: API contract not enforced by server. Client expected to get an error, but got: %T", result) - panic(msg) -} - -/* -GetCertificates gets a list of certificates -*/ -func (a *Client) GetCertificates(params *GetCertificatesParams, opts ...ClientOption) (*GetCertificatesOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewGetCertificatesParams() - } - op := &runtime.ClientOperation{ - ID: "getCertificates", - Method: "GET", - PathPattern: "/certificates", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &GetCertificatesReader{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 - } - success, ok := result.(*GetCertificatesOK) - if ok { - return success, nil - } - // unexpected success response - // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for getCertificates: API contract not enforced by server. Client expected to get an error, but got: %T", result) - panic(msg) -} - -/* -GetCourseLessons gets a list of course lessons -*/ -func (a *Client) GetCourseLessons(params *GetCourseLessonsParams, opts ...ClientOption) (*GetCourseLessonsOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewGetCourseLessonsParams() - } - op := &runtime.ClientOperation{ - ID: "getCourseLessons", - Method: "GET", - PathPattern: "/courselessons", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &GetCourseLessonsReader{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 - } - success, ok := result.(*GetCourseLessonsOK) - if ok { - return success, nil - } - // unexpected success response - // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for getCourseLessons: API contract not enforced by server. Client expected to get an error, but got: %T", result) - panic(msg) -} - -/* -GetCourseSections gets a list of course sections -*/ -func (a *Client) GetCourseSections(params *GetCourseSectionsParams, opts ...ClientOption) (*GetCourseSectionsOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewGetCourseSectionsParams() - } - op := &runtime.ClientOperation{ - ID: "getCourseSections", - Method: "GET", - PathPattern: "/coursesections", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &GetCourseSectionsReader{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 - } - success, ok := result.(*GetCourseSectionsOK) - if ok { - return success, nil - } - // unexpected success response - // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for getCourseSections: API contract not enforced by server. Client expected to get an error, but got: %T", result) - panic(msg) -} - -/* -GetCourses gets a list of courses -*/ -func (a *Client) GetCourses(params *GetCoursesParams, opts ...ClientOption) (*GetCoursesOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewGetCoursesParams() - } - op := &runtime.ClientOperation{ - ID: "getCourses", - Method: "GET", - PathPattern: "/courses", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &GetCoursesReader{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 - } - success, ok := result.(*GetCoursesOK) - if ok { - return success, nil - } - // unexpected success response - // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for getCourses: API contract not enforced by server. Client expected to get an error, but got: %T", result) - panic(msg) -} - -/* -GetEnrollments gets a list of enrollments -*/ -func (a *Client) GetEnrollments(params *GetEnrollmentsParams, opts ...ClientOption) (*GetEnrollmentsOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewGetEnrollmentsParams() - } - op := &runtime.ClientOperation{ - ID: "getEnrollments", - Method: "GET", - PathPattern: "/enrollments", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &GetEnrollmentsReader{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 - } - success, ok := result.(*GetEnrollmentsOK) - if ok { - return success, nil - } - // unexpected success response - // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for getEnrollments: API contract not enforced by server. Client expected to get an error, but got: %T", result) - panic(msg) -} - -/* -GetEventCategoryassignments gets a list of event categoryassignments -*/ -func (a *Client) GetEventCategoryassignments(params *GetEventCategoryassignmentsParams, opts ...ClientOption) (*GetEventCategoryassignmentsOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewGetEventCategoryassignmentsParams() - } - op := &runtime.ClientOperation{ - ID: "getEventCategoryassignments", - Method: "GET", - PathPattern: "/eventcategoryassignments", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &GetEventCategoryassignmentsReader{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 - } - success, ok := result.(*GetEventCategoryassignmentsOK) - if ok { - return success, nil - } - // unexpected success response - // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for getEventCategoryassignments: API contract not enforced by server. Client expected to get an error, but got: %T", result) - panic(msg) -} - -/* -GetEventCategorys gets a list of event categorys -*/ -func (a *Client) GetEventCategorys(params *GetEventCategorysParams, opts ...ClientOption) (*GetEventCategorysOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewGetEventCategorysParams() - } - op := &runtime.ClientOperation{ - ID: "getEventCategorys", - Method: "GET", - PathPattern: "/eventcategorys", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &GetEventCategorysReader{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 - } - success, ok := result.(*GetEventCategorysOK) - if ok { - return success, nil - } - // unexpected success response - // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for getEventCategorys: API contract not enforced by server. Client expected to get an error, but got: %T", result) - panic(msg) -} - -/* -GetEvents gets a list of events -*/ -func (a *Client) GetEvents(params *GetEventsParams, opts ...ClientOption) (*GetEventsOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewGetEventsParams() - } - op := &runtime.ClientOperation{ - ID: "getEvents", - Method: "GET", - PathPattern: "/events", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &GetEventsReader{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 - } - success, ok := result.(*GetEventsOK) - if ok { - return success, nil - } - // unexpected success response - // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for getEvents: API contract not enforced by server. Client expected to get an error, but got: %T", result) - panic(msg) -} - -/* -GetFavorites gets a list of favorites -*/ -func (a *Client) GetFavorites(params *GetFavoritesParams, opts ...ClientOption) (*GetFavoritesOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewGetFavoritesParams() - } - op := &runtime.ClientOperation{ - ID: "getFavorites", - Method: "GET", - PathPattern: "/favorites", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &GetFavoritesReader{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 - } - success, ok := result.(*GetFavoritesOK) - if ok { - return success, nil - } - // unexpected success response - // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for getFavorites: API contract not enforced by server. Client expected to get an error, but got: %T", result) - panic(msg) -} - -/* -GetInvoices gets a list of invoices -*/ -func (a *Client) GetInvoices(params *GetInvoicesParams, opts ...ClientOption) (*GetInvoicesOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewGetInvoicesParams() - } - op := &runtime.ClientOperation{ - ID: "getInvoices", - Method: "GET", - PathPattern: "/invoices", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &GetInvoicesReader{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 - } - success, ok := result.(*GetInvoicesOK) - if ok { - return success, nil - } - // unexpected success response - // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for getInvoices: API contract not enforced by server. Client expected to get an error, but got: %T", result) - panic(msg) -} - -/* -GetIssuedcertificates gets a list of issuedcertificates -*/ -func (a *Client) GetIssuedcertificates(params *GetIssuedcertificatesParams, opts ...ClientOption) (*GetIssuedcertificatesOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewGetIssuedcertificatesParams() - } - op := &runtime.ClientOperation{ - ID: "getIssuedcertificates", - Method: "GET", - PathPattern: "/issuedcertificates", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &GetIssuedcertificatesReader{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 - } - success, ok := result.(*GetIssuedcertificatesOK) - if ok { - return success, nil - } - // unexpected success response - // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for getIssuedcertificates: API contract not enforced by server. Client expected to get an error, but got: %T", result) - panic(msg) -} - -/* -GetLessonProgress gets a list of lesson progress -*/ -func (a *Client) GetLessonProgress(params *GetLessonProgressParams, opts ...ClientOption) (*GetLessonProgressOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewGetLessonProgressParams() - } - op := &runtime.ClientOperation{ - ID: "getLessonProgress", - Method: "GET", - PathPattern: "/lessonprogress", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &GetLessonProgressReader{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 - } - success, ok := result.(*GetLessonProgressOK) - if ok { - return success, nil - } - // unexpected success response - // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for getLessonProgress: API contract not enforced by server. Client expected to get an error, but got: %T", result) - panic(msg) -} - -/* -GetOrders gets a list of orders -*/ -func (a *Client) GetOrders(params *GetOrdersParams, opts ...ClientOption) (*GetOrdersOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewGetOrdersParams() - } - op := &runtime.ClientOperation{ - ID: "getOrders", - Method: "GET", - PathPattern: "/orders", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &GetOrdersReader{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 - } - success, ok := result.(*GetOrdersOK) - if ok { - return success, nil - } - // unexpected success response - // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for getOrders: API contract not enforced by server. Client expected to get an error, but got: %T", result) - panic(msg) -} - -/* -GetPaymentMethods gets a list of payment methods -*/ -func (a *Client) GetPaymentMethods(params *GetPaymentMethodsParams, opts ...ClientOption) (*GetPaymentMethodsOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewGetPaymentMethodsParams() - } - op := &runtime.ClientOperation{ - ID: "getPaymentMethods", - Method: "GET", - PathPattern: "/paymentmethods", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &GetPaymentMethodsReader{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 - } - success, ok := result.(*GetPaymentMethodsOK) - if ok { - return success, nil - } - // unexpected success response - // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for getPaymentMethods: API contract not enforced by server. Client expected to get an error, but got: %T", result) - panic(msg) -} - -/* -GetResearchProjectCompanys gets a list of research project companys -*/ -func (a *Client) GetResearchProjectCompanys(params *GetResearchProjectCompanysParams, opts ...ClientOption) (*GetResearchProjectCompanysOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewGetResearchProjectCompanysParams() - } - op := &runtime.ClientOperation{ - ID: "getResearchProjectCompanys", - Method: "GET", - PathPattern: "/researchprojectcompanys", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &GetResearchProjectCompanysReader{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 - } - success, ok := result.(*GetResearchProjectCompanysOK) - if ok { - return success, nil - } - // unexpected success response - // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for getResearchProjectCompanys: API contract not enforced by server. Client expected to get an error, but got: %T", result) - panic(msg) -} - -/* -GetResearchProjectTopics gets a list of research project topics -*/ -func (a *Client) GetResearchProjectTopics(params *GetResearchProjectTopicsParams, opts ...ClientOption) (*GetResearchProjectTopicsOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewGetResearchProjectTopicsParams() - } - op := &runtime.ClientOperation{ - ID: "getResearchProjectTopics", - Method: "GET", - PathPattern: "/researchprojecttopics", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &GetResearchProjectTopicsReader{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 - } - success, ok := result.(*GetResearchProjectTopicsOK) - if ok { - return success, nil - } - // unexpected success response - // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for getResearchProjectTopics: API contract not enforced by server. Client expected to get an error, but got: %T", result) - panic(msg) -} - -/* -GetResearchProjects gets a list of research projects -*/ -func (a *Client) GetResearchProjects(params *GetResearchProjectsParams, opts ...ClientOption) (*GetResearchProjectsOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewGetResearchProjectsParams() - } - op := &runtime.ClientOperation{ - ID: "getResearchProjects", - Method: "GET", - PathPattern: "/researchprojects", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &GetResearchProjectsReader{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 - } - success, ok := result.(*GetResearchProjectsOK) - if ok { - return success, nil - } - // unexpected success response - // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for getResearchProjects: API contract not enforced by server. Client expected to get an error, but got: %T", result) - panic(msg) -} - -/* -GetTickets gets a list of tickets -*/ -func (a *Client) GetTickets(params *GetTicketsParams, opts ...ClientOption) (*GetTicketsOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewGetTicketsParams() - } - op := &runtime.ClientOperation{ - ID: "getTickets", - Method: "GET", - PathPattern: "/tickets", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &GetTicketsReader{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 - } - success, ok := result.(*GetTicketsOK) - if ok { - return success, nil - } - // unexpected success response - // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for getTickets: API contract not enforced by server. Client expected to get an error, but got: %T", result) - panic(msg) -} - -/* -GetTransactions gets a list of transactions -*/ -func (a *Client) GetTransactions(params *GetTransactionsParams, opts ...ClientOption) (*GetTransactionsOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewGetTransactionsParams() - } - op := &runtime.ClientOperation{ - ID: "getTransactions", - Method: "GET", - PathPattern: "/transactions", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &GetTransactionsReader{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 - } - success, ok := result.(*GetTransactionsOK) - if ok { - return success, nil - } - // unexpected success response - // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for getTransactions: API contract not enforced by server. Client expected to get an error, but got: %T", result) - panic(msg) -} - -/* -UpdateAttendee updates an existing attendee -*/ -func (a *Client) UpdateAttendee(params *UpdateAttendeeParams, opts ...ClientOption) (*UpdateAttendeeOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewUpdateAttendeeParams() - } - op := &runtime.ClientOperation{ - ID: "updateAttendee", - Method: "PUT", - PathPattern: "/attendees", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &UpdateAttendeeReader{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 - } - success, ok := result.(*UpdateAttendeeOK) - if ok { - return success, nil - } - // unexpected success response - // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for updateAttendee: API contract not enforced by server. Client expected to get an error, but got: %T", result) - panic(msg) -} - -/* -UpdateCertificate updates an existing certificate -*/ -func (a *Client) UpdateCertificate(params *UpdateCertificateParams, opts ...ClientOption) (*UpdateCertificateOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewUpdateCertificateParams() - } - op := &runtime.ClientOperation{ - ID: "updateCertificate", - Method: "PUT", - PathPattern: "/certificates", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &UpdateCertificateReader{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 - } - success, ok := result.(*UpdateCertificateOK) - if ok { - return success, nil - } - // unexpected success response - // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for updateCertificate: API contract not enforced by server. Client expected to get an error, but got: %T", result) - panic(msg) -} - -/* -UpdateCourse updates an existing course -*/ -func (a *Client) UpdateCourse(params *UpdateCourseParams, opts ...ClientOption) (*UpdateCourseOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewUpdateCourseParams() - } - op := &runtime.ClientOperation{ - ID: "updateCourse", - Method: "PUT", - PathPattern: "/courses", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &UpdateCourseReader{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 - } - success, ok := result.(*UpdateCourseOK) - if ok { - return success, nil - } - // unexpected success response - // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for updateCourse: API contract not enforced by server. Client expected to get an error, but got: %T", result) - panic(msg) -} - -/* -UpdateCourseLesson updates an existing course lesson -*/ -func (a *Client) UpdateCourseLesson(params *UpdateCourseLessonParams, opts ...ClientOption) (*UpdateCourseLessonOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewUpdateCourseLessonParams() - } - op := &runtime.ClientOperation{ - ID: "updateCourseLesson", - Method: "PUT", - PathPattern: "/courselessons", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &UpdateCourseLessonReader{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 - } - success, ok := result.(*UpdateCourseLessonOK) - if ok { - return success, nil - } - // unexpected success response - // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for updateCourseLesson: API contract not enforced by server. Client expected to get an error, but got: %T", result) - panic(msg) -} - -/* -UpdateCourseSection updates an existing course section -*/ -func (a *Client) UpdateCourseSection(params *UpdateCourseSectionParams, opts ...ClientOption) (*UpdateCourseSectionOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewUpdateCourseSectionParams() - } - op := &runtime.ClientOperation{ - ID: "updateCourseSection", - Method: "PUT", - PathPattern: "/coursesections", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &UpdateCourseSectionReader{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 - } - success, ok := result.(*UpdateCourseSectionOK) - if ok { - return success, nil - } - // unexpected success response - // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for updateCourseSection: API contract not enforced by server. Client expected to get an error, but got: %T", result) - panic(msg) -} - -/* -UpdateEnrollment updates an existing enrollment -*/ -func (a *Client) UpdateEnrollment(params *UpdateEnrollmentParams, opts ...ClientOption) (*UpdateEnrollmentOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewUpdateEnrollmentParams() - } - op := &runtime.ClientOperation{ - ID: "updateEnrollment", - Method: "PUT", - PathPattern: "/enrollments", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &UpdateEnrollmentReader{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 - } - success, ok := result.(*UpdateEnrollmentOK) - if ok { - return success, nil - } - // unexpected success response - // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for updateEnrollment: API contract not enforced by server. Client expected to get an error, but got: %T", result) - panic(msg) -} - -/* -UpdateEvent updates an existing event -*/ -func (a *Client) UpdateEvent(params *UpdateEventParams, opts ...ClientOption) (*UpdateEventOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewUpdateEventParams() - } - op := &runtime.ClientOperation{ - ID: "updateEvent", - Method: "PUT", - PathPattern: "/events", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &UpdateEventReader{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 - } - success, ok := result.(*UpdateEventOK) - if ok { - return success, nil - } - // unexpected success response - // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for updateEvent: API contract not enforced by server. Client expected to get an error, but got: %T", result) - panic(msg) -} - -/* -UpdateEventCategory updates an existing event category -*/ -func (a *Client) UpdateEventCategory(params *UpdateEventCategoryParams, opts ...ClientOption) (*UpdateEventCategoryOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewUpdateEventCategoryParams() - } - op := &runtime.ClientOperation{ - ID: "updateEventCategory", - Method: "PUT", - PathPattern: "/eventcategorys", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &UpdateEventCategoryReader{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 - } - success, ok := result.(*UpdateEventCategoryOK) - if ok { - return success, nil - } - // unexpected success response - // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for updateEventCategory: API contract not enforced by server. Client expected to get an error, but got: %T", result) - panic(msg) -} - -/* -UpdateEventCategoryAssignment updates an existing event category assignment -*/ -func (a *Client) UpdateEventCategoryAssignment(params *UpdateEventCategoryAssignmentParams, opts ...ClientOption) (*UpdateEventCategoryAssignmentOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewUpdateEventCategoryAssignmentParams() - } - op := &runtime.ClientOperation{ - ID: "updateEventCategoryAssignment", - Method: "PUT", - PathPattern: "/eventcategoryassignments", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &UpdateEventCategoryAssignmentReader{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 - } - success, ok := result.(*UpdateEventCategoryAssignmentOK) - if ok { - return success, nil - } - // unexpected success response - // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for updateEventCategoryAssignment: API contract not enforced by server. Client expected to get an error, but got: %T", result) - panic(msg) -} - -/* -UpdateFavorite updates an existing favorite -*/ -func (a *Client) UpdateFavorite(params *UpdateFavoriteParams, opts ...ClientOption) (*UpdateFavoriteOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewUpdateFavoriteParams() - } - op := &runtime.ClientOperation{ - ID: "updateFavorite", - Method: "PUT", - PathPattern: "/favorites", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &UpdateFavoriteReader{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 - } - success, ok := result.(*UpdateFavoriteOK) - if ok { - return success, nil - } - // unexpected success response - // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for updateFavorite: API contract not enforced by server. Client expected to get an error, but got: %T", result) - panic(msg) -} - -/* -UpdateInvoice updates an existing invoice -*/ -func (a *Client) UpdateInvoice(params *UpdateInvoiceParams, opts ...ClientOption) (*UpdateInvoiceOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewUpdateInvoiceParams() - } - op := &runtime.ClientOperation{ - ID: "updateInvoice", - Method: "PUT", - PathPattern: "/invoices", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &UpdateInvoiceReader{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 - } - success, ok := result.(*UpdateInvoiceOK) - if ok { - return success, nil - } - // unexpected success response - // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for updateInvoice: API contract not enforced by server. Client expected to get an error, but got: %T", result) - panic(msg) -} - -/* -UpdateIssuedCertificate updates an existing issued certificate -*/ -func (a *Client) UpdateIssuedCertificate(params *UpdateIssuedCertificateParams, opts ...ClientOption) (*UpdateIssuedCertificateOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewUpdateIssuedCertificateParams() - } - op := &runtime.ClientOperation{ - ID: "updateIssuedCertificate", - Method: "PUT", - PathPattern: "/issuedcertificates", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &UpdateIssuedCertificateReader{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 - } - success, ok := result.(*UpdateIssuedCertificateOK) - if ok { - return success, nil - } - // unexpected success response - // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for updateIssuedCertificate: API contract not enforced by server. Client expected to get an error, but got: %T", result) - panic(msg) -} - -/* -UpdateLessonProgress updates an existing lesson progress -*/ -func (a *Client) UpdateLessonProgress(params *UpdateLessonProgressParams, opts ...ClientOption) (*UpdateLessonProgressOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewUpdateLessonProgressParams() - } - op := &runtime.ClientOperation{ - ID: "updateLessonProgress", - Method: "PUT", - PathPattern: "/lessonprogress", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &UpdateLessonProgressReader{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 - } - success, ok := result.(*UpdateLessonProgressOK) - if ok { - return success, nil - } - // unexpected success response - // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for updateLessonProgress: API contract not enforced by server. Client expected to get an error, but got: %T", result) - panic(msg) -} - -/* -UpdateOrder updates an existing order -*/ -func (a *Client) UpdateOrder(params *UpdateOrderParams, opts ...ClientOption) (*UpdateOrderOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewUpdateOrderParams() - } - op := &runtime.ClientOperation{ - ID: "updateOrder", - Method: "PUT", - PathPattern: "/orders", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &UpdateOrderReader{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 - } - success, ok := result.(*UpdateOrderOK) - if ok { - return success, nil - } - // unexpected success response - // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for updateOrder: API contract not enforced by server. Client expected to get an error, but got: %T", result) - panic(msg) -} - -/* -UpdatePaymentMethod updates an existing payment method -*/ -func (a *Client) UpdatePaymentMethod(params *UpdatePaymentMethodParams, opts ...ClientOption) (*UpdatePaymentMethodOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewUpdatePaymentMethodParams() - } - op := &runtime.ClientOperation{ - ID: "updatePaymentMethod", - Method: "PUT", - PathPattern: "/paymentmethods", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &UpdatePaymentMethodReader{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 - } - success, ok := result.(*UpdatePaymentMethodOK) - if ok { - return success, nil - } - // unexpected success response - // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for updatePaymentMethod: API contract not enforced by server. Client expected to get an error, but got: %T", result) - panic(msg) -} - -/* -UpdateResearchProject updates an existing research project -*/ -func (a *Client) UpdateResearchProject(params *UpdateResearchProjectParams, opts ...ClientOption) (*UpdateResearchProjectOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewUpdateResearchProjectParams() - } - op := &runtime.ClientOperation{ - ID: "updateResearchProject", - Method: "PUT", - PathPattern: "/researchprojects", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &UpdateResearchProjectReader{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 - } - success, ok := result.(*UpdateResearchProjectOK) - if ok { - return success, nil - } - // unexpected success response - // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for updateResearchProject: API contract not enforced by server. Client expected to get an error, but got: %T", result) - panic(msg) -} - -/* -UpdateResearchProjectCompany updates an existing research project company -*/ -func (a *Client) UpdateResearchProjectCompany(params *UpdateResearchProjectCompanyParams, opts ...ClientOption) (*UpdateResearchProjectCompanyOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewUpdateResearchProjectCompanyParams() - } - op := &runtime.ClientOperation{ - ID: "updateResearchProjectCompany", - Method: "PUT", - PathPattern: "/researchprojectcompanys", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &UpdateResearchProjectCompanyReader{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 - } - success, ok := result.(*UpdateResearchProjectCompanyOK) - if ok { - return success, nil - } - // unexpected success response - // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for updateResearchProjectCompany: API contract not enforced by server. Client expected to get an error, but got: %T", result) - panic(msg) -} - -/* -UpdateResearchProjectTopic updates an existing research project topic -*/ -func (a *Client) UpdateResearchProjectTopic(params *UpdateResearchProjectTopicParams, opts ...ClientOption) (*UpdateResearchProjectTopicOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewUpdateResearchProjectTopicParams() - } - op := &runtime.ClientOperation{ - ID: "updateResearchProjectTopic", - Method: "PUT", - PathPattern: "/researchprojecttopics", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &UpdateResearchProjectTopicReader{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 - } - success, ok := result.(*UpdateResearchProjectTopicOK) - if ok { - return success, nil - } - // unexpected success response - // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for updateResearchProjectTopic: API contract not enforced by server. Client expected to get an error, but got: %T", result) - panic(msg) -} - -/* -UpdateTicket updates an existing ticket -*/ -func (a *Client) UpdateTicket(params *UpdateTicketParams, opts ...ClientOption) (*UpdateTicketOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewUpdateTicketParams() - } - op := &runtime.ClientOperation{ - ID: "updateTicket", - Method: "PUT", - PathPattern: "/tickets", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &UpdateTicketReader{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 - } - success, ok := result.(*UpdateTicketOK) - if ok { - return success, nil - } - // unexpected success response - // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for updateTicket: API contract not enforced by server. Client expected to get an error, but got: %T", result) - panic(msg) -} - -/* -UpdateTransaction updates an existing transaction -*/ -func (a *Client) UpdateTransaction(params *UpdateTransactionParams, opts ...ClientOption) (*UpdateTransactionOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewUpdateTransactionParams() - } - op := &runtime.ClientOperation{ - ID: "updateTransaction", - Method: "PUT", - PathPattern: "/transactions", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &UpdateTransactionReader{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 - } - success, ok := result.(*UpdateTransactionOK) - if ok { - return success, nil - } - // unexpected success response - // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for updateTransaction: API contract not enforced by server. Client expected to get an error, but got: %T", result) - panic(msg) -} - -// SetTransport changes the transport on the client -func (a *Client) SetTransport(transport runtime.ClientTransport) { - a.transport = transport -} diff --git a/api/members/members_client/operations/create_order_parameters.go b/api/members/members_client/orders/create_order_parameters.go similarity index 99% rename from api/members/members_client/operations/create_order_parameters.go rename to api/members/members_client/orders/create_order_parameters.go index f9262ca..a244092 100644 --- a/api/members/members_client/operations/create_order_parameters.go +++ b/api/members/members_client/orders/create_order_parameters.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package orders // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/operations/create_order_responses.go b/api/members/members_client/orders/create_order_responses.go similarity index 99% rename from api/members/members_client/operations/create_order_responses.go rename to api/members/members_client/orders/create_order_responses.go index b7a77c3..b4a4615 100644 --- a/api/members/members_client/operations/create_order_responses.go +++ b/api/members/members_client/orders/create_order_responses.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package orders // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/operations/delete_order_parameters.go b/api/members/members_client/orders/delete_order_parameters.go similarity index 99% rename from api/members/members_client/operations/delete_order_parameters.go rename to api/members/members_client/orders/delete_order_parameters.go index 8ce28df..7ac7d59 100644 --- a/api/members/members_client/operations/delete_order_parameters.go +++ b/api/members/members_client/orders/delete_order_parameters.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package orders // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/operations/delete_order_responses.go b/api/members/members_client/orders/delete_order_responses.go similarity index 99% rename from api/members/members_client/operations/delete_order_responses.go rename to api/members/members_client/orders/delete_order_responses.go index 7fd8a50..0a809fe 100644 --- a/api/members/members_client/operations/delete_order_responses.go +++ b/api/members/members_client/orders/delete_order_responses.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package orders // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/operations/get_orders_parameters.go b/api/members/members_client/orders/get_orders_parameters.go similarity index 99% rename from api/members/members_client/operations/get_orders_parameters.go rename to api/members/members_client/orders/get_orders_parameters.go index c2686cc..d90b12f 100644 --- a/api/members/members_client/operations/get_orders_parameters.go +++ b/api/members/members_client/orders/get_orders_parameters.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package orders // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/operations/get_orders_responses.go b/api/members/members_client/orders/get_orders_responses.go similarity index 99% rename from api/members/members_client/operations/get_orders_responses.go rename to api/members/members_client/orders/get_orders_responses.go index 5fd17e9..9c481b4 100644 --- a/api/members/members_client/operations/get_orders_responses.go +++ b/api/members/members_client/orders/get_orders_responses.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package orders // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/orders/orders_client.go b/api/members/members_client/orders/orders_client.go new file mode 100644 index 0000000..1ba3730 --- /dev/null +++ b/api/members/members_client/orders/orders_client.go @@ -0,0 +1,203 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package orders + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" +) + +// New creates a new orders API client. +func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService { + return &Client{transport: transport, formats: formats} +} + +/* +Client for orders API +*/ +type Client struct { + transport runtime.ClientTransport + 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 { + CreateOrder(params *CreateOrderParams, opts ...ClientOption) (*CreateOrderCreated, error) + + DeleteOrder(params *DeleteOrderParams, opts ...ClientOption) (*DeleteOrderNoContent, error) + + GetOrders(params *GetOrdersParams, opts ...ClientOption) (*GetOrdersOK, error) + + UpdateOrder(params *UpdateOrderParams, opts ...ClientOption) (*UpdateOrderOK, error) + + SetTransport(transport runtime.ClientTransport) +} + +/* +CreateOrder creates a new order +*/ +func (a *Client) CreateOrder(params *CreateOrderParams, opts ...ClientOption) (*CreateOrderCreated, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewCreateOrderParams() + } + op := &runtime.ClientOperation{ + ID: "createOrder", + Method: "POST", + PathPattern: "/orders", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &CreateOrderReader{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 + } + success, ok := result.(*CreateOrderCreated) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for createOrder: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +DeleteOrder deletes a order +*/ +func (a *Client) DeleteOrder(params *DeleteOrderParams, opts ...ClientOption) (*DeleteOrderNoContent, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewDeleteOrderParams() + } + op := &runtime.ClientOperation{ + ID: "deleteOrder", + Method: "DELETE", + PathPattern: "/orders", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &DeleteOrderReader{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 + } + success, ok := result.(*DeleteOrderNoContent) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for deleteOrder: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +GetOrders gets a list of orders +*/ +func (a *Client) GetOrders(params *GetOrdersParams, opts ...ClientOption) (*GetOrdersOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewGetOrdersParams() + } + op := &runtime.ClientOperation{ + ID: "getOrders", + Method: "GET", + PathPattern: "/orders", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &GetOrdersReader{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 + } + success, ok := result.(*GetOrdersOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for getOrders: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +UpdateOrder updates an existing order +*/ +func (a *Client) UpdateOrder(params *UpdateOrderParams, opts ...ClientOption) (*UpdateOrderOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewUpdateOrderParams() + } + op := &runtime.ClientOperation{ + ID: "updateOrder", + Method: "PUT", + PathPattern: "/orders", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &UpdateOrderReader{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 + } + success, ok := result.(*UpdateOrderOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for updateOrder: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +// SetTransport changes the transport on the client +func (a *Client) SetTransport(transport runtime.ClientTransport) { + a.transport = transport +} diff --git a/api/members/members_client/operations/update_order_parameters.go b/api/members/members_client/orders/update_order_parameters.go similarity index 99% rename from api/members/members_client/operations/update_order_parameters.go rename to api/members/members_client/orders/update_order_parameters.go index e344784..8853d6f 100644 --- a/api/members/members_client/operations/update_order_parameters.go +++ b/api/members/members_client/orders/update_order_parameters.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package orders // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/operations/update_order_responses.go b/api/members/members_client/orders/update_order_responses.go similarity index 99% rename from api/members/members_client/operations/update_order_responses.go rename to api/members/members_client/orders/update_order_responses.go index b969939..de18d13 100644 --- a/api/members/members_client/operations/update_order_responses.go +++ b/api/members/members_client/orders/update_order_responses.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package orders // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/operations/create_payment_method_parameters.go b/api/members/members_client/payment_methods/create_payment_method_parameters.go similarity index 99% rename from api/members/members_client/operations/create_payment_method_parameters.go rename to api/members/members_client/payment_methods/create_payment_method_parameters.go index 3d843ec..1c6ac0b 100644 --- a/api/members/members_client/operations/create_payment_method_parameters.go +++ b/api/members/members_client/payment_methods/create_payment_method_parameters.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package payment_methods // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/operations/create_payment_method_responses.go b/api/members/members_client/payment_methods/create_payment_method_responses.go similarity index 99% rename from api/members/members_client/operations/create_payment_method_responses.go rename to api/members/members_client/payment_methods/create_payment_method_responses.go index 3877710..71b036d 100644 --- a/api/members/members_client/operations/create_payment_method_responses.go +++ b/api/members/members_client/payment_methods/create_payment_method_responses.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package payment_methods // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/operations/delete_payment_method_parameters.go b/api/members/members_client/payment_methods/delete_payment_method_parameters.go similarity index 99% rename from api/members/members_client/operations/delete_payment_method_parameters.go rename to api/members/members_client/payment_methods/delete_payment_method_parameters.go index 6205bf8..1adf7da 100644 --- a/api/members/members_client/operations/delete_payment_method_parameters.go +++ b/api/members/members_client/payment_methods/delete_payment_method_parameters.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package payment_methods // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/operations/delete_payment_method_responses.go b/api/members/members_client/payment_methods/delete_payment_method_responses.go similarity index 99% rename from api/members/members_client/operations/delete_payment_method_responses.go rename to api/members/members_client/payment_methods/delete_payment_method_responses.go index a17a739..d1a8bc4 100644 --- a/api/members/members_client/operations/delete_payment_method_responses.go +++ b/api/members/members_client/payment_methods/delete_payment_method_responses.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package payment_methods // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/operations/get_payment_methods_parameters.go b/api/members/members_client/payment_methods/get_payment_methods_parameters.go similarity index 99% rename from api/members/members_client/operations/get_payment_methods_parameters.go rename to api/members/members_client/payment_methods/get_payment_methods_parameters.go index be3d677..482f89c 100644 --- a/api/members/members_client/operations/get_payment_methods_parameters.go +++ b/api/members/members_client/payment_methods/get_payment_methods_parameters.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package payment_methods // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/operations/get_payment_methods_responses.go b/api/members/members_client/payment_methods/get_payment_methods_responses.go similarity index 99% rename from api/members/members_client/operations/get_payment_methods_responses.go rename to api/members/members_client/payment_methods/get_payment_methods_responses.go index 57d3f7c..7cf46cd 100644 --- a/api/members/members_client/operations/get_payment_methods_responses.go +++ b/api/members/members_client/payment_methods/get_payment_methods_responses.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package payment_methods // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/payment_methods/payment_methods_client.go b/api/members/members_client/payment_methods/payment_methods_client.go new file mode 100644 index 0000000..ab6c74e --- /dev/null +++ b/api/members/members_client/payment_methods/payment_methods_client.go @@ -0,0 +1,203 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package payment_methods + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" +) + +// New creates a new payment methods API client. +func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService { + return &Client{transport: transport, formats: formats} +} + +/* +Client for payment methods API +*/ +type Client struct { + transport runtime.ClientTransport + 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 { + CreatePaymentMethod(params *CreatePaymentMethodParams, opts ...ClientOption) (*CreatePaymentMethodCreated, error) + + DeletePaymentMethod(params *DeletePaymentMethodParams, opts ...ClientOption) (*DeletePaymentMethodNoContent, error) + + GetPaymentMethods(params *GetPaymentMethodsParams, opts ...ClientOption) (*GetPaymentMethodsOK, error) + + UpdatePaymentMethod(params *UpdatePaymentMethodParams, opts ...ClientOption) (*UpdatePaymentMethodOK, error) + + SetTransport(transport runtime.ClientTransport) +} + +/* +CreatePaymentMethod creates a new payment method +*/ +func (a *Client) CreatePaymentMethod(params *CreatePaymentMethodParams, opts ...ClientOption) (*CreatePaymentMethodCreated, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewCreatePaymentMethodParams() + } + op := &runtime.ClientOperation{ + ID: "createPaymentMethod", + Method: "POST", + PathPattern: "/paymentmethods", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &CreatePaymentMethodReader{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 + } + success, ok := result.(*CreatePaymentMethodCreated) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for createPaymentMethod: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +DeletePaymentMethod deletes a payment method +*/ +func (a *Client) DeletePaymentMethod(params *DeletePaymentMethodParams, opts ...ClientOption) (*DeletePaymentMethodNoContent, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewDeletePaymentMethodParams() + } + op := &runtime.ClientOperation{ + ID: "deletePaymentMethod", + Method: "DELETE", + PathPattern: "/paymentmethods", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &DeletePaymentMethodReader{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 + } + success, ok := result.(*DeletePaymentMethodNoContent) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for deletePaymentMethod: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +GetPaymentMethods gets a list of payment methods +*/ +func (a *Client) GetPaymentMethods(params *GetPaymentMethodsParams, opts ...ClientOption) (*GetPaymentMethodsOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewGetPaymentMethodsParams() + } + op := &runtime.ClientOperation{ + ID: "getPaymentMethods", + Method: "GET", + PathPattern: "/paymentmethods", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &GetPaymentMethodsReader{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 + } + success, ok := result.(*GetPaymentMethodsOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for getPaymentMethods: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +UpdatePaymentMethod updates an existing payment method +*/ +func (a *Client) UpdatePaymentMethod(params *UpdatePaymentMethodParams, opts ...ClientOption) (*UpdatePaymentMethodOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewUpdatePaymentMethodParams() + } + op := &runtime.ClientOperation{ + ID: "updatePaymentMethod", + Method: "PUT", + PathPattern: "/paymentmethods", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &UpdatePaymentMethodReader{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 + } + success, ok := result.(*UpdatePaymentMethodOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for updatePaymentMethod: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +// SetTransport changes the transport on the client +func (a *Client) SetTransport(transport runtime.ClientTransport) { + a.transport = transport +} diff --git a/api/members/members_client/operations/update_payment_method_parameters.go b/api/members/members_client/payment_methods/update_payment_method_parameters.go similarity index 99% rename from api/members/members_client/operations/update_payment_method_parameters.go rename to api/members/members_client/payment_methods/update_payment_method_parameters.go index d596f5a..f4dd281 100644 --- a/api/members/members_client/operations/update_payment_method_parameters.go +++ b/api/members/members_client/payment_methods/update_payment_method_parameters.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package payment_methods // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/operations/update_payment_method_responses.go b/api/members/members_client/payment_methods/update_payment_method_responses.go similarity index 99% rename from api/members/members_client/operations/update_payment_method_responses.go rename to api/members/members_client/payment_methods/update_payment_method_responses.go index d1f9a9b..cc156cb 100644 --- a/api/members/members_client/operations/update_payment_method_responses.go +++ b/api/members/members_client/payment_methods/update_payment_method_responses.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package payment_methods // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/operations/create_research_project_company_parameters.go b/api/members/members_client/research_project_companies/create_research_project_company_parameters.go similarity index 99% rename from api/members/members_client/operations/create_research_project_company_parameters.go rename to api/members/members_client/research_project_companies/create_research_project_company_parameters.go index f50fde4..2cd9ed7 100644 --- a/api/members/members_client/operations/create_research_project_company_parameters.go +++ b/api/members/members_client/research_project_companies/create_research_project_company_parameters.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package research_project_companies // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/operations/create_research_project_company_responses.go b/api/members/members_client/research_project_companies/create_research_project_company_responses.go similarity index 98% rename from api/members/members_client/operations/create_research_project_company_responses.go rename to api/members/members_client/research_project_companies/create_research_project_company_responses.go index d7617c0..2935690 100644 --- a/api/members/members_client/operations/create_research_project_company_responses.go +++ b/api/members/members_client/research_project_companies/create_research_project_company_responses.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package research_project_companies // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/operations/delete_research_project_company_parameters.go b/api/members/members_client/research_project_companies/delete_research_project_company_parameters.go similarity index 99% rename from api/members/members_client/operations/delete_research_project_company_parameters.go rename to api/members/members_client/research_project_companies/delete_research_project_company_parameters.go index 88d667f..103636e 100644 --- a/api/members/members_client/operations/delete_research_project_company_parameters.go +++ b/api/members/members_client/research_project_companies/delete_research_project_company_parameters.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package research_project_companies // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/operations/delete_research_project_company_responses.go b/api/members/members_client/research_project_companies/delete_research_project_company_responses.go similarity index 98% rename from api/members/members_client/operations/delete_research_project_company_responses.go rename to api/members/members_client/research_project_companies/delete_research_project_company_responses.go index ad3235d..bcd45f9 100644 --- a/api/members/members_client/operations/delete_research_project_company_responses.go +++ b/api/members/members_client/research_project_companies/delete_research_project_company_responses.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package research_project_companies // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/operations/get_research_project_companys_parameters.go b/api/members/members_client/research_project_companies/get_research_project_companies_parameters.go similarity index 52% rename from api/members/members_client/operations/get_research_project_companys_parameters.go rename to api/members/members_client/research_project_companies/get_research_project_companies_parameters.go index cdf2c65..a18e108 100644 --- a/api/members/members_client/operations/get_research_project_companys_parameters.go +++ b/api/members/members_client/research_project_companies/get_research_project_companies_parameters.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package research_project_companies // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command @@ -21,50 +21,50 @@ import ( "github.com/go-openapi/swag" ) -// NewGetResearchProjectCompanysParams creates a new GetResearchProjectCompanysParams object, +// NewGetResearchProjectCompaniesParams creates a new GetResearchProjectCompaniesParams 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 NewGetResearchProjectCompanysParams() *GetResearchProjectCompanysParams { - return &GetResearchProjectCompanysParams{ +func NewGetResearchProjectCompaniesParams() *GetResearchProjectCompaniesParams { + return &GetResearchProjectCompaniesParams{ timeout: cr.DefaultTimeout, } } -// NewGetResearchProjectCompanysParamsWithTimeout creates a new GetResearchProjectCompanysParams object +// NewGetResearchProjectCompaniesParamsWithTimeout creates a new GetResearchProjectCompaniesParams object // with the ability to set a timeout on a request. -func NewGetResearchProjectCompanysParamsWithTimeout(timeout time.Duration) *GetResearchProjectCompanysParams { - return &GetResearchProjectCompanysParams{ +func NewGetResearchProjectCompaniesParamsWithTimeout(timeout time.Duration) *GetResearchProjectCompaniesParams { + return &GetResearchProjectCompaniesParams{ timeout: timeout, } } -// NewGetResearchProjectCompanysParamsWithContext creates a new GetResearchProjectCompanysParams object +// NewGetResearchProjectCompaniesParamsWithContext creates a new GetResearchProjectCompaniesParams object // with the ability to set a context for a request. -func NewGetResearchProjectCompanysParamsWithContext(ctx context.Context) *GetResearchProjectCompanysParams { - return &GetResearchProjectCompanysParams{ +func NewGetResearchProjectCompaniesParamsWithContext(ctx context.Context) *GetResearchProjectCompaniesParams { + return &GetResearchProjectCompaniesParams{ Context: ctx, } } -// NewGetResearchProjectCompanysParamsWithHTTPClient creates a new GetResearchProjectCompanysParams object +// NewGetResearchProjectCompaniesParamsWithHTTPClient creates a new GetResearchProjectCompaniesParams object // with the ability to set a custom HTTPClient for a request. -func NewGetResearchProjectCompanysParamsWithHTTPClient(client *http.Client) *GetResearchProjectCompanysParams { - return &GetResearchProjectCompanysParams{ +func NewGetResearchProjectCompaniesParamsWithHTTPClient(client *http.Client) *GetResearchProjectCompaniesParams { + return &GetResearchProjectCompaniesParams{ HTTPClient: client, } } /* -GetResearchProjectCompanysParams contains all the parameters to send to the API endpoint +GetResearchProjectCompaniesParams contains all the parameters to send to the API endpoint - for the get research project companys operation. + for the get research project companies operation. Typically these are written to a http.Request. */ -type GetResearchProjectCompanysParams struct { +type GetResearchProjectCompaniesParams struct { /* ID. @@ -93,89 +93,89 @@ type GetResearchProjectCompanysParams struct { HTTPClient *http.Client } -// WithDefaults hydrates default values in the get research project companys params (not the query body). +// WithDefaults hydrates default values in the get research project companies params (not the query body). // // All values with no default are reset to their zero value. -func (o *GetResearchProjectCompanysParams) WithDefaults() *GetResearchProjectCompanysParams { +func (o *GetResearchProjectCompaniesParams) WithDefaults() *GetResearchProjectCompaniesParams { o.SetDefaults() return o } -// SetDefaults hydrates default values in the get research project companys params (not the query body). +// SetDefaults hydrates default values in the get research project companies params (not the query body). // // All values with no default are reset to their zero value. -func (o *GetResearchProjectCompanysParams) SetDefaults() { +func (o *GetResearchProjectCompaniesParams) SetDefaults() { // no default values defined for this parameter } -// WithTimeout adds the timeout to the get research project companys params -func (o *GetResearchProjectCompanysParams) WithTimeout(timeout time.Duration) *GetResearchProjectCompanysParams { +// WithTimeout adds the timeout to the get research project companies params +func (o *GetResearchProjectCompaniesParams) WithTimeout(timeout time.Duration) *GetResearchProjectCompaniesParams { o.SetTimeout(timeout) return o } -// SetTimeout adds the timeout to the get research project companys params -func (o *GetResearchProjectCompanysParams) SetTimeout(timeout time.Duration) { +// SetTimeout adds the timeout to the get research project companies params +func (o *GetResearchProjectCompaniesParams) SetTimeout(timeout time.Duration) { o.timeout = timeout } -// WithContext adds the context to the get research project companys params -func (o *GetResearchProjectCompanysParams) WithContext(ctx context.Context) *GetResearchProjectCompanysParams { +// WithContext adds the context to the get research project companies params +func (o *GetResearchProjectCompaniesParams) WithContext(ctx context.Context) *GetResearchProjectCompaniesParams { o.SetContext(ctx) return o } -// SetContext adds the context to the get research project companys params -func (o *GetResearchProjectCompanysParams) SetContext(ctx context.Context) { +// SetContext adds the context to the get research project companies params +func (o *GetResearchProjectCompaniesParams) SetContext(ctx context.Context) { o.Context = ctx } -// WithHTTPClient adds the HTTPClient to the get research project companys params -func (o *GetResearchProjectCompanysParams) WithHTTPClient(client *http.Client) *GetResearchProjectCompanysParams { +// WithHTTPClient adds the HTTPClient to the get research project companies params +func (o *GetResearchProjectCompaniesParams) WithHTTPClient(client *http.Client) *GetResearchProjectCompaniesParams { o.SetHTTPClient(client) return o } -// SetHTTPClient adds the HTTPClient to the get research project companys params -func (o *GetResearchProjectCompanysParams) SetHTTPClient(client *http.Client) { +// SetHTTPClient adds the HTTPClient to the get research project companies params +func (o *GetResearchProjectCompaniesParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } -// WithID adds the id to the get research project companys params -func (o *GetResearchProjectCompanysParams) WithID(id *string) *GetResearchProjectCompanysParams { +// WithID adds the id to the get research project companies params +func (o *GetResearchProjectCompaniesParams) WithID(id *string) *GetResearchProjectCompaniesParams { o.SetID(id) return o } -// SetID adds the id to the get research project companys params -func (o *GetResearchProjectCompanysParams) SetID(id *string) { +// SetID adds the id to the get research project companies params +func (o *GetResearchProjectCompaniesParams) SetID(id *string) { o.ID = id } -// WithLimit adds the limit to the get research project companys params -func (o *GetResearchProjectCompanysParams) WithLimit(limit *int64) *GetResearchProjectCompanysParams { +// WithLimit adds the limit to the get research project companies params +func (o *GetResearchProjectCompaniesParams) WithLimit(limit *int64) *GetResearchProjectCompaniesParams { o.SetLimit(limit) return o } -// SetLimit adds the limit to the get research project companys params -func (o *GetResearchProjectCompanysParams) SetLimit(limit *int64) { +// SetLimit adds the limit to the get research project companies params +func (o *GetResearchProjectCompaniesParams) SetLimit(limit *int64) { o.Limit = limit } -// WithOffset adds the offset to the get research project companys params -func (o *GetResearchProjectCompanysParams) WithOffset(offset *int64) *GetResearchProjectCompanysParams { +// WithOffset adds the offset to the get research project companies params +func (o *GetResearchProjectCompaniesParams) WithOffset(offset *int64) *GetResearchProjectCompaniesParams { o.SetOffset(offset) return o } -// SetOffset adds the offset to the get research project companys params -func (o *GetResearchProjectCompanysParams) SetOffset(offset *int64) { +// SetOffset adds the offset to the get research project companies params +func (o *GetResearchProjectCompaniesParams) SetOffset(offset *int64) { o.Offset = offset } // WriteToRequest writes these params to a swagger request -func (o *GetResearchProjectCompanysParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { +func (o *GetResearchProjectCompaniesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err diff --git a/api/members/members_client/research_project_companies/get_research_project_companies_responses.go b/api/members/members_client/research_project_companies/get_research_project_companies_responses.go new file mode 100644 index 0000000..b096c1e --- /dev/null +++ b/api/members/members_client/research_project_companies/get_research_project_companies_responses.go @@ -0,0 +1,92 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package research_project_companies + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" +) + +// GetResearchProjectCompaniesReader is a Reader for the GetResearchProjectCompanies structure. +type GetResearchProjectCompaniesReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *GetResearchProjectCompaniesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 200: + result := NewGetResearchProjectCompaniesOK() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewGetResearchProjectCompaniesOK creates a GetResearchProjectCompaniesOK with default headers values +func NewGetResearchProjectCompaniesOK() *GetResearchProjectCompaniesOK { + return &GetResearchProjectCompaniesOK{} +} + +/* +GetResearchProjectCompaniesOK describes a response with status code 200, with default header values. + +OK +*/ +type GetResearchProjectCompaniesOK struct { +} + +// IsSuccess returns true when this get research project companies o k response has a 2xx status code +func (o *GetResearchProjectCompaniesOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get research project companies o k response has a 3xx status code +func (o *GetResearchProjectCompaniesOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get research project companies o k response has a 4xx status code +func (o *GetResearchProjectCompaniesOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get research project companies o k response has a 5xx status code +func (o *GetResearchProjectCompaniesOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get research project companies o k response a status code equal to that given +func (o *GetResearchProjectCompaniesOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get research project companies o k response +func (o *GetResearchProjectCompaniesOK) Code() int { + return 200 +} + +func (o *GetResearchProjectCompaniesOK) Error() string { + return fmt.Sprintf("[GET /researchprojectcompanys][%d] getResearchProjectCompaniesOK ", 200) +} + +func (o *GetResearchProjectCompaniesOK) String() string { + return fmt.Sprintf("[GET /researchprojectcompanys][%d] getResearchProjectCompaniesOK ", 200) +} + +func (o *GetResearchProjectCompaniesOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + return nil +} diff --git a/api/members/members_client/research_project_companies/research_project_companies_client.go b/api/members/members_client/research_project_companies/research_project_companies_client.go new file mode 100644 index 0000000..f392fbe --- /dev/null +++ b/api/members/members_client/research_project_companies/research_project_companies_client.go @@ -0,0 +1,203 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package research_project_companies + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" +) + +// New creates a new research project companies API client. +func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService { + return &Client{transport: transport, formats: formats} +} + +/* +Client for research project companies API +*/ +type Client struct { + transport runtime.ClientTransport + 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 { + CreateResearchProjectCompany(params *CreateResearchProjectCompanyParams, opts ...ClientOption) (*CreateResearchProjectCompanyCreated, error) + + DeleteResearchProjectCompany(params *DeleteResearchProjectCompanyParams, opts ...ClientOption) (*DeleteResearchProjectCompanyNoContent, error) + + GetResearchProjectCompanies(params *GetResearchProjectCompaniesParams, opts ...ClientOption) (*GetResearchProjectCompaniesOK, error) + + UpdateResearchProjectCompany(params *UpdateResearchProjectCompanyParams, opts ...ClientOption) (*UpdateResearchProjectCompanyOK, error) + + SetTransport(transport runtime.ClientTransport) +} + +/* +CreateResearchProjectCompany creates a new research project company +*/ +func (a *Client) CreateResearchProjectCompany(params *CreateResearchProjectCompanyParams, opts ...ClientOption) (*CreateResearchProjectCompanyCreated, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewCreateResearchProjectCompanyParams() + } + op := &runtime.ClientOperation{ + ID: "createResearchProjectCompany", + Method: "POST", + PathPattern: "/researchprojectcompanys", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &CreateResearchProjectCompanyReader{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 + } + success, ok := result.(*CreateResearchProjectCompanyCreated) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for createResearchProjectCompany: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +DeleteResearchProjectCompany deletes a research project company +*/ +func (a *Client) DeleteResearchProjectCompany(params *DeleteResearchProjectCompanyParams, opts ...ClientOption) (*DeleteResearchProjectCompanyNoContent, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewDeleteResearchProjectCompanyParams() + } + op := &runtime.ClientOperation{ + ID: "deleteResearchProjectCompany", + Method: "DELETE", + PathPattern: "/researchprojectcompanys", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &DeleteResearchProjectCompanyReader{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 + } + success, ok := result.(*DeleteResearchProjectCompanyNoContent) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for deleteResearchProjectCompany: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +GetResearchProjectCompanies gets a list of research project companies +*/ +func (a *Client) GetResearchProjectCompanies(params *GetResearchProjectCompaniesParams, opts ...ClientOption) (*GetResearchProjectCompaniesOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewGetResearchProjectCompaniesParams() + } + op := &runtime.ClientOperation{ + ID: "getResearchProjectCompanies", + Method: "GET", + PathPattern: "/researchprojectcompanys", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &GetResearchProjectCompaniesReader{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 + } + success, ok := result.(*GetResearchProjectCompaniesOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for getResearchProjectCompanies: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +UpdateResearchProjectCompany updates an existing research project company +*/ +func (a *Client) UpdateResearchProjectCompany(params *UpdateResearchProjectCompanyParams, opts ...ClientOption) (*UpdateResearchProjectCompanyOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewUpdateResearchProjectCompanyParams() + } + op := &runtime.ClientOperation{ + ID: "updateResearchProjectCompany", + Method: "PUT", + PathPattern: "/researchprojectcompanys", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &UpdateResearchProjectCompanyReader{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 + } + success, ok := result.(*UpdateResearchProjectCompanyOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for updateResearchProjectCompany: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +// SetTransport changes the transport on the client +func (a *Client) SetTransport(transport runtime.ClientTransport) { + a.transport = transport +} diff --git a/api/members/members_client/operations/update_research_project_company_parameters.go b/api/members/members_client/research_project_companies/update_research_project_company_parameters.go similarity index 99% rename from api/members/members_client/operations/update_research_project_company_parameters.go rename to api/members/members_client/research_project_companies/update_research_project_company_parameters.go index 9bd89d7..b0daa2f 100644 --- a/api/members/members_client/operations/update_research_project_company_parameters.go +++ b/api/members/members_client/research_project_companies/update_research_project_company_parameters.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package research_project_companies // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/operations/update_research_project_company_responses.go b/api/members/members_client/research_project_companies/update_research_project_company_responses.go similarity index 98% rename from api/members/members_client/operations/update_research_project_company_responses.go rename to api/members/members_client/research_project_companies/update_research_project_company_responses.go index 35d05d7..a05912e 100644 --- a/api/members/members_client/operations/update_research_project_company_responses.go +++ b/api/members/members_client/research_project_companies/update_research_project_company_responses.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package research_project_companies // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/operations/create_research_project_topic_parameters.go b/api/members/members_client/research_project_topics/create_research_project_topic_parameters.go similarity index 99% rename from api/members/members_client/operations/create_research_project_topic_parameters.go rename to api/members/members_client/research_project_topics/create_research_project_topic_parameters.go index 7977a73..526e623 100644 --- a/api/members/members_client/operations/create_research_project_topic_parameters.go +++ b/api/members/members_client/research_project_topics/create_research_project_topic_parameters.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package research_project_topics // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/operations/create_research_project_topic_responses.go b/api/members/members_client/research_project_topics/create_research_project_topic_responses.go similarity index 99% rename from api/members/members_client/operations/create_research_project_topic_responses.go rename to api/members/members_client/research_project_topics/create_research_project_topic_responses.go index 16002cf..c9ac693 100644 --- a/api/members/members_client/operations/create_research_project_topic_responses.go +++ b/api/members/members_client/research_project_topics/create_research_project_topic_responses.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package research_project_topics // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/operations/delete_research_project_topic_parameters.go b/api/members/members_client/research_project_topics/delete_research_project_topic_parameters.go similarity index 99% rename from api/members/members_client/operations/delete_research_project_topic_parameters.go rename to api/members/members_client/research_project_topics/delete_research_project_topic_parameters.go index e99319a..1f72092 100644 --- a/api/members/members_client/operations/delete_research_project_topic_parameters.go +++ b/api/members/members_client/research_project_topics/delete_research_project_topic_parameters.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package research_project_topics // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/operations/delete_research_project_topic_responses.go b/api/members/members_client/research_project_topics/delete_research_project_topic_responses.go similarity index 99% rename from api/members/members_client/operations/delete_research_project_topic_responses.go rename to api/members/members_client/research_project_topics/delete_research_project_topic_responses.go index 35f5ce9..9300c3e 100644 --- a/api/members/members_client/operations/delete_research_project_topic_responses.go +++ b/api/members/members_client/research_project_topics/delete_research_project_topic_responses.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package research_project_topics // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/operations/get_research_project_topics_parameters.go b/api/members/members_client/research_project_topics/get_research_project_topics_parameters.go similarity index 99% rename from api/members/members_client/operations/get_research_project_topics_parameters.go rename to api/members/members_client/research_project_topics/get_research_project_topics_parameters.go index 27af583..e07456b 100644 --- a/api/members/members_client/operations/get_research_project_topics_parameters.go +++ b/api/members/members_client/research_project_topics/get_research_project_topics_parameters.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package research_project_topics // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/operations/get_research_project_topics_responses.go b/api/members/members_client/research_project_topics/get_research_project_topics_responses.go similarity index 98% rename from api/members/members_client/operations/get_research_project_topics_responses.go rename to api/members/members_client/research_project_topics/get_research_project_topics_responses.go index 5f3ecfe..96311b5 100644 --- a/api/members/members_client/operations/get_research_project_topics_responses.go +++ b/api/members/members_client/research_project_topics/get_research_project_topics_responses.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package research_project_topics // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/research_project_topics/research_project_topics_client.go b/api/members/members_client/research_project_topics/research_project_topics_client.go new file mode 100644 index 0000000..36fd7a8 --- /dev/null +++ b/api/members/members_client/research_project_topics/research_project_topics_client.go @@ -0,0 +1,203 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package research_project_topics + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" +) + +// New creates a new research project topics API client. +func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService { + return &Client{transport: transport, formats: formats} +} + +/* +Client for research project topics API +*/ +type Client struct { + transport runtime.ClientTransport + 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 { + CreateResearchProjectTopic(params *CreateResearchProjectTopicParams, opts ...ClientOption) (*CreateResearchProjectTopicCreated, error) + + DeleteResearchProjectTopic(params *DeleteResearchProjectTopicParams, opts ...ClientOption) (*DeleteResearchProjectTopicNoContent, error) + + GetResearchProjectTopics(params *GetResearchProjectTopicsParams, opts ...ClientOption) (*GetResearchProjectTopicsOK, error) + + UpdateResearchProjectTopic(params *UpdateResearchProjectTopicParams, opts ...ClientOption) (*UpdateResearchProjectTopicOK, error) + + SetTransport(transport runtime.ClientTransport) +} + +/* +CreateResearchProjectTopic creates a new research project topic +*/ +func (a *Client) CreateResearchProjectTopic(params *CreateResearchProjectTopicParams, opts ...ClientOption) (*CreateResearchProjectTopicCreated, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewCreateResearchProjectTopicParams() + } + op := &runtime.ClientOperation{ + ID: "createResearchProjectTopic", + Method: "POST", + PathPattern: "/researchprojecttopics", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &CreateResearchProjectTopicReader{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 + } + success, ok := result.(*CreateResearchProjectTopicCreated) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for createResearchProjectTopic: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +DeleteResearchProjectTopic deletes a research project topic +*/ +func (a *Client) DeleteResearchProjectTopic(params *DeleteResearchProjectTopicParams, opts ...ClientOption) (*DeleteResearchProjectTopicNoContent, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewDeleteResearchProjectTopicParams() + } + op := &runtime.ClientOperation{ + ID: "deleteResearchProjectTopic", + Method: "DELETE", + PathPattern: "/researchprojecttopics", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &DeleteResearchProjectTopicReader{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 + } + success, ok := result.(*DeleteResearchProjectTopicNoContent) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for deleteResearchProjectTopic: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +GetResearchProjectTopics gets a list of research project topics +*/ +func (a *Client) GetResearchProjectTopics(params *GetResearchProjectTopicsParams, opts ...ClientOption) (*GetResearchProjectTopicsOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewGetResearchProjectTopicsParams() + } + op := &runtime.ClientOperation{ + ID: "getResearchProjectTopics", + Method: "GET", + PathPattern: "/researchprojecttopics", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &GetResearchProjectTopicsReader{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 + } + success, ok := result.(*GetResearchProjectTopicsOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for getResearchProjectTopics: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +UpdateResearchProjectTopic updates an existing research project topic +*/ +func (a *Client) UpdateResearchProjectTopic(params *UpdateResearchProjectTopicParams, opts ...ClientOption) (*UpdateResearchProjectTopicOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewUpdateResearchProjectTopicParams() + } + op := &runtime.ClientOperation{ + ID: "updateResearchProjectTopic", + Method: "PUT", + PathPattern: "/researchprojecttopics", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &UpdateResearchProjectTopicReader{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 + } + success, ok := result.(*UpdateResearchProjectTopicOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for updateResearchProjectTopic: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +// SetTransport changes the transport on the client +func (a *Client) SetTransport(transport runtime.ClientTransport) { + a.transport = transport +} diff --git a/api/members/members_client/operations/update_research_project_topic_parameters.go b/api/members/members_client/research_project_topics/update_research_project_topic_parameters.go similarity index 99% rename from api/members/members_client/operations/update_research_project_topic_parameters.go rename to api/members/members_client/research_project_topics/update_research_project_topic_parameters.go index ad4f36b..4619388 100644 --- a/api/members/members_client/operations/update_research_project_topic_parameters.go +++ b/api/members/members_client/research_project_topics/update_research_project_topic_parameters.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package research_project_topics // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/operations/update_research_project_topic_responses.go b/api/members/members_client/research_project_topics/update_research_project_topic_responses.go similarity index 98% rename from api/members/members_client/operations/update_research_project_topic_responses.go rename to api/members/members_client/research_project_topics/update_research_project_topic_responses.go index 0156508..ee3cdfd 100644 --- a/api/members/members_client/operations/update_research_project_topic_responses.go +++ b/api/members/members_client/research_project_topics/update_research_project_topic_responses.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package research_project_topics // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/operations/create_research_project_parameters.go b/api/members/members_client/research_projects/create_research_project_parameters.go similarity index 99% rename from api/members/members_client/operations/create_research_project_parameters.go rename to api/members/members_client/research_projects/create_research_project_parameters.go index 11aed37..3c43c50 100644 --- a/api/members/members_client/operations/create_research_project_parameters.go +++ b/api/members/members_client/research_projects/create_research_project_parameters.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package research_projects // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/operations/create_research_project_responses.go b/api/members/members_client/research_projects/create_research_project_responses.go similarity index 99% rename from api/members/members_client/operations/create_research_project_responses.go rename to api/members/members_client/research_projects/create_research_project_responses.go index 53048aa..f0f8220 100644 --- a/api/members/members_client/operations/create_research_project_responses.go +++ b/api/members/members_client/research_projects/create_research_project_responses.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package research_projects // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/operations/delete_research_project_parameters.go b/api/members/members_client/research_projects/delete_research_project_parameters.go similarity index 99% rename from api/members/members_client/operations/delete_research_project_parameters.go rename to api/members/members_client/research_projects/delete_research_project_parameters.go index 0582424..c8979f0 100644 --- a/api/members/members_client/operations/delete_research_project_parameters.go +++ b/api/members/members_client/research_projects/delete_research_project_parameters.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package research_projects // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/operations/delete_research_project_responses.go b/api/members/members_client/research_projects/delete_research_project_responses.go similarity index 99% rename from api/members/members_client/operations/delete_research_project_responses.go rename to api/members/members_client/research_projects/delete_research_project_responses.go index fcafe88..2fa28a4 100644 --- a/api/members/members_client/operations/delete_research_project_responses.go +++ b/api/members/members_client/research_projects/delete_research_project_responses.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package research_projects // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/operations/get_research_projects_parameters.go b/api/members/members_client/research_projects/get_research_projects_parameters.go similarity index 99% rename from api/members/members_client/operations/get_research_projects_parameters.go rename to api/members/members_client/research_projects/get_research_projects_parameters.go index a6bc20d..2c262ff 100644 --- a/api/members/members_client/operations/get_research_projects_parameters.go +++ b/api/members/members_client/research_projects/get_research_projects_parameters.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package research_projects // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/operations/get_research_projects_responses.go b/api/members/members_client/research_projects/get_research_projects_responses.go similarity index 99% rename from api/members/members_client/operations/get_research_projects_responses.go rename to api/members/members_client/research_projects/get_research_projects_responses.go index 65e4ffb..4531c6b 100644 --- a/api/members/members_client/operations/get_research_projects_responses.go +++ b/api/members/members_client/research_projects/get_research_projects_responses.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package research_projects // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/research_projects/research_projects_client.go b/api/members/members_client/research_projects/research_projects_client.go new file mode 100644 index 0000000..bdaf93c --- /dev/null +++ b/api/members/members_client/research_projects/research_projects_client.go @@ -0,0 +1,203 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package research_projects + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" +) + +// New creates a new research projects API client. +func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService { + return &Client{transport: transport, formats: formats} +} + +/* +Client for research projects API +*/ +type Client struct { + transport runtime.ClientTransport + 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 { + CreateResearchProject(params *CreateResearchProjectParams, opts ...ClientOption) (*CreateResearchProjectCreated, error) + + DeleteResearchProject(params *DeleteResearchProjectParams, opts ...ClientOption) (*DeleteResearchProjectNoContent, error) + + GetResearchProjects(params *GetResearchProjectsParams, opts ...ClientOption) (*GetResearchProjectsOK, error) + + UpdateResearchProject(params *UpdateResearchProjectParams, opts ...ClientOption) (*UpdateResearchProjectOK, error) + + SetTransport(transport runtime.ClientTransport) +} + +/* +CreateResearchProject creates a new research project +*/ +func (a *Client) CreateResearchProject(params *CreateResearchProjectParams, opts ...ClientOption) (*CreateResearchProjectCreated, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewCreateResearchProjectParams() + } + op := &runtime.ClientOperation{ + ID: "createResearchProject", + Method: "POST", + PathPattern: "/researchprojects", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &CreateResearchProjectReader{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 + } + success, ok := result.(*CreateResearchProjectCreated) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for createResearchProject: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +DeleteResearchProject deletes a research project +*/ +func (a *Client) DeleteResearchProject(params *DeleteResearchProjectParams, opts ...ClientOption) (*DeleteResearchProjectNoContent, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewDeleteResearchProjectParams() + } + op := &runtime.ClientOperation{ + ID: "deleteResearchProject", + Method: "DELETE", + PathPattern: "/researchprojects", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &DeleteResearchProjectReader{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 + } + success, ok := result.(*DeleteResearchProjectNoContent) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for deleteResearchProject: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +GetResearchProjects gets a list of research projects +*/ +func (a *Client) GetResearchProjects(params *GetResearchProjectsParams, opts ...ClientOption) (*GetResearchProjectsOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewGetResearchProjectsParams() + } + op := &runtime.ClientOperation{ + ID: "getResearchProjects", + Method: "GET", + PathPattern: "/researchprojects", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &GetResearchProjectsReader{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 + } + success, ok := result.(*GetResearchProjectsOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for getResearchProjects: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +UpdateResearchProject updates an existing research project +*/ +func (a *Client) UpdateResearchProject(params *UpdateResearchProjectParams, opts ...ClientOption) (*UpdateResearchProjectOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewUpdateResearchProjectParams() + } + op := &runtime.ClientOperation{ + ID: "updateResearchProject", + Method: "PUT", + PathPattern: "/researchprojects", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &UpdateResearchProjectReader{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 + } + success, ok := result.(*UpdateResearchProjectOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for updateResearchProject: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +// SetTransport changes the transport on the client +func (a *Client) SetTransport(transport runtime.ClientTransport) { + a.transport = transport +} diff --git a/api/members/members_client/operations/update_research_project_parameters.go b/api/members/members_client/research_projects/update_research_project_parameters.go similarity index 99% rename from api/members/members_client/operations/update_research_project_parameters.go rename to api/members/members_client/research_projects/update_research_project_parameters.go index 2bad99b..56352d3 100644 --- a/api/members/members_client/operations/update_research_project_parameters.go +++ b/api/members/members_client/research_projects/update_research_project_parameters.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package research_projects // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/operations/update_research_project_responses.go b/api/members/members_client/research_projects/update_research_project_responses.go similarity index 99% rename from api/members/members_client/operations/update_research_project_responses.go rename to api/members/members_client/research_projects/update_research_project_responses.go index a30fe82..ce6512a 100644 --- a/api/members/members_client/operations/update_research_project_responses.go +++ b/api/members/members_client/research_projects/update_research_project_responses.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package research_projects // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/devops/devops_client/template/get_templates_parameters.go b/api/members/members_client/templates/get_templates_parameters.go similarity index 99% rename from api/devops/devops_client/template/get_templates_parameters.go rename to api/members/members_client/templates/get_templates_parameters.go index 34fb058..870bcec 100644 --- a/api/devops/devops_client/template/get_templates_parameters.go +++ b/api/members/members_client/templates/get_templates_parameters.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package template +package templates // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command @@ -94,7 +94,7 @@ type GetTemplatesParams struct { /* Offset. - How many objects to skip? (default 0) + How many objects to skip? Format: int64 */ diff --git a/api/devops/devops_client/template/get_templates_responses.go b/api/members/members_client/templates/get_templates_responses.go similarity index 94% rename from api/devops/devops_client/template/get_templates_responses.go rename to api/members/members_client/templates/get_templates_responses.go index 5f42221..0f031a5 100644 --- a/api/devops/devops_client/template/get_templates_responses.go +++ b/api/members/members_client/templates/get_templates_responses.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package template +package templates // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command @@ -16,7 +16,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "code.tnxs.net/vernonkeenan/lib/api/devops/devops_models" + "code.tnxs.net/vernonkeenan/lib/api/members/members_models" ) // GetTemplatesReader is a Reader for the GetTemplates structure. @@ -82,7 +82,7 @@ type GetTemplatesOK struct { AccessControlAllowOrigin string CacheControl string - Payload *devops_models.TemplateResponse + Payload *members_models.TemplateResponse } // IsSuccess returns true when this get templates o k response has a 2xx status code @@ -123,7 +123,7 @@ func (o *GetTemplatesOK) String() string { return fmt.Sprintf("[GET /templates][%d] getTemplatesOK %+v", 200, o.Payload) } -func (o *GetTemplatesOK) GetPayload() *devops_models.TemplateResponse { +func (o *GetTemplatesOK) GetPayload() *members_models.TemplateResponse { return o.Payload } @@ -143,7 +143,7 @@ func (o *GetTemplatesOK) readResponse(response runtime.ClientResponse, consumer o.CacheControl = hdrCacheControl } - o.Payload = new(devops_models.TemplateResponse) + o.Payload = new(members_models.TemplateResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { @@ -167,7 +167,7 @@ type GetTemplatesUnauthorized struct { AccessControlAllowOrigin string CacheControl string - Payload *devops_models.Error + Payload *members_models.Error } // IsSuccess returns true when this get templates unauthorized response has a 2xx status code @@ -208,7 +208,7 @@ func (o *GetTemplatesUnauthorized) String() string { return fmt.Sprintf("[GET /templates][%d] getTemplatesUnauthorized %+v", 401, o.Payload) } -func (o *GetTemplatesUnauthorized) GetPayload() *devops_models.Error { +func (o *GetTemplatesUnauthorized) GetPayload() *members_models.Error { return o.Payload } @@ -228,7 +228,7 @@ func (o *GetTemplatesUnauthorized) readResponse(response runtime.ClientResponse, o.CacheControl = hdrCacheControl } - o.Payload = new(devops_models.Error) + o.Payload = new(members_models.Error) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { @@ -251,7 +251,7 @@ Access forbidden, account lacks access type GetTemplatesForbidden struct { AccessControlAllowOrigin string - Payload *devops_models.Error + Payload *members_models.Error } // IsSuccess returns true when this get templates forbidden response has a 2xx status code @@ -292,7 +292,7 @@ func (o *GetTemplatesForbidden) String() string { return fmt.Sprintf("[GET /templates][%d] getTemplatesForbidden %+v", 403, o.Payload) } -func (o *GetTemplatesForbidden) GetPayload() *devops_models.Error { +func (o *GetTemplatesForbidden) GetPayload() *members_models.Error { return o.Payload } @@ -305,7 +305,7 @@ func (o *GetTemplatesForbidden) readResponse(response runtime.ClientResponse, co o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin } - o.Payload = new(devops_models.Error) + o.Payload = new(members_models.Error) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { @@ -328,7 +328,7 @@ Resource was not found type GetTemplatesNotFound struct { AccessControlAllowOrigin string - Payload *devops_models.Error + Payload *members_models.Error } // IsSuccess returns true when this get templates not found response has a 2xx status code @@ -369,7 +369,7 @@ func (o *GetTemplatesNotFound) String() string { return fmt.Sprintf("[GET /templates][%d] getTemplatesNotFound %+v", 404, o.Payload) } -func (o *GetTemplatesNotFound) GetPayload() *devops_models.Error { +func (o *GetTemplatesNotFound) GetPayload() *members_models.Error { return o.Payload } @@ -382,7 +382,7 @@ func (o *GetTemplatesNotFound) readResponse(response runtime.ClientResponse, con o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin } - o.Payload = new(devops_models.Error) + o.Payload = new(members_models.Error) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { @@ -406,7 +406,7 @@ type GetTemplatesUnprocessableEntity struct { AccessControlAllowOrigin string CacheControl string - Payload *devops_models.Error + Payload *members_models.Error } // IsSuccess returns true when this get templates unprocessable entity response has a 2xx status code @@ -447,7 +447,7 @@ func (o *GetTemplatesUnprocessableEntity) String() string { return fmt.Sprintf("[GET /templates][%d] getTemplatesUnprocessableEntity %+v", 422, o.Payload) } -func (o *GetTemplatesUnprocessableEntity) GetPayload() *devops_models.Error { +func (o *GetTemplatesUnprocessableEntity) GetPayload() *members_models.Error { return o.Payload } @@ -467,7 +467,7 @@ func (o *GetTemplatesUnprocessableEntity) readResponse(response runtime.ClientRe o.CacheControl = hdrCacheControl } - o.Payload = new(devops_models.Error) + o.Payload = new(members_models.Error) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { @@ -490,7 +490,7 @@ Server Internal Error type GetTemplatesInternalServerError struct { AccessControlAllowOrigin string - Payload *devops_models.Error + Payload *members_models.Error } // IsSuccess returns true when this get templates internal server error response has a 2xx status code @@ -531,7 +531,7 @@ func (o *GetTemplatesInternalServerError) String() string { return fmt.Sprintf("[GET /templates][%d] getTemplatesInternalServerError %+v", 500, o.Payload) } -func (o *GetTemplatesInternalServerError) GetPayload() *devops_models.Error { +func (o *GetTemplatesInternalServerError) GetPayload() *members_models.Error { return o.Payload } @@ -544,7 +544,7 @@ func (o *GetTemplatesInternalServerError) readResponse(response runtime.ClientRe o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin } - o.Payload = new(devops_models.Error) + o.Payload = new(members_models.Error) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { diff --git a/api/devops/devops_client/template/post_templates_parameters.go b/api/members/members_client/templates/post_templates_parameters.go similarity index 95% rename from api/devops/devops_client/template/post_templates_parameters.go rename to api/members/members_client/templates/post_templates_parameters.go index 8094e2d..b3f6989 100644 --- a/api/devops/devops_client/template/post_templates_parameters.go +++ b/api/members/members_client/templates/post_templates_parameters.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package template +package templates // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command @@ -19,7 +19,7 @@ import ( cr "github.com/go-openapi/runtime/client" "github.com/go-openapi/strfmt" - "code.tnxs.net/vernonkeenan/lib/api/devops/devops_models" + "code.tnxs.net/vernonkeenan/lib/api/members/members_models" ) // NewPostTemplatesParams creates a new PostTemplatesParams object, @@ -71,7 +71,7 @@ type PostTemplatesParams struct { An array of Template records */ - TemplateRequest *devops_models.TemplateRequest + TemplateRequest *members_models.TemplateRequest timeout time.Duration Context context.Context @@ -127,13 +127,13 @@ func (o *PostTemplatesParams) SetHTTPClient(client *http.Client) { } // WithTemplateRequest adds the templateRequest to the post templates params -func (o *PostTemplatesParams) WithTemplateRequest(templateRequest *devops_models.TemplateRequest) *PostTemplatesParams { +func (o *PostTemplatesParams) WithTemplateRequest(templateRequest *members_models.TemplateRequest) *PostTemplatesParams { o.SetTemplateRequest(templateRequest) return o } // SetTemplateRequest adds the templateRequest to the post templates params -func (o *PostTemplatesParams) SetTemplateRequest(templateRequest *devops_models.TemplateRequest) { +func (o *PostTemplatesParams) SetTemplateRequest(templateRequest *members_models.TemplateRequest) { o.TemplateRequest = templateRequest } diff --git a/api/devops/devops_client/template/post_templates_responses.go b/api/members/members_client/templates/post_templates_responses.go similarity index 94% rename from api/devops/devops_client/template/post_templates_responses.go rename to api/members/members_client/templates/post_templates_responses.go index 4e3b3e3..319f7bf 100644 --- a/api/devops/devops_client/template/post_templates_responses.go +++ b/api/members/members_client/templates/post_templates_responses.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package template +package templates // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command @@ -16,7 +16,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "code.tnxs.net/vernonkeenan/lib/api/devops/devops_models" + "code.tnxs.net/vernonkeenan/lib/api/members/members_models" ) // PostTemplatesReader is a Reader for the PostTemplates structure. @@ -82,7 +82,7 @@ type PostTemplatesOK struct { AccessControlAllowOrigin string CacheControl string - Payload *devops_models.TemplateResponse + Payload *members_models.TemplateResponse } // IsSuccess returns true when this post templates o k response has a 2xx status code @@ -123,7 +123,7 @@ func (o *PostTemplatesOK) String() string { return fmt.Sprintf("[POST /templates][%d] postTemplatesOK %+v", 200, o.Payload) } -func (o *PostTemplatesOK) GetPayload() *devops_models.TemplateResponse { +func (o *PostTemplatesOK) GetPayload() *members_models.TemplateResponse { return o.Payload } @@ -143,7 +143,7 @@ func (o *PostTemplatesOK) readResponse(response runtime.ClientResponse, consumer o.CacheControl = hdrCacheControl } - o.Payload = new(devops_models.TemplateResponse) + o.Payload = new(members_models.TemplateResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { @@ -167,7 +167,7 @@ type PostTemplatesUnauthorized struct { AccessControlAllowOrigin string CacheControl string - Payload *devops_models.Error + Payload *members_models.Error } // IsSuccess returns true when this post templates unauthorized response has a 2xx status code @@ -208,7 +208,7 @@ func (o *PostTemplatesUnauthorized) String() string { return fmt.Sprintf("[POST /templates][%d] postTemplatesUnauthorized %+v", 401, o.Payload) } -func (o *PostTemplatesUnauthorized) GetPayload() *devops_models.Error { +func (o *PostTemplatesUnauthorized) GetPayload() *members_models.Error { return o.Payload } @@ -228,7 +228,7 @@ func (o *PostTemplatesUnauthorized) readResponse(response runtime.ClientResponse o.CacheControl = hdrCacheControl } - o.Payload = new(devops_models.Error) + o.Payload = new(members_models.Error) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { @@ -251,7 +251,7 @@ Access forbidden, account lacks access type PostTemplatesForbidden struct { AccessControlAllowOrigin string - Payload *devops_models.Error + Payload *members_models.Error } // IsSuccess returns true when this post templates forbidden response has a 2xx status code @@ -292,7 +292,7 @@ func (o *PostTemplatesForbidden) String() string { return fmt.Sprintf("[POST /templates][%d] postTemplatesForbidden %+v", 403, o.Payload) } -func (o *PostTemplatesForbidden) GetPayload() *devops_models.Error { +func (o *PostTemplatesForbidden) GetPayload() *members_models.Error { return o.Payload } @@ -305,7 +305,7 @@ func (o *PostTemplatesForbidden) readResponse(response runtime.ClientResponse, c o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin } - o.Payload = new(devops_models.Error) + o.Payload = new(members_models.Error) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { @@ -328,7 +328,7 @@ Resource was not found type PostTemplatesNotFound struct { AccessControlAllowOrigin string - Payload *devops_models.Error + Payload *members_models.Error } // IsSuccess returns true when this post templates not found response has a 2xx status code @@ -369,7 +369,7 @@ func (o *PostTemplatesNotFound) String() string { return fmt.Sprintf("[POST /templates][%d] postTemplatesNotFound %+v", 404, o.Payload) } -func (o *PostTemplatesNotFound) GetPayload() *devops_models.Error { +func (o *PostTemplatesNotFound) GetPayload() *members_models.Error { return o.Payload } @@ -382,7 +382,7 @@ func (o *PostTemplatesNotFound) readResponse(response runtime.ClientResponse, co o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin } - o.Payload = new(devops_models.Error) + o.Payload = new(members_models.Error) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { @@ -406,7 +406,7 @@ type PostTemplatesUnprocessableEntity struct { AccessControlAllowOrigin string CacheControl string - Payload *devops_models.Error + Payload *members_models.Error } // IsSuccess returns true when this post templates unprocessable entity response has a 2xx status code @@ -447,7 +447,7 @@ func (o *PostTemplatesUnprocessableEntity) String() string { return fmt.Sprintf("[POST /templates][%d] postTemplatesUnprocessableEntity %+v", 422, o.Payload) } -func (o *PostTemplatesUnprocessableEntity) GetPayload() *devops_models.Error { +func (o *PostTemplatesUnprocessableEntity) GetPayload() *members_models.Error { return o.Payload } @@ -467,7 +467,7 @@ func (o *PostTemplatesUnprocessableEntity) readResponse(response runtime.ClientR o.CacheControl = hdrCacheControl } - o.Payload = new(devops_models.Error) + o.Payload = new(members_models.Error) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { @@ -490,7 +490,7 @@ Server Internal Error type PostTemplatesInternalServerError struct { AccessControlAllowOrigin string - Payload *devops_models.Error + Payload *members_models.Error } // IsSuccess returns true when this post templates internal server error response has a 2xx status code @@ -531,7 +531,7 @@ func (o *PostTemplatesInternalServerError) String() string { return fmt.Sprintf("[POST /templates][%d] postTemplatesInternalServerError %+v", 500, o.Payload) } -func (o *PostTemplatesInternalServerError) GetPayload() *devops_models.Error { +func (o *PostTemplatesInternalServerError) GetPayload() *members_models.Error { return o.Payload } @@ -544,7 +544,7 @@ func (o *PostTemplatesInternalServerError) readResponse(response runtime.ClientR o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin } - o.Payload = new(devops_models.Error) + o.Payload = new(members_models.Error) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { diff --git a/api/members/members_client/templates/templates_client.go b/api/members/members_client/templates/templates_client.go new file mode 100644 index 0000000..5e5470e --- /dev/null +++ b/api/members/members_client/templates/templates_client.go @@ -0,0 +1,129 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package templates + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" +) + +// New creates a new templates API client. +func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService { + return &Client{transport: transport, formats: formats} +} + +/* +Client for templates API +*/ +type Client struct { + transport runtime.ClientTransport + 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 { + GetTemplates(params *GetTemplatesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetTemplatesOK, error) + + PostTemplates(params *PostTemplatesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostTemplatesOK, error) + + SetTransport(transport runtime.ClientTransport) +} + +/* +GetTemplates gets a list templates + +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 + if params == nil { + params = NewGetTemplatesParams() + } + op := &runtime.ClientOperation{ + ID: "getTemplates", + Method: "GET", + PathPattern: "/templates", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &GetTemplatesReader{formats: a.formats}, + AuthInfo: authInfo, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*GetTemplatesOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for getTemplates: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +PostTemplates creates new templates + +Create new Templates +*/ +func (a *Client) PostTemplates(params *PostTemplatesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostTemplatesOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewPostTemplatesParams() + } + op := &runtime.ClientOperation{ + ID: "postTemplates", + Method: "POST", + PathPattern: "/templates", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &PostTemplatesReader{formats: a.formats}, + AuthInfo: authInfo, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*PostTemplatesOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for postTemplates: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +// SetTransport changes the transport on the client +func (a *Client) SetTransport(transport runtime.ClientTransport) { + a.transport = transport +} diff --git a/api/devops/devops_client/tenant/get_tenants_parameters.go b/api/members/members_client/tenants/get_tenants_parameters.go similarity index 78% rename from api/devops/devops_client/tenant/get_tenants_parameters.go rename to api/members/members_client/tenants/get_tenants_parameters.go index f831cf5..c91a888 100644 --- a/api/devops/devops_client/tenant/get_tenants_parameters.go +++ b/api/members/members_client/tenants/get_tenants_parameters.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package tenant +package tenants // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command @@ -66,12 +66,6 @@ GetTenantsParams contains all the parameters to send to the API endpoint */ type GetTenantsParams struct { - /* CompanyID. - - Record Id of a Company - */ - CompanyID *string - /* Limit. How many objects to return at one time @@ -82,18 +76,12 @@ type GetTenantsParams struct { /* Offset. - How many objects to skip? (default 0) + How many objects to skip? Format: int64 */ Offset *int64 - /* TaxnexusAccount. - - Account of a Tenant - */ - TaxnexusAccount *string - /* TenantID. Record Id of a Tenant @@ -153,17 +141,6 @@ func (o *GetTenantsParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } -// WithCompanyID adds the companyID to the get tenants params -func (o *GetTenantsParams) WithCompanyID(companyID *string) *GetTenantsParams { - o.SetCompanyID(companyID) - return o -} - -// SetCompanyID adds the companyId to the get tenants params -func (o *GetTenantsParams) SetCompanyID(companyID *string) { - o.CompanyID = companyID -} - // WithLimit adds the limit to the get tenants params func (o *GetTenantsParams) WithLimit(limit *int64) *GetTenantsParams { o.SetLimit(limit) @@ -186,17 +163,6 @@ func (o *GetTenantsParams) SetOffset(offset *int64) { o.Offset = offset } -// WithTaxnexusAccount adds the taxnexusAccount to the get tenants params -func (o *GetTenantsParams) WithTaxnexusAccount(taxnexusAccount *string) *GetTenantsParams { - o.SetTaxnexusAccount(taxnexusAccount) - return o -} - -// SetTaxnexusAccount adds the taxnexusAccount to the get tenants params -func (o *GetTenantsParams) SetTaxnexusAccount(taxnexusAccount *string) { - o.TaxnexusAccount = taxnexusAccount -} - // WithTenantID adds the tenantID to the get tenants params func (o *GetTenantsParams) WithTenantID(tenantID *string) *GetTenantsParams { o.SetTenantID(tenantID) @@ -216,23 +182,6 @@ func (o *GetTenantsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Re } var res []error - if o.CompanyID != nil { - - // query param companyId - var qrCompanyID string - - if o.CompanyID != nil { - qrCompanyID = *o.CompanyID - } - qCompanyID := qrCompanyID - if qCompanyID != "" { - - if err := r.SetQueryParam("companyId", qCompanyID); err != nil { - return err - } - } - } - if o.Limit != nil { // query param limit @@ -267,23 +216,6 @@ func (o *GetTenantsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Re } } - if o.TaxnexusAccount != nil { - - // query param taxnexusAccount - var qrTaxnexusAccount string - - if o.TaxnexusAccount != nil { - qrTaxnexusAccount = *o.TaxnexusAccount - } - qTaxnexusAccount := qrTaxnexusAccount - if qTaxnexusAccount != "" { - - if err := r.SetQueryParam("taxnexusAccount", qTaxnexusAccount); err != nil { - return err - } - } - } - if o.TenantID != nil { // query param tenantId diff --git a/api/devops/devops_client/tenant/get_tenants_responses.go b/api/members/members_client/tenants/get_tenants_responses.go similarity index 94% rename from api/devops/devops_client/tenant/get_tenants_responses.go rename to api/members/members_client/tenants/get_tenants_responses.go index 82e0693..a4809af 100644 --- a/api/devops/devops_client/tenant/get_tenants_responses.go +++ b/api/members/members_client/tenants/get_tenants_responses.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package tenant +package tenants // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command @@ -16,7 +16,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "code.tnxs.net/vernonkeenan/lib/api/devops/devops_models" + "code.tnxs.net/vernonkeenan/lib/api/members/members_models" ) // GetTenantsReader is a Reader for the GetTenants structure. @@ -81,7 +81,7 @@ Response with Tenant objects type GetTenantsOK struct { AccessControlAllowOrigin string - Payload *devops_models.TenantResponse + Payload *members_models.TenantResponse } // IsSuccess returns true when this get tenants o k response has a 2xx status code @@ -122,7 +122,7 @@ func (o *GetTenantsOK) String() string { return fmt.Sprintf("[GET /tenants][%d] getTenantsOK %+v", 200, o.Payload) } -func (o *GetTenantsOK) GetPayload() *devops_models.TenantResponse { +func (o *GetTenantsOK) GetPayload() *members_models.TenantResponse { return o.Payload } @@ -135,7 +135,7 @@ func (o *GetTenantsOK) readResponse(response runtime.ClientResponse, consumer ru o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin } - o.Payload = new(devops_models.TenantResponse) + o.Payload = new(members_models.TenantResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { @@ -159,7 +159,7 @@ type GetTenantsUnauthorized struct { AccessControlAllowOrigin string CacheControl string - Payload *devops_models.Error + Payload *members_models.Error } // IsSuccess returns true when this get tenants unauthorized response has a 2xx status code @@ -200,7 +200,7 @@ func (o *GetTenantsUnauthorized) String() string { return fmt.Sprintf("[GET /tenants][%d] getTenantsUnauthorized %+v", 401, o.Payload) } -func (o *GetTenantsUnauthorized) GetPayload() *devops_models.Error { +func (o *GetTenantsUnauthorized) GetPayload() *members_models.Error { return o.Payload } @@ -220,7 +220,7 @@ func (o *GetTenantsUnauthorized) readResponse(response runtime.ClientResponse, c o.CacheControl = hdrCacheControl } - o.Payload = new(devops_models.Error) + o.Payload = new(members_models.Error) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { @@ -243,7 +243,7 @@ Access forbidden, account lacks access type GetTenantsForbidden struct { AccessControlAllowOrigin string - Payload *devops_models.Error + Payload *members_models.Error } // IsSuccess returns true when this get tenants forbidden response has a 2xx status code @@ -284,7 +284,7 @@ func (o *GetTenantsForbidden) String() string { return fmt.Sprintf("[GET /tenants][%d] getTenantsForbidden %+v", 403, o.Payload) } -func (o *GetTenantsForbidden) GetPayload() *devops_models.Error { +func (o *GetTenantsForbidden) GetPayload() *members_models.Error { return o.Payload } @@ -297,7 +297,7 @@ func (o *GetTenantsForbidden) readResponse(response runtime.ClientResponse, cons o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin } - o.Payload = new(devops_models.Error) + o.Payload = new(members_models.Error) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { @@ -320,7 +320,7 @@ Resource was not found type GetTenantsNotFound struct { AccessControlAllowOrigin string - Payload *devops_models.Error + Payload *members_models.Error } // IsSuccess returns true when this get tenants not found response has a 2xx status code @@ -361,7 +361,7 @@ func (o *GetTenantsNotFound) String() string { return fmt.Sprintf("[GET /tenants][%d] getTenantsNotFound %+v", 404, o.Payload) } -func (o *GetTenantsNotFound) GetPayload() *devops_models.Error { +func (o *GetTenantsNotFound) GetPayload() *members_models.Error { return o.Payload } @@ -374,7 +374,7 @@ func (o *GetTenantsNotFound) readResponse(response runtime.ClientResponse, consu o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin } - o.Payload = new(devops_models.Error) + o.Payload = new(members_models.Error) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { @@ -398,7 +398,7 @@ type GetTenantsUnprocessableEntity struct { AccessControlAllowOrigin string CacheControl string - Payload *devops_models.Error + Payload *members_models.Error } // IsSuccess returns true when this get tenants unprocessable entity response has a 2xx status code @@ -439,7 +439,7 @@ func (o *GetTenantsUnprocessableEntity) String() string { return fmt.Sprintf("[GET /tenants][%d] getTenantsUnprocessableEntity %+v", 422, o.Payload) } -func (o *GetTenantsUnprocessableEntity) GetPayload() *devops_models.Error { +func (o *GetTenantsUnprocessableEntity) GetPayload() *members_models.Error { return o.Payload } @@ -459,7 +459,7 @@ func (o *GetTenantsUnprocessableEntity) readResponse(response runtime.ClientResp o.CacheControl = hdrCacheControl } - o.Payload = new(devops_models.Error) + o.Payload = new(members_models.Error) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { @@ -482,7 +482,7 @@ Server Internal Error type GetTenantsInternalServerError struct { AccessControlAllowOrigin string - Payload *devops_models.Error + Payload *members_models.Error } // IsSuccess returns true when this get tenants internal server error response has a 2xx status code @@ -523,7 +523,7 @@ func (o *GetTenantsInternalServerError) String() string { return fmt.Sprintf("[GET /tenants][%d] getTenantsInternalServerError %+v", 500, o.Payload) } -func (o *GetTenantsInternalServerError) GetPayload() *devops_models.Error { +func (o *GetTenantsInternalServerError) GetPayload() *members_models.Error { return o.Payload } @@ -536,7 +536,7 @@ func (o *GetTenantsInternalServerError) readResponse(response runtime.ClientResp o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin } - o.Payload = new(devops_models.Error) + o.Payload = new(members_models.Error) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { diff --git a/api/devops/devops_client/tenant/post_tenants_parameters.go b/api/members/members_client/tenants/post_tenants_parameters.go similarity index 92% rename from api/devops/devops_client/tenant/post_tenants_parameters.go rename to api/members/members_client/tenants/post_tenants_parameters.go index 5e6d98b..4e81d8f 100644 --- a/api/devops/devops_client/tenant/post_tenants_parameters.go +++ b/api/members/members_client/tenants/post_tenants_parameters.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package tenant +package tenants // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command @@ -19,7 +19,7 @@ import ( cr "github.com/go-openapi/runtime/client" "github.com/go-openapi/strfmt" - "code.tnxs.net/vernonkeenan/lib/api/devops/devops_models" + "code.tnxs.net/vernonkeenan/lib/api/members/members_models" ) // NewPostTenantsParams creates a new PostTenantsParams object, @@ -71,7 +71,7 @@ type PostTenantsParams struct { An array of Tenant records */ - TenantRequest *devops_models.TenantRequest + TenantRequest *members_models.TenantRequest timeout time.Duration Context context.Context @@ -127,13 +127,13 @@ func (o *PostTenantsParams) SetHTTPClient(client *http.Client) { } // WithTenantRequest adds the tenantRequest to the post tenants params -func (o *PostTenantsParams) WithTenantRequest(tenantRequest *devops_models.TenantRequest) *PostTenantsParams { +func (o *PostTenantsParams) WithTenantRequest(tenantRequest *members_models.TenantRequest) *PostTenantsParams { o.SetTenantRequest(tenantRequest) return o } // SetTenantRequest adds the tenantRequest to the post tenants params -func (o *PostTenantsParams) SetTenantRequest(tenantRequest *devops_models.TenantRequest) { +func (o *PostTenantsParams) SetTenantRequest(tenantRequest *members_models.TenantRequest) { o.TenantRequest = tenantRequest } diff --git a/api/devops/devops_client/tenant/post_tenants_responses.go b/api/members/members_client/tenants/post_tenants_responses.go similarity index 94% rename from api/devops/devops_client/tenant/post_tenants_responses.go rename to api/members/members_client/tenants/post_tenants_responses.go index 3f96e77..99dde34 100644 --- a/api/devops/devops_client/tenant/post_tenants_responses.go +++ b/api/members/members_client/tenants/post_tenants_responses.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package tenant +package tenants // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command @@ -16,7 +16,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "code.tnxs.net/vernonkeenan/lib/api/devops/devops_models" + "code.tnxs.net/vernonkeenan/lib/api/members/members_models" ) // PostTenantsReader is a Reader for the PostTenants structure. @@ -81,7 +81,7 @@ Response with Tenant objects type PostTenantsOK struct { AccessControlAllowOrigin string - Payload *devops_models.TenantResponse + Payload *members_models.TenantResponse } // IsSuccess returns true when this post tenants o k response has a 2xx status code @@ -122,7 +122,7 @@ func (o *PostTenantsOK) String() string { return fmt.Sprintf("[POST /tenants][%d] postTenantsOK %+v", 200, o.Payload) } -func (o *PostTenantsOK) GetPayload() *devops_models.TenantResponse { +func (o *PostTenantsOK) GetPayload() *members_models.TenantResponse { return o.Payload } @@ -135,7 +135,7 @@ func (o *PostTenantsOK) readResponse(response runtime.ClientResponse, consumer r o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin } - o.Payload = new(devops_models.TenantResponse) + o.Payload = new(members_models.TenantResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { @@ -159,7 +159,7 @@ type PostTenantsUnauthorized struct { AccessControlAllowOrigin string CacheControl string - Payload *devops_models.Error + Payload *members_models.Error } // IsSuccess returns true when this post tenants unauthorized response has a 2xx status code @@ -200,7 +200,7 @@ func (o *PostTenantsUnauthorized) String() string { return fmt.Sprintf("[POST /tenants][%d] postTenantsUnauthorized %+v", 401, o.Payload) } -func (o *PostTenantsUnauthorized) GetPayload() *devops_models.Error { +func (o *PostTenantsUnauthorized) GetPayload() *members_models.Error { return o.Payload } @@ -220,7 +220,7 @@ func (o *PostTenantsUnauthorized) readResponse(response runtime.ClientResponse, o.CacheControl = hdrCacheControl } - o.Payload = new(devops_models.Error) + o.Payload = new(members_models.Error) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { @@ -243,7 +243,7 @@ Access forbidden, account lacks access type PostTenantsForbidden struct { AccessControlAllowOrigin string - Payload *devops_models.Error + Payload *members_models.Error } // IsSuccess returns true when this post tenants forbidden response has a 2xx status code @@ -284,7 +284,7 @@ func (o *PostTenantsForbidden) String() string { return fmt.Sprintf("[POST /tenants][%d] postTenantsForbidden %+v", 403, o.Payload) } -func (o *PostTenantsForbidden) GetPayload() *devops_models.Error { +func (o *PostTenantsForbidden) GetPayload() *members_models.Error { return o.Payload } @@ -297,7 +297,7 @@ func (o *PostTenantsForbidden) readResponse(response runtime.ClientResponse, con o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin } - o.Payload = new(devops_models.Error) + o.Payload = new(members_models.Error) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { @@ -320,7 +320,7 @@ Resource was not found type PostTenantsNotFound struct { AccessControlAllowOrigin string - Payload *devops_models.Error + Payload *members_models.Error } // IsSuccess returns true when this post tenants not found response has a 2xx status code @@ -361,7 +361,7 @@ func (o *PostTenantsNotFound) String() string { return fmt.Sprintf("[POST /tenants][%d] postTenantsNotFound %+v", 404, o.Payload) } -func (o *PostTenantsNotFound) GetPayload() *devops_models.Error { +func (o *PostTenantsNotFound) GetPayload() *members_models.Error { return o.Payload } @@ -374,7 +374,7 @@ func (o *PostTenantsNotFound) readResponse(response runtime.ClientResponse, cons o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin } - o.Payload = new(devops_models.Error) + o.Payload = new(members_models.Error) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { @@ -398,7 +398,7 @@ type PostTenantsUnprocessableEntity struct { AccessControlAllowOrigin string CacheControl string - Payload *devops_models.Error + Payload *members_models.Error } // IsSuccess returns true when this post tenants unprocessable entity response has a 2xx status code @@ -439,7 +439,7 @@ func (o *PostTenantsUnprocessableEntity) String() string { return fmt.Sprintf("[POST /tenants][%d] postTenantsUnprocessableEntity %+v", 422, o.Payload) } -func (o *PostTenantsUnprocessableEntity) GetPayload() *devops_models.Error { +func (o *PostTenantsUnprocessableEntity) GetPayload() *members_models.Error { return o.Payload } @@ -459,7 +459,7 @@ func (o *PostTenantsUnprocessableEntity) readResponse(response runtime.ClientRes o.CacheControl = hdrCacheControl } - o.Payload = new(devops_models.Error) + o.Payload = new(members_models.Error) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { @@ -482,7 +482,7 @@ Server Internal Error type PostTenantsInternalServerError struct { AccessControlAllowOrigin string - Payload *devops_models.Error + Payload *members_models.Error } // IsSuccess returns true when this post tenants internal server error response has a 2xx status code @@ -523,7 +523,7 @@ func (o *PostTenantsInternalServerError) String() string { return fmt.Sprintf("[POST /tenants][%d] postTenantsInternalServerError %+v", 500, o.Payload) } -func (o *PostTenantsInternalServerError) GetPayload() *devops_models.Error { +func (o *PostTenantsInternalServerError) GetPayload() *members_models.Error { return o.Payload } @@ -536,7 +536,7 @@ func (o *PostTenantsInternalServerError) readResponse(response runtime.ClientRes o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin } - o.Payload = new(devops_models.Error) + o.Payload = new(members_models.Error) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { diff --git a/api/devops/devops_client/tenant/put_tenants_parameters.go b/api/members/members_client/tenants/put_tenants_parameters.go similarity index 92% rename from api/devops/devops_client/tenant/put_tenants_parameters.go rename to api/members/members_client/tenants/put_tenants_parameters.go index 094eb4a..7fe3970 100644 --- a/api/devops/devops_client/tenant/put_tenants_parameters.go +++ b/api/members/members_client/tenants/put_tenants_parameters.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package tenant +package tenants // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command @@ -19,7 +19,7 @@ import ( cr "github.com/go-openapi/runtime/client" "github.com/go-openapi/strfmt" - "code.tnxs.net/vernonkeenan/lib/api/devops/devops_models" + "code.tnxs.net/vernonkeenan/lib/api/members/members_models" ) // NewPutTenantsParams creates a new PutTenantsParams object, @@ -71,7 +71,7 @@ type PutTenantsParams struct { An array of Tenant records */ - TenantRequest *devops_models.TenantRequest + TenantRequest *members_models.TenantRequest timeout time.Duration Context context.Context @@ -127,13 +127,13 @@ func (o *PutTenantsParams) SetHTTPClient(client *http.Client) { } // WithTenantRequest adds the tenantRequest to the put tenants params -func (o *PutTenantsParams) WithTenantRequest(tenantRequest *devops_models.TenantRequest) *PutTenantsParams { +func (o *PutTenantsParams) WithTenantRequest(tenantRequest *members_models.TenantRequest) *PutTenantsParams { o.SetTenantRequest(tenantRequest) return o } // SetTenantRequest adds the tenantRequest to the put tenants params -func (o *PutTenantsParams) SetTenantRequest(tenantRequest *devops_models.TenantRequest) { +func (o *PutTenantsParams) SetTenantRequest(tenantRequest *members_models.TenantRequest) { o.TenantRequest = tenantRequest } diff --git a/api/devops/devops_client/tenant/put_tenants_responses.go b/api/members/members_client/tenants/put_tenants_responses.go similarity index 94% rename from api/devops/devops_client/tenant/put_tenants_responses.go rename to api/members/members_client/tenants/put_tenants_responses.go index 5710972..980f53c 100644 --- a/api/devops/devops_client/tenant/put_tenants_responses.go +++ b/api/members/members_client/tenants/put_tenants_responses.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package tenant +package tenants // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command @@ -16,7 +16,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "code.tnxs.net/vernonkeenan/lib/api/devops/devops_models" + "code.tnxs.net/vernonkeenan/lib/api/members/members_models" ) // PutTenantsReader is a Reader for the PutTenants structure. @@ -81,7 +81,7 @@ Response with Tenant objects type PutTenantsOK struct { AccessControlAllowOrigin string - Payload *devops_models.TenantResponse + Payload *members_models.TenantResponse } // IsSuccess returns true when this put tenants o k response has a 2xx status code @@ -122,7 +122,7 @@ func (o *PutTenantsOK) String() string { return fmt.Sprintf("[PUT /tenants][%d] putTenantsOK %+v", 200, o.Payload) } -func (o *PutTenantsOK) GetPayload() *devops_models.TenantResponse { +func (o *PutTenantsOK) GetPayload() *members_models.TenantResponse { return o.Payload } @@ -135,7 +135,7 @@ func (o *PutTenantsOK) readResponse(response runtime.ClientResponse, consumer ru o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin } - o.Payload = new(devops_models.TenantResponse) + o.Payload = new(members_models.TenantResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { @@ -159,7 +159,7 @@ type PutTenantsUnauthorized struct { AccessControlAllowOrigin string CacheControl string - Payload *devops_models.Error + Payload *members_models.Error } // IsSuccess returns true when this put tenants unauthorized response has a 2xx status code @@ -200,7 +200,7 @@ func (o *PutTenantsUnauthorized) String() string { return fmt.Sprintf("[PUT /tenants][%d] putTenantsUnauthorized %+v", 401, o.Payload) } -func (o *PutTenantsUnauthorized) GetPayload() *devops_models.Error { +func (o *PutTenantsUnauthorized) GetPayload() *members_models.Error { return o.Payload } @@ -220,7 +220,7 @@ func (o *PutTenantsUnauthorized) readResponse(response runtime.ClientResponse, c o.CacheControl = hdrCacheControl } - o.Payload = new(devops_models.Error) + o.Payload = new(members_models.Error) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { @@ -243,7 +243,7 @@ Access forbidden, account lacks access type PutTenantsForbidden struct { AccessControlAllowOrigin string - Payload *devops_models.Error + Payload *members_models.Error } // IsSuccess returns true when this put tenants forbidden response has a 2xx status code @@ -284,7 +284,7 @@ func (o *PutTenantsForbidden) String() string { return fmt.Sprintf("[PUT /tenants][%d] putTenantsForbidden %+v", 403, o.Payload) } -func (o *PutTenantsForbidden) GetPayload() *devops_models.Error { +func (o *PutTenantsForbidden) GetPayload() *members_models.Error { return o.Payload } @@ -297,7 +297,7 @@ func (o *PutTenantsForbidden) readResponse(response runtime.ClientResponse, cons o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin } - o.Payload = new(devops_models.Error) + o.Payload = new(members_models.Error) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { @@ -320,7 +320,7 @@ Resource was not found type PutTenantsNotFound struct { AccessControlAllowOrigin string - Payload *devops_models.Error + Payload *members_models.Error } // IsSuccess returns true when this put tenants not found response has a 2xx status code @@ -361,7 +361,7 @@ func (o *PutTenantsNotFound) String() string { return fmt.Sprintf("[PUT /tenants][%d] putTenantsNotFound %+v", 404, o.Payload) } -func (o *PutTenantsNotFound) GetPayload() *devops_models.Error { +func (o *PutTenantsNotFound) GetPayload() *members_models.Error { return o.Payload } @@ -374,7 +374,7 @@ func (o *PutTenantsNotFound) readResponse(response runtime.ClientResponse, consu o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin } - o.Payload = new(devops_models.Error) + o.Payload = new(members_models.Error) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { @@ -398,7 +398,7 @@ type PutTenantsUnprocessableEntity struct { AccessControlAllowOrigin string CacheControl string - Payload *devops_models.Error + Payload *members_models.Error } // IsSuccess returns true when this put tenants unprocessable entity response has a 2xx status code @@ -439,7 +439,7 @@ func (o *PutTenantsUnprocessableEntity) String() string { return fmt.Sprintf("[PUT /tenants][%d] putTenantsUnprocessableEntity %+v", 422, o.Payload) } -func (o *PutTenantsUnprocessableEntity) GetPayload() *devops_models.Error { +func (o *PutTenantsUnprocessableEntity) GetPayload() *members_models.Error { return o.Payload } @@ -459,7 +459,7 @@ func (o *PutTenantsUnprocessableEntity) readResponse(response runtime.ClientResp o.CacheControl = hdrCacheControl } - o.Payload = new(devops_models.Error) + o.Payload = new(members_models.Error) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { @@ -482,7 +482,7 @@ Server Internal Error type PutTenantsInternalServerError struct { AccessControlAllowOrigin string - Payload *devops_models.Error + Payload *members_models.Error } // IsSuccess returns true when this put tenants internal server error response has a 2xx status code @@ -523,7 +523,7 @@ func (o *PutTenantsInternalServerError) String() string { return fmt.Sprintf("[PUT /tenants][%d] putTenantsInternalServerError %+v", 500, o.Payload) } -func (o *PutTenantsInternalServerError) GetPayload() *devops_models.Error { +func (o *PutTenantsInternalServerError) GetPayload() *members_models.Error { return o.Payload } @@ -536,7 +536,7 @@ func (o *PutTenantsInternalServerError) readResponse(response runtime.ClientResp o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin } - o.Payload = new(devops_models.Error) + o.Payload = new(members_models.Error) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { diff --git a/api/devops/devops_client/tenant/tenant_client.go b/api/members/members_client/tenants/tenants_client.go similarity index 62% rename from api/devops/devops_client/tenant/tenant_client.go rename to api/members/members_client/tenants/tenants_client.go index 496a01c..c3b3efb 100644 --- a/api/devops/devops_client/tenant/tenant_client.go +++ b/api/members/members_client/tenants/tenants_client.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package tenant +package tenants // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command @@ -16,13 +16,13 @@ import ( "github.com/go-openapi/strfmt" ) -// New creates a new tenant API client. +// New creates a new tenants API client. func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService { return &Client{transport: transport, formats: formats} } /* -Client for tenant API +Client for tenants API */ type Client struct { transport runtime.ClientTransport @@ -34,12 +34,8 @@ type ClientOption func(*runtime.ClientOperation) // ClientService is the interface for Client methods type ClientService interface { - GetTenant(params *GetTenantParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetTenantOK, error) - GetTenants(params *GetTenantsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetTenantsOK, error) - GetTenantsObservable(params *GetTenantsObservableParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetTenantsObservableOK, error) - PostTenants(params *PostTenantsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostTenantsOK, error) PutTenants(params *PutTenantsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PutTenantsOK, error) @@ -47,47 +43,6 @@ type ClientService interface { SetTransport(transport runtime.ClientTransport) } -/* -GetTenant gets a single tenant object - -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 - if params == nil { - params = NewGetTenantParams() - } - op := &runtime.ClientOperation{ - ID: "getTenant", - Method: "GET", - PathPattern: "/tenants/{tenantIdPath}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &GetTenantReader{formats: a.formats}, - AuthInfo: authInfo, - Context: params.Context, - Client: params.HTTPClient, - } - for _, opt := range opts { - opt(op) - } - - result, err := a.transport.Submit(op) - if err != nil { - return nil, err - } - success, ok := result.(*GetTenantOK) - if ok { - return success, nil - } - // unexpected success response - // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for getTenant: API contract not enforced by server. Client expected to get an error, but got: %T", result) - panic(msg) -} - /* GetTenants gets a list tenants @@ -129,47 +84,6 @@ func (a *Client) GetTenants(params *GetTenantsParams, authInfo runtime.ClientAut panic(msg) } -/* -GetTenantsObservable gets tenants in an 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 - if params == nil { - params = NewGetTenantsObservableParams() - } - op := &runtime.ClientOperation{ - ID: "getTenantsObservable", - Method: "GET", - PathPattern: "/tenants/observable", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &GetTenantsObservableReader{formats: a.formats}, - AuthInfo: authInfo, - Context: params.Context, - Client: params.HTTPClient, - } - for _, opt := range opts { - opt(op) - } - - result, err := a.transport.Submit(op) - if err != nil { - return nil, err - } - success, ok := result.(*GetTenantsObservableOK) - if ok { - return success, nil - } - // unexpected success response - // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for getTenantsObservable: API contract not enforced by server. Client expected to get an error, but got: %T", result) - panic(msg) -} - /* PostTenants creates new tenants diff --git a/api/members/members_client/operations/create_ticket_parameters.go b/api/members/members_client/tickets/create_ticket_parameters.go similarity index 99% rename from api/members/members_client/operations/create_ticket_parameters.go rename to api/members/members_client/tickets/create_ticket_parameters.go index 53df858..8a1e1e1 100644 --- a/api/members/members_client/operations/create_ticket_parameters.go +++ b/api/members/members_client/tickets/create_ticket_parameters.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package tickets // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/operations/create_ticket_responses.go b/api/members/members_client/tickets/create_ticket_responses.go similarity index 99% rename from api/members/members_client/operations/create_ticket_responses.go rename to api/members/members_client/tickets/create_ticket_responses.go index edd2869..b0b7a6f 100644 --- a/api/members/members_client/operations/create_ticket_responses.go +++ b/api/members/members_client/tickets/create_ticket_responses.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package tickets // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/operations/delete_ticket_parameters.go b/api/members/members_client/tickets/delete_ticket_parameters.go similarity index 99% rename from api/members/members_client/operations/delete_ticket_parameters.go rename to api/members/members_client/tickets/delete_ticket_parameters.go index 88abe42..88aa53f 100644 --- a/api/members/members_client/operations/delete_ticket_parameters.go +++ b/api/members/members_client/tickets/delete_ticket_parameters.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package tickets // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/operations/delete_ticket_responses.go b/api/members/members_client/tickets/delete_ticket_responses.go similarity index 99% rename from api/members/members_client/operations/delete_ticket_responses.go rename to api/members/members_client/tickets/delete_ticket_responses.go index 41e35f7..f5abf2a 100644 --- a/api/members/members_client/operations/delete_ticket_responses.go +++ b/api/members/members_client/tickets/delete_ticket_responses.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package tickets // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/operations/get_tickets_parameters.go b/api/members/members_client/tickets/get_tickets_parameters.go similarity index 99% rename from api/members/members_client/operations/get_tickets_parameters.go rename to api/members/members_client/tickets/get_tickets_parameters.go index 84043b2..aec3ed5 100644 --- a/api/members/members_client/operations/get_tickets_parameters.go +++ b/api/members/members_client/tickets/get_tickets_parameters.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package tickets // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/operations/get_tickets_responses.go b/api/members/members_client/tickets/get_tickets_responses.go similarity index 99% rename from api/members/members_client/operations/get_tickets_responses.go rename to api/members/members_client/tickets/get_tickets_responses.go index f3474d1..74ca961 100644 --- a/api/members/members_client/operations/get_tickets_responses.go +++ b/api/members/members_client/tickets/get_tickets_responses.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package tickets // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/tickets/tickets_client.go b/api/members/members_client/tickets/tickets_client.go new file mode 100644 index 0000000..3792d6e --- /dev/null +++ b/api/members/members_client/tickets/tickets_client.go @@ -0,0 +1,203 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package tickets + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" +) + +// New creates a new tickets API client. +func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService { + return &Client{transport: transport, formats: formats} +} + +/* +Client for tickets API +*/ +type Client struct { + transport runtime.ClientTransport + 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 { + CreateTicket(params *CreateTicketParams, opts ...ClientOption) (*CreateTicketCreated, error) + + DeleteTicket(params *DeleteTicketParams, opts ...ClientOption) (*DeleteTicketNoContent, error) + + GetTickets(params *GetTicketsParams, opts ...ClientOption) (*GetTicketsOK, error) + + UpdateTicket(params *UpdateTicketParams, opts ...ClientOption) (*UpdateTicketOK, error) + + SetTransport(transport runtime.ClientTransport) +} + +/* +CreateTicket creates a new ticket +*/ +func (a *Client) CreateTicket(params *CreateTicketParams, opts ...ClientOption) (*CreateTicketCreated, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewCreateTicketParams() + } + op := &runtime.ClientOperation{ + ID: "createTicket", + Method: "POST", + PathPattern: "/tickets", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &CreateTicketReader{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 + } + success, ok := result.(*CreateTicketCreated) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for createTicket: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +DeleteTicket deletes a ticket +*/ +func (a *Client) DeleteTicket(params *DeleteTicketParams, opts ...ClientOption) (*DeleteTicketNoContent, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewDeleteTicketParams() + } + op := &runtime.ClientOperation{ + ID: "deleteTicket", + Method: "DELETE", + PathPattern: "/tickets", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &DeleteTicketReader{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 + } + success, ok := result.(*DeleteTicketNoContent) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for deleteTicket: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +GetTickets gets a list of tickets +*/ +func (a *Client) GetTickets(params *GetTicketsParams, opts ...ClientOption) (*GetTicketsOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewGetTicketsParams() + } + op := &runtime.ClientOperation{ + ID: "getTickets", + Method: "GET", + PathPattern: "/tickets", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &GetTicketsReader{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 + } + success, ok := result.(*GetTicketsOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for getTickets: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +UpdateTicket updates an existing ticket +*/ +func (a *Client) UpdateTicket(params *UpdateTicketParams, opts ...ClientOption) (*UpdateTicketOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewUpdateTicketParams() + } + op := &runtime.ClientOperation{ + ID: "updateTicket", + Method: "PUT", + PathPattern: "/tickets", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &UpdateTicketReader{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 + } + success, ok := result.(*UpdateTicketOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for updateTicket: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +// SetTransport changes the transport on the client +func (a *Client) SetTransport(transport runtime.ClientTransport) { + a.transport = transport +} diff --git a/api/members/members_client/operations/update_ticket_parameters.go b/api/members/members_client/tickets/update_ticket_parameters.go similarity index 99% rename from api/members/members_client/operations/update_ticket_parameters.go rename to api/members/members_client/tickets/update_ticket_parameters.go index 8e4815c..b7ba697 100644 --- a/api/members/members_client/operations/update_ticket_parameters.go +++ b/api/members/members_client/tickets/update_ticket_parameters.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package tickets // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/operations/update_ticket_responses.go b/api/members/members_client/tickets/update_ticket_responses.go similarity index 99% rename from api/members/members_client/operations/update_ticket_responses.go rename to api/members/members_client/tickets/update_ticket_responses.go index ad69b42..50fa827 100644 --- a/api/members/members_client/operations/update_ticket_responses.go +++ b/api/members/members_client/tickets/update_ticket_responses.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package tickets // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/operations/create_transaction_parameters.go b/api/members/members_client/transactions/create_transaction_parameters.go similarity index 99% rename from api/members/members_client/operations/create_transaction_parameters.go rename to api/members/members_client/transactions/create_transaction_parameters.go index 6baee3e..c1a3c7e 100644 --- a/api/members/members_client/operations/create_transaction_parameters.go +++ b/api/members/members_client/transactions/create_transaction_parameters.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package transactions // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/operations/create_transaction_responses.go b/api/members/members_client/transactions/create_transaction_responses.go similarity index 99% rename from api/members/members_client/operations/create_transaction_responses.go rename to api/members/members_client/transactions/create_transaction_responses.go index e7bf53f..3f01416 100644 --- a/api/members/members_client/operations/create_transaction_responses.go +++ b/api/members/members_client/transactions/create_transaction_responses.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package transactions // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/operations/delete_transaction_parameters.go b/api/members/members_client/transactions/delete_transaction_parameters.go similarity index 99% rename from api/members/members_client/operations/delete_transaction_parameters.go rename to api/members/members_client/transactions/delete_transaction_parameters.go index 1c3dcb8..67a8e0b 100644 --- a/api/members/members_client/operations/delete_transaction_parameters.go +++ b/api/members/members_client/transactions/delete_transaction_parameters.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package transactions // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/operations/delete_transaction_responses.go b/api/members/members_client/transactions/delete_transaction_responses.go similarity index 99% rename from api/members/members_client/operations/delete_transaction_responses.go rename to api/members/members_client/transactions/delete_transaction_responses.go index 6914e28..1527924 100644 --- a/api/members/members_client/operations/delete_transaction_responses.go +++ b/api/members/members_client/transactions/delete_transaction_responses.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package transactions // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/operations/get_transactions_parameters.go b/api/members/members_client/transactions/get_transactions_parameters.go similarity index 99% rename from api/members/members_client/operations/get_transactions_parameters.go rename to api/members/members_client/transactions/get_transactions_parameters.go index 69f31a8..14d514b 100644 --- a/api/members/members_client/operations/get_transactions_parameters.go +++ b/api/members/members_client/transactions/get_transactions_parameters.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package transactions // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/operations/get_transactions_responses.go b/api/members/members_client/transactions/get_transactions_responses.go similarity index 99% rename from api/members/members_client/operations/get_transactions_responses.go rename to api/members/members_client/transactions/get_transactions_responses.go index 2fa0725..8443799 100644 --- a/api/members/members_client/operations/get_transactions_responses.go +++ b/api/members/members_client/transactions/get_transactions_responses.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package transactions // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/transactions/transactions_client.go b/api/members/members_client/transactions/transactions_client.go new file mode 100644 index 0000000..a85489f --- /dev/null +++ b/api/members/members_client/transactions/transactions_client.go @@ -0,0 +1,203 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package transactions + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" +) + +// New creates a new transactions API client. +func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService { + return &Client{transport: transport, formats: formats} +} + +/* +Client for transactions API +*/ +type Client struct { + transport runtime.ClientTransport + 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 { + CreateTransaction(params *CreateTransactionParams, opts ...ClientOption) (*CreateTransactionCreated, error) + + DeleteTransaction(params *DeleteTransactionParams, opts ...ClientOption) (*DeleteTransactionNoContent, error) + + GetTransactions(params *GetTransactionsParams, opts ...ClientOption) (*GetTransactionsOK, error) + + UpdateTransaction(params *UpdateTransactionParams, opts ...ClientOption) (*UpdateTransactionOK, error) + + SetTransport(transport runtime.ClientTransport) +} + +/* +CreateTransaction creates a new transaction +*/ +func (a *Client) CreateTransaction(params *CreateTransactionParams, opts ...ClientOption) (*CreateTransactionCreated, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewCreateTransactionParams() + } + op := &runtime.ClientOperation{ + ID: "createTransaction", + Method: "POST", + PathPattern: "/transactions", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &CreateTransactionReader{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 + } + success, ok := result.(*CreateTransactionCreated) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for createTransaction: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +DeleteTransaction deletes a transaction +*/ +func (a *Client) DeleteTransaction(params *DeleteTransactionParams, opts ...ClientOption) (*DeleteTransactionNoContent, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewDeleteTransactionParams() + } + op := &runtime.ClientOperation{ + ID: "deleteTransaction", + Method: "DELETE", + PathPattern: "/transactions", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &DeleteTransactionReader{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 + } + success, ok := result.(*DeleteTransactionNoContent) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for deleteTransaction: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +GetTransactions gets a list of transactions +*/ +func (a *Client) GetTransactions(params *GetTransactionsParams, opts ...ClientOption) (*GetTransactionsOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewGetTransactionsParams() + } + op := &runtime.ClientOperation{ + ID: "getTransactions", + Method: "GET", + PathPattern: "/transactions", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &GetTransactionsReader{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 + } + success, ok := result.(*GetTransactionsOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for getTransactions: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +UpdateTransaction updates an existing transaction +*/ +func (a *Client) UpdateTransaction(params *UpdateTransactionParams, opts ...ClientOption) (*UpdateTransactionOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewUpdateTransactionParams() + } + op := &runtime.ClientOperation{ + ID: "updateTransaction", + Method: "PUT", + PathPattern: "/transactions", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &UpdateTransactionReader{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 + } + success, ok := result.(*UpdateTransactionOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for updateTransaction: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +// SetTransport changes the transport on the client +func (a *Client) SetTransport(transport runtime.ClientTransport) { + a.transport = transport +} diff --git a/api/members/members_client/operations/update_transaction_parameters.go b/api/members/members_client/transactions/update_transaction_parameters.go similarity index 99% rename from api/members/members_client/operations/update_transaction_parameters.go rename to api/members/members_client/transactions/update_transaction_parameters.go index e3c81f6..12ee5ea 100644 --- a/api/members/members_client/operations/update_transaction_parameters.go +++ b/api/members/members_client/transactions/update_transaction_parameters.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package transactions // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/members/members_client/operations/update_transaction_responses.go b/api/members/members_client/transactions/update_transaction_responses.go similarity index 99% rename from api/members/members_client/operations/update_transaction_responses.go rename to api/members/members_client/transactions/update_transaction_responses.go index 97f6790..b3927c9 100644 --- a/api/members/members_client/operations/update_transaction_responses.go +++ b/api/members/members_client/transactions/update_transaction_responses.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package operations +package transactions // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/devops/devops_client/user/get_users_parameters.go b/api/members/members_client/users/get_users_parameters.go similarity index 62% rename from api/devops/devops_client/user/get_users_parameters.go rename to api/members/members_client/users/get_users_parameters.go index 8fe7f79..ab4365c 100644 --- a/api/devops/devops_client/user/get_users_parameters.go +++ b/api/members/members_client/users/get_users_parameters.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package user +package users // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command @@ -66,27 +66,15 @@ GetUsersParams contains all the parameters to send to the API endpoint */ type GetUsersParams struct { - /* AccountID. + /* Auth0UserID. - Record Id of an Account + External Auth0 User ID */ - AccountID *string - - /* Active. - - Retrieve active records only? - */ - Active *bool - - /* ContactID. - - Record Id of a Contact - */ - ContactID *string + Auth0UserID *string /* Email. - Email Address (not unique) + Email address */ Email *string @@ -100,24 +88,12 @@ type GetUsersParams struct { /* Offset. - How many objects to skip? (default 0) + How many objects to skip? Format: int64 */ Offset *int64 - /* UserID. - - User ID (unique) - */ - UserID *string - - /* Username. - - Username (unique) - */ - Username *string - timeout time.Duration Context context.Context HTTPClient *http.Client @@ -171,37 +147,15 @@ func (o *GetUsersParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } -// WithAccountID adds the accountID to the get users params -func (o *GetUsersParams) WithAccountID(accountID *string) *GetUsersParams { - o.SetAccountID(accountID) +// WithAuth0UserID adds the auth0UserID to the get users params +func (o *GetUsersParams) WithAuth0UserID(auth0UserID *string) *GetUsersParams { + o.SetAuth0UserID(auth0UserID) return o } -// SetAccountID adds the accountId to the get users params -func (o *GetUsersParams) SetAccountID(accountID *string) { - o.AccountID = accountID -} - -// WithActive adds the active to the get users params -func (o *GetUsersParams) WithActive(active *bool) *GetUsersParams { - o.SetActive(active) - return o -} - -// SetActive adds the active to the get users params -func (o *GetUsersParams) SetActive(active *bool) { - o.Active = active -} - -// WithContactID adds the contactID to the get users params -func (o *GetUsersParams) WithContactID(contactID *string) *GetUsersParams { - o.SetContactID(contactID) - return o -} - -// SetContactID adds the contactId to the get users params -func (o *GetUsersParams) SetContactID(contactID *string) { - o.ContactID = contactID +// SetAuth0UserID adds the auth0UserId to the get users params +func (o *GetUsersParams) SetAuth0UserID(auth0UserID *string) { + o.Auth0UserID = auth0UserID } // WithEmail adds the email to the get users params @@ -237,28 +191,6 @@ func (o *GetUsersParams) SetOffset(offset *int64) { o.Offset = offset } -// WithUserID adds the userID to the get users params -func (o *GetUsersParams) WithUserID(userID *string) *GetUsersParams { - o.SetUserID(userID) - return o -} - -// SetUserID adds the userId to the get users params -func (o *GetUsersParams) SetUserID(userID *string) { - o.UserID = userID -} - -// WithUsername adds the username to the get users params -func (o *GetUsersParams) WithUsername(username *string) *GetUsersParams { - o.SetUsername(username) - return o -} - -// SetUsername adds the username to the get users params -func (o *GetUsersParams) SetUsername(username *string) { - o.Username = username -} - // WriteToRequest writes these params to a swagger request func (o *GetUsersParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { @@ -267,52 +199,18 @@ func (o *GetUsersParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Regi } var res []error - if o.AccountID != nil { + if o.Auth0UserID != nil { - // query param accountId - var qrAccountID string + // query param auth0UserId + var qrAuth0UserID string - if o.AccountID != nil { - qrAccountID = *o.AccountID + if o.Auth0UserID != nil { + qrAuth0UserID = *o.Auth0UserID } - qAccountID := qrAccountID - if qAccountID != "" { + qAuth0UserID := qrAuth0UserID + if qAuth0UserID != "" { - if err := r.SetQueryParam("accountId", qAccountID); err != nil { - return err - } - } - } - - if o.Active != nil { - - // query param active - var qrActive bool - - if o.Active != nil { - qrActive = *o.Active - } - qActive := swag.FormatBool(qrActive) - if qActive != "" { - - if err := r.SetQueryParam("active", qActive); err != nil { - return err - } - } - } - - if o.ContactID != nil { - - // query param contactId - var qrContactID string - - if o.ContactID != nil { - qrContactID = *o.ContactID - } - qContactID := qrContactID - if qContactID != "" { - - if err := r.SetQueryParam("contactId", qContactID); err != nil { + if err := r.SetQueryParam("auth0UserId", qAuth0UserID); err != nil { return err } } @@ -369,40 +267,6 @@ func (o *GetUsersParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Regi } } - if o.UserID != nil { - - // query param userId - var qrUserID string - - if o.UserID != nil { - qrUserID = *o.UserID - } - qUserID := qrUserID - if qUserID != "" { - - if err := r.SetQueryParam("userId", qUserID); err != nil { - return err - } - } - } - - if o.Username != nil { - - // query param username - var qrUsername string - - if o.Username != nil { - qrUsername = *o.Username - } - qUsername := qrUsername - if qUsername != "" { - - if err := r.SetQueryParam("username", qUsername); err != nil { - return err - } - } - } - if len(res) > 0 { return errors.CompositeValidationError(res...) } diff --git a/api/devops/devops_client/user/get_users_responses.go b/api/members/members_client/users/get_users_responses.go similarity index 94% rename from api/devops/devops_client/user/get_users_responses.go rename to api/members/members_client/users/get_users_responses.go index 357cdd1..38947b9 100644 --- a/api/devops/devops_client/user/get_users_responses.go +++ b/api/members/members_client/users/get_users_responses.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package user +package users // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command @@ -16,7 +16,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "code.tnxs.net/vernonkeenan/lib/api/devops/devops_models" + "code.tnxs.net/vernonkeenan/lib/api/members/members_models" ) // GetUsersReader is a Reader for the GetUsers structure. @@ -82,7 +82,7 @@ type GetUsersOK struct { AccessControlAllowOrigin string CacheControl string - Payload *devops_models.UserResponse + Payload *members_models.UserResponse } // IsSuccess returns true when this get users o k response has a 2xx status code @@ -123,7 +123,7 @@ func (o *GetUsersOK) String() string { return fmt.Sprintf("[GET /users][%d] getUsersOK %+v", 200, o.Payload) } -func (o *GetUsersOK) GetPayload() *devops_models.UserResponse { +func (o *GetUsersOK) GetPayload() *members_models.UserResponse { return o.Payload } @@ -143,7 +143,7 @@ func (o *GetUsersOK) readResponse(response runtime.ClientResponse, consumer runt o.CacheControl = hdrCacheControl } - o.Payload = new(devops_models.UserResponse) + o.Payload = new(members_models.UserResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { @@ -167,7 +167,7 @@ type GetUsersUnauthorized struct { AccessControlAllowOrigin string CacheControl string - Payload *devops_models.Error + Payload *members_models.Error } // IsSuccess returns true when this get users unauthorized response has a 2xx status code @@ -208,7 +208,7 @@ func (o *GetUsersUnauthorized) String() string { return fmt.Sprintf("[GET /users][%d] getUsersUnauthorized %+v", 401, o.Payload) } -func (o *GetUsersUnauthorized) GetPayload() *devops_models.Error { +func (o *GetUsersUnauthorized) GetPayload() *members_models.Error { return o.Payload } @@ -228,7 +228,7 @@ func (o *GetUsersUnauthorized) readResponse(response runtime.ClientResponse, con o.CacheControl = hdrCacheControl } - o.Payload = new(devops_models.Error) + o.Payload = new(members_models.Error) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { @@ -251,7 +251,7 @@ Access forbidden, account lacks access type GetUsersForbidden struct { AccessControlAllowOrigin string - Payload *devops_models.Error + Payload *members_models.Error } // IsSuccess returns true when this get users forbidden response has a 2xx status code @@ -292,7 +292,7 @@ func (o *GetUsersForbidden) String() string { return fmt.Sprintf("[GET /users][%d] getUsersForbidden %+v", 403, o.Payload) } -func (o *GetUsersForbidden) GetPayload() *devops_models.Error { +func (o *GetUsersForbidden) GetPayload() *members_models.Error { return o.Payload } @@ -305,7 +305,7 @@ func (o *GetUsersForbidden) readResponse(response runtime.ClientResponse, consum o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin } - o.Payload = new(devops_models.Error) + o.Payload = new(members_models.Error) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { @@ -328,7 +328,7 @@ Resource was not found type GetUsersNotFound struct { AccessControlAllowOrigin string - Payload *devops_models.Error + Payload *members_models.Error } // IsSuccess returns true when this get users not found response has a 2xx status code @@ -369,7 +369,7 @@ func (o *GetUsersNotFound) String() string { return fmt.Sprintf("[GET /users][%d] getUsersNotFound %+v", 404, o.Payload) } -func (o *GetUsersNotFound) GetPayload() *devops_models.Error { +func (o *GetUsersNotFound) GetPayload() *members_models.Error { return o.Payload } @@ -382,7 +382,7 @@ func (o *GetUsersNotFound) readResponse(response runtime.ClientResponse, consume o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin } - o.Payload = new(devops_models.Error) + o.Payload = new(members_models.Error) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { @@ -406,7 +406,7 @@ type GetUsersUnprocessableEntity struct { AccessControlAllowOrigin string CacheControl string - Payload *devops_models.Error + Payload *members_models.Error } // IsSuccess returns true when this get users unprocessable entity response has a 2xx status code @@ -447,7 +447,7 @@ func (o *GetUsersUnprocessableEntity) String() string { return fmt.Sprintf("[GET /users][%d] getUsersUnprocessableEntity %+v", 422, o.Payload) } -func (o *GetUsersUnprocessableEntity) GetPayload() *devops_models.Error { +func (o *GetUsersUnprocessableEntity) GetPayload() *members_models.Error { return o.Payload } @@ -467,7 +467,7 @@ func (o *GetUsersUnprocessableEntity) readResponse(response runtime.ClientRespon o.CacheControl = hdrCacheControl } - o.Payload = new(devops_models.Error) + o.Payload = new(members_models.Error) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { @@ -490,7 +490,7 @@ Server Internal Error type GetUsersInternalServerError struct { AccessControlAllowOrigin string - Payload *devops_models.Error + Payload *members_models.Error } // IsSuccess returns true when this get users internal server error response has a 2xx status code @@ -531,7 +531,7 @@ func (o *GetUsersInternalServerError) String() string { return fmt.Sprintf("[GET /users][%d] getUsersInternalServerError %+v", 500, o.Payload) } -func (o *GetUsersInternalServerError) GetPayload() *devops_models.Error { +func (o *GetUsersInternalServerError) GetPayload() *members_models.Error { return o.Payload } @@ -544,7 +544,7 @@ func (o *GetUsersInternalServerError) readResponse(response runtime.ClientRespon o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin } - o.Payload = new(devops_models.Error) + o.Payload = new(members_models.Error) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { diff --git a/api/devops/devops_client/user/post_users_parameters.go b/api/members/members_client/users/post_users_parameters.go similarity index 93% rename from api/devops/devops_client/user/post_users_parameters.go rename to api/members/members_client/users/post_users_parameters.go index 5b04c9d..c898753 100644 --- a/api/devops/devops_client/user/post_users_parameters.go +++ b/api/members/members_client/users/post_users_parameters.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package user +package users // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command @@ -19,7 +19,7 @@ import ( cr "github.com/go-openapi/runtime/client" "github.com/go-openapi/strfmt" - "code.tnxs.net/vernonkeenan/lib/api/devops/devops_models" + "code.tnxs.net/vernonkeenan/lib/api/members/members_models" ) // NewPostUsersParams creates a new PostUsersParams object, @@ -71,7 +71,7 @@ type PostUsersParams struct { An array of User records */ - UserRequest *devops_models.UserRequest + UserRequest *members_models.UserRequest timeout time.Duration Context context.Context @@ -127,13 +127,13 @@ func (o *PostUsersParams) SetHTTPClient(client *http.Client) { } // WithUserRequest adds the userRequest to the post users params -func (o *PostUsersParams) WithUserRequest(userRequest *devops_models.UserRequest) *PostUsersParams { +func (o *PostUsersParams) WithUserRequest(userRequest *members_models.UserRequest) *PostUsersParams { o.SetUserRequest(userRequest) return o } // SetUserRequest adds the userRequest to the post users params -func (o *PostUsersParams) SetUserRequest(userRequest *devops_models.UserRequest) { +func (o *PostUsersParams) SetUserRequest(userRequest *members_models.UserRequest) { o.UserRequest = userRequest } diff --git a/api/devops/devops_client/user/post_users_responses.go b/api/members/members_client/users/post_users_responses.go similarity index 94% rename from api/devops/devops_client/user/post_users_responses.go rename to api/members/members_client/users/post_users_responses.go index 084a417..3bcef48 100644 --- a/api/devops/devops_client/user/post_users_responses.go +++ b/api/members/members_client/users/post_users_responses.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package user +package users // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command @@ -16,7 +16,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "code.tnxs.net/vernonkeenan/lib/api/devops/devops_models" + "code.tnxs.net/vernonkeenan/lib/api/members/members_models" ) // PostUsersReader is a Reader for the PostUsers structure. @@ -82,7 +82,7 @@ type PostUsersOK struct { AccessControlAllowOrigin string CacheControl string - Payload *devops_models.UserResponse + Payload *members_models.UserResponse } // IsSuccess returns true when this post users o k response has a 2xx status code @@ -123,7 +123,7 @@ func (o *PostUsersOK) String() string { return fmt.Sprintf("[POST /users][%d] postUsersOK %+v", 200, o.Payload) } -func (o *PostUsersOK) GetPayload() *devops_models.UserResponse { +func (o *PostUsersOK) GetPayload() *members_models.UserResponse { return o.Payload } @@ -143,7 +143,7 @@ func (o *PostUsersOK) readResponse(response runtime.ClientResponse, consumer run o.CacheControl = hdrCacheControl } - o.Payload = new(devops_models.UserResponse) + o.Payload = new(members_models.UserResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { @@ -167,7 +167,7 @@ type PostUsersUnauthorized struct { AccessControlAllowOrigin string CacheControl string - Payload *devops_models.Error + Payload *members_models.Error } // IsSuccess returns true when this post users unauthorized response has a 2xx status code @@ -208,7 +208,7 @@ func (o *PostUsersUnauthorized) String() string { return fmt.Sprintf("[POST /users][%d] postUsersUnauthorized %+v", 401, o.Payload) } -func (o *PostUsersUnauthorized) GetPayload() *devops_models.Error { +func (o *PostUsersUnauthorized) GetPayload() *members_models.Error { return o.Payload } @@ -228,7 +228,7 @@ func (o *PostUsersUnauthorized) readResponse(response runtime.ClientResponse, co o.CacheControl = hdrCacheControl } - o.Payload = new(devops_models.Error) + o.Payload = new(members_models.Error) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { @@ -251,7 +251,7 @@ Access forbidden, account lacks access type PostUsersForbidden struct { AccessControlAllowOrigin string - Payload *devops_models.Error + Payload *members_models.Error } // IsSuccess returns true when this post users forbidden response has a 2xx status code @@ -292,7 +292,7 @@ func (o *PostUsersForbidden) String() string { return fmt.Sprintf("[POST /users][%d] postUsersForbidden %+v", 403, o.Payload) } -func (o *PostUsersForbidden) GetPayload() *devops_models.Error { +func (o *PostUsersForbidden) GetPayload() *members_models.Error { return o.Payload } @@ -305,7 +305,7 @@ func (o *PostUsersForbidden) readResponse(response runtime.ClientResponse, consu o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin } - o.Payload = new(devops_models.Error) + o.Payload = new(members_models.Error) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { @@ -328,7 +328,7 @@ Resource was not found type PostUsersNotFound struct { AccessControlAllowOrigin string - Payload *devops_models.Error + Payload *members_models.Error } // IsSuccess returns true when this post users not found response has a 2xx status code @@ -369,7 +369,7 @@ func (o *PostUsersNotFound) String() string { return fmt.Sprintf("[POST /users][%d] postUsersNotFound %+v", 404, o.Payload) } -func (o *PostUsersNotFound) GetPayload() *devops_models.Error { +func (o *PostUsersNotFound) GetPayload() *members_models.Error { return o.Payload } @@ -382,7 +382,7 @@ func (o *PostUsersNotFound) readResponse(response runtime.ClientResponse, consum o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin } - o.Payload = new(devops_models.Error) + o.Payload = new(members_models.Error) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { @@ -406,7 +406,7 @@ type PostUsersUnprocessableEntity struct { AccessControlAllowOrigin string CacheControl string - Payload *devops_models.Error + Payload *members_models.Error } // IsSuccess returns true when this post users unprocessable entity response has a 2xx status code @@ -447,7 +447,7 @@ func (o *PostUsersUnprocessableEntity) String() string { return fmt.Sprintf("[POST /users][%d] postUsersUnprocessableEntity %+v", 422, o.Payload) } -func (o *PostUsersUnprocessableEntity) GetPayload() *devops_models.Error { +func (o *PostUsersUnprocessableEntity) GetPayload() *members_models.Error { return o.Payload } @@ -467,7 +467,7 @@ func (o *PostUsersUnprocessableEntity) readResponse(response runtime.ClientRespo o.CacheControl = hdrCacheControl } - o.Payload = new(devops_models.Error) + o.Payload = new(members_models.Error) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { @@ -490,7 +490,7 @@ Server Internal Error type PostUsersInternalServerError struct { AccessControlAllowOrigin string - Payload *devops_models.Error + Payload *members_models.Error } // IsSuccess returns true when this post users internal server error response has a 2xx status code @@ -531,7 +531,7 @@ func (o *PostUsersInternalServerError) String() string { return fmt.Sprintf("[POST /users][%d] postUsersInternalServerError %+v", 500, o.Payload) } -func (o *PostUsersInternalServerError) GetPayload() *devops_models.Error { +func (o *PostUsersInternalServerError) GetPayload() *members_models.Error { return o.Payload } @@ -544,7 +544,7 @@ func (o *PostUsersInternalServerError) readResponse(response runtime.ClientRespo o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin } - o.Payload = new(devops_models.Error) + o.Payload = new(members_models.Error) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { diff --git a/api/devops/devops_client/user/put_users_parameters.go b/api/members/members_client/users/put_users_parameters.go similarity index 93% rename from api/devops/devops_client/user/put_users_parameters.go rename to api/members/members_client/users/put_users_parameters.go index 1078778..6b2c3e2 100644 --- a/api/devops/devops_client/user/put_users_parameters.go +++ b/api/members/members_client/users/put_users_parameters.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package user +package users // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command @@ -19,7 +19,7 @@ import ( cr "github.com/go-openapi/runtime/client" "github.com/go-openapi/strfmt" - "code.tnxs.net/vernonkeenan/lib/api/devops/devops_models" + "code.tnxs.net/vernonkeenan/lib/api/members/members_models" ) // NewPutUsersParams creates a new PutUsersParams object, @@ -71,7 +71,7 @@ type PutUsersParams struct { An array of User records */ - UserRequest *devops_models.UserRequest + UserRequest *members_models.UserRequest timeout time.Duration Context context.Context @@ -127,13 +127,13 @@ func (o *PutUsersParams) SetHTTPClient(client *http.Client) { } // WithUserRequest adds the userRequest to the put users params -func (o *PutUsersParams) WithUserRequest(userRequest *devops_models.UserRequest) *PutUsersParams { +func (o *PutUsersParams) WithUserRequest(userRequest *members_models.UserRequest) *PutUsersParams { o.SetUserRequest(userRequest) return o } // SetUserRequest adds the userRequest to the put users params -func (o *PutUsersParams) SetUserRequest(userRequest *devops_models.UserRequest) { +func (o *PutUsersParams) SetUserRequest(userRequest *members_models.UserRequest) { o.UserRequest = userRequest } diff --git a/api/devops/devops_client/user/put_users_responses.go b/api/members/members_client/users/put_users_responses.go similarity index 94% rename from api/devops/devops_client/user/put_users_responses.go rename to api/members/members_client/users/put_users_responses.go index bf0e975..6d69a45 100644 --- a/api/devops/devops_client/user/put_users_responses.go +++ b/api/members/members_client/users/put_users_responses.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package user +package users // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command @@ -16,7 +16,7 @@ import ( "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" - "code.tnxs.net/vernonkeenan/lib/api/devops/devops_models" + "code.tnxs.net/vernonkeenan/lib/api/members/members_models" ) // PutUsersReader is a Reader for the PutUsers structure. @@ -82,7 +82,7 @@ type PutUsersOK struct { AccessControlAllowOrigin string CacheControl string - Payload *devops_models.UserResponse + Payload *members_models.UserResponse } // IsSuccess returns true when this put users o k response has a 2xx status code @@ -123,7 +123,7 @@ func (o *PutUsersOK) String() string { return fmt.Sprintf("[PUT /users][%d] putUsersOK %+v", 200, o.Payload) } -func (o *PutUsersOK) GetPayload() *devops_models.UserResponse { +func (o *PutUsersOK) GetPayload() *members_models.UserResponse { return o.Payload } @@ -143,7 +143,7 @@ func (o *PutUsersOK) readResponse(response runtime.ClientResponse, consumer runt o.CacheControl = hdrCacheControl } - o.Payload = new(devops_models.UserResponse) + o.Payload = new(members_models.UserResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { @@ -167,7 +167,7 @@ type PutUsersUnauthorized struct { AccessControlAllowOrigin string CacheControl string - Payload *devops_models.Error + Payload *members_models.Error } // IsSuccess returns true when this put users unauthorized response has a 2xx status code @@ -208,7 +208,7 @@ func (o *PutUsersUnauthorized) String() string { return fmt.Sprintf("[PUT /users][%d] putUsersUnauthorized %+v", 401, o.Payload) } -func (o *PutUsersUnauthorized) GetPayload() *devops_models.Error { +func (o *PutUsersUnauthorized) GetPayload() *members_models.Error { return o.Payload } @@ -228,7 +228,7 @@ func (o *PutUsersUnauthorized) readResponse(response runtime.ClientResponse, con o.CacheControl = hdrCacheControl } - o.Payload = new(devops_models.Error) + o.Payload = new(members_models.Error) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { @@ -251,7 +251,7 @@ Access forbidden, account lacks access type PutUsersForbidden struct { AccessControlAllowOrigin string - Payload *devops_models.Error + Payload *members_models.Error } // IsSuccess returns true when this put users forbidden response has a 2xx status code @@ -292,7 +292,7 @@ func (o *PutUsersForbidden) String() string { return fmt.Sprintf("[PUT /users][%d] putUsersForbidden %+v", 403, o.Payload) } -func (o *PutUsersForbidden) GetPayload() *devops_models.Error { +func (o *PutUsersForbidden) GetPayload() *members_models.Error { return o.Payload } @@ -305,7 +305,7 @@ func (o *PutUsersForbidden) readResponse(response runtime.ClientResponse, consum o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin } - o.Payload = new(devops_models.Error) + o.Payload = new(members_models.Error) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { @@ -328,7 +328,7 @@ Resource was not found type PutUsersNotFound struct { AccessControlAllowOrigin string - Payload *devops_models.Error + Payload *members_models.Error } // IsSuccess returns true when this put users not found response has a 2xx status code @@ -369,7 +369,7 @@ func (o *PutUsersNotFound) String() string { return fmt.Sprintf("[PUT /users][%d] putUsersNotFound %+v", 404, o.Payload) } -func (o *PutUsersNotFound) GetPayload() *devops_models.Error { +func (o *PutUsersNotFound) GetPayload() *members_models.Error { return o.Payload } @@ -382,7 +382,7 @@ func (o *PutUsersNotFound) readResponse(response runtime.ClientResponse, consume o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin } - o.Payload = new(devops_models.Error) + o.Payload = new(members_models.Error) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { @@ -406,7 +406,7 @@ type PutUsersUnprocessableEntity struct { AccessControlAllowOrigin string CacheControl string - Payload *devops_models.Error + Payload *members_models.Error } // IsSuccess returns true when this put users unprocessable entity response has a 2xx status code @@ -447,7 +447,7 @@ func (o *PutUsersUnprocessableEntity) String() string { return fmt.Sprintf("[PUT /users][%d] putUsersUnprocessableEntity %+v", 422, o.Payload) } -func (o *PutUsersUnprocessableEntity) GetPayload() *devops_models.Error { +func (o *PutUsersUnprocessableEntity) GetPayload() *members_models.Error { return o.Payload } @@ -467,7 +467,7 @@ func (o *PutUsersUnprocessableEntity) readResponse(response runtime.ClientRespon o.CacheControl = hdrCacheControl } - o.Payload = new(devops_models.Error) + o.Payload = new(members_models.Error) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { @@ -490,7 +490,7 @@ Server Internal Error type PutUsersInternalServerError struct { AccessControlAllowOrigin string - Payload *devops_models.Error + Payload *members_models.Error } // IsSuccess returns true when this put users internal server error response has a 2xx status code @@ -531,7 +531,7 @@ func (o *PutUsersInternalServerError) String() string { return fmt.Sprintf("[PUT /users][%d] putUsersInternalServerError %+v", 500, o.Payload) } -func (o *PutUsersInternalServerError) GetPayload() *devops_models.Error { +func (o *PutUsersInternalServerError) GetPayload() *members_models.Error { return o.Payload } @@ -544,7 +544,7 @@ func (o *PutUsersInternalServerError) readResponse(response runtime.ClientRespon o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin } - o.Payload = new(devops_models.Error) + o.Payload = new(members_models.Error) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { diff --git a/api/devops/devops_client/user/user_client.go b/api/members/members_client/users/users_client.go similarity index 62% rename from api/devops/devops_client/user/user_client.go rename to api/members/members_client/users/users_client.go index 76b14c8..c19a018 100644 --- a/api/devops/devops_client/user/user_client.go +++ b/api/members/members_client/users/users_client.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package user +package users // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command @@ -16,13 +16,13 @@ import ( "github.com/go-openapi/strfmt" ) -// New creates a new user API client. +// New creates a new users API client. func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService { return &Client{transport: transport, formats: formats} } /* -Client for user API +Client for users API */ type Client struct { transport runtime.ClientTransport @@ -34,12 +34,8 @@ type ClientOption func(*runtime.ClientOperation) // ClientService is the interface for Client methods type ClientService interface { - GetUser(params *GetUserParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetUserOK, error) - GetUsers(params *GetUsersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetUsersOK, error) - GetUsersObservable(params *GetUsersObservableParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetUsersObservableOK, error) - PostUsers(params *PostUsersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostUsersOK, error) PutUsers(params *PutUsersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PutUsersOK, error) @@ -47,47 +43,6 @@ type ClientService interface { SetTransport(transport runtime.ClientTransport) } -/* -GetUser gets a single user object - -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 - if params == nil { - params = NewGetUserParams() - } - op := &runtime.ClientOperation{ - ID: "getUser", - Method: "GET", - PathPattern: "/users/{userIdPath}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &GetUserReader{formats: a.formats}, - AuthInfo: authInfo, - Context: params.Context, - Client: params.HTTPClient, - } - for _, opt := range opts { - opt(op) - } - - result, err := a.transport.Submit(op) - if err != nil { - return nil, err - } - success, ok := result.(*GetUserOK) - if ok { - return success, nil - } - // unexpected success response - // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for getUser: API contract not enforced by server. Client expected to get an error, but got: %T", result) - panic(msg) -} - /* GetUsers gets a list users @@ -129,47 +84,6 @@ func (a *Client) GetUsers(params *GetUsersParams, authInfo runtime.ClientAuthInf panic(msg) } -/* -GetUsersObservable gets users in an 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 - if params == nil { - params = NewGetUsersObservableParams() - } - op := &runtime.ClientOperation{ - ID: "getUsersObservable", - Method: "GET", - PathPattern: "/users/observable", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &GetUsersObservableReader{formats: a.formats}, - AuthInfo: authInfo, - Context: params.Context, - Client: params.HTTPClient, - } - for _, opt := range opts { - opt(op) - } - - result, err := a.transport.Submit(op) - if err != nil { - return nil, err - } - success, ok := result.(*GetUsersObservableOK) - if ok { - return success, nil - } - // unexpected success response - // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for getUsersObservable: API contract not enforced by server. Client expected to get an error, but got: %T", result) - panic(msg) -} - /* PostUsers creates new users diff --git a/api/devops/devops_models/address.go b/api/members/members_models/address.go similarity index 98% rename from api/devops/devops_models/address.go rename to api/members/members_models/address.go index 21b6b9e..b251122 100644 --- a/api/devops/devops_models/address.go +++ b/api/members/members_models/address.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package devops_models +package members_models // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/devops/devops_models/cluster.go b/api/members/members_models/cluster.go similarity index 98% rename from api/devops/devops_models/cluster.go rename to api/members/members_models/cluster.go index a1c0af6..55f40a0 100644 --- a/api/devops/devops_models/cluster.go +++ b/api/members/members_models/cluster.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package devops_models +package members_models // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/devops/devops_models/cluster_request.go b/api/members/members_models/cluster_request.go similarity index 99% rename from api/devops/devops_models/cluster_request.go rename to api/members/members_models/cluster_request.go index c901985..f4eda65 100644 --- a/api/devops/devops_models/cluster_request.go +++ b/api/members/members_models/cluster_request.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package devops_models +package members_models // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/devops/devops_models/cluster_response.go b/api/members/members_models/cluster_response.go similarity index 99% rename from api/devops/devops_models/cluster_response.go rename to api/members/members_models/cluster_response.go index 6a97cec..0019587 100644 --- a/api/devops/devops_models/cluster_response.go +++ b/api/members/members_models/cluster_response.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package devops_models +package members_models // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/devops/devops_models/database.go b/api/members/members_models/database.go similarity index 98% rename from api/devops/devops_models/database.go rename to api/members/members_models/database.go index 9259c95..df4b4a3 100644 --- a/api/devops/devops_models/database.go +++ b/api/members/members_models/database.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package devops_models +package members_models // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/devops/devops_models/database_request.go b/api/members/members_models/database_request.go similarity index 99% rename from api/devops/devops_models/database_request.go rename to api/members/members_models/database_request.go index d5fe513..6aee6e7 100644 --- a/api/devops/devops_models/database_request.go +++ b/api/members/members_models/database_request.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package devops_models +package members_models // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/devops/devops_models/database_response.go b/api/members/members_models/database_response.go similarity index 99% rename from api/devops/devops_models/database_response.go rename to api/members/members_models/database_response.go index 767dbf8..cb377de 100644 --- a/api/devops/devops_models/database_response.go +++ b/api/members/members_models/database_response.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package devops_models +package members_models // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/devops/devops_models/error.go b/api/members/members_models/error.go similarity index 98% rename from api/devops/devops_models/error.go rename to api/members/members_models/error.go index 08ea91d..351a12e 100644 --- a/api/devops/devops_models/error.go +++ b/api/members/members_models/error.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package devops_models +package members_models // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/devops/devops_models/message.go b/api/members/members_models/message.go similarity index 98% rename from api/devops/devops_models/message.go rename to api/members/members_models/message.go index 621df2b..1aedd43 100644 --- a/api/devops/devops_models/message.go +++ b/api/members/members_models/message.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package devops_models +package members_models // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/devops/devops_models/pagination.go b/api/members/members_models/pagination.go similarity index 98% rename from api/devops/devops_models/pagination.go rename to api/members/members_models/pagination.go index 963bce0..f0e3326 100644 --- a/api/devops/devops_models/pagination.go +++ b/api/members/members_models/pagination.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package devops_models +package members_models // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/devops/devops_models/request_meta.go b/api/members/members_models/request_meta.go similarity index 98% rename from api/devops/devops_models/request_meta.go rename to api/members/members_models/request_meta.go index b01b2d1..f7a763c 100644 --- a/api/devops/devops_models/request_meta.go +++ b/api/members/members_models/request_meta.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package devops_models +package members_models // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/devops/devops_models/response_meta.go b/api/members/members_models/response_meta.go similarity index 99% rename from api/devops/devops_models/response_meta.go rename to api/members/members_models/response_meta.go index 3f8dab8..cfea056 100644 --- a/api/devops/devops_models/response_meta.go +++ b/api/members/members_models/response_meta.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package devops_models +package members_models // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/devops/devops_models/role.go b/api/members/members_models/role.go similarity index 98% rename from api/devops/devops_models/role.go rename to api/members/members_models/role.go index 78bb820..60b307f 100644 --- a/api/devops/devops_models/role.go +++ b/api/members/members_models/role.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package devops_models +package members_models // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/devops/devops_models/role_request.go b/api/members/members_models/role_request.go similarity index 99% rename from api/devops/devops_models/role_request.go rename to api/members/members_models/role_request.go index b4c7b66..1a34a91 100644 --- a/api/devops/devops_models/role_request.go +++ b/api/members/members_models/role_request.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package devops_models +package members_models // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/devops/devops_models/role_response.go b/api/members/members_models/role_response.go similarity index 99% rename from api/devops/devops_models/role_response.go rename to api/members/members_models/role_response.go index bd05797..0221922 100644 --- a/api/devops/devops_models/role_response.go +++ b/api/members/members_models/role_response.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package devops_models +package members_models // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/devops/devops_models/template.go b/api/members/members_models/template.go similarity index 98% rename from api/devops/devops_models/template.go rename to api/members/members_models/template.go index dfe7e40..c26f428 100644 --- a/api/devops/devops_models/template.go +++ b/api/members/members_models/template.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package devops_models +package members_models // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/devops/devops_models/template_request.go b/api/members/members_models/template_request.go similarity index 99% rename from api/devops/devops_models/template_request.go rename to api/members/members_models/template_request.go index f848753..c4537a3 100644 --- a/api/devops/devops_models/template_request.go +++ b/api/members/members_models/template_request.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package devops_models +package members_models // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/devops/devops_models/template_response.go b/api/members/members_models/template_response.go similarity index 99% rename from api/devops/devops_models/template_response.go rename to api/members/members_models/template_response.go index f5eb10c..63d8fa8 100644 --- a/api/devops/devops_models/template_response.go +++ b/api/members/members_models/template_response.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package devops_models +package members_models // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/devops/devops_models/tenant.go b/api/members/members_models/tenant.go similarity index 99% rename from api/devops/devops_models/tenant.go rename to api/members/members_models/tenant.go index 7282369..15802cb 100644 --- a/api/devops/devops_models/tenant.go +++ b/api/members/members_models/tenant.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package devops_models +package members_models // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/devops/devops_models/tenant_request.go b/api/members/members_models/tenant_request.go similarity index 99% rename from api/devops/devops_models/tenant_request.go rename to api/members/members_models/tenant_request.go index 75067d6..ff8055f 100644 --- a/api/devops/devops_models/tenant_request.go +++ b/api/members/members_models/tenant_request.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package devops_models +package members_models // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/devops/devops_models/tenant_response.go b/api/members/members_models/tenant_response.go similarity index 99% rename from api/devops/devops_models/tenant_response.go rename to api/members/members_models/tenant_response.go index 6aa8e49..6cadebd 100644 --- a/api/devops/devops_models/tenant_response.go +++ b/api/members/members_models/tenant_response.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package devops_models +package members_models // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/devops/devops_models/tenant_user.go b/api/members/members_models/tenant_user.go similarity index 99% rename from api/devops/devops_models/tenant_user.go rename to api/members/members_models/tenant_user.go index adf43b5..63853c3 100644 --- a/api/devops/devops_models/tenant_user.go +++ b/api/members/members_models/tenant_user.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package devops_models +package members_models // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/devops/devops_models/user.go b/api/members/members_models/user.go similarity index 99% rename from api/devops/devops_models/user.go rename to api/members/members_models/user.go index 4606ace..cbb6221 100644 --- a/api/devops/devops_models/user.go +++ b/api/members/members_models/user.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package devops_models +package members_models // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/devops/devops_models/user_request.go b/api/members/members_models/user_request.go similarity index 99% rename from api/devops/devops_models/user_request.go rename to api/members/members_models/user_request.go index 651b676..16c1ce1 100644 --- a/api/devops/devops_models/user_request.go +++ b/api/members/members_models/user_request.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package devops_models +package members_models // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/devops/devops_models/user_response.go b/api/members/members_models/user_response.go similarity index 99% rename from api/devops/devops_models/user_response.go rename to api/members/members_models/user_response.go index f958de2..24d7e4a 100644 --- a/api/devops/devops_models/user_response.go +++ b/api/members/members_models/user_response.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package devops_models +package members_models // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/api/devops/devops_models/user_role.go b/api/members/members_models/user_role.go similarity index 98% rename from api/devops/devops_models/user_role.go rename to api/members/members_models/user_role.go index 295d289..75359d0 100644 --- a/api/devops/devops_models/user_role.go +++ b/api/members/members_models/user_role.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package devops_models +package members_models // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command diff --git a/app/tenantuser.go b/app/tenantuser.go index 6d7cd82..87b4996 100644 --- a/app/tenantuser.go +++ b/app/tenantuser.go @@ -1,10 +1,10 @@ package app -import "code.tnxs.net/vernonkeenan/lib/api/devops/devops_models" +import "code.tnxs.net/vernonkeenan/lib/api/members/members_models" // TenantUserActivityWrapper wraps the object with workflow params type TenantUserActivityWrapper struct { - Obj devops_models.TenantUser + Obj members_models.TenantUser APIKey string SagaID string SagaType string diff --git a/app/user.go b/app/user.go index db4926f..63b7c43 100644 --- a/app/user.go +++ b/app/user.go @@ -1,13 +1,13 @@ package app import ( - "code.tnxs.net/vernonkeenan/lib/api/devops/devops_models" + "code.tnxs.net/vernonkeenan/lib/api/members/members_models" "github.com/go-openapi/runtime" ) // UserActivityWrapper wraps the object with workflow params type UserActivityWrapper struct { - Obj devops_models.User + Obj members_models.User APIKey string SagaID string SagaType string diff --git a/app/userrole.go b/app/userrole.go index eff7aa5..85c8450 100644 --- a/app/userrole.go +++ b/app/userrole.go @@ -1,10 +1,10 @@ package app -import "code.tnxs.net/vernonkeenan/lib/api/devops/devops_models" +import "code.tnxs.net/vernonkeenan/lib/api/members/members_models" // UserRoleActivityWrapper wraps the object with workflow params type UserRoleActivityWrapper struct { - Obj devops_models.UserRole + Obj members_models.UserRole APIKey string SagaID string SagaType string diff --git a/swagger/devops-vernonkeenan.yaml b/swagger/devops-vernonkeenan.yaml deleted file mode 100644 index 34593ee..0000000 --- a/swagger/devops-vernonkeenan.yaml +++ /dev/null @@ -1,1820 +0,0 @@ -swagger: "2.0" -info: - version: 0.3.0 - title: "devops" - description: "System Operations Microservice" - termsOfService: "https://salesforcedevops.net/terms/" - contact: - email: "vern@vernonkeenan.com" - license: - name: "Proprietary - Copyright (c) 2018-2023 by Vernon Keenan" -securityDefinitions: - ApiKeyAuth: - type: "apiKey" - in: "header" - name: "X-API-Key" -schemes: - - "http" -basePath: "/v1" -host: "devops.vernonkeenan.com:8080" -consumes: - - "application/json" -produces: - - "application/json" -parameters: - databaseIdQuery: - description: Record Id of a Database - in: query - name: databaseId - required: false - type: string - taxnexusAccountQuery: - description: Account of a Tenant - in: query - name: taxnexusAccount - required: false - type: string - tenantIdQuery: - description: Record Id of a Tenant - in: query - name: tenantId - required: false - type: string - tenantRequest: - description: An array of Tenant records - in: body - name: TenantRequest - required: true - schema: - $ref: "#/definitions/TenantRequest" - databaseRequest: - description: An array of Database records - in: body - name: DatabaseRequest - required: true - schema: - $ref: "#/definitions/DatabaseRequest" - X-API-Key: - name: X-API-Key - in: "header" - required: true - type: string - ClusterRequest: - description: An array of Cluster records - in: body - name: ClusterRequest - required: true - schema: - $ref: "#/definitions/ClusterRequest" - TemplateRequest: - description: An array of Template records - in: body - name: TemplateRequest - required: true - schema: - $ref: "#/definitions/TemplateRequest" - UserRequest: - description: An array of User records - in: body - name: UserRequest - required: true - schema: - $ref: "#/definitions/UserRequest" - accountIdQuery: - description: Record Id of an Account - in: query - name: accountId - required: false - type: string - contactIdQuery: - description: Record Id of a Contact - in: query - name: contactId - required: false - type: string - accountNumberQuery: - description: The Taxnexus Account Number of the Account to be used a record - retrieval - in: query - name: accountNumber - required: false - type: string - activeQuery: - description: Retrieve active records only? - in: query - name: active - required: false - type: boolean - apiKeyQuery: - description: Service account or developer API key - in: query - name: apikey - type: string - clusterIdPath: - description: Record Id of a Cluster - in: path - name: clusterIdPath - type: string - required: true - databaseIdPath: - description: Record Id of a Database - in: path - name: databaseIdPath - type: string - required: true - clusterIdQuery: - description: Record Id of a Cluster - in: query - name: clusterId - required: false - type: string - companyIdQuery: - description: Record Id of a Company - in: query - name: companyId - required: false - type: string - ingestIdPath: - description: Record Id of a Ingest - in: path - name: ingestIdPath - type: string - required: true - ingestIdQuery: - description: Record Id of an Ingest - in: query - name: ingestId - required: false - type: string - jobIdPath: - description: Record Id of a Job - in: path - name: jobIdPath - type: string - required: true - jobIdQuery: - description: Record Id of a Job - in: query - name: jobId - required: false - type: string - limitQuery: - description: "How many objects to return at one time" - format: int64 - in: query - name: limit - required: false - type: integer - offsetQuery: - description: How many objects to skip? (default 0) - format: int64 - in: query - name: offset - required: false - type: integer - serviceIdPath: - description: Record Id of a Service - in: path - name: serviceIdPath - type: string - required: true - serviceIdQuery: - description: Service ID - in: query - name: serviceId - type: string - templateIdPath: - description: Record Id of a Template - in: path - name: templateIdPath - type: string - required: true - templateIdQuery: - description: Template ID - in: query - name: templateId - type: string - objectTypeQuery: - description: Object Type Name - in: query - name: objectType - type: string - isMasterQuery: - description: Is Master Template? - in: query - name: isMaster - type: boolean - userIdPath: - description: Record Id of a User - in: path - name: userIdPath - type: string - required: true - tenantIdPath: - description: Record Id of a Tenant - in: path - name: tenantIdPath - type: string - required: true - userIdQuery: - description: User ID (unique) - in: query - name: userId - type: string - emailQuery: - description: Email Address (not unique) - in: query - name: email - type: string - usernameQuery: - description: Username (unique) - in: query - name: username - type: string - userRequest: - description: An array of user records - in: body - name: UserRequest - required: true - schema: - $ref: "#/definitions/UserRequest" -responses: - AccessForbidden: - description: "Access forbidden, account lacks access" - headers: - Access-Control-Allow-Origin: - type: string - schema: - $ref: "#/definitions/Error" - ClusterSingletonResponse: - description: Single Cluster record response - headers: - Access-Control-Allow-Origin: - type: string - Cache-Control: - type: string - schema: - $ref: "#/definitions/Cluster" - ClusterObservableResponse: - description: Single Cluster record response - headers: - Access-Control-Allow-Origin: - type: string - Cache-Control: - type: string - schema: - type: array - items: - $ref: "#/definitions/Cluster" - ClusterResponse: - description: Response with Cluster objects - headers: - Access-Control-Allow-Origin: - type: string - Cache-Control: - type: string - schema: - $ref: "#/definitions/ClusterResponse" - DeveopsDeleteResponse: - description: Response with Message Objects with Delete Status - headers: - Access-Control-Allow-Origin: - type: string - schema: - $ref: "#/definitions/DeleteResponse" - NotFound: - headers: - Access-Control-Allow-Origin: - type: string - description: Resource was not found - schema: - $ref: "#/definitions/Error" - DatabaseResponse: - headers: - Access-Control-Allow-Origin: - type: string - description: Response with Database objects - schema: - $ref: "#/definitions/DatabaseResponse" - DatabaseSingletonResponse: - description: Single Database record response - headers: - Access-Control-Allow-Origin: - type: string - Cache-Control: - type: string - schema: - $ref: "#/definitions/Database" - DatabaseObservableResponse: - description: Single Database record response - headers: - Access-Control-Allow-Origin: - type: string - Cache-Control: - type: string - schema: - type: array - items: - $ref: "#/definitions/Database" - TenantResponse: - headers: - Access-Control-Allow-Origin: - type: string - description: Response with Tenant objects - schema: - $ref: "#/definitions/TenantResponse" - TenantSingletonResponse: - description: Single Tenant record response - headers: - Access-Control-Allow-Origin: - type: string - Cache-Control: - type: string - schema: - $ref: "#/definitions/Tenant" - TenantObservableResponse: - description: Single Tenant record response - headers: - Access-Control-Allow-Origin: - type: string - Cache-Control: - type: string - schema: - type: array - items: - $ref: "#/definitions/Tenant" - ServerError: - headers: - Access-Control-Allow-Origin: - type: string - description: Server Internal Error - schema: - $ref: "#/definitions/Error" - TemplateResponse: - description: Response with Template objects - headers: - Access-Control-Allow-Origin: - type: string - Cache-Control: - type: string - schema: - $ref: "#/definitions/TemplateResponse" - TemplateSingletonResponse: - description: Single Template record response - headers: - Access-Control-Allow-Origin: - type: string - Cache-Control: - type: string - schema: - $ref: "#/definitions/Template" - TemplateObservableResponse: - description: Simple Template record response - headers: - Access-Control-Allow-Origin: - type: string - Cache-Control: - type: string - schema: - type: array - items: - $ref: "#/definitions/Template" - Unauthorized: - description: "Access Unauthorized, invalid API-KEY was used" - headers: - Access-Control-Allow-Origin: - type: string - Cache-Control: - type: string - schema: - $ref: "#/definitions/Error" - UnprocessableEntity: - description: "Unprocessable Entity, likely a bad parameter" - headers: - Access-Control-Allow-Origin: - type: string - Cache-Control: - type: string - schema: - $ref: "#/definitions/Error" - UserResponse: - description: Response with User objects - headers: - Access-Control-Allow-Origin: - type: string - Cache-Control: - type: string - schema: - $ref: "#/definitions/UserResponse" - UserSingletonResponse: - description: Single User record response - headers: - Access-Control-Allow-Origin: - type: string - Cache-Control: - type: string - schema: - $ref: "#/definitions/User" - UserObservableResponse: - description: Simple User record response - headers: - Access-Control-Allow-Origin: - type: string - Cache-Control: - type: string - schema: - type: array - items: - $ref: "#/definitions/User" - CORSResponse: - description: CORS OPTIONS response - headers: - Access-Control-Allow-Origin: - type: string - Access-Control-Allow-Headers: - type: string - Access-Control-Allow-Methods: - type: string - Access-Control-Expose-Headers: - type: string - Access-Control-Max-Age: - type: string - Access-Control-Allow-Credentials: - type: string - Cache-Control: - type: string -paths: - /clusters: - get: - description: Return a list of Cluster records from the datastore - operationId: getClusters - parameters: - - $ref: "#/parameters/clusterIdQuery" - - $ref: "#/parameters/companyIdQuery" - - $ref: "#/parameters/limitQuery" - - $ref: "#/parameters/offsetQuery" - responses: - "200": - $ref: "#/responses/ClusterResponse" - "401": - $ref: "#/responses/Unauthorized" - "403": - $ref: "#/responses/AccessForbidden" - "404": - $ref: "#/responses/NotFound" - "422": - $ref: "#/responses/UnprocessableEntity" - "500": - $ref: "#/responses/ServerError" - security: - - ApiKeyAuth: [] - summary: Get a list Clusters - tags: - - Cluster - options: - description: CORS support - operationId: clustersOptions - responses: - "200": - $ref: "#/responses/CORSResponse" - tags: - - cors - post: - description: Create Clusters in Taxnexus - operationId: postClusters - parameters: - - $ref: "#/parameters/ClusterRequest" - responses: - "200": - $ref: "#/responses/ClusterResponse" - "401": - $ref: "#/responses/Unauthorized" - "403": - $ref: "#/responses/AccessForbidden" - "404": - $ref: "#/responses/NotFound" - "422": - $ref: "#/responses/UnprocessableEntity" - "500": - $ref: "#/responses/ServerError" - security: - - ApiKeyAuth: [] - summary: Create new Clusters - tags: - - Cluster - put: - description: Update Cluster in Taxnexus - operationId: putClusters - parameters: - - $ref: "#/parameters/ClusterRequest" - responses: - "200": - $ref: "#/responses/ClusterResponse" - "401": - $ref: "#/responses/Unauthorized" - "403": - $ref: "#/responses/AccessForbidden" - "404": - $ref: "#/responses/NotFound" - "422": - $ref: "#/responses/UnprocessableEntity" - "500": - $ref: "#/responses/ServerError" - security: - - ApiKeyAuth: [] - summary: Update Clustera - tags: - - Cluster - /clusters/observable: - get: - description: Returns a Cluster retrieval in a observable array - operationId: getClustersObservable - responses: - "200": - $ref: "#/responses/ClusterObservableResponse" - "401": - $ref: "#/responses/Unauthorized" - "403": - $ref: "#/responses/AccessForbidden" - "404": - $ref: "#/responses/NotFound" - "422": - $ref: "#/responses/UnprocessableEntity" - "500": - $ref: "#/responses/ServerError" - security: - - ApiKeyAuth: [] - summary: Get Clusters in an observable array - tags: - - Cluster - options: - description: CORS support - operationId: clusterOptions - responses: - "200": - $ref: "#/responses/CORSResponse" - tags: - - cors - "/clusters/{clusterIdPath}": - get: - description: Return a single Cluster object from datastore as a Singleton - operationId: getCluster - parameters: - - $ref: "#/parameters/clusterIdPath" - responses: - "200": - $ref: "#/responses/ClusterSingletonResponse" - "401": - $ref: "#/responses/Unauthorized" - "403": - $ref: "#/responses/AccessForbidden" - "404": - $ref: "#/responses/NotFound" - "422": - $ref: "#/responses/UnprocessableEntity" - "500": - $ref: "#/responses/ServerError" - security: - - ApiKeyAuth: [] - summary: Get a single Cluster object - tags: - - Cluster - /databases: - get: - description: Return a list of Database records from the datastore - operationId: getDatabases - parameters: - - $ref: "#/parameters/databaseIdQuery" - - $ref: "#/parameters/companyIdQuery" - - $ref: "#/parameters/limitQuery" - - $ref: "#/parameters/offsetQuery" - responses: - "200": - $ref: "#/responses/DatabaseResponse" - "401": - $ref: "#/responses/Unauthorized" - "403": - $ref: "#/responses/AccessForbidden" - "404": - $ref: "#/responses/NotFound" - "422": - $ref: "#/responses/UnprocessableEntity" - "500": - $ref: "#/responses/ServerError" - security: - - ApiKeyAuth: [] - summary: Get a list Databases - tags: - - Database - options: - description: CORS support - operationId: databasesOptions - responses: - "200": - $ref: "#/responses/CORSResponse" - tags: - - cors - post: - description: Create Databases in Taxnexus - operationId: postDatabases - parameters: - - $ref: "#/parameters/databaseRequest" - responses: - "200": - $ref: "#/responses/DatabaseResponse" - "401": - $ref: "#/responses/Unauthorized" - "403": - $ref: "#/responses/AccessForbidden" - "404": - $ref: "#/responses/NotFound" - "422": - $ref: "#/responses/UnprocessableEntity" - "500": - $ref: "#/responses/ServerError" - security: - - ApiKeyAuth: [] - summary: Create new Databases - tags: - - Database - put: - description: Update Database in Taxnexus - operationId: putDatabases - parameters: - - $ref: "#/parameters/databaseRequest" - responses: - "200": - $ref: "#/responses/DatabaseResponse" - "401": - $ref: "#/responses/Unauthorized" - "403": - $ref: "#/responses/AccessForbidden" - "404": - $ref: "#/responses/NotFound" - "422": - $ref: "#/responses/UnprocessableEntity" - "500": - $ref: "#/responses/ServerError" - security: - - ApiKeyAuth: [] - summary: Update Databases - tags: - - Database - /databases/observable: - get: - description: Returns a Database retrieval in a observable array - operationId: getDatabasesObservable - responses: - "200": - $ref: "#/responses/DatabaseObservableResponse" - "401": - $ref: "#/responses/Unauthorized" - "403": - $ref: "#/responses/AccessForbidden" - "404": - $ref: "#/responses/NotFound" - "422": - $ref: "#/responses/UnprocessableEntity" - "500": - $ref: "#/responses/ServerError" - security: - - ApiKeyAuth: [] - summary: Get Databases in an observable array - tags: - - Database - options: - description: CORS support - operationId: databaseOptions - responses: - "200": - $ref: "#/responses/CORSResponse" - tags: - - cors - "/databases/{databaseIdPath}": - get: - description: Return a single Database object from datastore as a Singleton - operationId: getDatabase - parameters: - - $ref: "#/parameters/databaseIdPath" - responses: - "200": - $ref: "#/responses/DatabaseSingletonResponse" - "401": - $ref: "#/responses/Unauthorized" - "403": - $ref: "#/responses/AccessForbidden" - "404": - $ref: "#/responses/NotFound" - "422": - $ref: "#/responses/UnprocessableEntity" - "500": - $ref: "#/responses/ServerError" - security: - - ApiKeyAuth: [] - summary: Get a single Database object - tags: - - Database - /templates: - get: - description: Return a list of Templates from the datastore - operationId: getTemplates - parameters: - - $ref: "#/parameters/limitQuery" - - $ref: "#/parameters/offsetQuery" - - $ref: "#/parameters/activeQuery" - - $ref: "#/parameters/templateIdQuery" - - $ref: "#/parameters/isMasterQuery" - - $ref: "#/parameters/objectTypeQuery" - responses: - "200": - $ref: "#/responses/TemplateResponse" - "401": - $ref: "#/responses/Unauthorized" - "403": - $ref: "#/responses/AccessForbidden" - "404": - $ref: "#/responses/NotFound" - "422": - $ref: "#/responses/UnprocessableEntity" - "500": - $ref: "#/responses/ServerError" - security: - - ApiKeyAuth: [] - summary: Get a list Templates - tags: - - Template - options: - description: CORS support - operationId: templatesOptions - responses: - "200": - $ref: "#/responses/CORSResponse" - tags: - - cors - post: - description: Create new Templates - operationId: postTemplates - parameters: - - $ref: "#/parameters/TemplateRequest" - responses: - "200": - $ref: "#/responses/TemplateResponse" - "401": - $ref: "#/responses/Unauthorized" - "403": - $ref: "#/responses/AccessForbidden" - "404": - $ref: "#/responses/NotFound" - "422": - $ref: "#/responses/UnprocessableEntity" - "500": - $ref: "#/responses/ServerError" - security: - - ApiKeyAuth: [] - summary: Create new Templates - tags: - - Template - /templates/observable: - get: - description: Returns a Template retrieval in a observable array - operationId: getTemplatesObservable - responses: - "200": - $ref: "#/responses/TemplateObservableResponse" - "401": - $ref: "#/responses/Unauthorized" - "403": - $ref: "#/responses/AccessForbidden" - "404": - $ref: "#/responses/NotFound" - "422": - $ref: "#/responses/UnprocessableEntity" - "500": - $ref: "#/responses/ServerError" - security: - - ApiKeyAuth: [] - summary: Get Templates in an observable array - tags: - - Template - options: - description: CORS support - operationId: templateOptions - responses: - "200": - $ref: "#/responses/CORSResponse" - tags: - - cors - "/templates/{templateIdPath}": - get: - description: Return a single Template object from datastore as a Singleton - operationId: getTemplate - parameters: - - $ref: "#/parameters/templateIdPath" - responses: - "200": - $ref: "#/responses/TemplateSingletonResponse" - "401": - $ref: "#/responses/Unauthorized" - "403": - $ref: "#/responses/AccessForbidden" - "404": - $ref: "#/responses/NotFound" - "422": - $ref: "#/responses/UnprocessableEntity" - "500": - $ref: "#/responses/ServerError" - security: - - ApiKeyAuth: [] - summary: Get a single Template object - tags: - - Template - /tenants: - get: - description: Return a list of Tenant records from the datastore - operationId: getTenants - parameters: - - $ref: "#/parameters/taxnexusAccountQuery" - - $ref: "#/parameters/tenantIdQuery" - - $ref: "#/parameters/companyIdQuery" - - $ref: "#/parameters/limitQuery" - - $ref: "#/parameters/offsetQuery" - responses: - "200": - $ref: "#/responses/TenantResponse" - "401": - $ref: "#/responses/Unauthorized" - "403": - $ref: "#/responses/AccessForbidden" - "404": - $ref: "#/responses/NotFound" - "422": - $ref: "#/responses/UnprocessableEntity" - "500": - $ref: "#/responses/ServerError" - security: - - ApiKeyAuth: [] - summary: Get a list Tenants - tags: - - Tenant - options: - description: CORS support - operationId: tenantsOptions - responses: - "200": - $ref: "#/responses/CORSResponse" - tags: - - cors - post: - description: Create Tenants in Taxnexus - operationId: postTenants - parameters: - - $ref: "#/parameters/tenantRequest" - responses: - "200": - $ref: "#/responses/TenantResponse" - "401": - $ref: "#/responses/Unauthorized" - "403": - $ref: "#/responses/AccessForbidden" - "404": - $ref: "#/responses/NotFound" - "422": - $ref: "#/responses/UnprocessableEntity" - "500": - $ref: "#/responses/ServerError" - security: - - ApiKeyAuth: [] - summary: Create new Tenants - tags: - - Tenant - put: - description: Update Tenant in Taxnexus - operationId: putTenants - parameters: - - $ref: "#/parameters/tenantRequest" - responses: - "200": - $ref: "#/responses/TenantResponse" - "401": - $ref: "#/responses/Unauthorized" - "403": - $ref: "#/responses/AccessForbidden" - "404": - $ref: "#/responses/NotFound" - "422": - $ref: "#/responses/UnprocessableEntity" - "500": - $ref: "#/responses/ServerError" - security: - - ApiKeyAuth: [] - summary: Update Tenants - tags: - - Tenant - /tenants/observable: - get: - description: Returns a Tenant retrieval in a observable array - operationId: getTenantsObservable - responses: - "200": - $ref: "#/responses/TenantObservableResponse" - "401": - $ref: "#/responses/Unauthorized" - "403": - $ref: "#/responses/AccessForbidden" - "404": - $ref: "#/responses/NotFound" - "422": - $ref: "#/responses/UnprocessableEntity" - "500": - $ref: "#/responses/ServerError" - security: - - ApiKeyAuth: [] - summary: Get Tenants in an observable array - tags: - - Tenant - options: - description: CORS support - operationId: tenantOptions - responses: - "200": - $ref: "#/responses/CORSResponse" - tags: - - cors - "/tenants/{tenantIdPath}": - get: - description: Return a single Tenant object from datastore as a Singleton - operationId: getTenant - parameters: - - $ref: "#/parameters/tenantIdPath" - responses: - "200": - $ref: "#/responses/TenantSingletonResponse" - "401": - $ref: "#/responses/Unauthorized" - "403": - $ref: "#/responses/AccessForbidden" - "404": - $ref: "#/responses/NotFound" - "422": - $ref: "#/responses/UnprocessableEntity" - "500": - $ref: "#/responses/ServerError" - security: - - ApiKeyAuth: [] - summary: Get a single Tenant object - tags: - - Tenant - /users: - get: - description: Return a list of User records from the datastore - operationId: getUsers - parameters: - - $ref: "#/parameters/limitQuery" - - $ref: "#/parameters/offsetQuery" - - $ref: "#/parameters/accountIdQuery" - - $ref: "#/parameters/contactIdQuery" - - $ref: "#/parameters/activeQuery" - - $ref: "#/parameters/emailQuery" - - $ref: "#/parameters/userIdQuery" - - $ref: "#/parameters/usernameQuery" - responses: - "200": - $ref: "#/responses/UserResponse" - "401": - $ref: "#/responses/Unauthorized" - "403": - $ref: "#/responses/AccessForbidden" - "404": - $ref: "#/responses/NotFound" - "422": - $ref: "#/responses/UnprocessableEntity" - "500": - $ref: "#/responses/ServerError" - security: - - ApiKeyAuth: [] - summary: Get a list Users - tags: - - User - options: - description: CORS support - operationId: usersOptions - responses: - "200": - $ref: "#/responses/CORSResponse" - tags: - - cors - post: - description: Create new Users - operationId: postUsers - parameters: - - $ref: "#/parameters/UserRequest" - responses: - "200": - $ref: "#/responses/UserResponse" - "401": - $ref: "#/responses/Unauthorized" - "403": - $ref: "#/responses/AccessForbidden" - "404": - $ref: "#/responses/NotFound" - "422": - $ref: "#/responses/UnprocessableEntity" - "500": - $ref: "#/responses/ServerError" - security: - - ApiKeyAuth: [] - summary: Create new Users - tags: - - User - put: - description: Update existing users - operationId: putUsers - parameters: - - $ref: "#/parameters/UserRequest" - responses: - "200": - $ref: "#/responses/UserResponse" - "401": - $ref: "#/responses/Unauthorized" - "403": - $ref: "#/responses/AccessForbidden" - "404": - $ref: "#/responses/NotFound" - "422": - $ref: "#/responses/UnprocessableEntity" - "500": - $ref: "#/responses/ServerError" - security: - - ApiKeyAuth: [] - summary: Update existing users - tags: - - User - /users/observable: - get: - description: Returns a User retrieval in a observable array - operationId: getUsersObservable - responses: - "200": - $ref: "#/responses/UserObservableResponse" - "401": - $ref: "#/responses/Unauthorized" - "403": - $ref: "#/responses/AccessForbidden" - "404": - $ref: "#/responses/NotFound" - "422": - $ref: "#/responses/UnprocessableEntity" - "500": - $ref: "#/responses/ServerError" - security: - - ApiKeyAuth: [] - summary: Get Users in an observable array - tags: - - User - options: - description: CORS support - operationId: userOptions - responses: - "200": - $ref: "#/responses/CORSResponse" - tags: - - cors - "/users/{userIdPath}": - get: - description: Return a single User object from datastore as a Singleton - operationId: getUser - parameters: - - $ref: "#/parameters/userIdPath" - responses: - "200": - $ref: "#/responses/UserSingletonResponse" - "401": - $ref: "#/responses/Unauthorized" - "403": - $ref: "#/responses/AccessForbidden" - "404": - $ref: "#/responses/NotFound" - "422": - $ref: "#/responses/UnprocessableEntity" - "500": - $ref: "#/responses/ServerError" - security: - - ApiKeyAuth: [] - summary: Get a single User object - tags: - - User -definitions: - Address: - properties: - City: - description: City - type: string - Country: - description: Country full name - type: string - CountryCode: - description: Country Code - type: string - PostalCode: - description: Postal Code - type: string - State: - description: State full name - type: string - StateCode: - description: State Code - type: string - Street: - description: Street number and name - type: string - type: object - Cluster: - properties: - CreatedByID: - description: Created By - type: string - CreatedDate: - description: Created Date - type: string - Description: - description: Description - type: string - Environment: - description: Environment - type: string - Gateway: - description: Gateway - type: string - ID: - description: Record Id - type: string - IPAddress: - description: IP Address - type: string - LastModifiedByID: - description: Last Modified By - type: string - LastModifiedDate: - description: Last Modified Date - type: string - Name: - description: Cluster Name - type: string - OwnerID: - description: Owner - type: string - Ref: - description: External Reference - type: string - Status: - description: Status - type: string - Subnet: - description: Subnet - type: string - TenantID: - description: The ID of the tenant who owns this Database - type: string - Type: - description: Type - type: string - Zone: - description: Zone - type: string - type: object - ClusterRequest: - properties: - Data: - items: - $ref: "#/definitions/Cluster" - type: array - type: object - ClusterResponse: - description: An array of cluster objects - properties: - Data: - items: - $ref: "#/definitions/Cluster" - type: array - Meta: - $ref: "#/definitions/ResponseMeta" - type: object - Database: - description: A Database provisioned and owned by a Tenant - properties: - Active: - description: Is this database active? - type: boolean - ClusterID: - description: The ID of the Cluster in which this database is deployed - type: string - CreatedByID: - description: Created By - type: string - CreatedDate: - description: Created Date - type: string - DSN: - description: Database connection string - type: string - DatabaseName: - description: The name of the physical database in the cluster - type: string - ID: - description: Record Id - type: string - LastModifiedByID: - description: Last Modified By - type: string - LastModifiedDate: - description: Last Modifed Date - type: string - Status: - description: The current status of this Tenant - type: string - TenantID: - description: The ID of the tenant who owns this Database - type: string - Type: - description: The type of Database (mysql, etc) - type: string - type: object - DatabaseRequest: - description: An array of Database objects - properties: - Data: - items: - $ref: "#/definitions/Database" - type: array - type: object - DatabaseResponse: - description: An array of Database objects - properties: - Data: - items: - $ref: "#/definitions/Database" - type: array - Meta: - $ref: "#/definitions/ResponseMeta" - type: object - DeleteResponse: - properties: - Data: - items: - $ref: "#/definitions/Message" - type: array - Meta: - $ref: "#/definitions/ResponseMeta" - type: object - Error: - properties: - code: - format: int64 - type: integer - fields: - type: string - message: - type: string - type: object - Message: - properties: - Message: - type: string - Ref: - type: string - Status: - type: integer - type: object - Pagination: - properties: - Limit: - format: int64 - type: integer - POffset: - format: int64 - type: integer - PageSize: - format: int64 - type: integer - SetSize: - format: int64 - type: integer - type: object - RequestMeta: - properties: - TaxnexusAccount: - description: Account Number of the Reseller or OEM - type: string - required: - - TaxnexusAccount - type: object - ResponseMeta: - properties: - Contact: - description: Microservice Contact Info - type: string - Copyright: - description: Copyright Info - type: string - License: - description: License Information and Restrictions - type: string - OperationID: - description: Operation ID - type: string - Pagination: - $ref: "#/definitions/Pagination" - RequestIP: - description: Request IP Address - type: string - RequestType: - description: Request Type - type: string - RequestURL: - description: Request URL - type: string - ServerInfo: - description: Data Server Info - type: string - ServerResponseTime: - description: Data Server Response Time (ms) - type: string - ServerTimestamp: - description: Backend Server Timestamp - type: string - TaxnexusAccount: - description: Account Number used for recording transactions - type: string - type: object - Role: - description: A functional role within a Tenant - properties: - Auth0RoleID: - description: The corresponding Auth0 Role - type: string - CreatedByID: - description: Created By - type: string - CreatedDate: - description: Created Date - type: string - Description: - description: Role Description - type: string - ID: - description: Record Id - type: string - LastModifiedByID: - description: Last Modified By - type: string - LastModifiedDate: - description: Last Modifed Date - type: string - RoleName: - description: The name of this role - type: string - TenantID: - description: The ID of the Tenant that owns this Role - type: string - type: object - RoleRequest: - description: An array of Role objects - properties: - Date: - items: - $ref: "#/definitions/Role" - type: array - type: object - RoleResponse: - description: An array of Role objects - properties: - Data: - items: - $ref: "#/definitions/Role" - type: array - Meta: - $ref: "#/definitions/ResponseMeta" - type: object - Template: - properties: - CompanyID: - description: Company - type: string - CreatedByID: - type: string - CreatedDate: - type: string - Description: - description: Description - type: string - HTML: - description: HTML Body - format: byte - type: string - ID: - description: Record Id - type: string - IsActive: - description: Active? - type: boolean - IsMaster: - description: Master Template? - type: boolean - LastModifiedByID: - type: string - LastModifiedDate: - type: string - Name: - description: Template Name - type: string - ObjectType: - description: Object - type: string - RecordTypeName: - description: Record Type Name - type: string - TenantID: - description: Tenant that owns this object instance - type: string - Type: - description: Type - type: string - URL: - description: URL - type: string - type: object - TemplateRequest: - description: An array of Templates - properties: - Data: - items: - $ref: "#/definitions/Template" - type: array - type: object - TemplateResponse: - description: An array of Templates - properties: - Data: - items: - $ref: "#/definitions/Template" - type: array - Meta: - $ref: "#/definitions/ResponseMeta" - type: object - Tenant: - description: Account Tenant - properties: - AccountID: - description: The Account that owns this Tenant - type: string - Active: - description: Is this Tenant currently active? - type: boolean - CreatedByID: - description: Created By - type: string - CreatedDate: - description: Created Date - type: string - Databases: - items: - $ref: "#/definitions/Database" - type: array - ID: - description: Record Id - type: string - LastModifiedByID: - description: Last Modified By - type: string - LastModifiedDate: - description: Last Modifed Date - type: string - Roles: - items: - $ref: "#/definitions/Role" - type: array - Status: - description: The current status of this Tenant - type: string - TenantName: - description: Name of the Tenant Resource - type: string - TenantUsers: - items: - $ref: "#/definitions/TenantUser" - type: array - Type: - description: The type of Tenant - type: string - Version: - description: The version number of the Tenant Onboarding system used to create this tenant - type: string - type: object - TenantRequest: - description: An array of Tenant objects - properties: - Data: - items: - $ref: "#/definitions/Tenant" - type: array - type: object - TenantResponse: - description: An array of Tenant objects - properties: - Data: - items: - $ref: "#/definitions/Tenant" - type: array - Meta: - $ref: "#/definitions/ResponseMeta" - type: object - TenantUser: - description: Relationship object that connects users to a tenant - properties: - AccessLevel: - description: The makeTenantUser access level for this User - type: string - AccountID: - description: Account ID - type: string - Auth0UserID: - description: Auth0 User ID - type: string - CompanyName: - description: Account Name - type: string - ContactID: - description: Contact ID - type: string - TaxnexusAccount: - description: Account - type: string - TenantActive: - description: Tenant active? - type: boolean - TenantID: - description: The Tenant ID - type: string - TenantName: - description: Tenant Name - type: string - TenantStatus: - description: Tenant Status - type: string - TenantType: - description: Tenant type - type: string - TenantVersion: - description: Tenant Version - type: string - UserEmail: - description: User Email Address - type: string - UserFullName: - description: User Full Name - type: string - UserID: - description: The User ID - type: string - Username: - description: Username - type: string - type: object - User: - properties: - APIKey: - description: API Key - type: string - AboutMe: - description: About Me - type: string - AccountID: - description: Account ID - type: string - Address: - $ref: "#/definitions/Address" - Alias: - description: Alias - type: string - Auth0UserID: - description: Auth0 User Id - type: string - CommunityNickname: - description: Nickname - type: string - CompanyName: - description: Company Name - type: string - ContactID: - description: Contact - type: string - CreatedByID: - description: Created User ID - type: string - CreatedDate: - description: Date Created - type: string - DelegatedApproverID: - description: Delegated Approver - type: string - Department: - description: Department - type: string - Division: - description: Division - type: string - Email: - description: Email address - type: string - EmployeeNumber: - description: Employee Number - type: string - EndOfDay: - description: Time day ends - type: string - Environment: - description: Environment - type: string - Extension: - description: Extension - type: string - FabricAPIKey: - description: Fabric API Key - type: string - Fax: - description: Fax - type: string - FirstName: - description: The first name - type: string - ForecastEnabled: - description: Allow Forecasting - type: boolean - FullPhotoURL: - description: Full Photo URL - type: string - ID: - description: Record ID - type: string - IsActive: - description: Active - type: boolean - IsPortalEnabled: - description: Is the user enabled for Communities? - type: boolean - IsProphilePhotoActive: - description: Has Profile Photo - type: boolean - IsSystemControlled: - type: boolean - LastIP: - description: IP address of last login - type: string - LastLogin: - description: Last login time - type: string - LastModifiedByID: - description: Last Modified User ID - type: string - LastModifiedDate: - description: Last Modified Date - type: string - LastName: - description: The Last Name - type: string - LoginCount: - description: Number of times user has logged in - format: int64 - type: number - ManagerID: - description: Manager - type: string - MobilePhone: - description: Mobile - type: string - Name: - description: Name - type: string - OutOfOfficeMessage: - description: Out of office message - type: string - Phone: - description: Phone - type: string - PortalRole: - description: Portal Role Level - type: string - ProfileID: - description: Profile - type: string - ReceivesAdminEmails: - description: Info Emails - type: boolean - ReceivesAdminInfoEmails: - description: Admin Info Emails - type: boolean - SenderEmail: - description: Email Sender Address - type: string - SenderName: - description: Email Sender Name - type: string - Signature: - description: Email Signature - type: string - SmallPhotoURL: - description: Small Photo URL - type: string - StartOfDay: - description: The time day starts - type: string - TaxnexusAccount: - description: Account - type: string - TenantID: - description: Tenant ID associated with this user - type: string - TenantUsers: - items: - $ref: "#/definitions/TenantUser" - type: array - TimeZone: - description: Time Zone - type: string - Title: - description: Title - type: string - UserRoleID: - description: Role - type: string - UserRoles: - items: - $ref: "#/definitions/UserRole" - type: array - UserType: - description: User Type - type: string - Username: - description: Username - type: string - type: object - UserRequest: - properties: - Data: - items: - $ref: "#/definitions/User" - type: array - type: object - UserResponse: - description: An array of Print-Ready ingest Objects - properties: - Data: - items: - $ref: "#/definitions/User" - type: array - Meta: - $ref: "#/definitions/ResponseMeta" - type: object - UserRole: - description: Relationship object that connects user to a role - properties: - AccountID: - description: Account Id - type: string - Auth0RoleID: - description: Linked role ID - type: string - Auth0UserID: - description: Auth0 User ID - type: string - CompanyName: - description: Company Name - type: string - ContactID: - description: Contact ID - type: string - RoleDescription: - description: Role description - type: string - RoleID: - description: The Role ID - type: string - RoleName: - description: Role Name - type: string - TaxnexusAccount: - description: Account Number - type: string - UserEmail: - description: User Email Address - type: string - UserFullName: - description: User Full Name - type: string - UserID: - description: The User ID - type: string - Username: - description: Username - type: string - type: object diff --git a/swagger/external/members-vernonkeenan.yaml b/swagger/external/members-vernonkeenan.yaml index e12bd6b..01a3df8 100644 --- a/swagger/external/members-vernonkeenan.yaml +++ b/swagger/external/members-vernonkeenan.yaml @@ -22,26 +22,6 @@ consumes: produces: - "application/json" parameters: - limitQuery: - description: "How many objects to return at one time" - format: int64 - in: query - name: limit - required: false - type: integer - offsetQuery: - description: How many objects to skip? - format: int64 - in: query - name: offset - required: false - type: integer - idQuery: - description: Unique Record ID - in: query - name: id - required: false - type: string AttendeeRequest: description: An array of new Attendee records in: body @@ -56,13 +36,6 @@ parameters: required: true schema: $ref: "#/definitions/CertificateRequest" - CourseRequest: - description: An array of new Course records - in: body - name: courseRequest - required: true - schema: - $ref: "#/definitions/CourseRequest" CourseLessonRequest: description: An array of new CourseLesson records in: body @@ -70,6 +43,26 @@ parameters: required: true schema: $ref: "#/definitions/CourseLessonRequest" + clusterIdQuery: + description: Record Id of a Cluster + in: query + name: clusterId + required: false + type: string + ClusterRequest: + description: An array of Cluster records + in: body + name: ClusterRequest + required: true + schema: + $ref: "#/definitions/ClusterRequest" + CourseRequest: + description: An array of new Course records + in: body + name: courseRequest + required: true + schema: + $ref: "#/definitions/CourseRequest" CourseSectionRequest: description: An array of new CourseSection records in: body @@ -84,20 +77,6 @@ parameters: required: true schema: $ref: "#/definitions/EnrollmentRequest" - EventRequest: - description: An array of new Event records - in: body - name: eventRequest - required: true - schema: - $ref: "#/definitions/EventRequest" - EventCategoryRequest: - description: An array of new EventCategory records - in: body - name: eventcategoryRequest - required: true - schema: - $ref: "#/definitions/EventCategoryRequest" EventCategoryAssignmentRequest: description: An array of new EventCategoryAssignment records in: body @@ -105,6 +84,20 @@ parameters: required: true schema: $ref: "#/definitions/EventCategoryAssignmentRequest" + EventCategoryRequest: + description: An array of new EventCategory records + in: body + name: eventcategoryRequest + required: true + schema: + $ref: "#/definitions/EventCategoryRequest" + EventRequest: + description: An array of new Event records + in: body + name: eventRequest + required: true + schema: + $ref: "#/definitions/EventRequest" FavoriteRequest: description: An array of new Favorite records in: body @@ -147,13 +140,6 @@ parameters: required: true schema: $ref: "#/definitions/PaymentMethodRequest" - ResearchProjectRequest: - description: An array of new ResearchProject records - in: body - name: researchprojectRequest - required: true - schema: - $ref: "#/definitions/ResearchProjectRequest" ResearchProjectCompanyRequest: description: An array of new ResearchProjectCompany records in: body @@ -161,6 +147,13 @@ parameters: required: true schema: $ref: "#/definitions/ResearchProjectCompanyRequest" + ResearchProjectRequest: + description: An array of new ResearchProject records + in: body + name: researchprojectRequest + required: true + schema: + $ref: "#/definitions/ResearchProjectRequest" ResearchProjectTopicRequest: description: An array of new ResearchProjectTopic records in: body @@ -168,6 +161,31 @@ parameters: required: true schema: $ref: "#/definitions/ResearchProjectTopicRequest" + templateIdQuery: + description: Template ID + in: query + name: templateId + type: string + TemplateRequest: + description: An array of Template records + in: body + name: TemplateRequest + required: true + schema: + $ref: "#/definitions/TemplateRequest" + tenantIdQuery: + description: Record Id of a Tenant + in: query + name: tenantId + required: false + type: string + tenantRequest: + description: An array of Tenant records + in: body + name: TenantRequest + required: true + schema: + $ref: "#/definitions/TenantRequest" TicketRequest: description: An array of new Ticket records in: body @@ -182,7 +200,82 @@ parameters: required: true schema: $ref: "#/definitions/TransactionRequest" + UserRequest: + description: An array of User records + in: body + name: UserRequest + required: true + schema: + $ref: "#/definitions/UserRequest" + activeQuery: + description: Retrieve active records only? + in: query + name: active + required: false + type: boolean + auth0UserIdQuery: + description: External Auth0 User ID + in: query + name: auth0UserId + required: false + type: string + databaseIdQuery: + description: Record Id of a Database + in: query + name: databaseId + type: string + required: true + databaseRequest: + description: An array of Database records + in: body + name: DatabaseRequest + required: true + schema: + $ref: "#/definitions/DatabaseRequest" + emailQuery: + description: Email address + in: query + name: email + required: false + type: string + idQuery: + description: Unique Record ID + in: query + name: id + required: false + type: string + objectTypeQuery: + description: Object Type Name + in: query + name: objectType + type: string + isMasterQuery: + description: Is Master Template? + in: query + name: isMaster + type: boolean + limitQuery: + description: How many objects to return at one time + format: int64 + in: query + name: limit + required: false + type: integer + offsetQuery: + description: How many objects to skip? + format: int64 + in: query + name: offset + required: false + type: integer responses: + AccessForbidden: + description: Access forbidden, account lacks access + headers: + Access-Control-Allow-Origin: + type: string + schema: + $ref: "#/definitions/Error" AttendeeResponse: description: Attendee Response Object headers: @@ -201,15 +294,15 @@ responses: type: string schema: $ref: "#/definitions/CertificateResponse" - CourseResponse: - description: Course Response Object + ClusterResponse: + description: Response with Cluster objects headers: Access-Control-Allow-Origin: type: string Cache-Control: type: string schema: - $ref: "#/definitions/CourseResponse" + $ref: "#/definitions/ClusterResponse" CourseLessonResponse: description: CourseLesson Response Object headers: @@ -219,6 +312,15 @@ responses: type: string schema: $ref: "#/definitions/CourseLessonResponse" + CourseResponse: + description: Course Response Object + headers: + Access-Control-Allow-Origin: + type: string + Cache-Control: + type: string + schema: + $ref: "#/definitions/CourseResponse" CourseSectionResponse: description: CourseSection Response Object headers: @@ -228,6 +330,13 @@ responses: type: string schema: $ref: "#/definitions/CourseSectionResponse" + DatabaseResponse: + headers: + Access-Control-Allow-Origin: + type: string + description: Response with Database objects + schema: + $ref: "#/definitions/DatabaseResponse" EnrollmentResponse: description: Enrollment Response Object headers: @@ -237,24 +346,6 @@ responses: type: string schema: $ref: "#/definitions/EnrollmentResponse" - EventResponse: - description: Event Response Object - headers: - Access-Control-Allow-Origin: - type: string - Cache-Control: - type: string - schema: - $ref: "#/definitions/EventResponse" - EventCategoryResponse: - description: EventCategory Response Object - headers: - Access-Control-Allow-Origin: - type: string - Cache-Control: - type: string - schema: - $ref: "#/definitions/EventCategoryResponse" EventCategoryAssignmentResponse: description: EventCategoryAssignment Response Object headers: @@ -264,6 +355,24 @@ responses: type: string schema: $ref: "#/definitions/EventCategoryAssignmentResponse" + EventCategoryResponse: + description: EventCategory Response Object + headers: + Access-Control-Allow-Origin: + type: string + Cache-Control: + type: string + schema: + $ref: "#/definitions/EventCategoryResponse" + EventResponse: + description: Event Response Object + headers: + Access-Control-Allow-Origin: + type: string + Cache-Control: + type: string + schema: + $ref: "#/definitions/EventResponse" FavoriteResponse: description: Favorite Response Object headers: @@ -300,6 +409,13 @@ responses: type: string schema: $ref: "#/definitions/LessonProgressResponse" + NotFound: + description: Resource was not found + headers: + Access-Control-Allow-Origin: + type: string + schema: + $ref: "#/definitions/Error" OrderResponse: description: Order Response Object headers: @@ -318,15 +434,6 @@ responses: type: string schema: $ref: "#/definitions/PaymentMethodResponse" - ResearchProjectResponse: - description: ResearchProject Response Object - headers: - Access-Control-Allow-Origin: - type: string - Cache-Control: - type: string - schema: - $ref: "#/definitions/ResearchProjectResponse" ResearchProjectCompanyResponse: description: ResearchProjectCompany Response Object headers: @@ -336,6 +443,15 @@ responses: type: string schema: $ref: "#/definitions/ResearchProjectCompanyResponse" + ResearchProjectResponse: + description: ResearchProject Response Object + headers: + Access-Control-Allow-Origin: + type: string + Cache-Control: + type: string + schema: + $ref: "#/definitions/ResearchProjectResponse" ResearchProjectTopicResponse: description: ResearchProjectTopic Response Object headers: @@ -345,6 +461,29 @@ responses: type: string schema: $ref: "#/definitions/ResearchProjectTopicResponse" + ServerError: + description: Server Internal Error + headers: + Access-Control-Allow-Origin: + type: string + schema: + $ref: "#/definitions/Error" + TenantResponse: + headers: + Access-Control-Allow-Origin: + type: string + description: Response with Tenant objects + schema: + $ref: "#/definitions/TenantResponse" + TemplateResponse: + description: Response with Template objects + headers: + Access-Control-Allow-Origin: + type: string + Cache-Control: + type: string + schema: + $ref: "#/definitions/TemplateResponse" TicketResponse: description: Ticket Response Object headers: @@ -363,10 +502,46 @@ responses: type: string schema: $ref: "#/definitions/TransactionResponse" + Unauthorized: + description: Access Unauthorized, invalid API-KEY was used + headers: + Access-Control-Allow-Origin: + type: string + Cache-Control: + type: string + schema: + $ref: "#/definitions/Error" + UnprocessableEntity: + description: Unprocessable Entity, likely a bad parameter + headers: + Access-Control-Allow-Origin: + type: string + Cache-Control: + type: string + schema: + $ref: "#/definitions/Error" + UserResponse: + description: Response with User objects + headers: + Access-Control-Allow-Origin: + type: string + Cache-Control: + type: string + schema: + $ref: "#/definitions/UserResponse" paths: /attendees: + delete: + operationId: deleteAttendee + parameters: + - $ref: "#/parameters/idQuery" + responses: + "204": + description: No Content + summary: Delete a Attendee + tags: + - Attendees get: - summary: Get a list of Attendees operationId: getAttendees parameters: - $ref: "#/parameters/idQuery" @@ -375,701 +550,1214 @@ paths: responses: "200": description: OK + summary: Get a list of Attendees + tags: + - Attendees post: - summary: Create a new Attendee operationId: createAttendee parameters: - $ref: "#/parameters/AttendeeRequest" responses: "201": description: Created + summary: Create a new Attendee + tags: + - Attendees put: - summary: Update an existing Attendee operationId: updateAttendee parameters: - $ref: "#/parameters/idQuery" responses: "200": description: OK - delete: - summary: Delete a Attendee - operationId: deleteAttendee - parameters: - - $ref: "#/parameters/idQuery" - responses: - "204": - description: No Content + summary: Update an existing Attendee + tags: + - Attendees /certificates: - get: - summary: Get a list of Certificates - parameters: - - $ref: "#/parameters/idQuery" - - $ref: "#/parameters/limitQuery" - - $ref: "#/parameters/offsetQuery" - operationId: getCertificates - responses: - "200": - description: OK - post: - summary: Create a new Certificate - operationId: createCertificate - parameters: - - $ref: "#/parameters/CertificateRequest" - responses: - "201": - description: Created - put: - summary: Update an existing Certificate - operationId: updateCertificate - parameters: - - $ref: "#/parameters/idQuery" - responses: - "200": - description: OK delete: - summary: Delete a Certificate operationId: deleteCertificate parameters: - $ref: "#/parameters/idQuery" responses: "204": description: No Content - /courses: + summary: Delete a Certificate + tags: + - Certificates get: - summary: Get a list of Courses + operationId: getCertificates parameters: - $ref: "#/parameters/idQuery" - $ref: "#/parameters/limitQuery" - $ref: "#/parameters/offsetQuery" - operationId: getCourses responses: "200": description: OK + summary: Get a list of Certificates + tags: + - Certificates post: - summary: Create a new Course - operationId: createCourse + operationId: createCertificate parameters: - - $ref: "#/parameters/CourseRequest" + - $ref: "#/parameters/CertificateRequest" responses: "201": description: Created + summary: Create a new Certificate + tags: + - Certificates put: - summary: Update an existing Course - operationId: updateCourse + operationId: updateCertificate parameters: - $ref: "#/parameters/idQuery" responses: "200": description: OK - delete: - summary: Delete a Course - operationId: deleteCourse + summary: Update an existing Certificate + tags: + - Certificates + /clusters: + get: + description: Return a list of Cluster records from the datastore + operationId: getClusters parameters: - - $ref: "#/parameters/idQuery" + - $ref: "#/parameters/clusterIdQuery" + - $ref: "#/parameters/limitQuery" + - $ref: "#/parameters/offsetQuery" responses: - "204": - description: No Content + "200": + $ref: "#/responses/ClusterResponse" + "401": + $ref: "#/responses/Unauthorized" + "403": + $ref: "#/responses/AccessForbidden" + "404": + $ref: "#/responses/NotFound" + "422": + $ref: "#/responses/UnprocessableEntity" + "500": + $ref: "#/responses/ServerError" + security: + - ApiKeyAuth: [] + summary: Get a list Clusters + tags: + - Clusters + post: + description: Create Clusters in Taxnexus + operationId: postClusters + parameters: + - $ref: "#/parameters/ClusterRequest" + responses: + "200": + $ref: "#/responses/ClusterResponse" + "401": + $ref: "#/responses/Unauthorized" + "403": + $ref: "#/responses/AccessForbidden" + "404": + $ref: "#/responses/NotFound" + "422": + $ref: "#/responses/UnprocessableEntity" + "500": + $ref: "#/responses/ServerError" + security: + - ApiKeyAuth: [] + summary: Create new Clusters + tags: + - Clusters + put: + description: Update Cluster in Taxnexus + operationId: putClusters + parameters: + - $ref: "#/parameters/ClusterRequest" + responses: + "200": + $ref: "#/responses/ClusterResponse" + "401": + $ref: "#/responses/Unauthorized" + "403": + $ref: "#/responses/AccessForbidden" + "404": + $ref: "#/responses/NotFound" + "422": + $ref: "#/responses/UnprocessableEntity" + "500": + $ref: "#/responses/ServerError" + security: + - ApiKeyAuth: [] + summary: Update Clustera + tags: + - Clusters /courselessons: - get: - parameters: - - $ref: "#/parameters/idQuery" - - $ref: "#/parameters/limitQuery" - - $ref: "#/parameters/offsetQuery" - summary: Get a list of CourseLessons - operationId: getCourseLessons - responses: - "200": - description: OK - post: - summary: Create a new CourseLesson - operationId: createCourseLesson - parameters: - - $ref: "#/parameters/CourseLessonRequest" - responses: - "201": - description: Created - put: - summary: Update an existing CourseLesson - operationId: updateCourseLesson - parameters: - - $ref: "#/parameters/idQuery" - responses: - "200": - description: OK delete: - summary: Delete a CourseLesson operationId: deleteCourseLesson parameters: - $ref: "#/parameters/idQuery" responses: "204": description: No Content - /coursesections: + summary: Delete a CourseLesson + tags: + - CourseLessons get: - summary: Get a list of CourseSections + operationId: getCourseLessons parameters: - $ref: "#/parameters/idQuery" - $ref: "#/parameters/limitQuery" - $ref: "#/parameters/offsetQuery" - operationId: getCourseSections responses: "200": description: OK + summary: Get a list of CourseLessons + tags: + - CourseLessons post: - summary: Create a new CourseSection - operationId: createCourseSection + operationId: createCourseLesson parameters: - - $ref: "#/parameters/CourseSectionRequest" + - $ref: "#/parameters/CourseLessonRequest" responses: "201": description: Created + summary: Create a new CourseLesson + tags: + - CourseLessons put: - summary: Update an existing CourseSection - operationId: updateCourseSection + operationId: updateCourseLesson parameters: - $ref: "#/parameters/idQuery" responses: "200": description: OK + summary: Update an existing CourseLesson + tags: + - CourseLessons + /courses: + delete: + operationId: deleteCourse + parameters: + - $ref: "#/parameters/idQuery" + responses: + "204": + description: No Content + summary: Delete a Course + tags: + - Courses + get: + operationId: getCourses + parameters: + - $ref: "#/parameters/idQuery" + - $ref: "#/parameters/limitQuery" + - $ref: "#/parameters/offsetQuery" + responses: + "200": + description: OK + summary: Get a list of Courses + tags: + - Courses + post: + operationId: createCourse + parameters: + - $ref: "#/parameters/CourseRequest" + responses: + "201": + description: Created + summary: Create a new Course + tags: + - Courses + put: + operationId: updateCourse + parameters: + - $ref: "#/parameters/idQuery" + responses: + "200": + description: OK + summary: Update an existing Course + tags: + - Courses + /coursesections: delete: - summary: Delete a CourseSection operationId: deleteCourseSection parameters: - $ref: "#/parameters/idQuery" responses: "204": description: No Content - /enrollments: + summary: Delete a CourseSection + tags: + - CourseSections get: - summary: Get a list of Enrollments + operationId: getCourseSections parameters: - $ref: "#/parameters/idQuery" - $ref: "#/parameters/limitQuery" - $ref: "#/parameters/offsetQuery" - operationId: getEnrollments responses: "200": description: OK + summary: Get a list of CourseSections + tags: + - CourseSections post: - summary: Create a new Enrollment - operationId: createEnrollment + operationId: createCourseSection parameters: - - $ref: "#/parameters/EnrollmentRequest" + - $ref: "#/parameters/CourseSectionRequest" responses: "201": description: Created + summary: Create a new CourseSection + tags: + - CourseSections put: - summary: Update an existing Enrollment - operationId: updateEnrollment + operationId: updateCourseSection parameters: - $ref: "#/parameters/idQuery" responses: "200": description: OK + summary: Update an existing CourseSection + tags: + - CourseSections + /databases: + get: + description: Return a list of Database records from the datastore + operationId: getDatabases + parameters: + - $ref: "#/parameters/databaseIdQuery" + - $ref: "#/parameters/limitQuery" + - $ref: "#/parameters/offsetQuery" + responses: + "200": + $ref: "#/responses/DatabaseResponse" + "401": + $ref: "#/responses/Unauthorized" + "403": + $ref: "#/responses/AccessForbidden" + "404": + $ref: "#/responses/NotFound" + "422": + $ref: "#/responses/UnprocessableEntity" + "500": + $ref: "#/responses/ServerError" + security: + - ApiKeyAuth: [] + summary: Get a list Databases + tags: + - Databases + post: + description: Create Databases in Taxnexus + operationId: postDatabases + parameters: + - $ref: "#/parameters/databaseRequest" + responses: + "200": + $ref: "#/responses/DatabaseResponse" + "401": + $ref: "#/responses/Unauthorized" + "403": + $ref: "#/responses/AccessForbidden" + "404": + $ref: "#/responses/NotFound" + "422": + $ref: "#/responses/UnprocessableEntity" + "500": + $ref: "#/responses/ServerError" + security: + - ApiKeyAuth: [] + summary: Create new Databases + tags: + - Databases + put: + description: Update Database in Taxnexus + operationId: putDatabases + parameters: + - $ref: "#/parameters/databaseRequest" + responses: + "200": + $ref: "#/responses/DatabaseResponse" + "401": + $ref: "#/responses/Unauthorized" + "403": + $ref: "#/responses/AccessForbidden" + "404": + $ref: "#/responses/NotFound" + "422": + $ref: "#/responses/UnprocessableEntity" + "500": + $ref: "#/responses/ServerError" + security: + - ApiKeyAuth: [] + summary: Update Databases + tags: + - Databases + /enrollments: delete: - summary: Delete a Enrollment operationId: deleteEnrollment parameters: - $ref: "#/parameters/idQuery" responses: "204": description: No Content - /events: + summary: Delete a Enrollment + tags: + - Enrollments get: - summary: Get a list of Events + operationId: getEnrollments parameters: + - $ref: "#/parameters/idQuery" - $ref: "#/parameters/limitQuery" - $ref: "#/parameters/offsetQuery" - - $ref: "#/parameters/idQuery" - operationId: getEvents responses: "200": description: OK + summary: Get a list of Enrollments + tags: + - Enrollments post: - summary: Create a new Event - operationId: createEvent + operationId: createEnrollment parameters: - - $ref: "#/parameters/EventRequest" + - $ref: "#/parameters/EnrollmentRequest" responses: "201": description: Created + summary: Create a new Enrollment + tags: + - Enrollments put: - summary: Update an existing Event - operationId: updateEvent + operationId: updateEnrollment parameters: - $ref: "#/parameters/idQuery" responses: "200": description: OK + summary: Update an existing Enrollment + tags: + - Enrollments + /eventcategories: delete: - summary: Delete a Event - operationId: deleteEvent - parameters: - - $ref: "#/parameters/idQuery" - responses: - "204": - description: No Content - /eventcategorys: - get: - summary: Get a list of EventCategorys - parameters: - - $ref: "#/parameters/limitQuery" - - $ref: "#/parameters/offsetQuery" - - $ref: "#/parameters/idQuery" - operationId: getEventCategorys - responses: - "200": - description: OK - post: - summary: Create a new EventCategory - operationId: createEventCategory - parameters: - - $ref: "#/parameters/EventCategoryRequest" - responses: - "201": - description: Created - put: - summary: Update an existing EventCategory - operationId: updateEventCategory - parameters: - - $ref: "#/parameters/idQuery" - responses: - "200": - description: OK - delete: - summary: Delete a EventCategory operationId: deleteEventCategory parameters: - $ref: "#/parameters/idQuery" responses: "204": description: No Content - /eventcategoryassignments: + summary: Delete a EventCategory + tags: + - EventCategories get: - summary: Get a list of EventCategoryassignments + operationId: getEventCategorys parameters: - - $ref: "#/parameters/idQuery" - $ref: "#/parameters/limitQuery" - $ref: "#/parameters/offsetQuery" - operationId: getEventCategoryassignments + - $ref: "#/parameters/idQuery" responses: "200": description: OK + summary: Get a list of EventCategories + tags: + - EventCategories post: - summary: Create a new EventCategoryAssignment - operationId: createEventCategoryAssignment + operationId: createEventCategory parameters: - - $ref: "#/parameters/EventCategoryAssignmentRequest" + - $ref: "#/parameters/EventCategoryRequest" responses: "201": description: Created + summary: Create a new EventCategory + tags: + - EventCategories put: - summary: Update an existing EventCategoryAssignment - operationId: updateEventCategoryAssignment + operationId: updateEventCategory parameters: - $ref: "#/parameters/idQuery" responses: "200": description: OK + summary: Update an existing EventCategory + tags: + - EventCategories + /eventcategoryassignments: delete: - summary: Delete a EventCategoryAssignment operationId: deleteEventCategoryAssignment parameters: - $ref: "#/parameters/idQuery" responses: "204": description: No Content - /favorites: + summary: Delete a EventCategoryAssignment + tags: + - EventCategoryAssignments get: - summary: Get a list of Favorites + operationId: getEventCategoryAssignments parameters: - $ref: "#/parameters/idQuery" - $ref: "#/parameters/limitQuery" - $ref: "#/parameters/offsetQuery" - operationId: getFavorites responses: "200": description: OK + summary: Get a list of EventCategoryassignments + tags: + - EventCategoryAssignments post: - summary: Create a new Favorite - operationId: createFavorite + operationId: createEventCategoryAssignment parameters: - - $ref: "#/parameters/FavoriteRequest" + - $ref: "#/parameters/EventCategoryAssignmentRequest" responses: "201": description: Created + summary: Create a new EventCategoryAssignment + tags: + - EventCategoryAssignments put: - summary: Update an existing Favorite - operationId: updateFavorite + operationId: updateEventCategoryAssignment parameters: - $ref: "#/parameters/idQuery" responses: "200": description: OK + summary: Update an existing EventCategoryAssignment + tags: + - EventCategoryAssignments + /events: + delete: + operationId: deleteEvent + parameters: + - $ref: "#/parameters/idQuery" + responses: + "204": + description: No Content + summary: Delete a Event + tags: + - Events + get: + operationId: getEvents + parameters: + - $ref: "#/parameters/limitQuery" + - $ref: "#/parameters/offsetQuery" + - $ref: "#/parameters/idQuery" + responses: + "200": + description: OK + summary: Get a list of Events + tags: + - Events + post: + operationId: createEvent + parameters: + - $ref: "#/parameters/EventRequest" + responses: + "201": + description: Created + summary: Create a new Event + tags: + - Events + put: + operationId: updateEvent + parameters: + - $ref: "#/parameters/idQuery" + responses: + "200": + description: OK + summary: Update an existing Event + tags: + - Events + /favorites: delete: - summary: Delete a Favorite operationId: deleteFavorite parameters: - $ref: "#/parameters/idQuery" responses: "204": description: No Content - /invoices: + summary: Delete a Favorite + tags: + - Favorites get: - summary: Get a list of Invoices + operationId: getFavorites parameters: - $ref: "#/parameters/idQuery" - $ref: "#/parameters/limitQuery" - $ref: "#/parameters/offsetQuery" - operationId: getInvoices responses: "200": description: OK + summary: Get a list of Favorites + tags: + - Favorites post: - summary: Create a new Invoice - operationId: createInvoice + operationId: createFavorite parameters: - - $ref: "#/parameters/InvoiceRequest" + - $ref: "#/parameters/FavoriteRequest" responses: "201": description: Created + summary: Create a new Favorite + tags: + - Favorites put: - summary: Update an existing Invoice - operationId: updateInvoice + operationId: updateFavorite parameters: - $ref: "#/parameters/idQuery" responses: "200": description: OK + summary: Update an existing Favorite + tags: + - Favorites + /invoices: delete: - summary: Delete a Invoice operationId: deleteInvoice parameters: - $ref: "#/parameters/idQuery" responses: "204": description: No Content - /issuedcertificates: + summary: Delete a Invoice + tags: + - Invoices get: - summary: Get a list of Issuedcertificates + operationId: getInvoices parameters: + - $ref: "#/parameters/idQuery" - $ref: "#/parameters/limitQuery" - $ref: "#/parameters/offsetQuery" - - $ref: "#/parameters/idQuery" - operationId: getIssuedcertificates responses: "200": description: OK + summary: Get a list of Invoices + tags: + - Invoices post: - summary: Create a new IssuedCertificate - operationId: createIssuedCertificate + operationId: createInvoice parameters: - - $ref: "#/parameters/IssuedCertificateRequest" + - $ref: "#/parameters/InvoiceRequest" responses: "201": description: Created + summary: Create a new Invoice + tags: + - Invoices put: - summary: Update an existing IssuedCertificate - operationId: updateIssuedCertificate + operationId: updateInvoice parameters: - $ref: "#/parameters/idQuery" responses: "200": description: OK + summary: Update an existing Invoice + tags: + - Invoices + /issuedcertificates: delete: - summary: Delete a IssuedCertificate operationId: deleteIssuedCertificate parameters: - $ref: "#/parameters/idQuery" responses: "204": description: No Content - /lessonprogress: + summary: Delete a IssuedCertificate + tags: + - IssuedCertificates get: + operationId: getIssuedCertificates parameters: - $ref: "#/parameters/limitQuery" - $ref: "#/parameters/offsetQuery" - $ref: "#/parameters/idQuery" - summary: Get a list of LessonProgress - operationId: getLessonProgress responses: "200": description: OK + summary: Get a list of IssuedCertificates + tags: + - IssuedCertificates post: - summary: Create a new LessonProgress - operationId: createLessonProgress + operationId: createIssuedCertificate parameters: - - $ref: "#/parameters/LessonProgressRequest" + - $ref: "#/parameters/IssuedCertificateRequest" responses: "201": description: Created + summary: Create a new IssuedCertificate + tags: + - IssuedCertificates put: - summary: Update an existing LessonProgress - operationId: updateLessonProgress + operationId: updateIssuedCertificate parameters: - $ref: "#/parameters/idQuery" responses: "200": description: OK + summary: Update an existing IssuedCertificate + tags: + - IssuedCertificates + /lessonprogress: delete: - summary: Delete a LessonProgress operationId: deleteLessonProgress parameters: - $ref: "#/parameters/idQuery" responses: "204": description: No Content - /orders: + summary: Delete a LessonProgress + tags: + - LessonProgress get: - summary: Get a list of Orders + operationId: getLessonProgress parameters: - $ref: "#/parameters/limitQuery" - $ref: "#/parameters/offsetQuery" - $ref: "#/parameters/idQuery" - operationId: getOrders responses: "200": description: OK + summary: Get a list of LessonProgress + tags: + - LessonProgress post: - summary: Create a new Order - operationId: createOrder + operationId: createLessonProgress parameters: - - $ref: "#/parameters/OrderRequest" + - $ref: "#/parameters/LessonProgressRequest" responses: "201": description: Created + summary: Create a new LessonProgress + tags: + - LessonProgress put: - summary: Update an existing Order - operationId: updateOrder + operationId: updateLessonProgress parameters: - $ref: "#/parameters/idQuery" responses: "200": description: OK + summary: Update an existing LessonProgress + tags: + - LessonProgress + /orders: delete: - summary: Delete a Order operationId: deleteOrder parameters: - $ref: "#/parameters/idQuery" responses: "204": description: No Content - /paymentmethods: + summary: Delete a Order + tags: + - Orders get: - summary: Get a list of PaymentMethods + operationId: getOrders parameters: - $ref: "#/parameters/limitQuery" - $ref: "#/parameters/offsetQuery" - $ref: "#/parameters/idQuery" - operationId: getPaymentMethods responses: "200": description: OK + summary: Get a list of Orders + tags: + - Orders post: - summary: Create a new PaymentMethod - operationId: createPaymentMethod + operationId: createOrder parameters: - - $ref: "#/parameters/PaymentMethodRequest" + - $ref: "#/parameters/OrderRequest" responses: "201": description: Created + summary: Create a new Order + tags: + - Orders put: - summary: Update an existing PaymentMethod - operationId: updatePaymentMethod + operationId: updateOrder parameters: - $ref: "#/parameters/idQuery" responses: "200": description: OK + summary: Update an existing Order + tags: + - Orders + /paymentmethods: delete: - summary: Delete a PaymentMethod operationId: deletePaymentMethod parameters: - $ref: "#/parameters/idQuery" responses: "204": description: No Content - /researchprojects: + summary: Delete a PaymentMethod + tags: + - PaymentMethods get: - summary: Get a list of ResearchProjects + operationId: getPaymentMethods parameters: - $ref: "#/parameters/limitQuery" - $ref: "#/parameters/offsetQuery" - $ref: "#/parameters/idQuery" - operationId: getResearchProjects responses: "200": description: OK + summary: Get a list of PaymentMethods + tags: + - PaymentMethods post: - summary: Create a new ResearchProject - operationId: createResearchProject + operationId: createPaymentMethod parameters: - - $ref: "#/parameters/ResearchProjectRequest" + - $ref: "#/parameters/PaymentMethodRequest" responses: "201": description: Created + summary: Create a new PaymentMethod + tags: + - PaymentMethods put: - summary: Update an existing ResearchProject - operationId: updateResearchProject + operationId: updatePaymentMethod parameters: - $ref: "#/parameters/idQuery" responses: "200": description: OK - delete: - summary: Delete a ResearchProject - operationId: deleteResearchProject - parameters: - - $ref: "#/parameters/idQuery" - responses: - "204": - description: No Content + summary: Update an existing PaymentMethod + tags: + - PaymentMethods /researchprojectcompanys: - get: - summary: Get a list of ResearchProjectCompanys - parameters: - - $ref: "#/parameters/limitQuery" - - $ref: "#/parameters/offsetQuery" - - $ref: "#/parameters/idQuery" - operationId: getResearchProjectCompanys - responses: - "200": - description: OK - post: - summary: Create a new ResearchProjectCompany - operationId: createResearchProjectCompany - parameters: - - $ref: "#/parameters/ResearchProjectCompanyRequest" - responses: - "201": - description: Created - put: - summary: Update an existing ResearchProjectCompany - operationId: updateResearchProjectCompany - parameters: - - $ref: "#/parameters/idQuery" - responses: - "200": - description: OK delete: - summary: Delete a ResearchProjectCompany operationId: deleteResearchProjectCompany parameters: - $ref: "#/parameters/idQuery" responses: "204": description: No Content - /researchprojecttopics: + summary: Delete a ResearchProjectCompany + tags: + - ResearchProjectCompanies get: - summary: Get a list of ResearchProjectTopics + operationId: getResearchProjectCompanies parameters: - $ref: "#/parameters/limitQuery" - $ref: "#/parameters/offsetQuery" - $ref: "#/parameters/idQuery" - operationId: getResearchProjectTopics responses: "200": description: OK + summary: Get a list of ResearchProjectCompanies + tags: + - ResearchProjectCompanies post: - summary: Create a new ResearchProjectTopic - operationId: createResearchProjectTopic + operationId: createResearchProjectCompany parameters: - - $ref: "#/parameters/ResearchProjectTopicRequest" + - $ref: "#/parameters/ResearchProjectCompanyRequest" responses: "201": description: Created + summary: Create a new ResearchProjectCompany + tags: + - ResearchProjectCompanies put: - summary: Update an existing ResearchProjectTopic - operationId: updateResearchProjectTopic + operationId: updateResearchProjectCompany parameters: - $ref: "#/parameters/idQuery" responses: "200": description: OK + summary: Update an existing ResearchProjectCompany + tags: + - ResearchProjectCompanies + /researchprojects: + delete: + operationId: deleteResearchProject + parameters: + - $ref: "#/parameters/idQuery" + responses: + "204": + description: No Content + summary: Delete a ResearchProject + tags: + - ResearchProjects + get: + operationId: getResearchProjects + parameters: + - $ref: "#/parameters/limitQuery" + - $ref: "#/parameters/offsetQuery" + - $ref: "#/parameters/idQuery" + responses: + "200": + description: OK + summary: Get a list of ResearchProjects + tags: + - ResearchProjects + post: + operationId: createResearchProject + parameters: + - $ref: "#/parameters/ResearchProjectRequest" + responses: + "201": + description: Created + summary: Create a new ResearchProject + tags: + - ResearchProjects + put: + operationId: updateResearchProject + parameters: + - $ref: "#/parameters/idQuery" + responses: + "200": + description: OK + summary: Update an existing ResearchProject + tags: + - ResearchProjects + /researchprojecttopics: delete: - summary: Delete a ResearchProjectTopic operationId: deleteResearchProjectTopic parameters: - $ref: "#/parameters/idQuery" responses: "204": description: No Content - /tickets: + summary: Delete a ResearchProjectTopic + tags: + - ResearchProjectTopics get: - summary: Get a list of Tickets + operationId: getResearchProjectTopics parameters: - $ref: "#/parameters/limitQuery" - $ref: "#/parameters/offsetQuery" - $ref: "#/parameters/idQuery" - operationId: getTickets responses: "200": description: OK + summary: Get a list of ResearchProjectTopics + tags: + - ResearchProjectTopics post: - summary: Create a new Ticket - operationId: createTicket + operationId: createResearchProjectTopic parameters: - - $ref: "#/parameters/TicketRequest" + - $ref: "#/parameters/ResearchProjectTopicRequest" responses: "201": description: Created + summary: Create a new ResearchProjectTopic + tags: + - ResearchProjectTopics put: - summary: Update an existing Ticket - operationId: updateTicket + operationId: updateResearchProjectTopic parameters: - $ref: "#/parameters/idQuery" responses: "200": description: OK + summary: Update an existing ResearchProjectTopic + tags: + - ResearchProjectTopics + /tenants: + get: + description: Return a list of Tenant records from the datastore + operationId: getTenants + parameters: + - $ref: "#/parameters/tenantIdQuery" + - $ref: "#/parameters/limitQuery" + - $ref: "#/parameters/offsetQuery" + responses: + "200": + $ref: "#/responses/TenantResponse" + "401": + $ref: "#/responses/Unauthorized" + "403": + $ref: "#/responses/AccessForbidden" + "404": + $ref: "#/responses/NotFound" + "422": + $ref: "#/responses/UnprocessableEntity" + "500": + $ref: "#/responses/ServerError" + security: + - ApiKeyAuth: [] + summary: Get a list Tenants + tags: + - Tenants + post: + description: Create Tenants in Taxnexus + operationId: postTenants + parameters: + - $ref: "#/parameters/tenantRequest" + responses: + "200": + $ref: "#/responses/TenantResponse" + "401": + $ref: "#/responses/Unauthorized" + "403": + $ref: "#/responses/AccessForbidden" + "404": + $ref: "#/responses/NotFound" + "422": + $ref: "#/responses/UnprocessableEntity" + "500": + $ref: "#/responses/ServerError" + security: + - ApiKeyAuth: [] + summary: Create new Tenants + tags: + - Tenants + put: + description: Update Tenant in Taxnexus + operationId: putTenants + parameters: + - $ref: "#/parameters/tenantRequest" + responses: + "200": + $ref: "#/responses/TenantResponse" + "401": + $ref: "#/responses/Unauthorized" + "403": + $ref: "#/responses/AccessForbidden" + "404": + $ref: "#/responses/NotFound" + "422": + $ref: "#/responses/UnprocessableEntity" + "500": + $ref: "#/responses/ServerError" + security: + - ApiKeyAuth: [] + summary: Update Tenants + tags: + - Tenants + /templates: + get: + description: Return a list of Templates from the datastore + operationId: getTemplates + parameters: + - $ref: "#/parameters/limitQuery" + - $ref: "#/parameters/offsetQuery" + - $ref: "#/parameters/activeQuery" + - $ref: "#/parameters/templateIdQuery" + - $ref: "#/parameters/isMasterQuery" + - $ref: "#/parameters/objectTypeQuery" + responses: + "200": + $ref: "#/responses/TemplateResponse" + "401": + $ref: "#/responses/Unauthorized" + "403": + $ref: "#/responses/AccessForbidden" + "404": + $ref: "#/responses/NotFound" + "422": + $ref: "#/responses/UnprocessableEntity" + "500": + $ref: "#/responses/ServerError" + security: + - ApiKeyAuth: [] + summary: Get a list Templates + tags: + - Templates + post: + description: Create new Templates + operationId: postTemplates + parameters: + - $ref: "#/parameters/TemplateRequest" + responses: + "200": + $ref: "#/responses/TemplateResponse" + "401": + $ref: "#/responses/Unauthorized" + "403": + $ref: "#/responses/AccessForbidden" + "404": + $ref: "#/responses/NotFound" + "422": + $ref: "#/responses/UnprocessableEntity" + "500": + $ref: "#/responses/ServerError" + security: + - ApiKeyAuth: [] + summary: Create new Templates + tags: + - Templates + /tickets: delete: - summary: Delete a Ticket operationId: deleteTicket parameters: - $ref: "#/parameters/idQuery" responses: "204": description: No Content - /transactions: + summary: Delete a Ticket + tags: + - Tickets get: - summary: Get a list of Transactions + operationId: getTickets parameters: - $ref: "#/parameters/limitQuery" - $ref: "#/parameters/offsetQuery" - $ref: "#/parameters/idQuery" - operationId: getTransactions responses: "200": description: OK + summary: Get a list of Tickets + tags: + - Tickets post: - summary: Create a new Transaction - operationId: createTransaction + operationId: createTicket parameters: - - $ref: "#/parameters/TransactionRequest" + - $ref: "#/parameters/TicketRequest" responses: "201": description: Created + summary: Create a new Ticket + tags: + - Tickets put: - summary: Update an existing Transaction - operationId: updateTransaction + operationId: updateTicket parameters: - $ref: "#/parameters/idQuery" responses: "200": description: OK + summary: Update an existing Ticket + tags: + - Tickets + /transactions: delete: - summary: Delete a Transaction operationId: deleteTransaction parameters: - $ref: "#/parameters/idQuery" responses: "204": description: No Content + summary: Delete a Transaction + tags: + - Transactions + get: + operationId: getTransactions + parameters: + - $ref: "#/parameters/limitQuery" + - $ref: "#/parameters/offsetQuery" + - $ref: "#/parameters/idQuery" + responses: + "200": + description: OK + summary: Get a list of Transactions + tags: + - Transactions + post: + operationId: createTransaction + parameters: + - $ref: "#/parameters/TransactionRequest" + responses: + "201": + description: Created + summary: Create a new Transaction + tags: + - Transactions + put: + operationId: updateTransaction + parameters: + - $ref: "#/parameters/idQuery" + responses: + "200": + description: OK + summary: Update an existing Transaction + tags: + - Transactions + /users: + get: + description: Return a list of User records from the datastore + operationId: getUsers + parameters: + - $ref: "#/parameters/limitQuery" + - $ref: "#/parameters/offsetQuery" + - $ref: "#/parameters/emailQuery" + - $ref: "#/parameters/auth0UserIdQuery" + responses: + "200": + $ref: "#/responses/UserResponse" + "401": + $ref: "#/responses/Unauthorized" + "403": + $ref: "#/responses/AccessForbidden" + "404": + $ref: "#/responses/NotFound" + "422": + $ref: "#/responses/UnprocessableEntity" + "500": + $ref: "#/responses/ServerError" + security: + - ApiKeyAuth: [] + summary: Get a list Users + tags: + - Users + post: + description: Create new Users + operationId: postUsers + parameters: + - $ref: "#/parameters/UserRequest" + responses: + "200": + $ref: "#/responses/UserResponse" + "401": + $ref: "#/responses/Unauthorized" + "403": + $ref: "#/responses/AccessForbidden" + "404": + $ref: "#/responses/NotFound" + "422": + $ref: "#/responses/UnprocessableEntity" + "500": + $ref: "#/responses/ServerError" + security: + - ApiKeyAuth: [] + summary: Create new Users + tags: + - Users + put: + description: Update existing users + operationId: putUsers + parameters: + - $ref: "#/parameters/UserRequest" + responses: + "200": + $ref: "#/responses/UserResponse" + "401": + $ref: "#/responses/Unauthorized" + "403": + $ref: "#/responses/AccessForbidden" + "404": + $ref: "#/responses/NotFound" + "422": + $ref: "#/responses/UnprocessableEntity" + "500": + $ref: "#/responses/ServerError" + security: + - ApiKeyAuth: [] + summary: Update existing users + tags: + - Users definitions: - Attendee: - type: object + Address: properties: - ID: + City: + description: City type: string + Country: + description: Country full name + type: string + CountryCode: + description: Country Code + type: string + PostalCode: + description: Postal Code + type: string + State: + description: State full name + type: string + StateCode: + description: State Code + type: string + Street: + description: Street number and name + type: string + type: object + Attendee: + properties: CheckinStatus: type: integer CreatedDate: @@ -1077,6 +1765,8 @@ definitions: x-nullable: true EventID: type: string + ID: + type: string LastModifiedDate: type: string x-nullable: true @@ -1084,27 +1774,25 @@ definitions: type: string UserID: type: string + type: object AttendeeRequest: - type: object description: An array of Attendee objects properties: Data: - type: array items: $ref: "#/definitions/Attendee" + type: array + type: object AttendeeResponse: - type: object description: An array of Attendee objects properties: Data: - type: array items: $ref: "#/definitions/Attendee" - Certificate: + type: array type: object + Certificate: properties: - ID: - type: string CertificateTemplate: type: string CourseID: @@ -1117,6 +1805,8 @@ definitions: Description: type: string x-nullable: true + ID: + type: string LastModifiedByID: type: string LastModifiedDate: @@ -1124,68 +1814,121 @@ definitions: x-nullable: true Title: type: string + type: object CertificateRequest: - type: object description: An array of Certificate objects properties: Data: - type: array items: $ref: "#/definitions/Certificate" + type: array + type: object CertificateResponse: - type: object description: An array of Certificate objects properties: Data: - type: array items: $ref: "#/definitions/Certificate" - Course: + type: array type: object + Cluster: properties: - ID: + CreatedByID: + description: Created By type: string - Title: + CreatedDate: + description: Created Date type: string Description: + description: Description type: string - Fulldescription: + Environment: + description: Environment type: string - InstructorID: + Gateway: + description: Gateway type: string - Price: - type: number + ID: + description: Record Id + type: string + IPAddress: + description: IP Address + type: string + LastModifiedByID: + description: Last Modified By + type: string + LastModifiedDate: + description: Last Modified Date + type: string + Name: + description: Cluster Name + type: string + OwnerID: + description: Owner + type: string + Ref: + description: External Reference + type: string + Status: + description: Status + type: string + Subnet: + description: Subnet + type: string + TenantID: + description: The ID of the tenant who owns this Database + type: string + Type: + description: Type + type: string + Zone: + description: Zone + type: string + type: object + ClusterRequest: + properties: + Data: + items: + $ref: "#/definitions/Cluster" + type: array + type: object + ClusterResponse: + description: An array of cluster objects + properties: + Data: + items: + $ref: "#/definitions/Cluster" + type: array + Meta: + $ref: "#/definitions/ResponseMeta" + type: object + Course: + properties: CreatedByID: type: string CreatedDate: type: string x-nullable: true + Description: + type: string + Fulldescription: + type: string + ID: + type: string + InstructorID: + type: string LastModifiedByID: type: string LastModifiedDate: type: string x-nullable: true - CourseRequest: - type: object - description: An array of Course objects - properties: - Data: - type: array - items: - $ref: "#/definitions/Course" - CourseResponse: - type: object - description: An array of Course objects - properties: - Data: - type: array - items: - $ref: "#/definitions/Course" - CourseLesson: - type: object - properties: - ID: + Price: + type: number + Title: type: string + type: object + CourseLesson: + properties: Content: type: string CreatedByID: @@ -1193,6 +1936,8 @@ definitions: CreatedDate: type: string x-nullable: true + ID: + type: string LastModifiedByID: type: string LastModifiedDate: @@ -1206,66 +1951,138 @@ definitions: type: string VideoURL: type: string + type: object CourseLessonRequest: - type: object description: An array of CourseLesson objects properties: Data: - type: array items: $ref: "#/definitions/CourseLesson" + type: array + type: object CourseLessonResponse: - type: object description: An array of CourseLesson objects properties: Data: - type: array items: $ref: "#/definitions/CourseLesson" - CourseSection: + type: array type: object + CourseRequest: + description: An array of Course objects + properties: + Data: + items: + $ref: "#/definitions/Course" + type: array + type: object + CourseResponse: + description: An array of Course objects + properties: + Data: + items: + $ref: "#/definitions/Course" + type: array + type: object + CourseSection: properties: - ID: - type: string CourseID: type: string - Title: - type: string - Description: - type: string - Order: - type: integer CreatedByID: type: string CreatedDate: type: string x-nullable: true + Description: + type: string + ID: + type: string LastModifiedByID: type: string LastModifiedDate: type: string x-nullable: true - CourseSectionRequest: - type: object - description: An array of CourseSection objects - properties: - Data: - type: array - items: - $ref: "#/definitions/CourseSection" - CourseSectionResponse: - type: object - description: An array of CourseSection objects - properties: - Data: - type: array - items: - $ref: "#/definitions/CourseSection" - Enrollment: - type: object - properties: - ID: + Order: + type: integer + Title: type: string + type: object + CourseSectionRequest: + description: An array of CourseSection objects + properties: + Data: + items: + $ref: "#/definitions/CourseSection" + type: array + type: object + CourseSectionResponse: + description: An array of CourseSection objects + properties: + Data: + items: + $ref: "#/definitions/CourseSection" + type: array + type: object + Database: + description: A Database provisioned and owned by a Tenant + properties: + Active: + description: Is this database active? + type: boolean + ClusterID: + description: The ID of the Cluster in which this database is deployed + type: string + CreatedByID: + description: Created By + type: string + CreatedDate: + description: Created Date + type: string + DSN: + description: Database connection string + type: string + DatabaseName: + description: The name of the physical database in the cluster + type: string + ID: + description: Record Id + type: string + LastModifiedByID: + description: Last Modified By + type: string + LastModifiedDate: + description: Last Modifed Date + type: string + Status: + description: The current status of this Tenant + type: string + TenantID: + description: The ID of the tenant who owns this Database + type: string + Type: + description: The type of Database (mysql, etc) + type: string + type: object + DatabaseRequest: + description: An array of Database objects + properties: + Data: + items: + $ref: "#/definitions/Database" + type: array + type: object + DatabaseResponse: + description: An array of Database objects + properties: + Data: + items: + $ref: "#/definitions/Database" + type: array + Meta: + $ref: "#/definitions/ResponseMeta" + type: object + Enrollment: + properties: Completed: type: integer CourseID: @@ -1277,6 +2094,8 @@ definitions: x-nullable: true EnrollmentDate: type: string + ID: + type: string LastModifiedByID: type: string LastModifiedDate: @@ -1284,130 +2103,138 @@ definitions: x-nullable: true UserID: type: string + type: object EnrollmentRequest: - type: object description: An array of Enrollment objects properties: Data: - type: array items: $ref: "#/definitions/Enrollment" + type: array + type: object EnrollmentResponse: - type: object description: An array of Enrollment objects properties: Data: - type: array items: $ref: "#/definitions/Enrollment" - Event: + type: array type: object + Error: properties: - ID: + code: + format: int64 + type: integer + fields: type: string - Title: - type: string - Description: - type: string - x-nullable: true - StartDate: - type: string - EndDate: - type: string - Location: + message: type: string + type: object + Event: + properties: Capacity: type: integer x-nullable: true - OrganizeruserID: - type: string Createdat: type: string x-nullable: true + Description: + type: string + x-nullable: true + EndDate: + type: string + ID: + type: string + Location: + type: string + OrganizeruserID: + type: string + StartDate: + type: string + Title: + type: string UpDatedat: type: string x-nullable: true - EventRequest: type: object - description: An array of Event objects - properties: - Data: - type: array - items: - $ref: "#/definitions/Event" - EventResponse: - type: object - description: An array of Event objects - properties: - Data: - type: array - items: - $ref: "#/definitions/Event" EventCategory: - type: object properties: - ID: - type: string - Name: - type: string CreatedDate: type: string x-nullable: true + ID: + type: string LastModifiedDate: type: string x-nullable: true - EventCategoryRequest: + Name: + type: string type: object - description: An array of EventCategory objects - properties: - Data: - type: array - items: - $ref: "#/definitions/EventCategory" - EventCategoryResponse: - type: object - description: An array of EventCategory objects - properties: - Data: - type: array - items: - $ref: "#/definitions/EventCategory" EventCategoryAssignment: - type: object properties: - ID: - type: string - EventID: - type: string - EventCategoryID: - type: string Createdat: type: string x-nullable: true + EventCategoryID: + type: string + EventID: + type: string + ID: + type: string UpDatedat: type: string x-nullable: true + type: object EventCategoryAssignmentRequest: - type: object description: An array of EventCategoryAssignment objects properties: Data: - type: array items: $ref: "#/definitions/EventCategoryAssignment" + type: array + type: object EventCategoryAssignmentResponse: - type: object description: An array of EventCategoryAssignment objects properties: Data: - type: array items: $ref: "#/definitions/EventCategoryAssignment" - Favorite: + type: array type: object + EventCategoryRequest: + description: An array of EventCategory objects + properties: + Data: + items: + $ref: "#/definitions/EventCategory" + type: array + type: object + EventCategoryResponse: + description: An array of EventCategory objects + properties: + Data: + items: + $ref: "#/definitions/EventCategory" + type: array + type: object + EventRequest: + description: An array of Event objects + properties: + Data: + items: + $ref: "#/definitions/Event" + type: array + type: object + EventResponse: + description: An array of Event objects + properties: + Data: + items: + $ref: "#/definitions/Event" + type: array + type: object + Favorite: properties: - ID: - type: string CreatedByID: type: string CreatedDate: @@ -1415,10 +2242,12 @@ definitions: x-nullable: true Description: type: string + FavoriteID: + type: string Favoritetype: type: string x-nullable: true - FavoriteID: + ID: type: string LastModifiedByID: type: string @@ -1433,27 +2262,25 @@ definitions: type: string UserID: type: string + type: object FavoriteRequest: - type: object description: An array of Favorite objects properties: Data: - type: array items: $ref: "#/definitions/Favorite" + type: array + type: object FavoriteResponse: - type: object description: An array of Favorite objects properties: Data: - type: array items: $ref: "#/definitions/Favorite" - Invoice: + type: array type: object + Invoice: properties: - ID: - type: string Amount: type: number CourseID: @@ -1467,6 +2294,8 @@ definitions: type: string DueDate: type: string + ID: + type: string Invoicenumber: type: string LastModifiedByID: @@ -1480,27 +2309,25 @@ definitions: type: string UserID: type: string + type: object InvoiceRequest: - type: object description: An array of Invoice objects properties: Data: - type: array items: $ref: "#/definitions/Invoice" + type: array + type: object InvoiceResponse: - type: object description: An array of Invoice objects properties: Data: - type: array items: $ref: "#/definitions/Invoice" - IssuedCertificate: + type: array type: object + IssuedCertificate: properties: - ID: - type: string CertificateID: type: string CreatedByID: @@ -1513,6 +2340,8 @@ definitions: ExpirationDate: type: string x-nullable: true + ID: + type: string IssueDate: type: string LastModifiedByID: @@ -1524,27 +2353,25 @@ definitions: type: string VerificationCode: type: string + type: object IssuedCertificateRequest: - type: object description: An array of IssuedCertificate objects properties: Data: - type: array items: $ref: "#/definitions/IssuedCertificate" + type: array + type: object IssuedCertificateResponse: - type: object description: An array of IssuedCertificate objects properties: Data: - type: array items: $ref: "#/definitions/IssuedCertificate" - LessonProgress: + type: array type: object + LessonProgress: properties: - ID: - type: string Completed: type: integer Completedat: @@ -1557,6 +2384,8 @@ definitions: x-nullable: true EnrollmentID: type: string + ID: + type: string LastModifiedByID: type: string LastModifiedDate: @@ -1566,68 +2395,90 @@ definitions: type: string UserID: type: string + type: object LessonProgressRequest: - type: object description: An array of LessonProgress objects properties: Data: - type: array items: $ref: "#/definitions/LessonProgress" + type: array + type: object LessonProgressResponse: - type: object description: An array of LessonProgress objects properties: Data: - type: array items: $ref: "#/definitions/LessonProgress" - Order: + type: array type: object + Message: properties: - ID: + Message: type: string - UserID: + Ref: type: string - EventID: - type: string - TicketID: - type: string - OrderStatus: - type: string - PaymentMethod: - type: string - x-nullable: true + Status: + type: integer + type: object + Order: + properties: AmountpaID: type: number x-nullable: true Createdat: type: string x-nullable: true + EventID: + type: string + ID: + type: string + OrderStatus: + type: string + PaymentMethod: + type: string + x-nullable: true + TicketID: + type: string UpDatedat: type: string x-nullable: true - OrderRequest: - type: object - description: An array of Order objects - properties: - Data: - type: array - items: - $ref: "#/definitions/Order" - OrderResponse: - type: object - description: An array of Order objects - properties: - Data: - type: array - items: - $ref: "#/definitions/Order" - PaymentMethod: - type: object - properties: - ID: + UserID: type: string + type: object + OrderRequest: + description: An array of Order objects + properties: + Data: + items: + $ref: "#/definitions/Order" + type: array + type: object + OrderResponse: + description: An array of Order objects + properties: + Data: + items: + $ref: "#/definitions/Order" + type: array + type: object + Pagination: + properties: + Limit: + format: int64 + type: integer + POffset: + format: int64 + type: integer + PageSize: + format: int64 + type: integer + SetSize: + format: int64 + type: integer + type: object + PaymentMethod: + properties: CardHolderName: type: string CardNumber: @@ -1643,6 +2494,8 @@ definitions: type: integer ExpirationYear: type: integer + ID: + type: string Isdefault: type: integer LastModifiedByID: @@ -1652,27 +2505,33 @@ definitions: x-nullable: true UserID: type: string + type: object PaymentMethodRequest: - type: object description: An array of PaymentMethod objects properties: Data: - type: array items: $ref: "#/definitions/PaymentMethod" + type: array + type: object PaymentMethodResponse: - type: object description: An array of PaymentMethod objects properties: Data: - type: array items: $ref: "#/definitions/PaymentMethod" - ResearchProject: + type: array type: object + RequestMeta: properties: - ID: + TaxnexusAccount: + description: Account Number of the Reseller or OEM type: string + required: + - TaxnexusAccount + type: object + ResearchProject: + properties: AccountID: type: string CreatedByID: @@ -1682,6 +2541,8 @@ definitions: x-nullable: true Description: type: string + ID: + type: string LastModifiedByID: type: string LastModifiedDate: @@ -1693,27 +2554,9 @@ definitions: type: string UserID: type: string - ResearchProjectRequest: type: object - description: An array of ResearchProject objects - properties: - Data: - type: array - items: - $ref: "#/definitions/ResearchProject" - ResearchProjectResponse: - type: object - description: An array of ResearchProject objects - properties: - Data: - type: array - items: - $ref: "#/definitions/ResearchProject" ResearchProjectCompany: - type: object properties: - ID: - type: string AccountID: type: string CreatedByID: @@ -1721,6 +2564,8 @@ definitions: CreatedDate: type: string x-nullable: true + ID: + type: string LastModifiedByID: type: string LastModifiedDate: @@ -1730,32 +2575,48 @@ definitions: type: string TenantID: type: string + type: object ResearchProjectCompanyRequest: - type: object description: An array of ResearchProjectCompany objects properties: Data: - type: array items: $ref: "#/definitions/ResearchProjectCompany" + type: array + type: object ResearchProjectCompanyResponse: - type: object description: An array of ResearchProjectCompany objects properties: Data: - type: array items: $ref: "#/definitions/ResearchProjectCompany" - ResearchProjectTopic: + type: array type: object + ResearchProjectRequest: + description: An array of ResearchProject objects + properties: + Data: + items: + $ref: "#/definitions/ResearchProject" + type: array + type: object + ResearchProjectResponse: + description: An array of ResearchProject objects + properties: + Data: + items: + $ref: "#/definitions/ResearchProject" + type: array + type: object + ResearchProjectTopic: properties: - ID: - type: string CreatedByID: type: string CreatedDate: type: string x-nullable: true + ID: + type: string LastModifiedByID: type: string LastModifiedDate: @@ -1767,32 +2628,304 @@ definitions: type: string TopicID: type: string + type: object ResearchProjectTopicRequest: - type: object description: An array of ResearchProjectTopic objects properties: Data: - type: array items: $ref: "#/definitions/ResearchProjectTopic" + type: array + type: object ResearchProjectTopicResponse: - type: object description: An array of ResearchProjectTopic objects properties: Data: - type: array items: $ref: "#/definitions/ResearchProjectTopic" - Ticket: + type: array type: object + ResponseMeta: properties: - ID: + Contact: + description: Microservice Contact Info type: string + Copyright: + description: Copyright Info + type: string + License: + description: License Information and Restrictions + type: string + OperationID: + description: Operation ID + type: string + Pagination: + $ref: "#/definitions/Pagination" + RequestIP: + description: Request IP Address + type: string + RequestType: + description: Request Type + type: string + RequestURL: + description: Request URL + type: string + ServerInfo: + description: Data Server Info + type: string + ServerResponseTime: + description: Data Server Response Time (ms) + type: string + ServerTimestamp: + description: Backend Server Timestamp + type: string + TaxnexusAccount: + description: Account Number used for recording transactions + type: string + type: object + TenantUser: + description: Relationship object that connects users to a tenant + properties: + AccessLevel: + description: The makeTenantUser access level for this User + type: string + AccountID: + description: Account ID + type: string + Auth0UserID: + description: Auth0 User ID + type: string + CompanyName: + description: Account Name + type: string + ContactID: + description: Contact ID + type: string + TaxnexusAccount: + description: Account + type: string + TenantActive: + description: Tenant active? + type: boolean + TenantID: + description: The Tenant ID + type: string + TenantName: + description: Tenant Name + type: string + TenantStatus: + description: Tenant Status + type: string + TenantType: + description: Tenant type + type: string + TenantVersion: + description: Tenant Version + type: string + UserEmail: + description: User Email Address + type: string + UserFullName: + description: User Full Name + type: string + UserID: + description: The User ID + type: string + Username: + description: Username + type: string + type: object + Role: + description: A functional role within a Tenant + properties: + Auth0RoleID: + description: The corresponding Auth0 Role + type: string + CreatedByID: + description: Created By + type: string + CreatedDate: + description: Created Date + type: string + Description: + description: Role Description + type: string + ID: + description: Record Id + type: string + LastModifiedByID: + description: Last Modified By + type: string + LastModifiedDate: + description: Last Modifed Date + type: string + RoleName: + description: The name of this role + type: string + TenantID: + description: The ID of the Tenant that owns this Role + type: string + type: object + RoleRequest: + description: An array of Role objects + properties: + Date: + items: + $ref: "#/definitions/Role" + type: array + type: object + RoleResponse: + description: An array of Role objects + properties: + Data: + items: + $ref: "#/definitions/Role" + type: array + Meta: + $ref: "#/definitions/ResponseMeta" + type: object + Template: + properties: + CompanyID: + description: Company + type: string + CreatedByID: + type: string + CreatedDate: + type: string + Description: + description: Description + type: string + HTML: + description: HTML Body + format: byte + type: string + ID: + description: Record Id + type: string + IsActive: + description: Active? + type: boolean + IsMaster: + description: Master Template? + type: boolean + LastModifiedByID: + type: string + LastModifiedDate: + type: string + Name: + description: Template Name + type: string + ObjectType: + description: Object + type: string + RecordTypeName: + description: Record Type Name + type: string + TenantID: + description: Tenant that owns this object instance + type: string + Type: + description: Type + type: string + URL: + description: URL + type: string + type: object + TemplateRequest: + description: An array of Templates + properties: + Data: + items: + $ref: "#/definitions/Template" + type: array + type: object + TemplateResponse: + description: An array of Templates + properties: + Data: + items: + $ref: "#/definitions/Template" + type: array + Meta: + $ref: "#/definitions/ResponseMeta" + type: object + Tenant: + description: Account Tenant + properties: + AccountID: + description: The Account that owns this Tenant + type: string + Active: + description: Is this Tenant currently active? + type: boolean + CreatedByID: + description: Created By + type: string + CreatedDate: + description: Created Date + type: string + Databases: + items: + $ref: "#/definitions/Database" + type: array + ID: + description: Record Id + type: string + LastModifiedByID: + description: Last Modified By + type: string + LastModifiedDate: + description: Last Modifed Date + type: string + Roles: + items: + $ref: "#/definitions/Role" + type: array + Status: + description: The current status of this Tenant + type: string + TenantName: + description: Name of the Tenant Resource + type: string + TenantUsers: + items: + $ref: "#/definitions/TenantUser" + type: array + Type: + description: The type of Tenant + type: string + Version: + description: The version number of the Tenant Onboarding system used to create this tenant + type: string + type: object + TenantRequest: + description: An array of Tenant objects + properties: + Data: + items: + $ref: "#/definitions/Tenant" + type: array + type: object + TenantResponse: + description: An array of Tenant objects + properties: + Data: + items: + $ref: "#/definitions/Tenant" + type: array + Meta: + $ref: "#/definitions/ResponseMeta" + type: object + Ticket: + properties: CreatedDate: type: string x-nullable: true EventID: type: string + ID: + type: string LastModifiedDate: type: string x-nullable: true @@ -1803,27 +2936,25 @@ definitions: type: integer Tickettype: type: string + type: object TicketRequest: - type: object description: An array of Ticket objects properties: Data: - type: array items: $ref: "#/definitions/Ticket" + type: array + type: object TicketResponse: - type: object description: An array of Ticket objects properties: Data: - type: array items: $ref: "#/definitions/Ticket" - Transaction: + type: array type: object + Transaction: properties: - ID: - type: string Amount: type: number CourseID: @@ -1837,6 +2968,8 @@ definitions: type: string EnrollmentID: type: string + ID: + type: string LastModifiedByID: type: string LastModifiedDate: @@ -1851,19 +2984,258 @@ definitions: type: string UserID: type: string + type: object TransactionRequest: - type: object description: An array of Transaction objects properties: Data: - type: array items: $ref: "#/definitions/Transaction" + type: array + type: object TransactionResponse: - type: object description: An array of Transaction objects properties: Data: - type: array items: $ref: "#/definitions/Transaction" + type: array + type: object + User: + properties: + APIKey: + description: API Key + type: string + AboutMe: + description: About Me + type: string + AccountID: + description: Account ID + type: string + Address: + $ref: "#/definitions/Address" + Alias: + description: Alias + type: string + Auth0UserID: + description: Auth0 User Id + type: string + CommunityNickname: + description: Nickname + type: string + CompanyName: + description: Company Name + type: string + ContactID: + description: Contact + type: string + CreatedByID: + description: Created User ID + type: string + CreatedDate: + description: Date Created + type: string + DelegatedApproverID: + description: Delegated Approver + type: string + Department: + description: Department + type: string + Division: + description: Division + type: string + Email: + description: Email address + type: string + EmployeeNumber: + description: Employee Number + type: string + EndOfDay: + description: Time day ends + type: string + Environment: + description: Environment + type: string + Extension: + description: Extension + type: string + FabricAPIKey: + description: Fabric API Key + type: string + Fax: + description: Fax + type: string + FirstName: + description: The first name + type: string + ForecastEnabled: + description: Allow Forecasting + type: boolean + FullPhotoURL: + description: Full Photo URL + type: string + ID: + description: Record ID + type: string + IsActive: + description: Active + type: boolean + IsPortalEnabled: + description: Is the user enabled for Communities? + type: boolean + IsProphilePhotoActive: + description: Has Profile Photo + type: boolean + IsSystemControlled: + type: boolean + LastIP: + description: IP address of last login + type: string + LastLogin: + description: Last login time + type: string + LastModifiedByID: + description: Last Modified User ID + type: string + LastModifiedDate: + description: Last Modified Date + type: string + LastName: + description: The Last Name + type: string + LoginCount: + description: Number of times user has logged in + format: int64 + type: number + ManagerID: + description: Manager + type: string + MobilePhone: + description: Mobile + type: string + Name: + description: Name + type: string + OutOfOfficeMessage: + description: Out of office message + type: string + Phone: + description: Phone + type: string + PortalRole: + description: Portal Role Level + type: string + ProfileID: + description: Profile + type: string + ReceivesAdminEmails: + description: Info Emails + type: boolean + ReceivesAdminInfoEmails: + description: Admin Info Emails + type: boolean + SenderEmail: + description: Email Sender Address + type: string + SenderName: + description: Email Sender Name + type: string + Signature: + description: Email Signature + type: string + SmallPhotoURL: + description: Small Photo URL + type: string + StartOfDay: + description: The time day starts + type: string + TaxnexusAccount: + description: Account + type: string + TenantID: + description: Tenant ID associated with this user + type: string + TenantUsers: + items: + $ref: "#/definitions/TenantUser" + type: array + TimeZone: + description: Time Zone + type: string + Title: + description: Title + type: string + UserRoleID: + description: Role + type: string + UserRoles: + items: + $ref: "#/definitions/UserRole" + type: array + UserType: + description: User Type + type: string + Username: + description: Username + type: string + type: object + UserRequest: + properties: + Data: + items: + $ref: "#/definitions/User" + type: array + type: object + UserResponse: + description: An array of Print-Ready ingest Objects + properties: + Data: + items: + $ref: "#/definitions/User" + type: array + Meta: + $ref: "#/definitions/ResponseMeta" + type: object + UserRole: + description: Relationship object that connects user to a role + properties: + AccountID: + description: Account Id + type: string + Auth0RoleID: + description: Linked role ID + type: string + Auth0UserID: + description: Auth0 User ID + type: string + CompanyName: + description: Company Name + type: string + ContactID: + description: Contact ID + type: string + RoleDescription: + description: Role description + type: string + RoleID: + description: The Role ID + type: string + RoleName: + description: Role Name + type: string + TaxnexusAccount: + description: Account Number + type: string + UserEmail: + description: User Email Address + type: string + UserFullName: + description: User Full Name + type: string + UserID: + description: The User ID + type: string + Username: + description: Username + type: string + type: object diff --git a/swagger/members-vernonkeenan.yaml b/swagger/members-vernonkeenan.yaml index 8bae8a6..0ff9e45 100644 --- a/swagger/members-vernonkeenan.yaml +++ b/swagger/members-vernonkeenan.yaml @@ -22,26 +22,6 @@ consumes: produces: - "application/json" parameters: - limitQuery: - description: "How many objects to return at one time" - format: int64 - in: query - name: limit - required: false - type: integer - offsetQuery: - description: How many objects to skip? - format: int64 - in: query - name: offset - required: false - type: integer - idQuery: - description: Unique Record ID - in: query - name: id - required: false - type: string AttendeeRequest: description: An array of new Attendee records in: body @@ -56,13 +36,6 @@ parameters: required: true schema: $ref: "#/definitions/CertificateRequest" - CourseRequest: - description: An array of new Course records - in: body - name: courseRequest - required: true - schema: - $ref: "#/definitions/CourseRequest" CourseLessonRequest: description: An array of new CourseLesson records in: body @@ -70,6 +43,26 @@ parameters: required: true schema: $ref: "#/definitions/CourseLessonRequest" + clusterIdQuery: + description: Record Id of a Cluster + in: query + name: clusterId + required: false + type: string + ClusterRequest: + description: An array of Cluster records + in: body + name: ClusterRequest + required: true + schema: + $ref: "#/definitions/ClusterRequest" + CourseRequest: + description: An array of new Course records + in: body + name: courseRequest + required: true + schema: + $ref: "#/definitions/CourseRequest" CourseSectionRequest: description: An array of new CourseSection records in: body @@ -84,20 +77,6 @@ parameters: required: true schema: $ref: "#/definitions/EnrollmentRequest" - EventRequest: - description: An array of new Event records - in: body - name: eventRequest - required: true - schema: - $ref: "#/definitions/EventRequest" - EventCategoryRequest: - description: An array of new EventCategory records - in: body - name: eventcategoryRequest - required: true - schema: - $ref: "#/definitions/EventCategoryRequest" EventCategoryAssignmentRequest: description: An array of new EventCategoryAssignment records in: body @@ -105,6 +84,20 @@ parameters: required: true schema: $ref: "#/definitions/EventCategoryAssignmentRequest" + EventCategoryRequest: + description: An array of new EventCategory records + in: body + name: eventcategoryRequest + required: true + schema: + $ref: "#/definitions/EventCategoryRequest" + EventRequest: + description: An array of new Event records + in: body + name: eventRequest + required: true + schema: + $ref: "#/definitions/EventRequest" FavoriteRequest: description: An array of new Favorite records in: body @@ -147,13 +140,6 @@ parameters: required: true schema: $ref: "#/definitions/PaymentMethodRequest" - ResearchProjectRequest: - description: An array of new ResearchProject records - in: body - name: researchprojectRequest - required: true - schema: - $ref: "#/definitions/ResearchProjectRequest" ResearchProjectCompanyRequest: description: An array of new ResearchProjectCompany records in: body @@ -161,6 +147,13 @@ parameters: required: true schema: $ref: "#/definitions/ResearchProjectCompanyRequest" + ResearchProjectRequest: + description: An array of new ResearchProject records + in: body + name: researchprojectRequest + required: true + schema: + $ref: "#/definitions/ResearchProjectRequest" ResearchProjectTopicRequest: description: An array of new ResearchProjectTopic records in: body @@ -168,6 +161,31 @@ parameters: required: true schema: $ref: "#/definitions/ResearchProjectTopicRequest" + templateIdQuery: + description: Template ID + in: query + name: templateId + type: string + TemplateRequest: + description: An array of Template records + in: body + name: TemplateRequest + required: true + schema: + $ref: "#/definitions/TemplateRequest" + tenantIdQuery: + description: Record Id of a Tenant + in: query + name: tenantId + required: false + type: string + tenantRequest: + description: An array of Tenant records + in: body + name: TenantRequest + required: true + schema: + $ref: "#/definitions/TenantRequest" TicketRequest: description: An array of new Ticket records in: body @@ -182,7 +200,82 @@ parameters: required: true schema: $ref: "#/definitions/TransactionRequest" + UserRequest: + description: An array of User records + in: body + name: UserRequest + required: true + schema: + $ref: "#/definitions/UserRequest" + activeQuery: + description: Retrieve active records only? + in: query + name: active + required: false + type: boolean + auth0UserIdQuery: + description: External Auth0 User ID + in: query + name: auth0UserId + required: false + type: string + databaseIdQuery: + description: Record Id of a Database + in: query + name: databaseId + type: string + required: true + databaseRequest: + description: An array of Database records + in: body + name: DatabaseRequest + required: true + schema: + $ref: "#/definitions/DatabaseRequest" + emailQuery: + description: Email address + in: query + name: email + required: false + type: string + idQuery: + description: Unique Record ID + in: query + name: id + required: false + type: string + objectTypeQuery: + description: Object Type Name + in: query + name: objectType + type: string + isMasterQuery: + description: Is Master Template? + in: query + name: isMaster + type: boolean + limitQuery: + description: How many objects to return at one time + format: int64 + in: query + name: limit + required: false + type: integer + offsetQuery: + description: How many objects to skip? + format: int64 + in: query + name: offset + required: false + type: integer responses: + AccessForbidden: + description: Access forbidden, account lacks access + headers: + Access-Control-Allow-Origin: + type: string + schema: + $ref: "#/definitions/Error" AttendeeResponse: description: Attendee Response Object headers: @@ -201,15 +294,15 @@ responses: type: string schema: $ref: "#/definitions/CertificateResponse" - CourseResponse: - description: Course Response Object + ClusterResponse: + description: Response with Cluster objects headers: Access-Control-Allow-Origin: type: string Cache-Control: type: string schema: - $ref: "#/definitions/CourseResponse" + $ref: "#/definitions/ClusterResponse" CourseLessonResponse: description: CourseLesson Response Object headers: @@ -219,6 +312,15 @@ responses: type: string schema: $ref: "#/definitions/CourseLessonResponse" + CourseResponse: + description: Course Response Object + headers: + Access-Control-Allow-Origin: + type: string + Cache-Control: + type: string + schema: + $ref: "#/definitions/CourseResponse" CourseSectionResponse: description: CourseSection Response Object headers: @@ -228,6 +330,13 @@ responses: type: string schema: $ref: "#/definitions/CourseSectionResponse" + DatabaseResponse: + headers: + Access-Control-Allow-Origin: + type: string + description: Response with Database objects + schema: + $ref: "#/definitions/DatabaseResponse" EnrollmentResponse: description: Enrollment Response Object headers: @@ -237,24 +346,6 @@ responses: type: string schema: $ref: "#/definitions/EnrollmentResponse" - EventResponse: - description: Event Response Object - headers: - Access-Control-Allow-Origin: - type: string - Cache-Control: - type: string - schema: - $ref: "#/definitions/EventResponse" - EventCategoryResponse: - description: EventCategory Response Object - headers: - Access-Control-Allow-Origin: - type: string - Cache-Control: - type: string - schema: - $ref: "#/definitions/EventCategoryResponse" EventCategoryAssignmentResponse: description: EventCategoryAssignment Response Object headers: @@ -264,6 +355,24 @@ responses: type: string schema: $ref: "#/definitions/EventCategoryAssignmentResponse" + EventCategoryResponse: + description: EventCategory Response Object + headers: + Access-Control-Allow-Origin: + type: string + Cache-Control: + type: string + schema: + $ref: "#/definitions/EventCategoryResponse" + EventResponse: + description: Event Response Object + headers: + Access-Control-Allow-Origin: + type: string + Cache-Control: + type: string + schema: + $ref: "#/definitions/EventResponse" FavoriteResponse: description: Favorite Response Object headers: @@ -300,6 +409,13 @@ responses: type: string schema: $ref: "#/definitions/LessonProgressResponse" + NotFound: + description: Resource was not found + headers: + Access-Control-Allow-Origin: + type: string + schema: + $ref: "#/definitions/Error" OrderResponse: description: Order Response Object headers: @@ -318,15 +434,6 @@ responses: type: string schema: $ref: "#/definitions/PaymentMethodResponse" - ResearchProjectResponse: - description: ResearchProject Response Object - headers: - Access-Control-Allow-Origin: - type: string - Cache-Control: - type: string - schema: - $ref: "#/definitions/ResearchProjectResponse" ResearchProjectCompanyResponse: description: ResearchProjectCompany Response Object headers: @@ -336,6 +443,15 @@ responses: type: string schema: $ref: "#/definitions/ResearchProjectCompanyResponse" + ResearchProjectResponse: + description: ResearchProject Response Object + headers: + Access-Control-Allow-Origin: + type: string + Cache-Control: + type: string + schema: + $ref: "#/definitions/ResearchProjectResponse" ResearchProjectTopicResponse: description: ResearchProjectTopic Response Object headers: @@ -345,6 +461,29 @@ responses: type: string schema: $ref: "#/definitions/ResearchProjectTopicResponse" + ServerError: + description: Server Internal Error + headers: + Access-Control-Allow-Origin: + type: string + schema: + $ref: "#/definitions/Error" + TenantResponse: + headers: + Access-Control-Allow-Origin: + type: string + description: Response with Tenant objects + schema: + $ref: "#/definitions/TenantResponse" + TemplateResponse: + description: Response with Template objects + headers: + Access-Control-Allow-Origin: + type: string + Cache-Control: + type: string + schema: + $ref: "#/definitions/TemplateResponse" TicketResponse: description: Ticket Response Object headers: @@ -363,10 +502,46 @@ responses: type: string schema: $ref: "#/definitions/TransactionResponse" + Unauthorized: + description: Access Unauthorized, invalid API-KEY was used + headers: + Access-Control-Allow-Origin: + type: string + Cache-Control: + type: string + schema: + $ref: "#/definitions/Error" + UnprocessableEntity: + description: Unprocessable Entity, likely a bad parameter + headers: + Access-Control-Allow-Origin: + type: string + Cache-Control: + type: string + schema: + $ref: "#/definitions/Error" + UserResponse: + description: Response with User objects + headers: + Access-Control-Allow-Origin: + type: string + Cache-Control: + type: string + schema: + $ref: "#/definitions/UserResponse" paths: /attendees: + delete: + operationId: deleteAttendee + parameters: + - $ref: "#/parameters/idQuery" + responses: + "204": + description: No Content + summary: Delete a Attendee + tags: + - Attendees get: - summary: Get a list of Attendees operationId: getAttendees parameters: - $ref: "#/parameters/idQuery" @@ -375,701 +550,1214 @@ paths: responses: "200": description: OK + summary: Get a list of Attendees + tags: + - Attendees post: - summary: Create a new Attendee operationId: createAttendee parameters: - $ref: "#/parameters/AttendeeRequest" responses: "201": description: Created + summary: Create a new Attendee + tags: + - Attendees put: - summary: Update an existing Attendee operationId: updateAttendee parameters: - $ref: "#/parameters/idQuery" responses: "200": description: OK - delete: - summary: Delete a Attendee - operationId: deleteAttendee - parameters: - - $ref: "#/parameters/idQuery" - responses: - "204": - description: No Content + summary: Update an existing Attendee + tags: + - Attendees /certificates: - get: - summary: Get a list of Certificates - parameters: - - $ref: "#/parameters/idQuery" - - $ref: "#/parameters/limitQuery" - - $ref: "#/parameters/offsetQuery" - operationId: getCertificates - responses: - "200": - description: OK - post: - summary: Create a new Certificate - operationId: createCertificate - parameters: - - $ref: "#/parameters/CertificateRequest" - responses: - "201": - description: Created - put: - summary: Update an existing Certificate - operationId: updateCertificate - parameters: - - $ref: "#/parameters/idQuery" - responses: - "200": - description: OK delete: - summary: Delete a Certificate operationId: deleteCertificate parameters: - $ref: "#/parameters/idQuery" responses: "204": description: No Content - /courses: + summary: Delete a Certificate + tags: + - Certificates get: - summary: Get a list of Courses + operationId: getCertificates parameters: - $ref: "#/parameters/idQuery" - $ref: "#/parameters/limitQuery" - $ref: "#/parameters/offsetQuery" - operationId: getCourses responses: "200": description: OK + summary: Get a list of Certificates + tags: + - Certificates post: - summary: Create a new Course - operationId: createCourse + operationId: createCertificate parameters: - - $ref: "#/parameters/CourseRequest" + - $ref: "#/parameters/CertificateRequest" responses: "201": description: Created + summary: Create a new Certificate + tags: + - Certificates put: - summary: Update an existing Course - operationId: updateCourse + operationId: updateCertificate parameters: - $ref: "#/parameters/idQuery" responses: "200": description: OK - delete: - summary: Delete a Course - operationId: deleteCourse + summary: Update an existing Certificate + tags: + - Certificates + /clusters: + get: + description: Return a list of Cluster records from the datastore + operationId: getClusters parameters: - - $ref: "#/parameters/idQuery" + - $ref: "#/parameters/clusterIdQuery" + - $ref: "#/parameters/limitQuery" + - $ref: "#/parameters/offsetQuery" responses: - "204": - description: No Content + "200": + $ref: "#/responses/ClusterResponse" + "401": + $ref: "#/responses/Unauthorized" + "403": + $ref: "#/responses/AccessForbidden" + "404": + $ref: "#/responses/NotFound" + "422": + $ref: "#/responses/UnprocessableEntity" + "500": + $ref: "#/responses/ServerError" + security: + - ApiKeyAuth: [] + summary: Get a list Clusters + tags: + - Clusters + post: + description: Create Clusters in Taxnexus + operationId: postClusters + parameters: + - $ref: "#/parameters/ClusterRequest" + responses: + "200": + $ref: "#/responses/ClusterResponse" + "401": + $ref: "#/responses/Unauthorized" + "403": + $ref: "#/responses/AccessForbidden" + "404": + $ref: "#/responses/NotFound" + "422": + $ref: "#/responses/UnprocessableEntity" + "500": + $ref: "#/responses/ServerError" + security: + - ApiKeyAuth: [] + summary: Create new Clusters + tags: + - Clusters + put: + description: Update Cluster in Taxnexus + operationId: putClusters + parameters: + - $ref: "#/parameters/ClusterRequest" + responses: + "200": + $ref: "#/responses/ClusterResponse" + "401": + $ref: "#/responses/Unauthorized" + "403": + $ref: "#/responses/AccessForbidden" + "404": + $ref: "#/responses/NotFound" + "422": + $ref: "#/responses/UnprocessableEntity" + "500": + $ref: "#/responses/ServerError" + security: + - ApiKeyAuth: [] + summary: Update Clustera + tags: + - Clusters /courselessons: - get: - parameters: - - $ref: "#/parameters/idQuery" - - $ref: "#/parameters/limitQuery" - - $ref: "#/parameters/offsetQuery" - summary: Get a list of CourseLessons - operationId: getCourseLessons - responses: - "200": - description: OK - post: - summary: Create a new CourseLesson - operationId: createCourseLesson - parameters: - - $ref: "#/parameters/CourseLessonRequest" - responses: - "201": - description: Created - put: - summary: Update an existing CourseLesson - operationId: updateCourseLesson - parameters: - - $ref: "#/parameters/idQuery" - responses: - "200": - description: OK delete: - summary: Delete a CourseLesson operationId: deleteCourseLesson parameters: - $ref: "#/parameters/idQuery" responses: "204": description: No Content - /coursesections: + summary: Delete a CourseLesson + tags: + - CourseLessons get: - summary: Get a list of CourseSections + operationId: getCourseLessons parameters: - $ref: "#/parameters/idQuery" - $ref: "#/parameters/limitQuery" - $ref: "#/parameters/offsetQuery" - operationId: getCourseSections responses: "200": description: OK + summary: Get a list of CourseLessons + tags: + - CourseLessons post: - summary: Create a new CourseSection - operationId: createCourseSection + operationId: createCourseLesson parameters: - - $ref: "#/parameters/CourseSectionRequest" + - $ref: "#/parameters/CourseLessonRequest" responses: "201": description: Created + summary: Create a new CourseLesson + tags: + - CourseLessons put: - summary: Update an existing CourseSection - operationId: updateCourseSection + operationId: updateCourseLesson parameters: - $ref: "#/parameters/idQuery" responses: "200": description: OK + summary: Update an existing CourseLesson + tags: + - CourseLessons + /courses: + delete: + operationId: deleteCourse + parameters: + - $ref: "#/parameters/idQuery" + responses: + "204": + description: No Content + summary: Delete a Course + tags: + - Courses + get: + operationId: getCourses + parameters: + - $ref: "#/parameters/idQuery" + - $ref: "#/parameters/limitQuery" + - $ref: "#/parameters/offsetQuery" + responses: + "200": + description: OK + summary: Get a list of Courses + tags: + - Courses + post: + operationId: createCourse + parameters: + - $ref: "#/parameters/CourseRequest" + responses: + "201": + description: Created + summary: Create a new Course + tags: + - Courses + put: + operationId: updateCourse + parameters: + - $ref: "#/parameters/idQuery" + responses: + "200": + description: OK + summary: Update an existing Course + tags: + - Courses + /coursesections: delete: - summary: Delete a CourseSection operationId: deleteCourseSection parameters: - $ref: "#/parameters/idQuery" responses: "204": description: No Content - /enrollments: + summary: Delete a CourseSection + tags: + - CourseSections get: - summary: Get a list of Enrollments + operationId: getCourseSections parameters: - $ref: "#/parameters/idQuery" - $ref: "#/parameters/limitQuery" - $ref: "#/parameters/offsetQuery" - operationId: getEnrollments responses: "200": description: OK + summary: Get a list of CourseSections + tags: + - CourseSections post: - summary: Create a new Enrollment - operationId: createEnrollment + operationId: createCourseSection parameters: - - $ref: "#/parameters/EnrollmentRequest" + - $ref: "#/parameters/CourseSectionRequest" responses: "201": description: Created + summary: Create a new CourseSection + tags: + - CourseSections put: - summary: Update an existing Enrollment - operationId: updateEnrollment + operationId: updateCourseSection parameters: - $ref: "#/parameters/idQuery" responses: "200": description: OK + summary: Update an existing CourseSection + tags: + - CourseSections + /databases: + get: + description: Return a list of Database records from the datastore + operationId: getDatabases + parameters: + - $ref: "#/parameters/databaseIdQuery" + - $ref: "#/parameters/limitQuery" + - $ref: "#/parameters/offsetQuery" + responses: + "200": + $ref: "#/responses/DatabaseResponse" + "401": + $ref: "#/responses/Unauthorized" + "403": + $ref: "#/responses/AccessForbidden" + "404": + $ref: "#/responses/NotFound" + "422": + $ref: "#/responses/UnprocessableEntity" + "500": + $ref: "#/responses/ServerError" + security: + - ApiKeyAuth: [] + summary: Get a list Databases + tags: + - Databases + post: + description: Create Databases in Taxnexus + operationId: postDatabases + parameters: + - $ref: "#/parameters/databaseRequest" + responses: + "200": + $ref: "#/responses/DatabaseResponse" + "401": + $ref: "#/responses/Unauthorized" + "403": + $ref: "#/responses/AccessForbidden" + "404": + $ref: "#/responses/NotFound" + "422": + $ref: "#/responses/UnprocessableEntity" + "500": + $ref: "#/responses/ServerError" + security: + - ApiKeyAuth: [] + summary: Create new Databases + tags: + - Databases + put: + description: Update Database in Taxnexus + operationId: putDatabases + parameters: + - $ref: "#/parameters/databaseRequest" + responses: + "200": + $ref: "#/responses/DatabaseResponse" + "401": + $ref: "#/responses/Unauthorized" + "403": + $ref: "#/responses/AccessForbidden" + "404": + $ref: "#/responses/NotFound" + "422": + $ref: "#/responses/UnprocessableEntity" + "500": + $ref: "#/responses/ServerError" + security: + - ApiKeyAuth: [] + summary: Update Databases + tags: + - Databases + /enrollments: delete: - summary: Delete a Enrollment operationId: deleteEnrollment parameters: - $ref: "#/parameters/idQuery" responses: "204": description: No Content - /events: + summary: Delete a Enrollment + tags: + - Enrollments get: - summary: Get a list of Events + operationId: getEnrollments parameters: + - $ref: "#/parameters/idQuery" - $ref: "#/parameters/limitQuery" - $ref: "#/parameters/offsetQuery" - - $ref: "#/parameters/idQuery" - operationId: getEvents responses: "200": description: OK + summary: Get a list of Enrollments + tags: + - Enrollments post: - summary: Create a new Event - operationId: createEvent + operationId: createEnrollment parameters: - - $ref: "#/parameters/EventRequest" + - $ref: "#/parameters/EnrollmentRequest" responses: "201": description: Created + summary: Create a new Enrollment + tags: + - Enrollments put: - summary: Update an existing Event - operationId: updateEvent + operationId: updateEnrollment parameters: - $ref: "#/parameters/idQuery" responses: "200": description: OK + summary: Update an existing Enrollment + tags: + - Enrollments + /eventcategories: delete: - summary: Delete a Event - operationId: deleteEvent - parameters: - - $ref: "#/parameters/idQuery" - responses: - "204": - description: No Content - /eventcategorys: - get: - summary: Get a list of EventCategorys - parameters: - - $ref: "#/parameters/limitQuery" - - $ref: "#/parameters/offsetQuery" - - $ref: "#/parameters/idQuery" - operationId: getEventCategorys - responses: - "200": - description: OK - post: - summary: Create a new EventCategory - operationId: createEventCategory - parameters: - - $ref: "#/parameters/EventCategoryRequest" - responses: - "201": - description: Created - put: - summary: Update an existing EventCategory - operationId: updateEventCategory - parameters: - - $ref: "#/parameters/idQuery" - responses: - "200": - description: OK - delete: - summary: Delete a EventCategory operationId: deleteEventCategory parameters: - $ref: "#/parameters/idQuery" responses: "204": description: No Content - /eventcategoryassignments: + summary: Delete a EventCategory + tags: + - EventCategories get: - summary: Get a list of EventCategoryassignments + operationId: getEventCategorys parameters: - - $ref: "#/parameters/idQuery" - $ref: "#/parameters/limitQuery" - $ref: "#/parameters/offsetQuery" - operationId: getEventCategoryassignments + - $ref: "#/parameters/idQuery" responses: "200": description: OK + summary: Get a list of EventCategories + tags: + - EventCategories post: - summary: Create a new EventCategoryAssignment - operationId: createEventCategoryAssignment + operationId: createEventCategory parameters: - - $ref: "#/parameters/EventCategoryAssignmentRequest" + - $ref: "#/parameters/EventCategoryRequest" responses: "201": description: Created + summary: Create a new EventCategory + tags: + - EventCategories put: - summary: Update an existing EventCategoryAssignment - operationId: updateEventCategoryAssignment + operationId: updateEventCategory parameters: - $ref: "#/parameters/idQuery" responses: "200": description: OK + summary: Update an existing EventCategory + tags: + - EventCategories + /eventcategoryassignments: delete: - summary: Delete a EventCategoryAssignment operationId: deleteEventCategoryAssignment parameters: - $ref: "#/parameters/idQuery" responses: "204": description: No Content - /favorites: + summary: Delete a EventCategoryAssignment + tags: + - EventCategoryAssignments get: - summary: Get a list of Favorites + operationId: getEventCategoryAssignments parameters: - $ref: "#/parameters/idQuery" - $ref: "#/parameters/limitQuery" - $ref: "#/parameters/offsetQuery" - operationId: getFavorites responses: "200": description: OK + summary: Get a list of EventCategoryassignments + tags: + - EventCategoryAssignments post: - summary: Create a new Favorite - operationId: createFavorite + operationId: createEventCategoryAssignment parameters: - - $ref: "#/parameters/FavoriteRequest" + - $ref: "#/parameters/EventCategoryAssignmentRequest" responses: "201": description: Created + summary: Create a new EventCategoryAssignment + tags: + - EventCategoryAssignments put: - summary: Update an existing Favorite - operationId: updateFavorite + operationId: updateEventCategoryAssignment parameters: - $ref: "#/parameters/idQuery" responses: "200": description: OK + summary: Update an existing EventCategoryAssignment + tags: + - EventCategoryAssignments + /events: + delete: + operationId: deleteEvent + parameters: + - $ref: "#/parameters/idQuery" + responses: + "204": + description: No Content + summary: Delete a Event + tags: + - Events + get: + operationId: getEvents + parameters: + - $ref: "#/parameters/limitQuery" + - $ref: "#/parameters/offsetQuery" + - $ref: "#/parameters/idQuery" + responses: + "200": + description: OK + summary: Get a list of Events + tags: + - Events + post: + operationId: createEvent + parameters: + - $ref: "#/parameters/EventRequest" + responses: + "201": + description: Created + summary: Create a new Event + tags: + - Events + put: + operationId: updateEvent + parameters: + - $ref: "#/parameters/idQuery" + responses: + "200": + description: OK + summary: Update an existing Event + tags: + - Events + /favorites: delete: - summary: Delete a Favorite operationId: deleteFavorite parameters: - $ref: "#/parameters/idQuery" responses: "204": description: No Content - /invoices: + summary: Delete a Favorite + tags: + - Favorites get: - summary: Get a list of Invoices + operationId: getFavorites parameters: - $ref: "#/parameters/idQuery" - $ref: "#/parameters/limitQuery" - $ref: "#/parameters/offsetQuery" - operationId: getInvoices responses: "200": description: OK + summary: Get a list of Favorites + tags: + - Favorites post: - summary: Create a new Invoice - operationId: createInvoice + operationId: createFavorite parameters: - - $ref: "#/parameters/InvoiceRequest" + - $ref: "#/parameters/FavoriteRequest" responses: "201": description: Created + summary: Create a new Favorite + tags: + - Favorites put: - summary: Update an existing Invoice - operationId: updateInvoice + operationId: updateFavorite parameters: - $ref: "#/parameters/idQuery" responses: "200": description: OK + summary: Update an existing Favorite + tags: + - Favorites + /invoices: delete: - summary: Delete a Invoice operationId: deleteInvoice parameters: - $ref: "#/parameters/idQuery" responses: "204": description: No Content - /issuedcertificates: + summary: Delete a Invoice + tags: + - Invoices get: - summary: Get a list of Issuedcertificates + operationId: getInvoices parameters: + - $ref: "#/parameters/idQuery" - $ref: "#/parameters/limitQuery" - $ref: "#/parameters/offsetQuery" - - $ref: "#/parameters/idQuery" - operationId: getIssuedcertificates responses: "200": description: OK + summary: Get a list of Invoices + tags: + - Invoices post: - summary: Create a new IssuedCertificate - operationId: createIssuedCertificate + operationId: createInvoice parameters: - - $ref: "#/parameters/IssuedCertificateRequest" + - $ref: "#/parameters/InvoiceRequest" responses: "201": description: Created + summary: Create a new Invoice + tags: + - Invoices put: - summary: Update an existing IssuedCertificate - operationId: updateIssuedCertificate + operationId: updateInvoice parameters: - $ref: "#/parameters/idQuery" responses: "200": description: OK + summary: Update an existing Invoice + tags: + - Invoices + /issuedcertificates: delete: - summary: Delete a IssuedCertificate operationId: deleteIssuedCertificate parameters: - $ref: "#/parameters/idQuery" responses: "204": description: No Content - /lessonprogress: + summary: Delete a IssuedCertificate + tags: + - IssuedCertificates get: + operationId: getIssuedCertificates parameters: - $ref: "#/parameters/limitQuery" - $ref: "#/parameters/offsetQuery" - $ref: "#/parameters/idQuery" - summary: Get a list of LessonProgress - operationId: getLessonProgress responses: "200": description: OK + summary: Get a list of IssuedCertificates + tags: + - IssuedCertificates post: - summary: Create a new LessonProgress - operationId: createLessonProgress + operationId: createIssuedCertificate parameters: - - $ref: "#/parameters/LessonProgressRequest" + - $ref: "#/parameters/IssuedCertificateRequest" responses: "201": description: Created + summary: Create a new IssuedCertificate + tags: + - IssuedCertificates put: - summary: Update an existing LessonProgress - operationId: updateLessonProgress + operationId: updateIssuedCertificate parameters: - $ref: "#/parameters/idQuery" responses: "200": description: OK + summary: Update an existing IssuedCertificate + tags: + - IssuedCertificates + /lessonprogress: delete: - summary: Delete a LessonProgress operationId: deleteLessonProgress parameters: - $ref: "#/parameters/idQuery" responses: "204": description: No Content - /orders: + summary: Delete a LessonProgress + tags: + - LessonProgress get: - summary: Get a list of Orders + operationId: getLessonProgress parameters: - $ref: "#/parameters/limitQuery" - $ref: "#/parameters/offsetQuery" - $ref: "#/parameters/idQuery" - operationId: getOrders responses: "200": description: OK + summary: Get a list of LessonProgress + tags: + - LessonProgress post: - summary: Create a new Order - operationId: createOrder + operationId: createLessonProgress parameters: - - $ref: "#/parameters/OrderRequest" + - $ref: "#/parameters/LessonProgressRequest" responses: "201": description: Created + summary: Create a new LessonProgress + tags: + - LessonProgress put: - summary: Update an existing Order - operationId: updateOrder + operationId: updateLessonProgress parameters: - $ref: "#/parameters/idQuery" responses: "200": description: OK + summary: Update an existing LessonProgress + tags: + - LessonProgress + /orders: delete: - summary: Delete a Order operationId: deleteOrder parameters: - $ref: "#/parameters/idQuery" responses: "204": description: No Content - /paymentmethods: + summary: Delete a Order + tags: + - Orders get: - summary: Get a list of PaymentMethods + operationId: getOrders parameters: - $ref: "#/parameters/limitQuery" - $ref: "#/parameters/offsetQuery" - $ref: "#/parameters/idQuery" - operationId: getPaymentMethods responses: "200": description: OK + summary: Get a list of Orders + tags: + - Orders post: - summary: Create a new PaymentMethod - operationId: createPaymentMethod + operationId: createOrder parameters: - - $ref: "#/parameters/PaymentMethodRequest" + - $ref: "#/parameters/OrderRequest" responses: "201": description: Created + summary: Create a new Order + tags: + - Orders put: - summary: Update an existing PaymentMethod - operationId: updatePaymentMethod + operationId: updateOrder parameters: - $ref: "#/parameters/idQuery" responses: "200": description: OK + summary: Update an existing Order + tags: + - Orders + /paymentmethods: delete: - summary: Delete a PaymentMethod operationId: deletePaymentMethod parameters: - $ref: "#/parameters/idQuery" responses: "204": description: No Content - /researchprojects: + summary: Delete a PaymentMethod + tags: + - PaymentMethods get: - summary: Get a list of ResearchProjects + operationId: getPaymentMethods parameters: - $ref: "#/parameters/limitQuery" - $ref: "#/parameters/offsetQuery" - $ref: "#/parameters/idQuery" - operationId: getResearchProjects responses: "200": description: OK + summary: Get a list of PaymentMethods + tags: + - PaymentMethods post: - summary: Create a new ResearchProject - operationId: createResearchProject + operationId: createPaymentMethod parameters: - - $ref: "#/parameters/ResearchProjectRequest" + - $ref: "#/parameters/PaymentMethodRequest" responses: "201": description: Created + summary: Create a new PaymentMethod + tags: + - PaymentMethods put: - summary: Update an existing ResearchProject - operationId: updateResearchProject + operationId: updatePaymentMethod parameters: - $ref: "#/parameters/idQuery" responses: "200": description: OK - delete: - summary: Delete a ResearchProject - operationId: deleteResearchProject - parameters: - - $ref: "#/parameters/idQuery" - responses: - "204": - description: No Content + summary: Update an existing PaymentMethod + tags: + - PaymentMethods /researchprojectcompanys: - get: - summary: Get a list of ResearchProjectCompanys - parameters: - - $ref: "#/parameters/limitQuery" - - $ref: "#/parameters/offsetQuery" - - $ref: "#/parameters/idQuery" - operationId: getResearchProjectCompanys - responses: - "200": - description: OK - post: - summary: Create a new ResearchProjectCompany - operationId: createResearchProjectCompany - parameters: - - $ref: "#/parameters/ResearchProjectCompanyRequest" - responses: - "201": - description: Created - put: - summary: Update an existing ResearchProjectCompany - operationId: updateResearchProjectCompany - parameters: - - $ref: "#/parameters/idQuery" - responses: - "200": - description: OK delete: - summary: Delete a ResearchProjectCompany operationId: deleteResearchProjectCompany parameters: - $ref: "#/parameters/idQuery" responses: "204": description: No Content - /researchprojecttopics: + summary: Delete a ResearchProjectCompany + tags: + - ResearchProjectCompanies get: - summary: Get a list of ResearchProjectTopics + operationId: getResearchProjectCompanies parameters: - $ref: "#/parameters/limitQuery" - $ref: "#/parameters/offsetQuery" - $ref: "#/parameters/idQuery" - operationId: getResearchProjectTopics responses: "200": description: OK + summary: Get a list of ResearchProjectCompanies + tags: + - ResearchProjectCompanies post: - summary: Create a new ResearchProjectTopic - operationId: createResearchProjectTopic + operationId: createResearchProjectCompany parameters: - - $ref: "#/parameters/ResearchProjectTopicRequest" + - $ref: "#/parameters/ResearchProjectCompanyRequest" responses: "201": description: Created + summary: Create a new ResearchProjectCompany + tags: + - ResearchProjectCompanies put: - summary: Update an existing ResearchProjectTopic - operationId: updateResearchProjectTopic + operationId: updateResearchProjectCompany parameters: - $ref: "#/parameters/idQuery" responses: "200": description: OK + summary: Update an existing ResearchProjectCompany + tags: + - ResearchProjectCompanies + /researchprojects: + delete: + operationId: deleteResearchProject + parameters: + - $ref: "#/parameters/idQuery" + responses: + "204": + description: No Content + summary: Delete a ResearchProject + tags: + - ResearchProjects + get: + operationId: getResearchProjects + parameters: + - $ref: "#/parameters/limitQuery" + - $ref: "#/parameters/offsetQuery" + - $ref: "#/parameters/idQuery" + responses: + "200": + description: OK + summary: Get a list of ResearchProjects + tags: + - ResearchProjects + post: + operationId: createResearchProject + parameters: + - $ref: "#/parameters/ResearchProjectRequest" + responses: + "201": + description: Created + summary: Create a new ResearchProject + tags: + - ResearchProjects + put: + operationId: updateResearchProject + parameters: + - $ref: "#/parameters/idQuery" + responses: + "200": + description: OK + summary: Update an existing ResearchProject + tags: + - ResearchProjects + /researchprojecttopics: delete: - summary: Delete a ResearchProjectTopic operationId: deleteResearchProjectTopic parameters: - $ref: "#/parameters/idQuery" responses: "204": description: No Content - /tickets: + summary: Delete a ResearchProjectTopic + tags: + - ResearchProjectTopics get: - summary: Get a list of Tickets + operationId: getResearchProjectTopics parameters: - $ref: "#/parameters/limitQuery" - $ref: "#/parameters/offsetQuery" - $ref: "#/parameters/idQuery" - operationId: getTickets responses: "200": description: OK + summary: Get a list of ResearchProjectTopics + tags: + - ResearchProjectTopics post: - summary: Create a new Ticket - operationId: createTicket + operationId: createResearchProjectTopic parameters: - - $ref: "#/parameters/TicketRequest" + - $ref: "#/parameters/ResearchProjectTopicRequest" responses: "201": description: Created + summary: Create a new ResearchProjectTopic + tags: + - ResearchProjectTopics put: - summary: Update an existing Ticket - operationId: updateTicket + operationId: updateResearchProjectTopic parameters: - $ref: "#/parameters/idQuery" responses: "200": description: OK + summary: Update an existing ResearchProjectTopic + tags: + - ResearchProjectTopics + /tenants: + get: + description: Return a list of Tenant records from the datastore + operationId: getTenants + parameters: + - $ref: "#/parameters/tenantIdQuery" + - $ref: "#/parameters/limitQuery" + - $ref: "#/parameters/offsetQuery" + responses: + "200": + $ref: "#/responses/TenantResponse" + "401": + $ref: "#/responses/Unauthorized" + "403": + $ref: "#/responses/AccessForbidden" + "404": + $ref: "#/responses/NotFound" + "422": + $ref: "#/responses/UnprocessableEntity" + "500": + $ref: "#/responses/ServerError" + security: + - ApiKeyAuth: [] + summary: Get a list Tenants + tags: + - Tenants + post: + description: Create Tenants in Taxnexus + operationId: postTenants + parameters: + - $ref: "#/parameters/tenantRequest" + responses: + "200": + $ref: "#/responses/TenantResponse" + "401": + $ref: "#/responses/Unauthorized" + "403": + $ref: "#/responses/AccessForbidden" + "404": + $ref: "#/responses/NotFound" + "422": + $ref: "#/responses/UnprocessableEntity" + "500": + $ref: "#/responses/ServerError" + security: + - ApiKeyAuth: [] + summary: Create new Tenants + tags: + - Tenants + put: + description: Update Tenant in Taxnexus + operationId: putTenants + parameters: + - $ref: "#/parameters/tenantRequest" + responses: + "200": + $ref: "#/responses/TenantResponse" + "401": + $ref: "#/responses/Unauthorized" + "403": + $ref: "#/responses/AccessForbidden" + "404": + $ref: "#/responses/NotFound" + "422": + $ref: "#/responses/UnprocessableEntity" + "500": + $ref: "#/responses/ServerError" + security: + - ApiKeyAuth: [] + summary: Update Tenants + tags: + - Tenants + /templates: + get: + description: Return a list of Templates from the datastore + operationId: getTemplates + parameters: + - $ref: "#/parameters/limitQuery" + - $ref: "#/parameters/offsetQuery" + - $ref: "#/parameters/activeQuery" + - $ref: "#/parameters/templateIdQuery" + - $ref: "#/parameters/isMasterQuery" + - $ref: "#/parameters/objectTypeQuery" + responses: + "200": + $ref: "#/responses/TemplateResponse" + "401": + $ref: "#/responses/Unauthorized" + "403": + $ref: "#/responses/AccessForbidden" + "404": + $ref: "#/responses/NotFound" + "422": + $ref: "#/responses/UnprocessableEntity" + "500": + $ref: "#/responses/ServerError" + security: + - ApiKeyAuth: [] + summary: Get a list Templates + tags: + - Templates + post: + description: Create new Templates + operationId: postTemplates + parameters: + - $ref: "#/parameters/TemplateRequest" + responses: + "200": + $ref: "#/responses/TemplateResponse" + "401": + $ref: "#/responses/Unauthorized" + "403": + $ref: "#/responses/AccessForbidden" + "404": + $ref: "#/responses/NotFound" + "422": + $ref: "#/responses/UnprocessableEntity" + "500": + $ref: "#/responses/ServerError" + security: + - ApiKeyAuth: [] + summary: Create new Templates + tags: + - Templates + /tickets: delete: - summary: Delete a Ticket operationId: deleteTicket parameters: - $ref: "#/parameters/idQuery" responses: "204": description: No Content - /transactions: + summary: Delete a Ticket + tags: + - Tickets get: - summary: Get a list of Transactions + operationId: getTickets parameters: - $ref: "#/parameters/limitQuery" - $ref: "#/parameters/offsetQuery" - $ref: "#/parameters/idQuery" - operationId: getTransactions responses: "200": description: OK + summary: Get a list of Tickets + tags: + - Tickets post: - summary: Create a new Transaction - operationId: createTransaction + operationId: createTicket parameters: - - $ref: "#/parameters/TransactionRequest" + - $ref: "#/parameters/TicketRequest" responses: "201": description: Created + summary: Create a new Ticket + tags: + - Tickets put: - summary: Update an existing Transaction - operationId: updateTransaction + operationId: updateTicket parameters: - $ref: "#/parameters/idQuery" responses: "200": description: OK + summary: Update an existing Ticket + tags: + - Tickets + /transactions: delete: - summary: Delete a Transaction operationId: deleteTransaction parameters: - $ref: "#/parameters/idQuery" responses: "204": description: No Content + summary: Delete a Transaction + tags: + - Transactions + get: + operationId: getTransactions + parameters: + - $ref: "#/parameters/limitQuery" + - $ref: "#/parameters/offsetQuery" + - $ref: "#/parameters/idQuery" + responses: + "200": + description: OK + summary: Get a list of Transactions + tags: + - Transactions + post: + operationId: createTransaction + parameters: + - $ref: "#/parameters/TransactionRequest" + responses: + "201": + description: Created + summary: Create a new Transaction + tags: + - Transactions + put: + operationId: updateTransaction + parameters: + - $ref: "#/parameters/idQuery" + responses: + "200": + description: OK + summary: Update an existing Transaction + tags: + - Transactions + /users: + get: + description: Return a list of User records from the datastore + operationId: getUsers + parameters: + - $ref: "#/parameters/limitQuery" + - $ref: "#/parameters/offsetQuery" + - $ref: "#/parameters/emailQuery" + - $ref: "#/parameters/auth0UserIdQuery" + responses: + "200": + $ref: "#/responses/UserResponse" + "401": + $ref: "#/responses/Unauthorized" + "403": + $ref: "#/responses/AccessForbidden" + "404": + $ref: "#/responses/NotFound" + "422": + $ref: "#/responses/UnprocessableEntity" + "500": + $ref: "#/responses/ServerError" + security: + - ApiKeyAuth: [] + summary: Get a list Users + tags: + - Users + post: + description: Create new Users + operationId: postUsers + parameters: + - $ref: "#/parameters/UserRequest" + responses: + "200": + $ref: "#/responses/UserResponse" + "401": + $ref: "#/responses/Unauthorized" + "403": + $ref: "#/responses/AccessForbidden" + "404": + $ref: "#/responses/NotFound" + "422": + $ref: "#/responses/UnprocessableEntity" + "500": + $ref: "#/responses/ServerError" + security: + - ApiKeyAuth: [] + summary: Create new Users + tags: + - Users + put: + description: Update existing users + operationId: putUsers + parameters: + - $ref: "#/parameters/UserRequest" + responses: + "200": + $ref: "#/responses/UserResponse" + "401": + $ref: "#/responses/Unauthorized" + "403": + $ref: "#/responses/AccessForbidden" + "404": + $ref: "#/responses/NotFound" + "422": + $ref: "#/responses/UnprocessableEntity" + "500": + $ref: "#/responses/ServerError" + security: + - ApiKeyAuth: [] + summary: Update existing users + tags: + - Users definitions: - Attendee: - type: object + Address: properties: - ID: + City: + description: City type: string + Country: + description: Country full name + type: string + CountryCode: + description: Country Code + type: string + PostalCode: + description: Postal Code + type: string + State: + description: State full name + type: string + StateCode: + description: State Code + type: string + Street: + description: Street number and name + type: string + type: object + Attendee: + properties: CheckinStatus: type: integer CreatedDate: @@ -1077,6 +1765,8 @@ definitions: x-nullable: true EventID: type: string + ID: + type: string LastModifiedDate: type: string x-nullable: true @@ -1084,27 +1774,25 @@ definitions: type: string UserID: type: string + type: object AttendeeRequest: - type: object description: An array of Attendee objects properties: Data: - type: array items: $ref: "#/definitions/Attendee" + type: array + type: object AttendeeResponse: - type: object description: An array of Attendee objects properties: Data: - type: array items: $ref: "#/definitions/Attendee" - Certificate: + type: array type: object + Certificate: properties: - ID: - type: string CertificateTemplate: type: string CourseID: @@ -1117,6 +1805,8 @@ definitions: Description: type: string x-nullable: true + ID: + type: string LastModifiedByID: type: string LastModifiedDate: @@ -1124,68 +1814,121 @@ definitions: x-nullable: true Title: type: string + type: object CertificateRequest: - type: object description: An array of Certificate objects properties: Data: - type: array items: $ref: "#/definitions/Certificate" + type: array + type: object CertificateResponse: - type: object description: An array of Certificate objects properties: Data: - type: array items: $ref: "#/definitions/Certificate" - Course: + type: array type: object + Cluster: properties: - ID: + CreatedByID: + description: Created By type: string - Title: + CreatedDate: + description: Created Date type: string Description: + description: Description type: string - Fulldescription: + Environment: + description: Environment type: string - InstructorID: + Gateway: + description: Gateway type: string - Price: - type: number + ID: + description: Record Id + type: string + IPAddress: + description: IP Address + type: string + LastModifiedByID: + description: Last Modified By + type: string + LastModifiedDate: + description: Last Modified Date + type: string + Name: + description: Cluster Name + type: string + OwnerID: + description: Owner + type: string + Ref: + description: External Reference + type: string + Status: + description: Status + type: string + Subnet: + description: Subnet + type: string + TenantID: + description: The ID of the tenant who owns this Database + type: string + Type: + description: Type + type: string + Zone: + description: Zone + type: string + type: object + ClusterRequest: + properties: + Data: + items: + $ref: "#/definitions/Cluster" + type: array + type: object + ClusterResponse: + description: An array of cluster objects + properties: + Data: + items: + $ref: "#/definitions/Cluster" + type: array + Meta: + $ref: "#/definitions/ResponseMeta" + type: object + Course: + properties: CreatedByID: type: string CreatedDate: type: string x-nullable: true + Description: + type: string + Fulldescription: + type: string + ID: + type: string + InstructorID: + type: string LastModifiedByID: type: string LastModifiedDate: type: string x-nullable: true - CourseRequest: - type: object - description: An array of Course objects - properties: - Data: - type: array - items: - $ref: "#/definitions/Course" - CourseResponse: - type: object - description: An array of Course objects - properties: - Data: - type: array - items: - $ref: "#/definitions/Course" - CourseLesson: - type: object - properties: - ID: + Price: + type: number + Title: type: string + type: object + CourseLesson: + properties: Content: type: string CreatedByID: @@ -1193,6 +1936,8 @@ definitions: CreatedDate: type: string x-nullable: true + ID: + type: string LastModifiedByID: type: string LastModifiedDate: @@ -1206,66 +1951,138 @@ definitions: type: string VideoURL: type: string + type: object CourseLessonRequest: - type: object description: An array of CourseLesson objects properties: Data: - type: array items: $ref: "#/definitions/CourseLesson" + type: array + type: object CourseLessonResponse: - type: object description: An array of CourseLesson objects properties: Data: - type: array items: $ref: "#/definitions/CourseLesson" - CourseSection: + type: array type: object + CourseRequest: + description: An array of Course objects + properties: + Data: + items: + $ref: "#/definitions/Course" + type: array + type: object + CourseResponse: + description: An array of Course objects + properties: + Data: + items: + $ref: "#/definitions/Course" + type: array + type: object + CourseSection: properties: - ID: - type: string CourseID: type: string - Title: - type: string - Description: - type: string - Order: - type: integer CreatedByID: type: string CreatedDate: type: string x-nullable: true + Description: + type: string + ID: + type: string LastModifiedByID: type: string LastModifiedDate: type: string x-nullable: true - CourseSectionRequest: - type: object - description: An array of CourseSection objects - properties: - Data: - type: array - items: - $ref: "#/definitions/CourseSection" - CourseSectionResponse: - type: object - description: An array of CourseSection objects - properties: - Data: - type: array - items: - $ref: "#/definitions/CourseSection" - Enrollment: - type: object - properties: - ID: + Order: + type: integer + Title: type: string + type: object + CourseSectionRequest: + description: An array of CourseSection objects + properties: + Data: + items: + $ref: "#/definitions/CourseSection" + type: array + type: object + CourseSectionResponse: + description: An array of CourseSection objects + properties: + Data: + items: + $ref: "#/definitions/CourseSection" + type: array + type: object + Database: + description: A Database provisioned and owned by a Tenant + properties: + Active: + description: Is this database active? + type: boolean + ClusterID: + description: The ID of the Cluster in which this database is deployed + type: string + CreatedByID: + description: Created By + type: string + CreatedDate: + description: Created Date + type: string + DSN: + description: Database connection string + type: string + DatabaseName: + description: The name of the physical database in the cluster + type: string + ID: + description: Record Id + type: string + LastModifiedByID: + description: Last Modified By + type: string + LastModifiedDate: + description: Last Modifed Date + type: string + Status: + description: The current status of this Tenant + type: string + TenantID: + description: The ID of the tenant who owns this Database + type: string + Type: + description: The type of Database (mysql, etc) + type: string + type: object + DatabaseRequest: + description: An array of Database objects + properties: + Data: + items: + $ref: "#/definitions/Database" + type: array + type: object + DatabaseResponse: + description: An array of Database objects + properties: + Data: + items: + $ref: "#/definitions/Database" + type: array + Meta: + $ref: "#/definitions/ResponseMeta" + type: object + Enrollment: + properties: Completed: type: integer CourseID: @@ -1277,6 +2094,8 @@ definitions: x-nullable: true EnrollmentDate: type: string + ID: + type: string LastModifiedByID: type: string LastModifiedDate: @@ -1284,130 +2103,138 @@ definitions: x-nullable: true UserID: type: string + type: object EnrollmentRequest: - type: object description: An array of Enrollment objects properties: Data: - type: array items: $ref: "#/definitions/Enrollment" + type: array + type: object EnrollmentResponse: - type: object description: An array of Enrollment objects properties: Data: - type: array items: $ref: "#/definitions/Enrollment" - Event: + type: array type: object + Error: properties: - ID: + code: + format: int64 + type: integer + fields: type: string - Title: - type: string - Description: - type: string - x-nullable: true - StartDate: - type: string - EndDate: - type: string - Location: + message: type: string + type: object + Event: + properties: Capacity: type: integer x-nullable: true - OrganizeruserID: - type: string Createdat: type: string x-nullable: true + Description: + type: string + x-nullable: true + EndDate: + type: string + ID: + type: string + Location: + type: string + OrganizeruserID: + type: string + StartDate: + type: string + Title: + type: string UpDatedat: type: string x-nullable: true - EventRequest: type: object - description: An array of Event objects - properties: - Data: - type: array - items: - $ref: "#/definitions/Event" - EventResponse: - type: object - description: An array of Event objects - properties: - Data: - type: array - items: - $ref: "#/definitions/Event" EventCategory: - type: object properties: - ID: - type: string - Name: - type: string CreatedDate: type: string x-nullable: true + ID: + type: string LastModifiedDate: type: string x-nullable: true - EventCategoryRequest: + Name: + type: string type: object - description: An array of EventCategory objects - properties: - Data: - type: array - items: - $ref: "#/definitions/EventCategory" - EventCategoryResponse: - type: object - description: An array of EventCategory objects - properties: - Data: - type: array - items: - $ref: "#/definitions/EventCategory" EventCategoryAssignment: - type: object properties: - ID: - type: string - EventID: - type: string - EventCategoryID: - type: string Createdat: type: string x-nullable: true + EventCategoryID: + type: string + EventID: + type: string + ID: + type: string UpDatedat: type: string x-nullable: true + type: object EventCategoryAssignmentRequest: - type: object description: An array of EventCategoryAssignment objects properties: Data: - type: array items: $ref: "#/definitions/EventCategoryAssignment" + type: array + type: object EventCategoryAssignmentResponse: - type: object description: An array of EventCategoryAssignment objects properties: Data: - type: array items: $ref: "#/definitions/EventCategoryAssignment" - Favorite: + type: array type: object + EventCategoryRequest: + description: An array of EventCategory objects + properties: + Data: + items: + $ref: "#/definitions/EventCategory" + type: array + type: object + EventCategoryResponse: + description: An array of EventCategory objects + properties: + Data: + items: + $ref: "#/definitions/EventCategory" + type: array + type: object + EventRequest: + description: An array of Event objects + properties: + Data: + items: + $ref: "#/definitions/Event" + type: array + type: object + EventResponse: + description: An array of Event objects + properties: + Data: + items: + $ref: "#/definitions/Event" + type: array + type: object + Favorite: properties: - ID: - type: string CreatedByID: type: string CreatedDate: @@ -1415,10 +2242,12 @@ definitions: x-nullable: true Description: type: string + FavoriteID: + type: string Favoritetype: type: string x-nullable: true - FavoriteID: + ID: type: string LastModifiedByID: type: string @@ -1433,27 +2262,25 @@ definitions: type: string UserID: type: string + type: object FavoriteRequest: - type: object description: An array of Favorite objects properties: Data: - type: array items: $ref: "#/definitions/Favorite" + type: array + type: object FavoriteResponse: - type: object description: An array of Favorite objects properties: Data: - type: array items: $ref: "#/definitions/Favorite" - Invoice: + type: array type: object + Invoice: properties: - ID: - type: string Amount: type: number CourseID: @@ -1467,6 +2294,8 @@ definitions: type: string DueDate: type: string + ID: + type: string Invoicenumber: type: string LastModifiedByID: @@ -1480,27 +2309,25 @@ definitions: type: string UserID: type: string + type: object InvoiceRequest: - type: object description: An array of Invoice objects properties: Data: - type: array items: $ref: "#/definitions/Invoice" + type: array + type: object InvoiceResponse: - type: object description: An array of Invoice objects properties: Data: - type: array items: $ref: "#/definitions/Invoice" - IssuedCertificate: + type: array type: object + IssuedCertificate: properties: - ID: - type: string CertificateID: type: string CreatedByID: @@ -1513,6 +2340,8 @@ definitions: ExpirationDate: type: string x-nullable: true + ID: + type: string IssueDate: type: string LastModifiedByID: @@ -1524,27 +2353,25 @@ definitions: type: string VerificationCode: type: string + type: object IssuedCertificateRequest: - type: object description: An array of IssuedCertificate objects properties: Data: - type: array items: $ref: "#/definitions/IssuedCertificate" + type: array + type: object IssuedCertificateResponse: - type: object description: An array of IssuedCertificate objects properties: Data: - type: array items: $ref: "#/definitions/IssuedCertificate" - LessonProgress: + type: array type: object + LessonProgress: properties: - ID: - type: string Completed: type: integer Completedat: @@ -1557,6 +2384,8 @@ definitions: x-nullable: true EnrollmentID: type: string + ID: + type: string LastModifiedByID: type: string LastModifiedDate: @@ -1566,68 +2395,90 @@ definitions: type: string UserID: type: string + type: object LessonProgressRequest: - type: object description: An array of LessonProgress objects properties: Data: - type: array items: $ref: "#/definitions/LessonProgress" + type: array + type: object LessonProgressResponse: - type: object description: An array of LessonProgress objects properties: Data: - type: array items: $ref: "#/definitions/LessonProgress" - Order: + type: array type: object + Message: properties: - ID: + Message: type: string - UserID: + Ref: type: string - EventID: - type: string - TicketID: - type: string - OrderStatus: - type: string - PaymentMethod: - type: string - x-nullable: true + Status: + type: integer + type: object + Order: + properties: AmountpaID: type: number x-nullable: true Createdat: type: string x-nullable: true + EventID: + type: string + ID: + type: string + OrderStatus: + type: string + PaymentMethod: + type: string + x-nullable: true + TicketID: + type: string UpDatedat: type: string x-nullable: true - OrderRequest: - type: object - description: An array of Order objects - properties: - Data: - type: array - items: - $ref: "#/definitions/Order" - OrderResponse: - type: object - description: An array of Order objects - properties: - Data: - type: array - items: - $ref: "#/definitions/Order" - PaymentMethod: - type: object - properties: - ID: + UserID: type: string + type: object + OrderRequest: + description: An array of Order objects + properties: + Data: + items: + $ref: "#/definitions/Order" + type: array + type: object + OrderResponse: + description: An array of Order objects + properties: + Data: + items: + $ref: "#/definitions/Order" + type: array + type: object + Pagination: + properties: + Limit: + format: int64 + type: integer + POffset: + format: int64 + type: integer + PageSize: + format: int64 + type: integer + SetSize: + format: int64 + type: integer + type: object + PaymentMethod: + properties: CardHolderName: type: string CardNumber: @@ -1643,6 +2494,8 @@ definitions: type: integer ExpirationYear: type: integer + ID: + type: string Isdefault: type: integer LastModifiedByID: @@ -1652,27 +2505,33 @@ definitions: x-nullable: true UserID: type: string + type: object PaymentMethodRequest: - type: object description: An array of PaymentMethod objects properties: Data: - type: array items: $ref: "#/definitions/PaymentMethod" + type: array + type: object PaymentMethodResponse: - type: object description: An array of PaymentMethod objects properties: Data: - type: array items: $ref: "#/definitions/PaymentMethod" - ResearchProject: + type: array type: object + RequestMeta: properties: - ID: + TaxnexusAccount: + description: Account Number of the Reseller or OEM type: string + required: + - TaxnexusAccount + type: object + ResearchProject: + properties: AccountID: type: string CreatedByID: @@ -1682,6 +2541,8 @@ definitions: x-nullable: true Description: type: string + ID: + type: string LastModifiedByID: type: string LastModifiedDate: @@ -1693,27 +2554,9 @@ definitions: type: string UserID: type: string - ResearchProjectRequest: type: object - description: An array of ResearchProject objects - properties: - Data: - type: array - items: - $ref: "#/definitions/ResearchProject" - ResearchProjectResponse: - type: object - description: An array of ResearchProject objects - properties: - Data: - type: array - items: - $ref: "#/definitions/ResearchProject" ResearchProjectCompany: - type: object properties: - ID: - type: string AccountID: type: string CreatedByID: @@ -1721,6 +2564,8 @@ definitions: CreatedDate: type: string x-nullable: true + ID: + type: string LastModifiedByID: type: string LastModifiedDate: @@ -1730,32 +2575,48 @@ definitions: type: string TenantID: type: string + type: object ResearchProjectCompanyRequest: - type: object description: An array of ResearchProjectCompany objects properties: Data: - type: array items: $ref: "#/definitions/ResearchProjectCompany" + type: array + type: object ResearchProjectCompanyResponse: - type: object description: An array of ResearchProjectCompany objects properties: Data: - type: array items: $ref: "#/definitions/ResearchProjectCompany" - ResearchProjectTopic: + type: array type: object + ResearchProjectRequest: + description: An array of ResearchProject objects + properties: + Data: + items: + $ref: "#/definitions/ResearchProject" + type: array + type: object + ResearchProjectResponse: + description: An array of ResearchProject objects + properties: + Data: + items: + $ref: "#/definitions/ResearchProject" + type: array + type: object + ResearchProjectTopic: properties: - ID: - type: string CreatedByID: type: string CreatedDate: type: string x-nullable: true + ID: + type: string LastModifiedByID: type: string LastModifiedDate: @@ -1767,32 +2628,304 @@ definitions: type: string TopicID: type: string + type: object ResearchProjectTopicRequest: - type: object description: An array of ResearchProjectTopic objects properties: Data: - type: array items: $ref: "#/definitions/ResearchProjectTopic" + type: array + type: object ResearchProjectTopicResponse: - type: object description: An array of ResearchProjectTopic objects properties: Data: - type: array items: $ref: "#/definitions/ResearchProjectTopic" - Ticket: + type: array type: object + ResponseMeta: properties: - ID: + Contact: + description: Microservice Contact Info type: string + Copyright: + description: Copyright Info + type: string + License: + description: License Information and Restrictions + type: string + OperationID: + description: Operation ID + type: string + Pagination: + $ref: "#/definitions/Pagination" + RequestIP: + description: Request IP Address + type: string + RequestType: + description: Request Type + type: string + RequestURL: + description: Request URL + type: string + ServerInfo: + description: Data Server Info + type: string + ServerResponseTime: + description: Data Server Response Time (ms) + type: string + ServerTimestamp: + description: Backend Server Timestamp + type: string + TaxnexusAccount: + description: Account Number used for recording transactions + type: string + type: object + TenantUser: + description: Relationship object that connects users to a tenant + properties: + AccessLevel: + description: The makeTenantUser access level for this User + type: string + AccountID: + description: Account ID + type: string + Auth0UserID: + description: Auth0 User ID + type: string + CompanyName: + description: Account Name + type: string + ContactID: + description: Contact ID + type: string + TaxnexusAccount: + description: Account + type: string + TenantActive: + description: Tenant active? + type: boolean + TenantID: + description: The Tenant ID + type: string + TenantName: + description: Tenant Name + type: string + TenantStatus: + description: Tenant Status + type: string + TenantType: + description: Tenant type + type: string + TenantVersion: + description: Tenant Version + type: string + UserEmail: + description: User Email Address + type: string + UserFullName: + description: User Full Name + type: string + UserID: + description: The User ID + type: string + Username: + description: Username + type: string + type: object + Role: + description: A functional role within a Tenant + properties: + Auth0RoleID: + description: The corresponding Auth0 Role + type: string + CreatedByID: + description: Created By + type: string + CreatedDate: + description: Created Date + type: string + Description: + description: Role Description + type: string + ID: + description: Record Id + type: string + LastModifiedByID: + description: Last Modified By + type: string + LastModifiedDate: + description: Last Modifed Date + type: string + RoleName: + description: The name of this role + type: string + TenantID: + description: The ID of the Tenant that owns this Role + type: string + type: object + RoleRequest: + description: An array of Role objects + properties: + Date: + items: + $ref: "#/definitions/Role" + type: array + type: object + RoleResponse: + description: An array of Role objects + properties: + Data: + items: + $ref: "#/definitions/Role" + type: array + Meta: + $ref: "#/definitions/ResponseMeta" + type: object + Template: + properties: + CompanyID: + description: Company + type: string + CreatedByID: + type: string + CreatedDate: + type: string + Description: + description: Description + type: string + HTML: + description: HTML Body + format: byte + type: string + ID: + description: Record Id + type: string + IsActive: + description: Active? + type: boolean + IsMaster: + description: Master Template? + type: boolean + LastModifiedByID: + type: string + LastModifiedDate: + type: string + Name: + description: Template Name + type: string + ObjectType: + description: Object + type: string + RecordTypeName: + description: Record Type Name + type: string + TenantID: + description: Tenant that owns this object instance + type: string + Type: + description: Type + type: string + URL: + description: URL + type: string + type: object + TemplateRequest: + description: An array of Templates + properties: + Data: + items: + $ref: "#/definitions/Template" + type: array + type: object + TemplateResponse: + description: An array of Templates + properties: + Data: + items: + $ref: "#/definitions/Template" + type: array + Meta: + $ref: "#/definitions/ResponseMeta" + type: object + Tenant: + description: Account Tenant + properties: + AccountID: + description: The Account that owns this Tenant + type: string + Active: + description: Is this Tenant currently active? + type: boolean + CreatedByID: + description: Created By + type: string + CreatedDate: + description: Created Date + type: string + Databases: + items: + $ref: "#/definitions/Database" + type: array + ID: + description: Record Id + type: string + LastModifiedByID: + description: Last Modified By + type: string + LastModifiedDate: + description: Last Modifed Date + type: string + Roles: + items: + $ref: "#/definitions/Role" + type: array + Status: + description: The current status of this Tenant + type: string + TenantName: + description: Name of the Tenant Resource + type: string + TenantUsers: + items: + $ref: "#/definitions/TenantUser" + type: array + Type: + description: The type of Tenant + type: string + Version: + description: The version number of the Tenant Onboarding system used to create this tenant + type: string + type: object + TenantRequest: + description: An array of Tenant objects + properties: + Data: + items: + $ref: "#/definitions/Tenant" + type: array + type: object + TenantResponse: + description: An array of Tenant objects + properties: + Data: + items: + $ref: "#/definitions/Tenant" + type: array + Meta: + $ref: "#/definitions/ResponseMeta" + type: object + Ticket: + properties: CreatedDate: type: string x-nullable: true EventID: type: string + ID: + type: string LastModifiedDate: type: string x-nullable: true @@ -1803,27 +2936,25 @@ definitions: type: integer Tickettype: type: string + type: object TicketRequest: - type: object description: An array of Ticket objects properties: Data: - type: array items: $ref: "#/definitions/Ticket" + type: array + type: object TicketResponse: - type: object description: An array of Ticket objects properties: Data: - type: array items: $ref: "#/definitions/Ticket" - Transaction: + type: array type: object + Transaction: properties: - ID: - type: string Amount: type: number CourseID: @@ -1837,6 +2968,8 @@ definitions: type: string EnrollmentID: type: string + ID: + type: string LastModifiedByID: type: string LastModifiedDate: @@ -1851,19 +2984,258 @@ definitions: type: string UserID: type: string + type: object TransactionRequest: - type: object description: An array of Transaction objects properties: Data: - type: array items: $ref: "#/definitions/Transaction" + type: array + type: object TransactionResponse: - type: object description: An array of Transaction objects properties: Data: - type: array items: $ref: "#/definitions/Transaction" + type: array + type: object + User: + properties: + APIKey: + description: API Key + type: string + AboutMe: + description: About Me + type: string + AccountID: + description: Account ID + type: string + Address: + $ref: "#/definitions/Address" + Alias: + description: Alias + type: string + Auth0UserID: + description: Auth0 User Id + type: string + CommunityNickname: + description: Nickname + type: string + CompanyName: + description: Company Name + type: string + ContactID: + description: Contact + type: string + CreatedByID: + description: Created User ID + type: string + CreatedDate: + description: Date Created + type: string + DelegatedApproverID: + description: Delegated Approver + type: string + Department: + description: Department + type: string + Division: + description: Division + type: string + Email: + description: Email address + type: string + EmployeeNumber: + description: Employee Number + type: string + EndOfDay: + description: Time day ends + type: string + Environment: + description: Environment + type: string + Extension: + description: Extension + type: string + FabricAPIKey: + description: Fabric API Key + type: string + Fax: + description: Fax + type: string + FirstName: + description: The first name + type: string + ForecastEnabled: + description: Allow Forecasting + type: boolean + FullPhotoURL: + description: Full Photo URL + type: string + ID: + description: Record ID + type: string + IsActive: + description: Active + type: boolean + IsPortalEnabled: + description: Is the user enabled for Communities? + type: boolean + IsProphilePhotoActive: + description: Has Profile Photo + type: boolean + IsSystemControlled: + type: boolean + LastIP: + description: IP address of last login + type: string + LastLogin: + description: Last login time + type: string + LastModifiedByID: + description: Last Modified User ID + type: string + LastModifiedDate: + description: Last Modified Date + type: string + LastName: + description: The Last Name + type: string + LoginCount: + description: Number of times user has logged in + format: int64 + type: number + ManagerID: + description: Manager + type: string + MobilePhone: + description: Mobile + type: string + Name: + description: Name + type: string + OutOfOfficeMessage: + description: Out of office message + type: string + Phone: + description: Phone + type: string + PortalRole: + description: Portal Role Level + type: string + ProfileID: + description: Profile + type: string + ReceivesAdminEmails: + description: Info Emails + type: boolean + ReceivesAdminInfoEmails: + description: Admin Info Emails + type: boolean + SenderEmail: + description: Email Sender Address + type: string + SenderName: + description: Email Sender Name + type: string + Signature: + description: Email Signature + type: string + SmallPhotoURL: + description: Small Photo URL + type: string + StartOfDay: + description: The time day starts + type: string + TaxnexusAccount: + description: Account + type: string + TenantID: + description: Tenant ID associated with this user + type: string + TenantUsers: + items: + $ref: "#/definitions/TenantUser" + type: array + TimeZone: + description: Time Zone + type: string + Title: + description: Title + type: string + UserRoleID: + description: Role + type: string + UserRoles: + items: + $ref: "#/definitions/UserRole" + type: array + UserType: + description: User Type + type: string + Username: + description: Username + type: string + type: object + UserRequest: + properties: + Data: + items: + $ref: "#/definitions/User" + type: array + type: object + UserResponse: + description: An array of Print-Ready ingest Objects + properties: + Data: + items: + $ref: "#/definitions/User" + type: array + Meta: + $ref: "#/definitions/ResponseMeta" + type: object + UserRole: + description: Relationship object that connects user to a role + properties: + AccountID: + description: Account Id + type: string + Auth0RoleID: + description: Linked role ID + type: string + Auth0UserID: + description: Auth0 User ID + type: string + CompanyName: + description: Company Name + type: string + ContactID: + description: Contact ID + type: string + RoleDescription: + description: Role description + type: string + RoleID: + description: The Role ID + type: string + RoleName: + description: Role Name + type: string + TaxnexusAccount: + description: Account Number + type: string + UserEmail: + description: User Email Address + type: string + UserFullName: + description: User Full Name + type: string + UserID: + description: The User ID + type: string + Username: + description: Username + type: string + type: object