diff --git a/.openapi-generator/VERSION b/.openapi-generator/VERSION index 32f3eaa..1e20ec3 100644 --- a/.openapi-generator/VERSION +++ b/.openapi-generator/VERSION @@ -1 +1 @@ -5.0.1 \ No newline at end of file +5.4.0 \ No newline at end of file diff --git a/README.md b/README.md index e9e96cf..770cbad 100644 --- a/README.md +++ b/README.md @@ -5,8 +5,8 @@ OpenAPI 3 - Documentation of DFIRTrack API ## Overview This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. -- API version: v2.0.0 -- Package version: 2.2.0 +- API version: v2.4.1 +- Package version: 2.4.1 - Build package: org.openapitools.codegen.languages.GoClientCodegen ## Installation @@ -22,7 +22,7 @@ go get golang.org/x/net/context Put the package under your project folder and add the following in import: ```golang -import sw "./dfirtrackapi" +import dfirtrackapi "github.com/dfirtrack/dfirtrackapi" ``` To use a proxy, set the environment variable `HTTP_PROXY`: @@ -40,7 +40,7 @@ Default configuration comes with `Servers` field that contains server objects as For using other server than the one defined on index 0 set context value `sw.ContextServerIndex` of type `int`. ```golang -ctx := context.WithValue(context.Background(), sw.ContextServerIndex, 1) +ctx := context.WithValue(context.Background(), dfirtrackapi.ContextServerIndex, 1) ``` ### Templated Server URL @@ -48,7 +48,7 @@ ctx := context.WithValue(context.Background(), sw.ContextServerIndex, 1) Templated server URL is formatted using default variables from configuration or from context value `sw.ContextServerVariables` of type `map[string]string`. ```golang -ctx := context.WithValue(context.Background(), sw.ContextServerVariables, map[string]string{ +ctx := context.WithValue(context.Background(), dfirtrackapi.ContextServerVariables, map[string]string{ "basePath": "v2", }) ``` @@ -62,10 +62,10 @@ An operation is uniquely identified by `"{classname}Service.{nickname}"` string. Similar rules for overriding default operation server index and variables applies by using `sw.ContextOperationServerIndices` and `sw.ContextOperationServerVariables` context maps. ``` -ctx := context.WithValue(context.Background(), sw.ContextOperationServerIndices, map[string]int{ +ctx := context.WithValue(context.Background(), dfirtrackapi.ContextOperationServerIndices, map[string]int{ "{classname}Service.{nickname}": 2, }) -ctx = context.WithValue(context.Background(), sw.ContextOperationServerVariables, map[string]map[string]string{ +ctx = context.WithValue(context.Background(), dfirtrackapi.ContextOperationServerVariables, map[string]map[string]string{ "{classname}Service.{nickname}": { "port": "8443", }, @@ -298,7 +298,7 @@ r, err := client.Service.Operation(auth, args) Example ```golang -auth := context.WithValue(context.Background(), sw.ContextAccessToken, "BEARERTOKENSTRING") +auth := context.WithValue(context.Background(), sw.ContextAccessToken, "BEARER_TOKEN_STRING") r, err := client.Service.Operation(auth, args) ``` diff --git a/api/openapi.yaml b/api/openapi.yaml index bea8466..cec469d 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -2,7 +2,7 @@ openapi: 3.0.2 info: description: OpenAPI 3 - Documentation of DFIRTrack API title: DFIRTrack - version: v2.0.0 + version: v2.4.1 servers: - url: / security: @@ -3557,6 +3557,7 @@ components: artifact_acquisition_time: 2000-01-23T04:56:07.000+00:00 artifact_name: artifact_name artifact_modified_by_user_id: 3 + artifact_assigned_to_user_id: 2 tag: - 7 - 7 @@ -3629,6 +3630,9 @@ components: type: string artifact_modified_by_user_id: type: integer + artifact_assigned_to_user_id: + nullable: true + type: integer required: - artifact_created_by_user_id - artifact_modified_by_user_id @@ -3687,7 +3691,7 @@ components: readOnly: true type: integer analysisstatus_name: - maxLength: 30 + maxLength: 255 type: string required: - analysisstatus_name @@ -3698,6 +3702,7 @@ components: case_modify_time: 2000-01-23T04:56:07.000+00:00 case_id_external: case_id_external case_name: case_name + case_assigned_to_user_id: 9 case_end_time: 2000-01-23T04:56:07.000+00:00 case_is_incident: true casepriority: 6 @@ -3715,11 +3720,11 @@ components: readOnly: true type: integer case_id_external: - maxLength: 50 + maxLength: 255 nullable: true type: string case_name: - maxLength: 50 + maxLength: 255 type: string casepriority: type: integer @@ -3755,6 +3760,9 @@ components: format: date-time readOnly: true type: string + case_assigned_to_user_id: + nullable: true + type: integer required: - case_created_by_user_id - case_is_incident @@ -3812,7 +3820,7 @@ components: readOnly: true type: integer company_name: - maxLength: 50 + maxLength: 255 type: string division: nullable: true @@ -3831,13 +3839,13 @@ components: readOnly: true type: integer contact_name: - maxLength: 100 + maxLength: 255 type: string contact_email: - maxLength: 100 + maxLength: 255 type: string contact_phone: - maxLength: 50 + maxLength: 255 nullable: true type: string required: @@ -3853,7 +3861,7 @@ components: readOnly: true type: integer division_name: - maxLength: 50 + maxLength: 255 type: string required: - division_name @@ -3868,7 +3876,7 @@ components: readOnly: true type: integer dnsname_name: - maxLength: 100 + maxLength: 255 type: string domain: nullable: true @@ -3885,7 +3893,7 @@ components: readOnly: true type: integer domain_name: - maxLength: 100 + maxLength: 255 type: string required: - domain_name @@ -3901,7 +3909,7 @@ components: readOnly: true type: integer domainuser_name: - maxLength: 50 + maxLength: 255 type: string domain: type: integer @@ -3921,7 +3929,7 @@ components: readOnly: true type: integer headline_name: - maxLength: 100 + maxLength: 255 type: string required: - headline_name @@ -3948,7 +3956,7 @@ components: readOnly: true type: integer location_name: - maxLength: 50 + maxLength: 255 type: string required: - location_name @@ -3960,6 +3968,7 @@ components: note_version: 441289069 note_create_time: 2000-01-23T04:56:07.000+00:00 note_modified_by_user_id: 7 + note_assigned_to_user_id: 9 notestatus: 5 note_title: note_title note_modify_time: 2000-01-23T04:56:07.000+00:00 @@ -3973,7 +3982,7 @@ components: readOnly: true type: integer note_title: - maxLength: 250 + maxLength: 255 type: string note_content: type: string @@ -4002,6 +4011,9 @@ components: type: string note_modified_by_user_id: type: integer + note_assigned_to_user_id: + nullable: true + type: integer required: - note_content - note_created_by_user_id @@ -4018,7 +4030,7 @@ components: readOnly: true type: integer notestatus_name: - maxLength: 30 + maxLength: 255 type: string required: - notestatus_name @@ -4032,7 +4044,7 @@ components: readOnly: true type: integer os_name: - maxLength: 30 + maxLength: 255 type: string required: - os_name @@ -4046,7 +4058,7 @@ components: readOnly: true type: integer osarch_name: - maxLength: 10 + maxLength: 255 type: string required: - osarch_name @@ -4060,7 +4072,7 @@ components: readOnly: true type: integer reason_name: - maxLength: 30 + maxLength: 255 type: string required: - reason_name @@ -4074,7 +4086,7 @@ components: readOnly: true type: integer recommendation_name: - maxLength: 30 + maxLength: 255 type: string required: - recommendation_name @@ -4083,12 +4095,13 @@ components: example: notestatus: 5 reportitem_created_by_user_id: 7 - system: 5 reportitem_note: reportitem_note - reportitem_create_time: 2000-01-23T04:56:07.000+00:00 reportitem_id: 0 reportitem_modify_time: 2000-01-23T04:56:07.000+00:00 reportitem_modified_by_user_id: 9 + system: 5 + reportitem_create_time: 2000-01-23T04:56:07.000+00:00 + reportitem_assigned_to_user_id: 3 tag: - 2 - 2 @@ -4113,7 +4126,7 @@ components: type: integer type: array reportitem_subheadline: - maxLength: 100 + maxLength: 255 nullable: true type: string reportitem_note: @@ -4130,6 +4143,9 @@ components: type: string reportitem_modified_by_user_id: type: integer + reportitem_assigned_to_user_id: + nullable: true + type: integer required: - headline - reportitem_created_by_user_id @@ -4147,7 +4163,7 @@ components: readOnly: true type: integer serviceprovider_name: - maxLength: 50 + maxLength: 255 type: string required: - serviceprovider_name @@ -4167,6 +4183,7 @@ components: system_lastbooted_time: 2000-01-23T04:56:07.000+00:00 contact: 6 dnsname: 1 + system_assigned_to_user_id: 9 company: - 1 - 1 @@ -4200,7 +4217,7 @@ components: readOnly: true type: string system_name: - maxLength: 50 + maxLength: 255 type: string domain: nullable: true @@ -4279,6 +4296,9 @@ components: type: string system_modified_by_user_id: type: integer + system_assigned_to_user_id: + nullable: true + type: integer system_export_markdown: type: boolean system_export_spreadsheet: @@ -4298,7 +4318,7 @@ components: readOnly: true type: integer systemstatus_name: - maxLength: 30 + maxLength: 255 type: string required: - systemstatus_name @@ -4312,7 +4332,7 @@ components: readOnly: true type: integer systemtype_name: - maxLength: 50 + maxLength: 255 type: string required: - systemtype_name @@ -4329,7 +4349,7 @@ components: readOnly: true type: integer systemuser_name: - maxLength: 50 + maxLength: 255 type: string system: type: integer @@ -4348,16 +4368,20 @@ components: example: tag_name: tag_name tagcolor: 6 + tag_assigned_to_user_id: 1 tag_id: 0 properties: tag_id: readOnly: true type: integer tag_name: - maxLength: 50 + maxLength: 255 type: string tagcolor: type: integer + tag_assigned_to_user_id: + nullable: true + type: integer required: - tag_name - tagcolor @@ -4471,7 +4495,7 @@ components: readOnly: true type: integer taskname_name: - maxLength: 50 + maxLength: 255 type: string required: - taskname_name @@ -4485,7 +4509,7 @@ components: readOnly: true type: integer taskpriority_name: - maxLength: 50 + maxLength: 255 type: string required: - taskpriority_name @@ -4499,7 +4523,7 @@ components: readOnly: true type: integer taskstatus_name: - maxLength: 50 + maxLength: 255 type: string required: - taskstatus_name diff --git a/api_api.go b/api_api.go index 5654da5..68a1ebb 100644 --- a/api_api.go +++ b/api_api.go @@ -3,7 +3,7 @@ DFIRTrack OpenAPI 3 - Documentation of DFIRTrack API -API version: v2.0.0 +API version: v2.4.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -12,23 +12,23 @@ package dfirtrackapi import ( "bytes" - _context "context" - _ioutil "io/ioutil" - _nethttp "net/http" - _neturl "net/url" + "context" + "io/ioutil" + "net/http" + "net/url" "strings" ) // Linger please var ( - _ _context.Context + _ context.Context ) // ApiApiService ApiApi service type ApiApiService service type ApiCreateArtifactRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService artifact *Artifact } @@ -38,7 +38,7 @@ func (r ApiCreateArtifactRequest) Artifact(artifact Artifact) ApiCreateArtifactR return r } -func (r ApiCreateArtifactRequest) Execute() (Artifact, *_nethttp.Response, error) { +func (r ApiCreateArtifactRequest) Execute() (*Artifact, *http.Response, error) { return r.ApiService.CreateArtifactExecute(r) } @@ -47,10 +47,10 @@ CreateArtifact Method for CreateArtifact all objects, allowed: GET + POST - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiCreateArtifactRequest */ -func (a *ApiApiService) CreateArtifact(ctx _context.Context) ApiCreateArtifactRequest { +func (a *ApiApiService) CreateArtifact(ctx context.Context) ApiCreateArtifactRequest { return ApiCreateArtifactRequest{ ApiService: a, ctx: ctx, @@ -59,24 +59,24 @@ func (a *ApiApiService) CreateArtifact(ctx _context.Context) ApiCreateArtifactRe // Execute executes the request // @return Artifact -func (a *ApiApiService) CreateArtifactExecute(r ApiCreateArtifactRequest) (Artifact, *_nethttp.Response, error) { +func (a *ApiApiService) CreateArtifactExecute(r ApiCreateArtifactRequest) (*Artifact, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodPost + localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue Artifact + localVarReturnValue *Artifact ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.CreateArtifact") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/artifact/" localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} @@ -107,15 +107,15 @@ func (a *ApiApiService) CreateArtifactExecute(r ApiCreateArtifactRequest) (Artif return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -124,7 +124,7 @@ func (a *ApiApiService) CreateArtifactExecute(r ApiCreateArtifactRequest) (Artif err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -135,7 +135,7 @@ func (a *ApiApiService) CreateArtifactExecute(r ApiCreateArtifactRequest) (Artif } type ApiCreateArtifacttypeRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService artifacttype *Artifacttype } @@ -145,7 +145,7 @@ func (r ApiCreateArtifacttypeRequest) Artifacttype(artifacttype Artifacttype) Ap return r } -func (r ApiCreateArtifacttypeRequest) Execute() (Artifacttype, *_nethttp.Response, error) { +func (r ApiCreateArtifacttypeRequest) Execute() (*Artifacttype, *http.Response, error) { return r.ApiService.CreateArtifacttypeExecute(r) } @@ -154,10 +154,10 @@ CreateArtifacttype Method for CreateArtifacttype all objects, allowed: GET + POST - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiCreateArtifacttypeRequest */ -func (a *ApiApiService) CreateArtifacttype(ctx _context.Context) ApiCreateArtifacttypeRequest { +func (a *ApiApiService) CreateArtifacttype(ctx context.Context) ApiCreateArtifacttypeRequest { return ApiCreateArtifacttypeRequest{ ApiService: a, ctx: ctx, @@ -166,24 +166,24 @@ func (a *ApiApiService) CreateArtifacttype(ctx _context.Context) ApiCreateArtifa // Execute executes the request // @return Artifacttype -func (a *ApiApiService) CreateArtifacttypeExecute(r ApiCreateArtifacttypeRequest) (Artifacttype, *_nethttp.Response, error) { +func (a *ApiApiService) CreateArtifacttypeExecute(r ApiCreateArtifacttypeRequest) (*Artifacttype, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodPost + localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue Artifacttype + localVarReturnValue *Artifacttype ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.CreateArtifacttype") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/artifacttype/" localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} @@ -214,15 +214,15 @@ func (a *ApiApiService) CreateArtifacttypeExecute(r ApiCreateArtifacttypeRequest return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -231,7 +231,7 @@ func (a *ApiApiService) CreateArtifacttypeExecute(r ApiCreateArtifacttypeRequest err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -242,7 +242,7 @@ func (a *ApiApiService) CreateArtifacttypeExecute(r ApiCreateArtifacttypeRequest } type ApiCreateAuthTokenRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService username *string password *string @@ -262,17 +262,17 @@ func (r ApiCreateAuthTokenRequest) Token(token string) ApiCreateAuthTokenRequest return r } -func (r ApiCreateAuthTokenRequest) Execute() (AuthToken, *_nethttp.Response, error) { +func (r ApiCreateAuthTokenRequest) Execute() (*AuthToken, *http.Response, error) { return r.ApiService.CreateAuthTokenExecute(r) } /* CreateAuthToken Method for CreateAuthToken - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiCreateAuthTokenRequest */ -func (a *ApiApiService) CreateAuthToken(ctx _context.Context) ApiCreateAuthTokenRequest { +func (a *ApiApiService) CreateAuthToken(ctx context.Context) ApiCreateAuthTokenRequest { return ApiCreateAuthTokenRequest{ ApiService: a, ctx: ctx, @@ -281,24 +281,24 @@ func (a *ApiApiService) CreateAuthToken(ctx _context.Context) ApiCreateAuthToken // Execute executes the request // @return AuthToken -func (a *ApiApiService) CreateAuthTokenExecute(r ApiCreateAuthTokenRequest) (AuthToken, *_nethttp.Response, error) { +func (a *ApiApiService) CreateAuthTokenExecute(r ApiCreateAuthTokenRequest) (*AuthToken, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodPost + localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue AuthToken + localVarReturnValue *AuthToken ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.CreateAuthToken") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/token-auth/" localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} if r.username == nil { return localVarReturnValue, nil, reportError("username is required and must be specified") } @@ -338,15 +338,15 @@ func (a *ApiApiService) CreateAuthTokenExecute(r ApiCreateAuthTokenRequest) (Aut return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -355,7 +355,7 @@ func (a *ApiApiService) CreateAuthTokenExecute(r ApiCreateAuthTokenRequest) (Aut err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -366,7 +366,7 @@ func (a *ApiApiService) CreateAuthTokenExecute(r ApiCreateAuthTokenRequest) (Aut } type ApiCreateCaseRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService case_ *Case } @@ -376,7 +376,7 @@ func (r ApiCreateCaseRequest) Case_(case_ Case) ApiCreateCaseRequest { return r } -func (r ApiCreateCaseRequest) Execute() (Case, *_nethttp.Response, error) { +func (r ApiCreateCaseRequest) Execute() (*Case, *http.Response, error) { return r.ApiService.CreateCaseExecute(r) } @@ -385,10 +385,10 @@ CreateCase Method for CreateCase all objects, allowed: GET + POST - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiCreateCaseRequest */ -func (a *ApiApiService) CreateCase(ctx _context.Context) ApiCreateCaseRequest { +func (a *ApiApiService) CreateCase(ctx context.Context) ApiCreateCaseRequest { return ApiCreateCaseRequest{ ApiService: a, ctx: ctx, @@ -397,24 +397,24 @@ func (a *ApiApiService) CreateCase(ctx _context.Context) ApiCreateCaseRequest { // Execute executes the request // @return Case -func (a *ApiApiService) CreateCaseExecute(r ApiCreateCaseRequest) (Case, *_nethttp.Response, error) { +func (a *ApiApiService) CreateCaseExecute(r ApiCreateCaseRequest) (*Case, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodPost + localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue Case + localVarReturnValue *Case ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.CreateCase") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/case/" localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} @@ -445,15 +445,15 @@ func (a *ApiApiService) CreateCaseExecute(r ApiCreateCaseRequest) (Case, *_netht return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -462,7 +462,7 @@ func (a *ApiApiService) CreateCaseExecute(r ApiCreateCaseRequest) (Case, *_netht err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -473,7 +473,7 @@ func (a *ApiApiService) CreateCaseExecute(r ApiCreateCaseRequest) (Case, *_netht } type ApiCreateCasetypeRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService casetype *Casetype } @@ -483,7 +483,7 @@ func (r ApiCreateCasetypeRequest) Casetype(casetype Casetype) ApiCreateCasetypeR return r } -func (r ApiCreateCasetypeRequest) Execute() (Casetype, *_nethttp.Response, error) { +func (r ApiCreateCasetypeRequest) Execute() (*Casetype, *http.Response, error) { return r.ApiService.CreateCasetypeExecute(r) } @@ -492,10 +492,10 @@ CreateCasetype Method for CreateCasetype all objects, allowed: GET + POST - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiCreateCasetypeRequest */ -func (a *ApiApiService) CreateCasetype(ctx _context.Context) ApiCreateCasetypeRequest { +func (a *ApiApiService) CreateCasetype(ctx context.Context) ApiCreateCasetypeRequest { return ApiCreateCasetypeRequest{ ApiService: a, ctx: ctx, @@ -504,24 +504,24 @@ func (a *ApiApiService) CreateCasetype(ctx _context.Context) ApiCreateCasetypeRe // Execute executes the request // @return Casetype -func (a *ApiApiService) CreateCasetypeExecute(r ApiCreateCasetypeRequest) (Casetype, *_nethttp.Response, error) { +func (a *ApiApiService) CreateCasetypeExecute(r ApiCreateCasetypeRequest) (*Casetype, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodPost + localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue Casetype + localVarReturnValue *Casetype ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.CreateCasetype") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/casetype/" localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} @@ -552,15 +552,15 @@ func (a *ApiApiService) CreateCasetypeExecute(r ApiCreateCasetypeRequest) (Caset return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -569,7 +569,7 @@ func (a *ApiApiService) CreateCasetypeExecute(r ApiCreateCasetypeRequest) (Caset err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -580,7 +580,7 @@ func (a *ApiApiService) CreateCasetypeExecute(r ApiCreateCasetypeRequest) (Caset } type ApiCreateCompanyRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService company *Company } @@ -590,7 +590,7 @@ func (r ApiCreateCompanyRequest) Company(company Company) ApiCreateCompanyReques return r } -func (r ApiCreateCompanyRequest) Execute() (Company, *_nethttp.Response, error) { +func (r ApiCreateCompanyRequest) Execute() (*Company, *http.Response, error) { return r.ApiService.CreateCompanyExecute(r) } @@ -599,10 +599,10 @@ CreateCompany Method for CreateCompany all objects, allowed: GET + POST - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiCreateCompanyRequest */ -func (a *ApiApiService) CreateCompany(ctx _context.Context) ApiCreateCompanyRequest { +func (a *ApiApiService) CreateCompany(ctx context.Context) ApiCreateCompanyRequest { return ApiCreateCompanyRequest{ ApiService: a, ctx: ctx, @@ -611,24 +611,24 @@ func (a *ApiApiService) CreateCompany(ctx _context.Context) ApiCreateCompanyRequ // Execute executes the request // @return Company -func (a *ApiApiService) CreateCompanyExecute(r ApiCreateCompanyRequest) (Company, *_nethttp.Response, error) { +func (a *ApiApiService) CreateCompanyExecute(r ApiCreateCompanyRequest) (*Company, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodPost + localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue Company + localVarReturnValue *Company ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.CreateCompany") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/company/" localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} @@ -659,15 +659,15 @@ func (a *ApiApiService) CreateCompanyExecute(r ApiCreateCompanyRequest) (Company return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -676,7 +676,7 @@ func (a *ApiApiService) CreateCompanyExecute(r ApiCreateCompanyRequest) (Company err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -687,7 +687,7 @@ func (a *ApiApiService) CreateCompanyExecute(r ApiCreateCompanyRequest) (Company } type ApiCreateContactRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService contact *Contact } @@ -697,7 +697,7 @@ func (r ApiCreateContactRequest) Contact(contact Contact) ApiCreateContactReques return r } -func (r ApiCreateContactRequest) Execute() (Contact, *_nethttp.Response, error) { +func (r ApiCreateContactRequest) Execute() (*Contact, *http.Response, error) { return r.ApiService.CreateContactExecute(r) } @@ -706,10 +706,10 @@ CreateContact Method for CreateContact all objects, allowed: GET + POST - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiCreateContactRequest */ -func (a *ApiApiService) CreateContact(ctx _context.Context) ApiCreateContactRequest { +func (a *ApiApiService) CreateContact(ctx context.Context) ApiCreateContactRequest { return ApiCreateContactRequest{ ApiService: a, ctx: ctx, @@ -718,24 +718,24 @@ func (a *ApiApiService) CreateContact(ctx _context.Context) ApiCreateContactRequ // Execute executes the request // @return Contact -func (a *ApiApiService) CreateContactExecute(r ApiCreateContactRequest) (Contact, *_nethttp.Response, error) { +func (a *ApiApiService) CreateContactExecute(r ApiCreateContactRequest) (*Contact, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodPost + localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue Contact + localVarReturnValue *Contact ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.CreateContact") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/contact/" localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} @@ -766,15 +766,15 @@ func (a *ApiApiService) CreateContactExecute(r ApiCreateContactRequest) (Contact return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -783,7 +783,7 @@ func (a *ApiApiService) CreateContactExecute(r ApiCreateContactRequest) (Contact err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -794,7 +794,7 @@ func (a *ApiApiService) CreateContactExecute(r ApiCreateContactRequest) (Contact } type ApiCreateDivisionRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService division *Division } @@ -804,7 +804,7 @@ func (r ApiCreateDivisionRequest) Division(division Division) ApiCreateDivisionR return r } -func (r ApiCreateDivisionRequest) Execute() (Division, *_nethttp.Response, error) { +func (r ApiCreateDivisionRequest) Execute() (*Division, *http.Response, error) { return r.ApiService.CreateDivisionExecute(r) } @@ -813,10 +813,10 @@ CreateDivision Method for CreateDivision all objects, allowed: GET + POST - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiCreateDivisionRequest */ -func (a *ApiApiService) CreateDivision(ctx _context.Context) ApiCreateDivisionRequest { +func (a *ApiApiService) CreateDivision(ctx context.Context) ApiCreateDivisionRequest { return ApiCreateDivisionRequest{ ApiService: a, ctx: ctx, @@ -825,24 +825,24 @@ func (a *ApiApiService) CreateDivision(ctx _context.Context) ApiCreateDivisionRe // Execute executes the request // @return Division -func (a *ApiApiService) CreateDivisionExecute(r ApiCreateDivisionRequest) (Division, *_nethttp.Response, error) { +func (a *ApiApiService) CreateDivisionExecute(r ApiCreateDivisionRequest) (*Division, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodPost + localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue Division + localVarReturnValue *Division ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.CreateDivision") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/division/" localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} @@ -873,15 +873,15 @@ func (a *ApiApiService) CreateDivisionExecute(r ApiCreateDivisionRequest) (Divis return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -890,7 +890,7 @@ func (a *ApiApiService) CreateDivisionExecute(r ApiCreateDivisionRequest) (Divis err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -901,7 +901,7 @@ func (a *ApiApiService) CreateDivisionExecute(r ApiCreateDivisionRequest) (Divis } type ApiCreateDnsnameRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService dnsname *Dnsname } @@ -911,7 +911,7 @@ func (r ApiCreateDnsnameRequest) Dnsname(dnsname Dnsname) ApiCreateDnsnameReques return r } -func (r ApiCreateDnsnameRequest) Execute() (Dnsname, *_nethttp.Response, error) { +func (r ApiCreateDnsnameRequest) Execute() (*Dnsname, *http.Response, error) { return r.ApiService.CreateDnsnameExecute(r) } @@ -920,10 +920,10 @@ CreateDnsname Method for CreateDnsname all objects, allowed: GET + POST - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiCreateDnsnameRequest */ -func (a *ApiApiService) CreateDnsname(ctx _context.Context) ApiCreateDnsnameRequest { +func (a *ApiApiService) CreateDnsname(ctx context.Context) ApiCreateDnsnameRequest { return ApiCreateDnsnameRequest{ ApiService: a, ctx: ctx, @@ -932,24 +932,24 @@ func (a *ApiApiService) CreateDnsname(ctx _context.Context) ApiCreateDnsnameRequ // Execute executes the request // @return Dnsname -func (a *ApiApiService) CreateDnsnameExecute(r ApiCreateDnsnameRequest) (Dnsname, *_nethttp.Response, error) { +func (a *ApiApiService) CreateDnsnameExecute(r ApiCreateDnsnameRequest) (*Dnsname, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodPost + localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue Dnsname + localVarReturnValue *Dnsname ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.CreateDnsname") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/dnsname/" localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} @@ -980,15 +980,15 @@ func (a *ApiApiService) CreateDnsnameExecute(r ApiCreateDnsnameRequest) (Dnsname return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -997,7 +997,7 @@ func (a *ApiApiService) CreateDnsnameExecute(r ApiCreateDnsnameRequest) (Dnsname err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -1008,7 +1008,7 @@ func (a *ApiApiService) CreateDnsnameExecute(r ApiCreateDnsnameRequest) (Dnsname } type ApiCreateDomainRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService domain *Domain } @@ -1018,7 +1018,7 @@ func (r ApiCreateDomainRequest) Domain(domain Domain) ApiCreateDomainRequest { return r } -func (r ApiCreateDomainRequest) Execute() (Domain, *_nethttp.Response, error) { +func (r ApiCreateDomainRequest) Execute() (*Domain, *http.Response, error) { return r.ApiService.CreateDomainExecute(r) } @@ -1027,10 +1027,10 @@ CreateDomain Method for CreateDomain all objects, allowed: GET + POST - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiCreateDomainRequest */ -func (a *ApiApiService) CreateDomain(ctx _context.Context) ApiCreateDomainRequest { +func (a *ApiApiService) CreateDomain(ctx context.Context) ApiCreateDomainRequest { return ApiCreateDomainRequest{ ApiService: a, ctx: ctx, @@ -1039,24 +1039,24 @@ func (a *ApiApiService) CreateDomain(ctx _context.Context) ApiCreateDomainReques // Execute executes the request // @return Domain -func (a *ApiApiService) CreateDomainExecute(r ApiCreateDomainRequest) (Domain, *_nethttp.Response, error) { +func (a *ApiApiService) CreateDomainExecute(r ApiCreateDomainRequest) (*Domain, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodPost + localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue Domain + localVarReturnValue *Domain ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.CreateDomain") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/domain/" localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} @@ -1087,15 +1087,15 @@ func (a *ApiApiService) CreateDomainExecute(r ApiCreateDomainRequest) (Domain, * return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -1104,7 +1104,7 @@ func (a *ApiApiService) CreateDomainExecute(r ApiCreateDomainRequest) (Domain, * err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -1115,7 +1115,7 @@ func (a *ApiApiService) CreateDomainExecute(r ApiCreateDomainRequest) (Domain, * } type ApiCreateDomainuserRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService domainuser *Domainuser } @@ -1125,7 +1125,7 @@ func (r ApiCreateDomainuserRequest) Domainuser(domainuser Domainuser) ApiCreateD return r } -func (r ApiCreateDomainuserRequest) Execute() (Domainuser, *_nethttp.Response, error) { +func (r ApiCreateDomainuserRequest) Execute() (*Domainuser, *http.Response, error) { return r.ApiService.CreateDomainuserExecute(r) } @@ -1134,10 +1134,10 @@ CreateDomainuser Method for CreateDomainuser all objects, allowed: GET + POST - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiCreateDomainuserRequest */ -func (a *ApiApiService) CreateDomainuser(ctx _context.Context) ApiCreateDomainuserRequest { +func (a *ApiApiService) CreateDomainuser(ctx context.Context) ApiCreateDomainuserRequest { return ApiCreateDomainuserRequest{ ApiService: a, ctx: ctx, @@ -1146,24 +1146,24 @@ func (a *ApiApiService) CreateDomainuser(ctx _context.Context) ApiCreateDomainus // Execute executes the request // @return Domainuser -func (a *ApiApiService) CreateDomainuserExecute(r ApiCreateDomainuserRequest) (Domainuser, *_nethttp.Response, error) { +func (a *ApiApiService) CreateDomainuserExecute(r ApiCreateDomainuserRequest) (*Domainuser, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodPost + localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue Domainuser + localVarReturnValue *Domainuser ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.CreateDomainuser") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/domainuser/" localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} @@ -1194,15 +1194,15 @@ func (a *ApiApiService) CreateDomainuserExecute(r ApiCreateDomainuserRequest) (D return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -1211,7 +1211,7 @@ func (a *ApiApiService) CreateDomainuserExecute(r ApiCreateDomainuserRequest) (D err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -1222,7 +1222,7 @@ func (a *ApiApiService) CreateDomainuserExecute(r ApiCreateDomainuserRequest) (D } type ApiCreateHeadlineRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService headline *Headline } @@ -1232,7 +1232,7 @@ func (r ApiCreateHeadlineRequest) Headline(headline Headline) ApiCreateHeadlineR return r } -func (r ApiCreateHeadlineRequest) Execute() (Headline, *_nethttp.Response, error) { +func (r ApiCreateHeadlineRequest) Execute() (*Headline, *http.Response, error) { return r.ApiService.CreateHeadlineExecute(r) } @@ -1241,10 +1241,10 @@ CreateHeadline Method for CreateHeadline all objects, allowed: GET + POST - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiCreateHeadlineRequest */ -func (a *ApiApiService) CreateHeadline(ctx _context.Context) ApiCreateHeadlineRequest { +func (a *ApiApiService) CreateHeadline(ctx context.Context) ApiCreateHeadlineRequest { return ApiCreateHeadlineRequest{ ApiService: a, ctx: ctx, @@ -1253,24 +1253,24 @@ func (a *ApiApiService) CreateHeadline(ctx _context.Context) ApiCreateHeadlineRe // Execute executes the request // @return Headline -func (a *ApiApiService) CreateHeadlineExecute(r ApiCreateHeadlineRequest) (Headline, *_nethttp.Response, error) { +func (a *ApiApiService) CreateHeadlineExecute(r ApiCreateHeadlineRequest) (*Headline, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodPost + localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue Headline + localVarReturnValue *Headline ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.CreateHeadline") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/headline/" localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} @@ -1301,15 +1301,15 @@ func (a *ApiApiService) CreateHeadlineExecute(r ApiCreateHeadlineRequest) (Headl return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -1318,7 +1318,7 @@ func (a *ApiApiService) CreateHeadlineExecute(r ApiCreateHeadlineRequest) (Headl err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -1329,7 +1329,7 @@ func (a *ApiApiService) CreateHeadlineExecute(r ApiCreateHeadlineRequest) (Headl } type ApiCreateIpRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService ip *Ip } @@ -1339,7 +1339,7 @@ func (r ApiCreateIpRequest) Ip(ip Ip) ApiCreateIpRequest { return r } -func (r ApiCreateIpRequest) Execute() (Ip, *_nethttp.Response, error) { +func (r ApiCreateIpRequest) Execute() (*Ip, *http.Response, error) { return r.ApiService.CreateIpExecute(r) } @@ -1348,10 +1348,10 @@ CreateIp Method for CreateIp all objects, allowed: GET + POST - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiCreateIpRequest */ -func (a *ApiApiService) CreateIp(ctx _context.Context) ApiCreateIpRequest { +func (a *ApiApiService) CreateIp(ctx context.Context) ApiCreateIpRequest { return ApiCreateIpRequest{ ApiService: a, ctx: ctx, @@ -1360,24 +1360,24 @@ func (a *ApiApiService) CreateIp(ctx _context.Context) ApiCreateIpRequest { // Execute executes the request // @return Ip -func (a *ApiApiService) CreateIpExecute(r ApiCreateIpRequest) (Ip, *_nethttp.Response, error) { +func (a *ApiApiService) CreateIpExecute(r ApiCreateIpRequest) (*Ip, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodPost + localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue Ip + localVarReturnValue *Ip ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.CreateIp") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/ip/" localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} @@ -1408,15 +1408,15 @@ func (a *ApiApiService) CreateIpExecute(r ApiCreateIpRequest) (Ip, *_nethttp.Res return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -1425,7 +1425,7 @@ func (a *ApiApiService) CreateIpExecute(r ApiCreateIpRequest) (Ip, *_nethttp.Res err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -1436,7 +1436,7 @@ func (a *ApiApiService) CreateIpExecute(r ApiCreateIpRequest) (Ip, *_nethttp.Res } type ApiCreateLocationRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService location *Location } @@ -1446,7 +1446,7 @@ func (r ApiCreateLocationRequest) Location(location Location) ApiCreateLocationR return r } -func (r ApiCreateLocationRequest) Execute() (Location, *_nethttp.Response, error) { +func (r ApiCreateLocationRequest) Execute() (*Location, *http.Response, error) { return r.ApiService.CreateLocationExecute(r) } @@ -1455,10 +1455,10 @@ CreateLocation Method for CreateLocation all objects, allowed: GET + POST - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiCreateLocationRequest */ -func (a *ApiApiService) CreateLocation(ctx _context.Context) ApiCreateLocationRequest { +func (a *ApiApiService) CreateLocation(ctx context.Context) ApiCreateLocationRequest { return ApiCreateLocationRequest{ ApiService: a, ctx: ctx, @@ -1467,24 +1467,24 @@ func (a *ApiApiService) CreateLocation(ctx _context.Context) ApiCreateLocationRe // Execute executes the request // @return Location -func (a *ApiApiService) CreateLocationExecute(r ApiCreateLocationRequest) (Location, *_nethttp.Response, error) { +func (a *ApiApiService) CreateLocationExecute(r ApiCreateLocationRequest) (*Location, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodPost + localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue Location + localVarReturnValue *Location ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.CreateLocation") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/location/" localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} @@ -1515,15 +1515,15 @@ func (a *ApiApiService) CreateLocationExecute(r ApiCreateLocationRequest) (Locat return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -1532,7 +1532,7 @@ func (a *ApiApiService) CreateLocationExecute(r ApiCreateLocationRequest) (Locat err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -1543,7 +1543,7 @@ func (a *ApiApiService) CreateLocationExecute(r ApiCreateLocationRequest) (Locat } type ApiCreateNoteRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService note *Note } @@ -1553,7 +1553,7 @@ func (r ApiCreateNoteRequest) Note(note Note) ApiCreateNoteRequest { return r } -func (r ApiCreateNoteRequest) Execute() (Note, *_nethttp.Response, error) { +func (r ApiCreateNoteRequest) Execute() (*Note, *http.Response, error) { return r.ApiService.CreateNoteExecute(r) } @@ -1562,10 +1562,10 @@ CreateNote Method for CreateNote all objects, allowed: GET + POST - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiCreateNoteRequest */ -func (a *ApiApiService) CreateNote(ctx _context.Context) ApiCreateNoteRequest { +func (a *ApiApiService) CreateNote(ctx context.Context) ApiCreateNoteRequest { return ApiCreateNoteRequest{ ApiService: a, ctx: ctx, @@ -1574,24 +1574,24 @@ func (a *ApiApiService) CreateNote(ctx _context.Context) ApiCreateNoteRequest { // Execute executes the request // @return Note -func (a *ApiApiService) CreateNoteExecute(r ApiCreateNoteRequest) (Note, *_nethttp.Response, error) { +func (a *ApiApiService) CreateNoteExecute(r ApiCreateNoteRequest) (*Note, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodPost + localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue Note + localVarReturnValue *Note ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.CreateNote") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/note/" localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} @@ -1622,15 +1622,15 @@ func (a *ApiApiService) CreateNoteExecute(r ApiCreateNoteRequest) (Note, *_netht return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -1639,7 +1639,7 @@ func (a *ApiApiService) CreateNoteExecute(r ApiCreateNoteRequest) (Note, *_netht err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -1650,7 +1650,7 @@ func (a *ApiApiService) CreateNoteExecute(r ApiCreateNoteRequest) (Note, *_netht } type ApiCreateOsRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService os *Os } @@ -1660,7 +1660,7 @@ func (r ApiCreateOsRequest) Os(os Os) ApiCreateOsRequest { return r } -func (r ApiCreateOsRequest) Execute() (Os, *_nethttp.Response, error) { +func (r ApiCreateOsRequest) Execute() (*Os, *http.Response, error) { return r.ApiService.CreateOsExecute(r) } @@ -1669,10 +1669,10 @@ CreateOs Method for CreateOs all objects, allowed: GET + POST - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiCreateOsRequest */ -func (a *ApiApiService) CreateOs(ctx _context.Context) ApiCreateOsRequest { +func (a *ApiApiService) CreateOs(ctx context.Context) ApiCreateOsRequest { return ApiCreateOsRequest{ ApiService: a, ctx: ctx, @@ -1681,24 +1681,24 @@ func (a *ApiApiService) CreateOs(ctx _context.Context) ApiCreateOsRequest { // Execute executes the request // @return Os -func (a *ApiApiService) CreateOsExecute(r ApiCreateOsRequest) (Os, *_nethttp.Response, error) { +func (a *ApiApiService) CreateOsExecute(r ApiCreateOsRequest) (*Os, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodPost + localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue Os + localVarReturnValue *Os ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.CreateOs") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/os/" localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} @@ -1729,15 +1729,15 @@ func (a *ApiApiService) CreateOsExecute(r ApiCreateOsRequest) (Os, *_nethttp.Res return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -1746,7 +1746,7 @@ func (a *ApiApiService) CreateOsExecute(r ApiCreateOsRequest) (Os, *_nethttp.Res err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -1757,7 +1757,7 @@ func (a *ApiApiService) CreateOsExecute(r ApiCreateOsRequest) (Os, *_nethttp.Res } type ApiCreateOsarchRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService osarch *Osarch } @@ -1767,7 +1767,7 @@ func (r ApiCreateOsarchRequest) Osarch(osarch Osarch) ApiCreateOsarchRequest { return r } -func (r ApiCreateOsarchRequest) Execute() (Osarch, *_nethttp.Response, error) { +func (r ApiCreateOsarchRequest) Execute() (*Osarch, *http.Response, error) { return r.ApiService.CreateOsarchExecute(r) } @@ -1776,10 +1776,10 @@ CreateOsarch Method for CreateOsarch all objects, allowed: GET + POST - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiCreateOsarchRequest */ -func (a *ApiApiService) CreateOsarch(ctx _context.Context) ApiCreateOsarchRequest { +func (a *ApiApiService) CreateOsarch(ctx context.Context) ApiCreateOsarchRequest { return ApiCreateOsarchRequest{ ApiService: a, ctx: ctx, @@ -1788,24 +1788,24 @@ func (a *ApiApiService) CreateOsarch(ctx _context.Context) ApiCreateOsarchReques // Execute executes the request // @return Osarch -func (a *ApiApiService) CreateOsarchExecute(r ApiCreateOsarchRequest) (Osarch, *_nethttp.Response, error) { +func (a *ApiApiService) CreateOsarchExecute(r ApiCreateOsarchRequest) (*Osarch, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodPost + localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue Osarch + localVarReturnValue *Osarch ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.CreateOsarch") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/osarch/" localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} @@ -1836,15 +1836,15 @@ func (a *ApiApiService) CreateOsarchExecute(r ApiCreateOsarchRequest) (Osarch, * return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -1853,7 +1853,7 @@ func (a *ApiApiService) CreateOsarchExecute(r ApiCreateOsarchRequest) (Osarch, * err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -1864,7 +1864,7 @@ func (a *ApiApiService) CreateOsarchExecute(r ApiCreateOsarchRequest) (Osarch, * } type ApiCreateReasonRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService reason *Reason } @@ -1874,7 +1874,7 @@ func (r ApiCreateReasonRequest) Reason(reason Reason) ApiCreateReasonRequest { return r } -func (r ApiCreateReasonRequest) Execute() (Reason, *_nethttp.Response, error) { +func (r ApiCreateReasonRequest) Execute() (*Reason, *http.Response, error) { return r.ApiService.CreateReasonExecute(r) } @@ -1883,10 +1883,10 @@ CreateReason Method for CreateReason all objects, allowed: GET + POST - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiCreateReasonRequest */ -func (a *ApiApiService) CreateReason(ctx _context.Context) ApiCreateReasonRequest { +func (a *ApiApiService) CreateReason(ctx context.Context) ApiCreateReasonRequest { return ApiCreateReasonRequest{ ApiService: a, ctx: ctx, @@ -1895,24 +1895,24 @@ func (a *ApiApiService) CreateReason(ctx _context.Context) ApiCreateReasonReques // Execute executes the request // @return Reason -func (a *ApiApiService) CreateReasonExecute(r ApiCreateReasonRequest) (Reason, *_nethttp.Response, error) { +func (a *ApiApiService) CreateReasonExecute(r ApiCreateReasonRequest) (*Reason, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodPost + localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue Reason + localVarReturnValue *Reason ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.CreateReason") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/reason/" localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} @@ -1943,15 +1943,15 @@ func (a *ApiApiService) CreateReasonExecute(r ApiCreateReasonRequest) (Reason, * return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -1960,7 +1960,7 @@ func (a *ApiApiService) CreateReasonExecute(r ApiCreateReasonRequest) (Reason, * err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -1971,7 +1971,7 @@ func (a *ApiApiService) CreateReasonExecute(r ApiCreateReasonRequest) (Reason, * } type ApiCreateRecommendationRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService recommendation *Recommendation } @@ -1981,7 +1981,7 @@ func (r ApiCreateRecommendationRequest) Recommendation(recommendation Recommenda return r } -func (r ApiCreateRecommendationRequest) Execute() (Recommendation, *_nethttp.Response, error) { +func (r ApiCreateRecommendationRequest) Execute() (*Recommendation, *http.Response, error) { return r.ApiService.CreateRecommendationExecute(r) } @@ -1990,10 +1990,10 @@ CreateRecommendation Method for CreateRecommendation all objects, allowed: GET + POST - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiCreateRecommendationRequest */ -func (a *ApiApiService) CreateRecommendation(ctx _context.Context) ApiCreateRecommendationRequest { +func (a *ApiApiService) CreateRecommendation(ctx context.Context) ApiCreateRecommendationRequest { return ApiCreateRecommendationRequest{ ApiService: a, ctx: ctx, @@ -2002,24 +2002,24 @@ func (a *ApiApiService) CreateRecommendation(ctx _context.Context) ApiCreateReco // Execute executes the request // @return Recommendation -func (a *ApiApiService) CreateRecommendationExecute(r ApiCreateRecommendationRequest) (Recommendation, *_nethttp.Response, error) { +func (a *ApiApiService) CreateRecommendationExecute(r ApiCreateRecommendationRequest) (*Recommendation, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodPost + localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue Recommendation + localVarReturnValue *Recommendation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.CreateRecommendation") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/recommendation/" localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} @@ -2050,15 +2050,15 @@ func (a *ApiApiService) CreateRecommendationExecute(r ApiCreateRecommendationReq return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -2067,7 +2067,7 @@ func (a *ApiApiService) CreateRecommendationExecute(r ApiCreateRecommendationReq err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -2078,7 +2078,7 @@ func (a *ApiApiService) CreateRecommendationExecute(r ApiCreateRecommendationReq } type ApiCreateReportitemRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService reportitem *Reportitem } @@ -2088,7 +2088,7 @@ func (r ApiCreateReportitemRequest) Reportitem(reportitem Reportitem) ApiCreateR return r } -func (r ApiCreateReportitemRequest) Execute() (Reportitem, *_nethttp.Response, error) { +func (r ApiCreateReportitemRequest) Execute() (*Reportitem, *http.Response, error) { return r.ApiService.CreateReportitemExecute(r) } @@ -2097,10 +2097,10 @@ CreateReportitem Method for CreateReportitem all objects, allowed: GET + POST - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiCreateReportitemRequest */ -func (a *ApiApiService) CreateReportitem(ctx _context.Context) ApiCreateReportitemRequest { +func (a *ApiApiService) CreateReportitem(ctx context.Context) ApiCreateReportitemRequest { return ApiCreateReportitemRequest{ ApiService: a, ctx: ctx, @@ -2109,24 +2109,24 @@ func (a *ApiApiService) CreateReportitem(ctx _context.Context) ApiCreateReportit // Execute executes the request // @return Reportitem -func (a *ApiApiService) CreateReportitemExecute(r ApiCreateReportitemRequest) (Reportitem, *_nethttp.Response, error) { +func (a *ApiApiService) CreateReportitemExecute(r ApiCreateReportitemRequest) (*Reportitem, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodPost + localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue Reportitem + localVarReturnValue *Reportitem ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.CreateReportitem") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/reportitem/" localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} @@ -2157,15 +2157,15 @@ func (a *ApiApiService) CreateReportitemExecute(r ApiCreateReportitemRequest) (R return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -2174,7 +2174,7 @@ func (a *ApiApiService) CreateReportitemExecute(r ApiCreateReportitemRequest) (R err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -2185,7 +2185,7 @@ func (a *ApiApiService) CreateReportitemExecute(r ApiCreateReportitemRequest) (R } type ApiCreateServiceproviderRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService serviceprovider *Serviceprovider } @@ -2195,7 +2195,7 @@ func (r ApiCreateServiceproviderRequest) Serviceprovider(serviceprovider Service return r } -func (r ApiCreateServiceproviderRequest) Execute() (Serviceprovider, *_nethttp.Response, error) { +func (r ApiCreateServiceproviderRequest) Execute() (*Serviceprovider, *http.Response, error) { return r.ApiService.CreateServiceproviderExecute(r) } @@ -2204,10 +2204,10 @@ CreateServiceprovider Method for CreateServiceprovider all objects, allowed: GET + POST - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiCreateServiceproviderRequest */ -func (a *ApiApiService) CreateServiceprovider(ctx _context.Context) ApiCreateServiceproviderRequest { +func (a *ApiApiService) CreateServiceprovider(ctx context.Context) ApiCreateServiceproviderRequest { return ApiCreateServiceproviderRequest{ ApiService: a, ctx: ctx, @@ -2216,24 +2216,24 @@ func (a *ApiApiService) CreateServiceprovider(ctx _context.Context) ApiCreateSer // Execute executes the request // @return Serviceprovider -func (a *ApiApiService) CreateServiceproviderExecute(r ApiCreateServiceproviderRequest) (Serviceprovider, *_nethttp.Response, error) { +func (a *ApiApiService) CreateServiceproviderExecute(r ApiCreateServiceproviderRequest) (*Serviceprovider, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodPost + localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue Serviceprovider + localVarReturnValue *Serviceprovider ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.CreateServiceprovider") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/serviceprovider/" localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} @@ -2264,15 +2264,15 @@ func (a *ApiApiService) CreateServiceproviderExecute(r ApiCreateServiceproviderR return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -2281,7 +2281,7 @@ func (a *ApiApiService) CreateServiceproviderExecute(r ApiCreateServiceproviderR err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -2292,7 +2292,7 @@ func (a *ApiApiService) CreateServiceproviderExecute(r ApiCreateServiceproviderR } type ApiCreateSystemRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService system *System } @@ -2302,7 +2302,7 @@ func (r ApiCreateSystemRequest) System(system System) ApiCreateSystemRequest { return r } -func (r ApiCreateSystemRequest) Execute() (System, *_nethttp.Response, error) { +func (r ApiCreateSystemRequest) Execute() (*System, *http.Response, error) { return r.ApiService.CreateSystemExecute(r) } @@ -2311,10 +2311,10 @@ CreateSystem Method for CreateSystem all objects, allowed: GET + POST - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiCreateSystemRequest */ -func (a *ApiApiService) CreateSystem(ctx _context.Context) ApiCreateSystemRequest { +func (a *ApiApiService) CreateSystem(ctx context.Context) ApiCreateSystemRequest { return ApiCreateSystemRequest{ ApiService: a, ctx: ctx, @@ -2323,24 +2323,24 @@ func (a *ApiApiService) CreateSystem(ctx _context.Context) ApiCreateSystemReques // Execute executes the request // @return System -func (a *ApiApiService) CreateSystemExecute(r ApiCreateSystemRequest) (System, *_nethttp.Response, error) { +func (a *ApiApiService) CreateSystemExecute(r ApiCreateSystemRequest) (*System, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodPost + localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue System + localVarReturnValue *System ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.CreateSystem") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/system/" localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} @@ -2371,15 +2371,15 @@ func (a *ApiApiService) CreateSystemExecute(r ApiCreateSystemRequest) (System, * return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -2388,7 +2388,7 @@ func (a *ApiApiService) CreateSystemExecute(r ApiCreateSystemRequest) (System, * err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -2399,7 +2399,7 @@ func (a *ApiApiService) CreateSystemExecute(r ApiCreateSystemRequest) (System, * } type ApiCreateSystemtypeRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService systemtype *Systemtype } @@ -2409,7 +2409,7 @@ func (r ApiCreateSystemtypeRequest) Systemtype(systemtype Systemtype) ApiCreateS return r } -func (r ApiCreateSystemtypeRequest) Execute() (Systemtype, *_nethttp.Response, error) { +func (r ApiCreateSystemtypeRequest) Execute() (*Systemtype, *http.Response, error) { return r.ApiService.CreateSystemtypeExecute(r) } @@ -2418,10 +2418,10 @@ CreateSystemtype Method for CreateSystemtype all objects, allowed: GET + POST - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiCreateSystemtypeRequest */ -func (a *ApiApiService) CreateSystemtype(ctx _context.Context) ApiCreateSystemtypeRequest { +func (a *ApiApiService) CreateSystemtype(ctx context.Context) ApiCreateSystemtypeRequest { return ApiCreateSystemtypeRequest{ ApiService: a, ctx: ctx, @@ -2430,24 +2430,24 @@ func (a *ApiApiService) CreateSystemtype(ctx _context.Context) ApiCreateSystemty // Execute executes the request // @return Systemtype -func (a *ApiApiService) CreateSystemtypeExecute(r ApiCreateSystemtypeRequest) (Systemtype, *_nethttp.Response, error) { +func (a *ApiApiService) CreateSystemtypeExecute(r ApiCreateSystemtypeRequest) (*Systemtype, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodPost + localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue Systemtype + localVarReturnValue *Systemtype ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.CreateSystemtype") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/systemtype/" localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} @@ -2478,15 +2478,15 @@ func (a *ApiApiService) CreateSystemtypeExecute(r ApiCreateSystemtypeRequest) (S return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -2495,7 +2495,7 @@ func (a *ApiApiService) CreateSystemtypeExecute(r ApiCreateSystemtypeRequest) (S err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -2506,7 +2506,7 @@ func (a *ApiApiService) CreateSystemtypeExecute(r ApiCreateSystemtypeRequest) (S } type ApiCreateSystemuserRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService systemuser *Systemuser } @@ -2516,7 +2516,7 @@ func (r ApiCreateSystemuserRequest) Systemuser(systemuser Systemuser) ApiCreateS return r } -func (r ApiCreateSystemuserRequest) Execute() (Systemuser, *_nethttp.Response, error) { +func (r ApiCreateSystemuserRequest) Execute() (*Systemuser, *http.Response, error) { return r.ApiService.CreateSystemuserExecute(r) } @@ -2525,10 +2525,10 @@ CreateSystemuser Method for CreateSystemuser all objects, allowed: GET + POST - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiCreateSystemuserRequest */ -func (a *ApiApiService) CreateSystemuser(ctx _context.Context) ApiCreateSystemuserRequest { +func (a *ApiApiService) CreateSystemuser(ctx context.Context) ApiCreateSystemuserRequest { return ApiCreateSystemuserRequest{ ApiService: a, ctx: ctx, @@ -2537,24 +2537,24 @@ func (a *ApiApiService) CreateSystemuser(ctx _context.Context) ApiCreateSystemus // Execute executes the request // @return Systemuser -func (a *ApiApiService) CreateSystemuserExecute(r ApiCreateSystemuserRequest) (Systemuser, *_nethttp.Response, error) { +func (a *ApiApiService) CreateSystemuserExecute(r ApiCreateSystemuserRequest) (*Systemuser, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodPost + localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue Systemuser + localVarReturnValue *Systemuser ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.CreateSystemuser") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/systemuser/" localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} @@ -2585,15 +2585,15 @@ func (a *ApiApiService) CreateSystemuserExecute(r ApiCreateSystemuserRequest) (S return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -2602,7 +2602,7 @@ func (a *ApiApiService) CreateSystemuserExecute(r ApiCreateSystemuserRequest) (S err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -2613,7 +2613,7 @@ func (a *ApiApiService) CreateSystemuserExecute(r ApiCreateSystemuserRequest) (S } type ApiCreateTagRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService tag *Tag } @@ -2623,7 +2623,7 @@ func (r ApiCreateTagRequest) Tag(tag Tag) ApiCreateTagRequest { return r } -func (r ApiCreateTagRequest) Execute() (Tag, *_nethttp.Response, error) { +func (r ApiCreateTagRequest) Execute() (*Tag, *http.Response, error) { return r.ApiService.CreateTagExecute(r) } @@ -2632,10 +2632,10 @@ CreateTag Method for CreateTag all objects, allowed: GET + POST - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiCreateTagRequest */ -func (a *ApiApiService) CreateTag(ctx _context.Context) ApiCreateTagRequest { +func (a *ApiApiService) CreateTag(ctx context.Context) ApiCreateTagRequest { return ApiCreateTagRequest{ ApiService: a, ctx: ctx, @@ -2644,24 +2644,24 @@ func (a *ApiApiService) CreateTag(ctx _context.Context) ApiCreateTagRequest { // Execute executes the request // @return Tag -func (a *ApiApiService) CreateTagExecute(r ApiCreateTagRequest) (Tag, *_nethttp.Response, error) { +func (a *ApiApiService) CreateTagExecute(r ApiCreateTagRequest) (*Tag, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodPost + localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue Tag + localVarReturnValue *Tag ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.CreateTag") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/tag/" localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} @@ -2692,15 +2692,15 @@ func (a *ApiApiService) CreateTagExecute(r ApiCreateTagRequest) (Tag, *_nethttp. return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -2709,7 +2709,7 @@ func (a *ApiApiService) CreateTagExecute(r ApiCreateTagRequest) (Tag, *_nethttp. err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -2720,7 +2720,7 @@ func (a *ApiApiService) CreateTagExecute(r ApiCreateTagRequest) (Tag, *_nethttp. } type ApiCreateTaskRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService task *Task } @@ -2730,7 +2730,7 @@ func (r ApiCreateTaskRequest) Task(task Task) ApiCreateTaskRequest { return r } -func (r ApiCreateTaskRequest) Execute() (Task, *_nethttp.Response, error) { +func (r ApiCreateTaskRequest) Execute() (*Task, *http.Response, error) { return r.ApiService.CreateTaskExecute(r) } @@ -2739,10 +2739,10 @@ CreateTask Method for CreateTask all objects, allowed: GET + POST - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiCreateTaskRequest */ -func (a *ApiApiService) CreateTask(ctx _context.Context) ApiCreateTaskRequest { +func (a *ApiApiService) CreateTask(ctx context.Context) ApiCreateTaskRequest { return ApiCreateTaskRequest{ ApiService: a, ctx: ctx, @@ -2751,24 +2751,24 @@ func (a *ApiApiService) CreateTask(ctx _context.Context) ApiCreateTaskRequest { // Execute executes the request // @return Task -func (a *ApiApiService) CreateTaskExecute(r ApiCreateTaskRequest) (Task, *_nethttp.Response, error) { +func (a *ApiApiService) CreateTaskExecute(r ApiCreateTaskRequest) (*Task, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodPost + localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue Task + localVarReturnValue *Task ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.CreateTask") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/task/" localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} @@ -2799,15 +2799,15 @@ func (a *ApiApiService) CreateTaskExecute(r ApiCreateTaskRequest) (Task, *_netht return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -2816,7 +2816,7 @@ func (a *ApiApiService) CreateTaskExecute(r ApiCreateTaskRequest) (Task, *_netht err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -2827,7 +2827,7 @@ func (a *ApiApiService) CreateTaskExecute(r ApiCreateTaskRequest) (Task, *_netht } type ApiCreateTasknameRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService taskname *Taskname } @@ -2837,7 +2837,7 @@ func (r ApiCreateTasknameRequest) Taskname(taskname Taskname) ApiCreateTasknameR return r } -func (r ApiCreateTasknameRequest) Execute() (Taskname, *_nethttp.Response, error) { +func (r ApiCreateTasknameRequest) Execute() (*Taskname, *http.Response, error) { return r.ApiService.CreateTasknameExecute(r) } @@ -2846,10 +2846,10 @@ CreateTaskname Method for CreateTaskname all objects, allowed: GET + POST - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiCreateTasknameRequest */ -func (a *ApiApiService) CreateTaskname(ctx _context.Context) ApiCreateTasknameRequest { +func (a *ApiApiService) CreateTaskname(ctx context.Context) ApiCreateTasknameRequest { return ApiCreateTasknameRequest{ ApiService: a, ctx: ctx, @@ -2858,24 +2858,24 @@ func (a *ApiApiService) CreateTaskname(ctx _context.Context) ApiCreateTasknameRe // Execute executes the request // @return Taskname -func (a *ApiApiService) CreateTasknameExecute(r ApiCreateTasknameRequest) (Taskname, *_nethttp.Response, error) { +func (a *ApiApiService) CreateTasknameExecute(r ApiCreateTasknameRequest) (*Taskname, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodPost + localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue Taskname + localVarReturnValue *Taskname ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.CreateTaskname") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/taskname/" localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} @@ -2906,15 +2906,15 @@ func (a *ApiApiService) CreateTasknameExecute(r ApiCreateTasknameRequest) (Taskn return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -2923,7 +2923,7 @@ func (a *ApiApiService) CreateTasknameExecute(r ApiCreateTasknameRequest) (Taskn err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -2934,12 +2934,12 @@ func (a *ApiApiService) CreateTasknameExecute(r ApiCreateTasknameRequest) (Taskn } type ApiListAnalysisstatusRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService } -func (r ApiListAnalysisstatusRequest) Execute() ([]Analysisstatus, *_nethttp.Response, error) { +func (r ApiListAnalysisstatusRequest) Execute() ([]Analysisstatus, *http.Response, error) { return r.ApiService.ListAnalysisstatusExecute(r) } @@ -2948,10 +2948,10 @@ ListAnalysisstatus Method for ListAnalysisstatus all objects, allowed: GET - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiListAnalysisstatusRequest */ -func (a *ApiApiService) ListAnalysisstatus(ctx _context.Context) ApiListAnalysisstatusRequest { +func (a *ApiApiService) ListAnalysisstatus(ctx context.Context) ApiListAnalysisstatusRequest { return ApiListAnalysisstatusRequest{ ApiService: a, ctx: ctx, @@ -2960,9 +2960,9 @@ func (a *ApiApiService) ListAnalysisstatus(ctx _context.Context) ApiListAnalysis // Execute executes the request // @return []Analysisstatus -func (a *ApiApiService) ListAnalysisstatusExecute(r ApiListAnalysisstatusRequest) ([]Analysisstatus, *_nethttp.Response, error) { +func (a *ApiApiService) ListAnalysisstatusExecute(r ApiListAnalysisstatusRequest) ([]Analysisstatus, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodGet + localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile localVarReturnValue []Analysisstatus @@ -2970,14 +2970,14 @@ func (a *ApiApiService) ListAnalysisstatusExecute(r ApiListAnalysisstatusRequest localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.ListAnalysisstatus") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/analysisstatus/" localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -3006,15 +3006,15 @@ func (a *ApiApiService) ListAnalysisstatusExecute(r ApiListAnalysisstatusRequest return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -3023,7 +3023,7 @@ func (a *ApiApiService) ListAnalysisstatusExecute(r ApiListAnalysisstatusRequest err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -3034,12 +3034,12 @@ func (a *ApiApiService) ListAnalysisstatusExecute(r ApiListAnalysisstatusRequest } type ApiListArtifactprioritysRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService } -func (r ApiListArtifactprioritysRequest) Execute() ([]Artifactpriority, *_nethttp.Response, error) { +func (r ApiListArtifactprioritysRequest) Execute() ([]Artifactpriority, *http.Response, error) { return r.ApiService.ListArtifactprioritysExecute(r) } @@ -3048,10 +3048,10 @@ ListArtifactprioritys Method for ListArtifactprioritys all objects, allowed: GET - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiListArtifactprioritysRequest */ -func (a *ApiApiService) ListArtifactprioritys(ctx _context.Context) ApiListArtifactprioritysRequest { +func (a *ApiApiService) ListArtifactprioritys(ctx context.Context) ApiListArtifactprioritysRequest { return ApiListArtifactprioritysRequest{ ApiService: a, ctx: ctx, @@ -3060,9 +3060,9 @@ func (a *ApiApiService) ListArtifactprioritys(ctx _context.Context) ApiListArtif // Execute executes the request // @return []Artifactpriority -func (a *ApiApiService) ListArtifactprioritysExecute(r ApiListArtifactprioritysRequest) ([]Artifactpriority, *_nethttp.Response, error) { +func (a *ApiApiService) ListArtifactprioritysExecute(r ApiListArtifactprioritysRequest) ([]Artifactpriority, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodGet + localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile localVarReturnValue []Artifactpriority @@ -3070,14 +3070,14 @@ func (a *ApiApiService) ListArtifactprioritysExecute(r ApiListArtifactprioritysR localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.ListArtifactprioritys") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/artifactpriority/" localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -3106,15 +3106,15 @@ func (a *ApiApiService) ListArtifactprioritysExecute(r ApiListArtifactprioritysR return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -3123,7 +3123,7 @@ func (a *ApiApiService) ListArtifactprioritysExecute(r ApiListArtifactprioritysR err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -3134,12 +3134,12 @@ func (a *ApiApiService) ListArtifactprioritysExecute(r ApiListArtifactprioritysR } type ApiListArtifactsRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService } -func (r ApiListArtifactsRequest) Execute() ([]Artifact, *_nethttp.Response, error) { +func (r ApiListArtifactsRequest) Execute() ([]Artifact, *http.Response, error) { return r.ApiService.ListArtifactsExecute(r) } @@ -3148,10 +3148,10 @@ ListArtifacts Method for ListArtifacts all objects, allowed: GET + POST - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiListArtifactsRequest */ -func (a *ApiApiService) ListArtifacts(ctx _context.Context) ApiListArtifactsRequest { +func (a *ApiApiService) ListArtifacts(ctx context.Context) ApiListArtifactsRequest { return ApiListArtifactsRequest{ ApiService: a, ctx: ctx, @@ -3160,9 +3160,9 @@ func (a *ApiApiService) ListArtifacts(ctx _context.Context) ApiListArtifactsRequ // Execute executes the request // @return []Artifact -func (a *ApiApiService) ListArtifactsExecute(r ApiListArtifactsRequest) ([]Artifact, *_nethttp.Response, error) { +func (a *ApiApiService) ListArtifactsExecute(r ApiListArtifactsRequest) ([]Artifact, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodGet + localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile localVarReturnValue []Artifact @@ -3170,14 +3170,14 @@ func (a *ApiApiService) ListArtifactsExecute(r ApiListArtifactsRequest) ([]Artif localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.ListArtifacts") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/artifact/" localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -3206,15 +3206,15 @@ func (a *ApiApiService) ListArtifactsExecute(r ApiListArtifactsRequest) ([]Artif return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -3223,7 +3223,7 @@ func (a *ApiApiService) ListArtifactsExecute(r ApiListArtifactsRequest) ([]Artif err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -3234,12 +3234,12 @@ func (a *ApiApiService) ListArtifactsExecute(r ApiListArtifactsRequest) ([]Artif } type ApiListArtifactstatusRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService } -func (r ApiListArtifactstatusRequest) Execute() ([]Artifactstatus, *_nethttp.Response, error) { +func (r ApiListArtifactstatusRequest) Execute() ([]Artifactstatus, *http.Response, error) { return r.ApiService.ListArtifactstatusExecute(r) } @@ -3248,10 +3248,10 @@ ListArtifactstatus Method for ListArtifactstatus all objects, allowed: GET - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiListArtifactstatusRequest */ -func (a *ApiApiService) ListArtifactstatus(ctx _context.Context) ApiListArtifactstatusRequest { +func (a *ApiApiService) ListArtifactstatus(ctx context.Context) ApiListArtifactstatusRequest { return ApiListArtifactstatusRequest{ ApiService: a, ctx: ctx, @@ -3260,9 +3260,9 @@ func (a *ApiApiService) ListArtifactstatus(ctx _context.Context) ApiListArtifact // Execute executes the request // @return []Artifactstatus -func (a *ApiApiService) ListArtifactstatusExecute(r ApiListArtifactstatusRequest) ([]Artifactstatus, *_nethttp.Response, error) { +func (a *ApiApiService) ListArtifactstatusExecute(r ApiListArtifactstatusRequest) ([]Artifactstatus, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodGet + localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile localVarReturnValue []Artifactstatus @@ -3270,14 +3270,14 @@ func (a *ApiApiService) ListArtifactstatusExecute(r ApiListArtifactstatusRequest localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.ListArtifactstatus") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/artifactstatus/" localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -3306,15 +3306,15 @@ func (a *ApiApiService) ListArtifactstatusExecute(r ApiListArtifactstatusRequest return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -3323,7 +3323,7 @@ func (a *ApiApiService) ListArtifactstatusExecute(r ApiListArtifactstatusRequest err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -3334,12 +3334,12 @@ func (a *ApiApiService) ListArtifactstatusExecute(r ApiListArtifactstatusRequest } type ApiListArtifacttypesRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService } -func (r ApiListArtifacttypesRequest) Execute() ([]Artifacttype, *_nethttp.Response, error) { +func (r ApiListArtifacttypesRequest) Execute() ([]Artifacttype, *http.Response, error) { return r.ApiService.ListArtifacttypesExecute(r) } @@ -3348,10 +3348,10 @@ ListArtifacttypes Method for ListArtifacttypes all objects, allowed: GET + POST - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiListArtifacttypesRequest */ -func (a *ApiApiService) ListArtifacttypes(ctx _context.Context) ApiListArtifacttypesRequest { +func (a *ApiApiService) ListArtifacttypes(ctx context.Context) ApiListArtifacttypesRequest { return ApiListArtifacttypesRequest{ ApiService: a, ctx: ctx, @@ -3360,9 +3360,9 @@ func (a *ApiApiService) ListArtifacttypes(ctx _context.Context) ApiListArtifactt // Execute executes the request // @return []Artifacttype -func (a *ApiApiService) ListArtifacttypesExecute(r ApiListArtifacttypesRequest) ([]Artifacttype, *_nethttp.Response, error) { +func (a *ApiApiService) ListArtifacttypesExecute(r ApiListArtifacttypesRequest) ([]Artifacttype, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodGet + localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile localVarReturnValue []Artifacttype @@ -3370,14 +3370,14 @@ func (a *ApiApiService) ListArtifacttypesExecute(r ApiListArtifacttypesRequest) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.ListArtifacttypes") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/artifacttype/" localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -3406,15 +3406,15 @@ func (a *ApiApiService) ListArtifacttypesExecute(r ApiListArtifacttypesRequest) return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -3423,7 +3423,7 @@ func (a *ApiApiService) ListArtifacttypesExecute(r ApiListArtifacttypesRequest) err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -3434,12 +3434,12 @@ func (a *ApiApiService) ListArtifacttypesExecute(r ApiListArtifacttypesRequest) } type ApiListCaseprioritysRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService } -func (r ApiListCaseprioritysRequest) Execute() ([]Casepriority, *_nethttp.Response, error) { +func (r ApiListCaseprioritysRequest) Execute() ([]Casepriority, *http.Response, error) { return r.ApiService.ListCaseprioritysExecute(r) } @@ -3448,10 +3448,10 @@ ListCaseprioritys Method for ListCaseprioritys all objects, allowed: GET - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiListCaseprioritysRequest */ -func (a *ApiApiService) ListCaseprioritys(ctx _context.Context) ApiListCaseprioritysRequest { +func (a *ApiApiService) ListCaseprioritys(ctx context.Context) ApiListCaseprioritysRequest { return ApiListCaseprioritysRequest{ ApiService: a, ctx: ctx, @@ -3460,9 +3460,9 @@ func (a *ApiApiService) ListCaseprioritys(ctx _context.Context) ApiListCaseprior // Execute executes the request // @return []Casepriority -func (a *ApiApiService) ListCaseprioritysExecute(r ApiListCaseprioritysRequest) ([]Casepriority, *_nethttp.Response, error) { +func (a *ApiApiService) ListCaseprioritysExecute(r ApiListCaseprioritysRequest) ([]Casepriority, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodGet + localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile localVarReturnValue []Casepriority @@ -3470,14 +3470,14 @@ func (a *ApiApiService) ListCaseprioritysExecute(r ApiListCaseprioritysRequest) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.ListCaseprioritys") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/casepriority/" localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -3506,15 +3506,15 @@ func (a *ApiApiService) ListCaseprioritysExecute(r ApiListCaseprioritysRequest) return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -3523,7 +3523,7 @@ func (a *ApiApiService) ListCaseprioritysExecute(r ApiListCaseprioritysRequest) err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -3534,12 +3534,12 @@ func (a *ApiApiService) ListCaseprioritysExecute(r ApiListCaseprioritysRequest) } type ApiListCasesRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService } -func (r ApiListCasesRequest) Execute() ([]Case, *_nethttp.Response, error) { +func (r ApiListCasesRequest) Execute() ([]Case, *http.Response, error) { return r.ApiService.ListCasesExecute(r) } @@ -3548,10 +3548,10 @@ ListCases Method for ListCases all objects, allowed: GET + POST - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiListCasesRequest */ -func (a *ApiApiService) ListCases(ctx _context.Context) ApiListCasesRequest { +func (a *ApiApiService) ListCases(ctx context.Context) ApiListCasesRequest { return ApiListCasesRequest{ ApiService: a, ctx: ctx, @@ -3560,9 +3560,9 @@ func (a *ApiApiService) ListCases(ctx _context.Context) ApiListCasesRequest { // Execute executes the request // @return []Case -func (a *ApiApiService) ListCasesExecute(r ApiListCasesRequest) ([]Case, *_nethttp.Response, error) { +func (a *ApiApiService) ListCasesExecute(r ApiListCasesRequest) ([]Case, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodGet + localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile localVarReturnValue []Case @@ -3570,14 +3570,14 @@ func (a *ApiApiService) ListCasesExecute(r ApiListCasesRequest) ([]Case, *_netht localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.ListCases") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/case/" localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -3606,15 +3606,15 @@ func (a *ApiApiService) ListCasesExecute(r ApiListCasesRequest) ([]Case, *_netht return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -3623,7 +3623,7 @@ func (a *ApiApiService) ListCasesExecute(r ApiListCasesRequest) ([]Case, *_netht err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -3634,12 +3634,12 @@ func (a *ApiApiService) ListCasesExecute(r ApiListCasesRequest) ([]Case, *_netht } type ApiListCasestatusRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService } -func (r ApiListCasestatusRequest) Execute() ([]Casestatus, *_nethttp.Response, error) { +func (r ApiListCasestatusRequest) Execute() ([]Casestatus, *http.Response, error) { return r.ApiService.ListCasestatusExecute(r) } @@ -3648,10 +3648,10 @@ ListCasestatus Method for ListCasestatus all objects, allowed: GET - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiListCasestatusRequest */ -func (a *ApiApiService) ListCasestatus(ctx _context.Context) ApiListCasestatusRequest { +func (a *ApiApiService) ListCasestatus(ctx context.Context) ApiListCasestatusRequest { return ApiListCasestatusRequest{ ApiService: a, ctx: ctx, @@ -3660,9 +3660,9 @@ func (a *ApiApiService) ListCasestatus(ctx _context.Context) ApiListCasestatusRe // Execute executes the request // @return []Casestatus -func (a *ApiApiService) ListCasestatusExecute(r ApiListCasestatusRequest) ([]Casestatus, *_nethttp.Response, error) { +func (a *ApiApiService) ListCasestatusExecute(r ApiListCasestatusRequest) ([]Casestatus, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodGet + localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile localVarReturnValue []Casestatus @@ -3670,14 +3670,14 @@ func (a *ApiApiService) ListCasestatusExecute(r ApiListCasestatusRequest) ([]Cas localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.ListCasestatus") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/casestatus/" localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -3706,15 +3706,15 @@ func (a *ApiApiService) ListCasestatusExecute(r ApiListCasestatusRequest) ([]Cas return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -3723,7 +3723,7 @@ func (a *ApiApiService) ListCasestatusExecute(r ApiListCasestatusRequest) ([]Cas err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -3734,12 +3734,12 @@ func (a *ApiApiService) ListCasestatusExecute(r ApiListCasestatusRequest) ([]Cas } type ApiListCasetypesRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService } -func (r ApiListCasetypesRequest) Execute() ([]Casetype, *_nethttp.Response, error) { +func (r ApiListCasetypesRequest) Execute() ([]Casetype, *http.Response, error) { return r.ApiService.ListCasetypesExecute(r) } @@ -3748,10 +3748,10 @@ ListCasetypes Method for ListCasetypes all objects, allowed: GET + POST - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiListCasetypesRequest */ -func (a *ApiApiService) ListCasetypes(ctx _context.Context) ApiListCasetypesRequest { +func (a *ApiApiService) ListCasetypes(ctx context.Context) ApiListCasetypesRequest { return ApiListCasetypesRequest{ ApiService: a, ctx: ctx, @@ -3760,9 +3760,9 @@ func (a *ApiApiService) ListCasetypes(ctx _context.Context) ApiListCasetypesRequ // Execute executes the request // @return []Casetype -func (a *ApiApiService) ListCasetypesExecute(r ApiListCasetypesRequest) ([]Casetype, *_nethttp.Response, error) { +func (a *ApiApiService) ListCasetypesExecute(r ApiListCasetypesRequest) ([]Casetype, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodGet + localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile localVarReturnValue []Casetype @@ -3770,14 +3770,14 @@ func (a *ApiApiService) ListCasetypesExecute(r ApiListCasetypesRequest) ([]Caset localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.ListCasetypes") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/casetype/" localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -3806,15 +3806,15 @@ func (a *ApiApiService) ListCasetypesExecute(r ApiListCasetypesRequest) ([]Caset return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -3823,7 +3823,7 @@ func (a *ApiApiService) ListCasetypesExecute(r ApiListCasetypesRequest) ([]Caset err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -3834,12 +3834,12 @@ func (a *ApiApiService) ListCasetypesExecute(r ApiListCasetypesRequest) ([]Caset } type ApiListCompanysRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService } -func (r ApiListCompanysRequest) Execute() ([]Company, *_nethttp.Response, error) { +func (r ApiListCompanysRequest) Execute() ([]Company, *http.Response, error) { return r.ApiService.ListCompanysExecute(r) } @@ -3848,10 +3848,10 @@ ListCompanys Method for ListCompanys all objects, allowed: GET + POST - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiListCompanysRequest */ -func (a *ApiApiService) ListCompanys(ctx _context.Context) ApiListCompanysRequest { +func (a *ApiApiService) ListCompanys(ctx context.Context) ApiListCompanysRequest { return ApiListCompanysRequest{ ApiService: a, ctx: ctx, @@ -3860,9 +3860,9 @@ func (a *ApiApiService) ListCompanys(ctx _context.Context) ApiListCompanysReques // Execute executes the request // @return []Company -func (a *ApiApiService) ListCompanysExecute(r ApiListCompanysRequest) ([]Company, *_nethttp.Response, error) { +func (a *ApiApiService) ListCompanysExecute(r ApiListCompanysRequest) ([]Company, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodGet + localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile localVarReturnValue []Company @@ -3870,14 +3870,14 @@ func (a *ApiApiService) ListCompanysExecute(r ApiListCompanysRequest) ([]Company localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.ListCompanys") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/company/" localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -3906,15 +3906,15 @@ func (a *ApiApiService) ListCompanysExecute(r ApiListCompanysRequest) ([]Company return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -3923,7 +3923,7 @@ func (a *ApiApiService) ListCompanysExecute(r ApiListCompanysRequest) ([]Company err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -3934,12 +3934,12 @@ func (a *ApiApiService) ListCompanysExecute(r ApiListCompanysRequest) ([]Company } type ApiListContactsRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService } -func (r ApiListContactsRequest) Execute() ([]Contact, *_nethttp.Response, error) { +func (r ApiListContactsRequest) Execute() ([]Contact, *http.Response, error) { return r.ApiService.ListContactsExecute(r) } @@ -3948,10 +3948,10 @@ ListContacts Method for ListContacts all objects, allowed: GET + POST - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiListContactsRequest */ -func (a *ApiApiService) ListContacts(ctx _context.Context) ApiListContactsRequest { +func (a *ApiApiService) ListContacts(ctx context.Context) ApiListContactsRequest { return ApiListContactsRequest{ ApiService: a, ctx: ctx, @@ -3960,9 +3960,9 @@ func (a *ApiApiService) ListContacts(ctx _context.Context) ApiListContactsReques // Execute executes the request // @return []Contact -func (a *ApiApiService) ListContactsExecute(r ApiListContactsRequest) ([]Contact, *_nethttp.Response, error) { +func (a *ApiApiService) ListContactsExecute(r ApiListContactsRequest) ([]Contact, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodGet + localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile localVarReturnValue []Contact @@ -3970,14 +3970,14 @@ func (a *ApiApiService) ListContactsExecute(r ApiListContactsRequest) ([]Contact localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.ListContacts") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/contact/" localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -4006,15 +4006,15 @@ func (a *ApiApiService) ListContactsExecute(r ApiListContactsRequest) ([]Contact return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -4023,7 +4023,7 @@ func (a *ApiApiService) ListContactsExecute(r ApiListContactsRequest) ([]Contact err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -4034,12 +4034,12 @@ func (a *ApiApiService) ListContactsExecute(r ApiListContactsRequest) ([]Contact } type ApiListDivisionsRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService } -func (r ApiListDivisionsRequest) Execute() ([]Division, *_nethttp.Response, error) { +func (r ApiListDivisionsRequest) Execute() ([]Division, *http.Response, error) { return r.ApiService.ListDivisionsExecute(r) } @@ -4048,10 +4048,10 @@ ListDivisions Method for ListDivisions all objects, allowed: GET + POST - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiListDivisionsRequest */ -func (a *ApiApiService) ListDivisions(ctx _context.Context) ApiListDivisionsRequest { +func (a *ApiApiService) ListDivisions(ctx context.Context) ApiListDivisionsRequest { return ApiListDivisionsRequest{ ApiService: a, ctx: ctx, @@ -4060,9 +4060,9 @@ func (a *ApiApiService) ListDivisions(ctx _context.Context) ApiListDivisionsRequ // Execute executes the request // @return []Division -func (a *ApiApiService) ListDivisionsExecute(r ApiListDivisionsRequest) ([]Division, *_nethttp.Response, error) { +func (a *ApiApiService) ListDivisionsExecute(r ApiListDivisionsRequest) ([]Division, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodGet + localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile localVarReturnValue []Division @@ -4070,14 +4070,14 @@ func (a *ApiApiService) ListDivisionsExecute(r ApiListDivisionsRequest) ([]Divis localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.ListDivisions") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/division/" localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -4106,15 +4106,15 @@ func (a *ApiApiService) ListDivisionsExecute(r ApiListDivisionsRequest) ([]Divis return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -4123,7 +4123,7 @@ func (a *ApiApiService) ListDivisionsExecute(r ApiListDivisionsRequest) ([]Divis err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -4134,12 +4134,12 @@ func (a *ApiApiService) ListDivisionsExecute(r ApiListDivisionsRequest) ([]Divis } type ApiListDnsnamesRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService } -func (r ApiListDnsnamesRequest) Execute() ([]Dnsname, *_nethttp.Response, error) { +func (r ApiListDnsnamesRequest) Execute() ([]Dnsname, *http.Response, error) { return r.ApiService.ListDnsnamesExecute(r) } @@ -4148,10 +4148,10 @@ ListDnsnames Method for ListDnsnames all objects, allowed: GET + POST - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiListDnsnamesRequest */ -func (a *ApiApiService) ListDnsnames(ctx _context.Context) ApiListDnsnamesRequest { +func (a *ApiApiService) ListDnsnames(ctx context.Context) ApiListDnsnamesRequest { return ApiListDnsnamesRequest{ ApiService: a, ctx: ctx, @@ -4160,9 +4160,9 @@ func (a *ApiApiService) ListDnsnames(ctx _context.Context) ApiListDnsnamesReques // Execute executes the request // @return []Dnsname -func (a *ApiApiService) ListDnsnamesExecute(r ApiListDnsnamesRequest) ([]Dnsname, *_nethttp.Response, error) { +func (a *ApiApiService) ListDnsnamesExecute(r ApiListDnsnamesRequest) ([]Dnsname, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodGet + localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile localVarReturnValue []Dnsname @@ -4170,14 +4170,14 @@ func (a *ApiApiService) ListDnsnamesExecute(r ApiListDnsnamesRequest) ([]Dnsname localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.ListDnsnames") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/dnsname/" localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -4206,15 +4206,15 @@ func (a *ApiApiService) ListDnsnamesExecute(r ApiListDnsnamesRequest) ([]Dnsname return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -4223,7 +4223,7 @@ func (a *ApiApiService) ListDnsnamesExecute(r ApiListDnsnamesRequest) ([]Dnsname err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -4234,12 +4234,12 @@ func (a *ApiApiService) ListDnsnamesExecute(r ApiListDnsnamesRequest) ([]Dnsname } type ApiListDomainsRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService } -func (r ApiListDomainsRequest) Execute() ([]Domain, *_nethttp.Response, error) { +func (r ApiListDomainsRequest) Execute() ([]Domain, *http.Response, error) { return r.ApiService.ListDomainsExecute(r) } @@ -4248,10 +4248,10 @@ ListDomains Method for ListDomains all objects, allowed: GET + POST - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiListDomainsRequest */ -func (a *ApiApiService) ListDomains(ctx _context.Context) ApiListDomainsRequest { +func (a *ApiApiService) ListDomains(ctx context.Context) ApiListDomainsRequest { return ApiListDomainsRequest{ ApiService: a, ctx: ctx, @@ -4260,9 +4260,9 @@ func (a *ApiApiService) ListDomains(ctx _context.Context) ApiListDomainsRequest // Execute executes the request // @return []Domain -func (a *ApiApiService) ListDomainsExecute(r ApiListDomainsRequest) ([]Domain, *_nethttp.Response, error) { +func (a *ApiApiService) ListDomainsExecute(r ApiListDomainsRequest) ([]Domain, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodGet + localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile localVarReturnValue []Domain @@ -4270,14 +4270,14 @@ func (a *ApiApiService) ListDomainsExecute(r ApiListDomainsRequest) ([]Domain, * localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.ListDomains") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/domain/" localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -4306,15 +4306,15 @@ func (a *ApiApiService) ListDomainsExecute(r ApiListDomainsRequest) ([]Domain, * return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -4323,7 +4323,7 @@ func (a *ApiApiService) ListDomainsExecute(r ApiListDomainsRequest) ([]Domain, * err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -4334,12 +4334,12 @@ func (a *ApiApiService) ListDomainsExecute(r ApiListDomainsRequest) ([]Domain, * } type ApiListDomainusersRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService } -func (r ApiListDomainusersRequest) Execute() ([]Domainuser, *_nethttp.Response, error) { +func (r ApiListDomainusersRequest) Execute() ([]Domainuser, *http.Response, error) { return r.ApiService.ListDomainusersExecute(r) } @@ -4348,10 +4348,10 @@ ListDomainusers Method for ListDomainusers all objects, allowed: GET + POST - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiListDomainusersRequest */ -func (a *ApiApiService) ListDomainusers(ctx _context.Context) ApiListDomainusersRequest { +func (a *ApiApiService) ListDomainusers(ctx context.Context) ApiListDomainusersRequest { return ApiListDomainusersRequest{ ApiService: a, ctx: ctx, @@ -4360,9 +4360,9 @@ func (a *ApiApiService) ListDomainusers(ctx _context.Context) ApiListDomainusers // Execute executes the request // @return []Domainuser -func (a *ApiApiService) ListDomainusersExecute(r ApiListDomainusersRequest) ([]Domainuser, *_nethttp.Response, error) { +func (a *ApiApiService) ListDomainusersExecute(r ApiListDomainusersRequest) ([]Domainuser, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodGet + localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile localVarReturnValue []Domainuser @@ -4370,14 +4370,14 @@ func (a *ApiApiService) ListDomainusersExecute(r ApiListDomainusersRequest) ([]D localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.ListDomainusers") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/domainuser/" localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -4406,15 +4406,15 @@ func (a *ApiApiService) ListDomainusersExecute(r ApiListDomainusersRequest) ([]D return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -4423,7 +4423,7 @@ func (a *ApiApiService) ListDomainusersExecute(r ApiListDomainusersRequest) ([]D err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -4434,12 +4434,12 @@ func (a *ApiApiService) ListDomainusersExecute(r ApiListDomainusersRequest) ([]D } type ApiListHeadlinesRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService } -func (r ApiListHeadlinesRequest) Execute() ([]Headline, *_nethttp.Response, error) { +func (r ApiListHeadlinesRequest) Execute() ([]Headline, *http.Response, error) { return r.ApiService.ListHeadlinesExecute(r) } @@ -4448,10 +4448,10 @@ ListHeadlines Method for ListHeadlines all objects, allowed: GET + POST - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiListHeadlinesRequest */ -func (a *ApiApiService) ListHeadlines(ctx _context.Context) ApiListHeadlinesRequest { +func (a *ApiApiService) ListHeadlines(ctx context.Context) ApiListHeadlinesRequest { return ApiListHeadlinesRequest{ ApiService: a, ctx: ctx, @@ -4460,9 +4460,9 @@ func (a *ApiApiService) ListHeadlines(ctx _context.Context) ApiListHeadlinesRequ // Execute executes the request // @return []Headline -func (a *ApiApiService) ListHeadlinesExecute(r ApiListHeadlinesRequest) ([]Headline, *_nethttp.Response, error) { +func (a *ApiApiService) ListHeadlinesExecute(r ApiListHeadlinesRequest) ([]Headline, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodGet + localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile localVarReturnValue []Headline @@ -4470,14 +4470,14 @@ func (a *ApiApiService) ListHeadlinesExecute(r ApiListHeadlinesRequest) ([]Headl localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.ListHeadlines") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/headline/" localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -4506,15 +4506,15 @@ func (a *ApiApiService) ListHeadlinesExecute(r ApiListHeadlinesRequest) ([]Headl return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -4523,7 +4523,7 @@ func (a *ApiApiService) ListHeadlinesExecute(r ApiListHeadlinesRequest) ([]Headl err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -4534,12 +4534,12 @@ func (a *ApiApiService) ListHeadlinesExecute(r ApiListHeadlinesRequest) ([]Headl } type ApiListIpsRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService } -func (r ApiListIpsRequest) Execute() ([]Ip, *_nethttp.Response, error) { +func (r ApiListIpsRequest) Execute() ([]Ip, *http.Response, error) { return r.ApiService.ListIpsExecute(r) } @@ -4548,10 +4548,10 @@ ListIps Method for ListIps all objects, allowed: GET + POST - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiListIpsRequest */ -func (a *ApiApiService) ListIps(ctx _context.Context) ApiListIpsRequest { +func (a *ApiApiService) ListIps(ctx context.Context) ApiListIpsRequest { return ApiListIpsRequest{ ApiService: a, ctx: ctx, @@ -4560,9 +4560,9 @@ func (a *ApiApiService) ListIps(ctx _context.Context) ApiListIpsRequest { // Execute executes the request // @return []Ip -func (a *ApiApiService) ListIpsExecute(r ApiListIpsRequest) ([]Ip, *_nethttp.Response, error) { +func (a *ApiApiService) ListIpsExecute(r ApiListIpsRequest) ([]Ip, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodGet + localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile localVarReturnValue []Ip @@ -4570,14 +4570,14 @@ func (a *ApiApiService) ListIpsExecute(r ApiListIpsRequest) ([]Ip, *_nethttp.Res localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.ListIps") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/ip/" localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -4606,15 +4606,15 @@ func (a *ApiApiService) ListIpsExecute(r ApiListIpsRequest) ([]Ip, *_nethttp.Res return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -4623,7 +4623,7 @@ func (a *ApiApiService) ListIpsExecute(r ApiListIpsRequest) ([]Ip, *_nethttp.Res err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -4634,12 +4634,12 @@ func (a *ApiApiService) ListIpsExecute(r ApiListIpsRequest) ([]Ip, *_nethttp.Res } type ApiListLocationsRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService } -func (r ApiListLocationsRequest) Execute() ([]Location, *_nethttp.Response, error) { +func (r ApiListLocationsRequest) Execute() ([]Location, *http.Response, error) { return r.ApiService.ListLocationsExecute(r) } @@ -4648,10 +4648,10 @@ ListLocations Method for ListLocations all objects, allowed: GET + POST - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiListLocationsRequest */ -func (a *ApiApiService) ListLocations(ctx _context.Context) ApiListLocationsRequest { +func (a *ApiApiService) ListLocations(ctx context.Context) ApiListLocationsRequest { return ApiListLocationsRequest{ ApiService: a, ctx: ctx, @@ -4660,9 +4660,9 @@ func (a *ApiApiService) ListLocations(ctx _context.Context) ApiListLocationsRequ // Execute executes the request // @return []Location -func (a *ApiApiService) ListLocationsExecute(r ApiListLocationsRequest) ([]Location, *_nethttp.Response, error) { +func (a *ApiApiService) ListLocationsExecute(r ApiListLocationsRequest) ([]Location, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodGet + localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile localVarReturnValue []Location @@ -4670,14 +4670,14 @@ func (a *ApiApiService) ListLocationsExecute(r ApiListLocationsRequest) ([]Locat localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.ListLocations") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/location/" localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -4706,15 +4706,15 @@ func (a *ApiApiService) ListLocationsExecute(r ApiListLocationsRequest) ([]Locat return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -4723,7 +4723,7 @@ func (a *ApiApiService) ListLocationsExecute(r ApiListLocationsRequest) ([]Locat err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -4734,12 +4734,12 @@ func (a *ApiApiService) ListLocationsExecute(r ApiListLocationsRequest) ([]Locat } type ApiListNotesRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService } -func (r ApiListNotesRequest) Execute() ([]Note, *_nethttp.Response, error) { +func (r ApiListNotesRequest) Execute() ([]Note, *http.Response, error) { return r.ApiService.ListNotesExecute(r) } @@ -4748,10 +4748,10 @@ ListNotes Method for ListNotes all objects, allowed: GET + POST - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiListNotesRequest */ -func (a *ApiApiService) ListNotes(ctx _context.Context) ApiListNotesRequest { +func (a *ApiApiService) ListNotes(ctx context.Context) ApiListNotesRequest { return ApiListNotesRequest{ ApiService: a, ctx: ctx, @@ -4760,9 +4760,9 @@ func (a *ApiApiService) ListNotes(ctx _context.Context) ApiListNotesRequest { // Execute executes the request // @return []Note -func (a *ApiApiService) ListNotesExecute(r ApiListNotesRequest) ([]Note, *_nethttp.Response, error) { +func (a *ApiApiService) ListNotesExecute(r ApiListNotesRequest) ([]Note, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodGet + localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile localVarReturnValue []Note @@ -4770,14 +4770,14 @@ func (a *ApiApiService) ListNotesExecute(r ApiListNotesRequest) ([]Note, *_netht localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.ListNotes") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/note/" localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -4806,15 +4806,15 @@ func (a *ApiApiService) ListNotesExecute(r ApiListNotesRequest) ([]Note, *_netht return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -4823,7 +4823,7 @@ func (a *ApiApiService) ListNotesExecute(r ApiListNotesRequest) ([]Note, *_netht err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -4834,12 +4834,12 @@ func (a *ApiApiService) ListNotesExecute(r ApiListNotesRequest) ([]Note, *_netht } type ApiListNotestatusRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService } -func (r ApiListNotestatusRequest) Execute() ([]Notestatus, *_nethttp.Response, error) { +func (r ApiListNotestatusRequest) Execute() ([]Notestatus, *http.Response, error) { return r.ApiService.ListNotestatusExecute(r) } @@ -4848,10 +4848,10 @@ ListNotestatus Method for ListNotestatus all objects, allowed: GET - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiListNotestatusRequest */ -func (a *ApiApiService) ListNotestatus(ctx _context.Context) ApiListNotestatusRequest { +func (a *ApiApiService) ListNotestatus(ctx context.Context) ApiListNotestatusRequest { return ApiListNotestatusRequest{ ApiService: a, ctx: ctx, @@ -4860,9 +4860,9 @@ func (a *ApiApiService) ListNotestatus(ctx _context.Context) ApiListNotestatusRe // Execute executes the request // @return []Notestatus -func (a *ApiApiService) ListNotestatusExecute(r ApiListNotestatusRequest) ([]Notestatus, *_nethttp.Response, error) { +func (a *ApiApiService) ListNotestatusExecute(r ApiListNotestatusRequest) ([]Notestatus, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodGet + localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile localVarReturnValue []Notestatus @@ -4870,14 +4870,14 @@ func (a *ApiApiService) ListNotestatusExecute(r ApiListNotestatusRequest) ([]Not localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.ListNotestatus") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/notestatus/" localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -4906,15 +4906,15 @@ func (a *ApiApiService) ListNotestatusExecute(r ApiListNotestatusRequest) ([]Not return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -4923,7 +4923,7 @@ func (a *ApiApiService) ListNotestatusExecute(r ApiListNotestatusRequest) ([]Not err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -4934,12 +4934,12 @@ func (a *ApiApiService) ListNotestatusExecute(r ApiListNotestatusRequest) ([]Not } type ApiListOsRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService } -func (r ApiListOsRequest) Execute() ([]Os, *_nethttp.Response, error) { +func (r ApiListOsRequest) Execute() ([]Os, *http.Response, error) { return r.ApiService.ListOsExecute(r) } @@ -4948,10 +4948,10 @@ ListOs Method for ListOs all objects, allowed: GET + POST - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiListOsRequest */ -func (a *ApiApiService) ListOs(ctx _context.Context) ApiListOsRequest { +func (a *ApiApiService) ListOs(ctx context.Context) ApiListOsRequest { return ApiListOsRequest{ ApiService: a, ctx: ctx, @@ -4960,9 +4960,9 @@ func (a *ApiApiService) ListOs(ctx _context.Context) ApiListOsRequest { // Execute executes the request // @return []Os -func (a *ApiApiService) ListOsExecute(r ApiListOsRequest) ([]Os, *_nethttp.Response, error) { +func (a *ApiApiService) ListOsExecute(r ApiListOsRequest) ([]Os, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodGet + localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile localVarReturnValue []Os @@ -4970,14 +4970,14 @@ func (a *ApiApiService) ListOsExecute(r ApiListOsRequest) ([]Os, *_nethttp.Respo localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.ListOs") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/os/" localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -5006,15 +5006,15 @@ func (a *ApiApiService) ListOsExecute(r ApiListOsRequest) ([]Os, *_nethttp.Respo return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -5023,7 +5023,7 @@ func (a *ApiApiService) ListOsExecute(r ApiListOsRequest) ([]Os, *_nethttp.Respo err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -5034,12 +5034,12 @@ func (a *ApiApiService) ListOsExecute(r ApiListOsRequest) ([]Os, *_nethttp.Respo } type ApiListOsarchsRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService } -func (r ApiListOsarchsRequest) Execute() ([]Osarch, *_nethttp.Response, error) { +func (r ApiListOsarchsRequest) Execute() ([]Osarch, *http.Response, error) { return r.ApiService.ListOsarchsExecute(r) } @@ -5048,10 +5048,10 @@ ListOsarchs Method for ListOsarchs all objects, allowed: GET + POST - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiListOsarchsRequest */ -func (a *ApiApiService) ListOsarchs(ctx _context.Context) ApiListOsarchsRequest { +func (a *ApiApiService) ListOsarchs(ctx context.Context) ApiListOsarchsRequest { return ApiListOsarchsRequest{ ApiService: a, ctx: ctx, @@ -5060,9 +5060,9 @@ func (a *ApiApiService) ListOsarchs(ctx _context.Context) ApiListOsarchsRequest // Execute executes the request // @return []Osarch -func (a *ApiApiService) ListOsarchsExecute(r ApiListOsarchsRequest) ([]Osarch, *_nethttp.Response, error) { +func (a *ApiApiService) ListOsarchsExecute(r ApiListOsarchsRequest) ([]Osarch, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodGet + localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile localVarReturnValue []Osarch @@ -5070,14 +5070,14 @@ func (a *ApiApiService) ListOsarchsExecute(r ApiListOsarchsRequest) ([]Osarch, * localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.ListOsarchs") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/osarch/" localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -5106,15 +5106,15 @@ func (a *ApiApiService) ListOsarchsExecute(r ApiListOsarchsRequest) ([]Osarch, * return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -5123,7 +5123,7 @@ func (a *ApiApiService) ListOsarchsExecute(r ApiListOsarchsRequest) ([]Osarch, * err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -5134,12 +5134,12 @@ func (a *ApiApiService) ListOsarchsExecute(r ApiListOsarchsRequest) ([]Osarch, * } type ApiListReasonsRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService } -func (r ApiListReasonsRequest) Execute() ([]Reason, *_nethttp.Response, error) { +func (r ApiListReasonsRequest) Execute() ([]Reason, *http.Response, error) { return r.ApiService.ListReasonsExecute(r) } @@ -5148,10 +5148,10 @@ ListReasons Method for ListReasons all objects, allowed: GET + POST - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiListReasonsRequest */ -func (a *ApiApiService) ListReasons(ctx _context.Context) ApiListReasonsRequest { +func (a *ApiApiService) ListReasons(ctx context.Context) ApiListReasonsRequest { return ApiListReasonsRequest{ ApiService: a, ctx: ctx, @@ -5160,9 +5160,9 @@ func (a *ApiApiService) ListReasons(ctx _context.Context) ApiListReasonsRequest // Execute executes the request // @return []Reason -func (a *ApiApiService) ListReasonsExecute(r ApiListReasonsRequest) ([]Reason, *_nethttp.Response, error) { +func (a *ApiApiService) ListReasonsExecute(r ApiListReasonsRequest) ([]Reason, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodGet + localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile localVarReturnValue []Reason @@ -5170,14 +5170,14 @@ func (a *ApiApiService) ListReasonsExecute(r ApiListReasonsRequest) ([]Reason, * localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.ListReasons") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/reason/" localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -5206,15 +5206,15 @@ func (a *ApiApiService) ListReasonsExecute(r ApiListReasonsRequest) ([]Reason, * return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -5223,7 +5223,7 @@ func (a *ApiApiService) ListReasonsExecute(r ApiListReasonsRequest) ([]Reason, * err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -5234,12 +5234,12 @@ func (a *ApiApiService) ListReasonsExecute(r ApiListReasonsRequest) ([]Reason, * } type ApiListRecommendationsRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService } -func (r ApiListRecommendationsRequest) Execute() ([]Recommendation, *_nethttp.Response, error) { +func (r ApiListRecommendationsRequest) Execute() ([]Recommendation, *http.Response, error) { return r.ApiService.ListRecommendationsExecute(r) } @@ -5248,10 +5248,10 @@ ListRecommendations Method for ListRecommendations all objects, allowed: GET + POST - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiListRecommendationsRequest */ -func (a *ApiApiService) ListRecommendations(ctx _context.Context) ApiListRecommendationsRequest { +func (a *ApiApiService) ListRecommendations(ctx context.Context) ApiListRecommendationsRequest { return ApiListRecommendationsRequest{ ApiService: a, ctx: ctx, @@ -5260,9 +5260,9 @@ func (a *ApiApiService) ListRecommendations(ctx _context.Context) ApiListRecomme // Execute executes the request // @return []Recommendation -func (a *ApiApiService) ListRecommendationsExecute(r ApiListRecommendationsRequest) ([]Recommendation, *_nethttp.Response, error) { +func (a *ApiApiService) ListRecommendationsExecute(r ApiListRecommendationsRequest) ([]Recommendation, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodGet + localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile localVarReturnValue []Recommendation @@ -5270,14 +5270,14 @@ func (a *ApiApiService) ListRecommendationsExecute(r ApiListRecommendationsReque localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.ListRecommendations") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/recommendation/" localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -5306,15 +5306,15 @@ func (a *ApiApiService) ListRecommendationsExecute(r ApiListRecommendationsReque return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -5323,7 +5323,7 @@ func (a *ApiApiService) ListRecommendationsExecute(r ApiListRecommendationsReque err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -5334,12 +5334,12 @@ func (a *ApiApiService) ListRecommendationsExecute(r ApiListRecommendationsReque } type ApiListReportitemsRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService } -func (r ApiListReportitemsRequest) Execute() ([]Reportitem, *_nethttp.Response, error) { +func (r ApiListReportitemsRequest) Execute() ([]Reportitem, *http.Response, error) { return r.ApiService.ListReportitemsExecute(r) } @@ -5348,10 +5348,10 @@ ListReportitems Method for ListReportitems all objects, allowed: GET + POST - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiListReportitemsRequest */ -func (a *ApiApiService) ListReportitems(ctx _context.Context) ApiListReportitemsRequest { +func (a *ApiApiService) ListReportitems(ctx context.Context) ApiListReportitemsRequest { return ApiListReportitemsRequest{ ApiService: a, ctx: ctx, @@ -5360,9 +5360,9 @@ func (a *ApiApiService) ListReportitems(ctx _context.Context) ApiListReportitems // Execute executes the request // @return []Reportitem -func (a *ApiApiService) ListReportitemsExecute(r ApiListReportitemsRequest) ([]Reportitem, *_nethttp.Response, error) { +func (a *ApiApiService) ListReportitemsExecute(r ApiListReportitemsRequest) ([]Reportitem, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodGet + localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile localVarReturnValue []Reportitem @@ -5370,14 +5370,14 @@ func (a *ApiApiService) ListReportitemsExecute(r ApiListReportitemsRequest) ([]R localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.ListReportitems") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/reportitem/" localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -5406,15 +5406,15 @@ func (a *ApiApiService) ListReportitemsExecute(r ApiListReportitemsRequest) ([]R return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -5423,7 +5423,7 @@ func (a *ApiApiService) ListReportitemsExecute(r ApiListReportitemsRequest) ([]R err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -5434,12 +5434,12 @@ func (a *ApiApiService) ListReportitemsExecute(r ApiListReportitemsRequest) ([]R } type ApiListServiceprovidersRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService } -func (r ApiListServiceprovidersRequest) Execute() ([]Serviceprovider, *_nethttp.Response, error) { +func (r ApiListServiceprovidersRequest) Execute() ([]Serviceprovider, *http.Response, error) { return r.ApiService.ListServiceprovidersExecute(r) } @@ -5448,10 +5448,10 @@ ListServiceproviders Method for ListServiceproviders all objects, allowed: GET + POST - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiListServiceprovidersRequest */ -func (a *ApiApiService) ListServiceproviders(ctx _context.Context) ApiListServiceprovidersRequest { +func (a *ApiApiService) ListServiceproviders(ctx context.Context) ApiListServiceprovidersRequest { return ApiListServiceprovidersRequest{ ApiService: a, ctx: ctx, @@ -5460,9 +5460,9 @@ func (a *ApiApiService) ListServiceproviders(ctx _context.Context) ApiListServic // Execute executes the request // @return []Serviceprovider -func (a *ApiApiService) ListServiceprovidersExecute(r ApiListServiceprovidersRequest) ([]Serviceprovider, *_nethttp.Response, error) { +func (a *ApiApiService) ListServiceprovidersExecute(r ApiListServiceprovidersRequest) ([]Serviceprovider, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodGet + localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile localVarReturnValue []Serviceprovider @@ -5470,14 +5470,14 @@ func (a *ApiApiService) ListServiceprovidersExecute(r ApiListServiceprovidersReq localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.ListServiceproviders") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/serviceprovider/" localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -5506,15 +5506,15 @@ func (a *ApiApiService) ListServiceprovidersExecute(r ApiListServiceprovidersReq return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -5523,7 +5523,7 @@ func (a *ApiApiService) ListServiceprovidersExecute(r ApiListServiceprovidersReq err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -5534,12 +5534,12 @@ func (a *ApiApiService) ListServiceprovidersExecute(r ApiListServiceprovidersReq } type ApiListSystemsRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService } -func (r ApiListSystemsRequest) Execute() ([]System, *_nethttp.Response, error) { +func (r ApiListSystemsRequest) Execute() ([]System, *http.Response, error) { return r.ApiService.ListSystemsExecute(r) } @@ -5548,10 +5548,10 @@ ListSystems Method for ListSystems all objects, allowed: GET + POST - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiListSystemsRequest */ -func (a *ApiApiService) ListSystems(ctx _context.Context) ApiListSystemsRequest { +func (a *ApiApiService) ListSystems(ctx context.Context) ApiListSystemsRequest { return ApiListSystemsRequest{ ApiService: a, ctx: ctx, @@ -5560,9 +5560,9 @@ func (a *ApiApiService) ListSystems(ctx _context.Context) ApiListSystemsRequest // Execute executes the request // @return []System -func (a *ApiApiService) ListSystemsExecute(r ApiListSystemsRequest) ([]System, *_nethttp.Response, error) { +func (a *ApiApiService) ListSystemsExecute(r ApiListSystemsRequest) ([]System, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodGet + localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile localVarReturnValue []System @@ -5570,14 +5570,14 @@ func (a *ApiApiService) ListSystemsExecute(r ApiListSystemsRequest) ([]System, * localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.ListSystems") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/system/" localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -5606,15 +5606,15 @@ func (a *ApiApiService) ListSystemsExecute(r ApiListSystemsRequest) ([]System, * return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -5623,7 +5623,7 @@ func (a *ApiApiService) ListSystemsExecute(r ApiListSystemsRequest) ([]System, * err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -5634,12 +5634,12 @@ func (a *ApiApiService) ListSystemsExecute(r ApiListSystemsRequest) ([]System, * } type ApiListSystemstatusRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService } -func (r ApiListSystemstatusRequest) Execute() ([]Systemstatus, *_nethttp.Response, error) { +func (r ApiListSystemstatusRequest) Execute() ([]Systemstatus, *http.Response, error) { return r.ApiService.ListSystemstatusExecute(r) } @@ -5648,10 +5648,10 @@ ListSystemstatus Method for ListSystemstatus all objects, allowed: GET - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiListSystemstatusRequest */ -func (a *ApiApiService) ListSystemstatus(ctx _context.Context) ApiListSystemstatusRequest { +func (a *ApiApiService) ListSystemstatus(ctx context.Context) ApiListSystemstatusRequest { return ApiListSystemstatusRequest{ ApiService: a, ctx: ctx, @@ -5660,9 +5660,9 @@ func (a *ApiApiService) ListSystemstatus(ctx _context.Context) ApiListSystemstat // Execute executes the request // @return []Systemstatus -func (a *ApiApiService) ListSystemstatusExecute(r ApiListSystemstatusRequest) ([]Systemstatus, *_nethttp.Response, error) { +func (a *ApiApiService) ListSystemstatusExecute(r ApiListSystemstatusRequest) ([]Systemstatus, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodGet + localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile localVarReturnValue []Systemstatus @@ -5670,14 +5670,14 @@ func (a *ApiApiService) ListSystemstatusExecute(r ApiListSystemstatusRequest) ([ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.ListSystemstatus") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/systemstatus/" localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -5706,15 +5706,15 @@ func (a *ApiApiService) ListSystemstatusExecute(r ApiListSystemstatusRequest) ([ return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -5723,7 +5723,7 @@ func (a *ApiApiService) ListSystemstatusExecute(r ApiListSystemstatusRequest) ([ err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -5734,12 +5734,12 @@ func (a *ApiApiService) ListSystemstatusExecute(r ApiListSystemstatusRequest) ([ } type ApiListSystemtypesRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService } -func (r ApiListSystemtypesRequest) Execute() ([]Systemtype, *_nethttp.Response, error) { +func (r ApiListSystemtypesRequest) Execute() ([]Systemtype, *http.Response, error) { return r.ApiService.ListSystemtypesExecute(r) } @@ -5748,10 +5748,10 @@ ListSystemtypes Method for ListSystemtypes all objects, allowed: GET + POST - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiListSystemtypesRequest */ -func (a *ApiApiService) ListSystemtypes(ctx _context.Context) ApiListSystemtypesRequest { +func (a *ApiApiService) ListSystemtypes(ctx context.Context) ApiListSystemtypesRequest { return ApiListSystemtypesRequest{ ApiService: a, ctx: ctx, @@ -5760,9 +5760,9 @@ func (a *ApiApiService) ListSystemtypes(ctx _context.Context) ApiListSystemtypes // Execute executes the request // @return []Systemtype -func (a *ApiApiService) ListSystemtypesExecute(r ApiListSystemtypesRequest) ([]Systemtype, *_nethttp.Response, error) { +func (a *ApiApiService) ListSystemtypesExecute(r ApiListSystemtypesRequest) ([]Systemtype, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodGet + localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile localVarReturnValue []Systemtype @@ -5770,14 +5770,14 @@ func (a *ApiApiService) ListSystemtypesExecute(r ApiListSystemtypesRequest) ([]S localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.ListSystemtypes") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/systemtype/" localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -5806,15 +5806,15 @@ func (a *ApiApiService) ListSystemtypesExecute(r ApiListSystemtypesRequest) ([]S return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -5823,7 +5823,7 @@ func (a *ApiApiService) ListSystemtypesExecute(r ApiListSystemtypesRequest) ([]S err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -5834,12 +5834,12 @@ func (a *ApiApiService) ListSystemtypesExecute(r ApiListSystemtypesRequest) ([]S } type ApiListSystemusersRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService } -func (r ApiListSystemusersRequest) Execute() ([]Systemuser, *_nethttp.Response, error) { +func (r ApiListSystemusersRequest) Execute() ([]Systemuser, *http.Response, error) { return r.ApiService.ListSystemusersExecute(r) } @@ -5848,10 +5848,10 @@ ListSystemusers Method for ListSystemusers all objects, allowed: GET + POST - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiListSystemusersRequest */ -func (a *ApiApiService) ListSystemusers(ctx _context.Context) ApiListSystemusersRequest { +func (a *ApiApiService) ListSystemusers(ctx context.Context) ApiListSystemusersRequest { return ApiListSystemusersRequest{ ApiService: a, ctx: ctx, @@ -5860,9 +5860,9 @@ func (a *ApiApiService) ListSystemusers(ctx _context.Context) ApiListSystemusers // Execute executes the request // @return []Systemuser -func (a *ApiApiService) ListSystemusersExecute(r ApiListSystemusersRequest) ([]Systemuser, *_nethttp.Response, error) { +func (a *ApiApiService) ListSystemusersExecute(r ApiListSystemusersRequest) ([]Systemuser, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodGet + localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile localVarReturnValue []Systemuser @@ -5870,14 +5870,14 @@ func (a *ApiApiService) ListSystemusersExecute(r ApiListSystemusersRequest) ([]S localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.ListSystemusers") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/systemuser/" localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -5906,15 +5906,15 @@ func (a *ApiApiService) ListSystemusersExecute(r ApiListSystemusersRequest) ([]S return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -5923,7 +5923,7 @@ func (a *ApiApiService) ListSystemusersExecute(r ApiListSystemusersRequest) ([]S err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -5934,12 +5934,12 @@ func (a *ApiApiService) ListSystemusersExecute(r ApiListSystemusersRequest) ([]S } type ApiListTagcolorsRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService } -func (r ApiListTagcolorsRequest) Execute() ([]Tagcolor, *_nethttp.Response, error) { +func (r ApiListTagcolorsRequest) Execute() ([]Tagcolor, *http.Response, error) { return r.ApiService.ListTagcolorsExecute(r) } @@ -5948,10 +5948,10 @@ ListTagcolors Method for ListTagcolors all objects, allowed: GET - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiListTagcolorsRequest */ -func (a *ApiApiService) ListTagcolors(ctx _context.Context) ApiListTagcolorsRequest { +func (a *ApiApiService) ListTagcolors(ctx context.Context) ApiListTagcolorsRequest { return ApiListTagcolorsRequest{ ApiService: a, ctx: ctx, @@ -5960,9 +5960,9 @@ func (a *ApiApiService) ListTagcolors(ctx _context.Context) ApiListTagcolorsRequ // Execute executes the request // @return []Tagcolor -func (a *ApiApiService) ListTagcolorsExecute(r ApiListTagcolorsRequest) ([]Tagcolor, *_nethttp.Response, error) { +func (a *ApiApiService) ListTagcolorsExecute(r ApiListTagcolorsRequest) ([]Tagcolor, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodGet + localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile localVarReturnValue []Tagcolor @@ -5970,14 +5970,14 @@ func (a *ApiApiService) ListTagcolorsExecute(r ApiListTagcolorsRequest) ([]Tagco localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.ListTagcolors") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/tagcolor/" localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -6006,15 +6006,15 @@ func (a *ApiApiService) ListTagcolorsExecute(r ApiListTagcolorsRequest) ([]Tagco return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -6023,7 +6023,7 @@ func (a *ApiApiService) ListTagcolorsExecute(r ApiListTagcolorsRequest) ([]Tagco err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -6034,12 +6034,12 @@ func (a *ApiApiService) ListTagcolorsExecute(r ApiListTagcolorsRequest) ([]Tagco } type ApiListTagsRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService } -func (r ApiListTagsRequest) Execute() ([]Tag, *_nethttp.Response, error) { +func (r ApiListTagsRequest) Execute() ([]Tag, *http.Response, error) { return r.ApiService.ListTagsExecute(r) } @@ -6048,10 +6048,10 @@ ListTags Method for ListTags all objects, allowed: GET + POST - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiListTagsRequest */ -func (a *ApiApiService) ListTags(ctx _context.Context) ApiListTagsRequest { +func (a *ApiApiService) ListTags(ctx context.Context) ApiListTagsRequest { return ApiListTagsRequest{ ApiService: a, ctx: ctx, @@ -6060,9 +6060,9 @@ func (a *ApiApiService) ListTags(ctx _context.Context) ApiListTagsRequest { // Execute executes the request // @return []Tag -func (a *ApiApiService) ListTagsExecute(r ApiListTagsRequest) ([]Tag, *_nethttp.Response, error) { +func (a *ApiApiService) ListTagsExecute(r ApiListTagsRequest) ([]Tag, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodGet + localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile localVarReturnValue []Tag @@ -6070,14 +6070,14 @@ func (a *ApiApiService) ListTagsExecute(r ApiListTagsRequest) ([]Tag, *_nethttp. localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.ListTags") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/tag/" localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -6106,15 +6106,15 @@ func (a *ApiApiService) ListTagsExecute(r ApiListTagsRequest) ([]Tag, *_nethttp. return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -6123,7 +6123,7 @@ func (a *ApiApiService) ListTagsExecute(r ApiListTagsRequest) ([]Tag, *_nethttp. err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -6134,12 +6134,12 @@ func (a *ApiApiService) ListTagsExecute(r ApiListTagsRequest) ([]Tag, *_nethttp. } type ApiListTasknamesRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService } -func (r ApiListTasknamesRequest) Execute() ([]Taskname, *_nethttp.Response, error) { +func (r ApiListTasknamesRequest) Execute() ([]Taskname, *http.Response, error) { return r.ApiService.ListTasknamesExecute(r) } @@ -6148,10 +6148,10 @@ ListTasknames Method for ListTasknames all objects, allowed: GET + POST - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiListTasknamesRequest */ -func (a *ApiApiService) ListTasknames(ctx _context.Context) ApiListTasknamesRequest { +func (a *ApiApiService) ListTasknames(ctx context.Context) ApiListTasknamesRequest { return ApiListTasknamesRequest{ ApiService: a, ctx: ctx, @@ -6160,9 +6160,9 @@ func (a *ApiApiService) ListTasknames(ctx _context.Context) ApiListTasknamesRequ // Execute executes the request // @return []Taskname -func (a *ApiApiService) ListTasknamesExecute(r ApiListTasknamesRequest) ([]Taskname, *_nethttp.Response, error) { +func (a *ApiApiService) ListTasknamesExecute(r ApiListTasknamesRequest) ([]Taskname, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodGet + localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile localVarReturnValue []Taskname @@ -6170,14 +6170,14 @@ func (a *ApiApiService) ListTasknamesExecute(r ApiListTasknamesRequest) ([]Taskn localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.ListTasknames") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/taskname/" localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -6206,15 +6206,15 @@ func (a *ApiApiService) ListTasknamesExecute(r ApiListTasknamesRequest) ([]Taskn return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -6223,7 +6223,7 @@ func (a *ApiApiService) ListTasknamesExecute(r ApiListTasknamesRequest) ([]Taskn err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -6234,12 +6234,12 @@ func (a *ApiApiService) ListTasknamesExecute(r ApiListTasknamesRequest) ([]Taskn } type ApiListTaskprioritysRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService } -func (r ApiListTaskprioritysRequest) Execute() ([]Taskpriority, *_nethttp.Response, error) { +func (r ApiListTaskprioritysRequest) Execute() ([]Taskpriority, *http.Response, error) { return r.ApiService.ListTaskprioritysExecute(r) } @@ -6248,10 +6248,10 @@ ListTaskprioritys Method for ListTaskprioritys all objects, allowed: GET - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiListTaskprioritysRequest */ -func (a *ApiApiService) ListTaskprioritys(ctx _context.Context) ApiListTaskprioritysRequest { +func (a *ApiApiService) ListTaskprioritys(ctx context.Context) ApiListTaskprioritysRequest { return ApiListTaskprioritysRequest{ ApiService: a, ctx: ctx, @@ -6260,9 +6260,9 @@ func (a *ApiApiService) ListTaskprioritys(ctx _context.Context) ApiListTaskprior // Execute executes the request // @return []Taskpriority -func (a *ApiApiService) ListTaskprioritysExecute(r ApiListTaskprioritysRequest) ([]Taskpriority, *_nethttp.Response, error) { +func (a *ApiApiService) ListTaskprioritysExecute(r ApiListTaskprioritysRequest) ([]Taskpriority, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodGet + localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile localVarReturnValue []Taskpriority @@ -6270,14 +6270,14 @@ func (a *ApiApiService) ListTaskprioritysExecute(r ApiListTaskprioritysRequest) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.ListTaskprioritys") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/taskpriority/" localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -6306,15 +6306,15 @@ func (a *ApiApiService) ListTaskprioritysExecute(r ApiListTaskprioritysRequest) return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -6323,7 +6323,7 @@ func (a *ApiApiService) ListTaskprioritysExecute(r ApiListTaskprioritysRequest) err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -6334,12 +6334,12 @@ func (a *ApiApiService) ListTaskprioritysExecute(r ApiListTaskprioritysRequest) } type ApiListTasksRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService } -func (r ApiListTasksRequest) Execute() ([]Task, *_nethttp.Response, error) { +func (r ApiListTasksRequest) Execute() ([]Task, *http.Response, error) { return r.ApiService.ListTasksExecute(r) } @@ -6348,10 +6348,10 @@ ListTasks Method for ListTasks all objects, allowed: GET + POST - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiListTasksRequest */ -func (a *ApiApiService) ListTasks(ctx _context.Context) ApiListTasksRequest { +func (a *ApiApiService) ListTasks(ctx context.Context) ApiListTasksRequest { return ApiListTasksRequest{ ApiService: a, ctx: ctx, @@ -6360,9 +6360,9 @@ func (a *ApiApiService) ListTasks(ctx _context.Context) ApiListTasksRequest { // Execute executes the request // @return []Task -func (a *ApiApiService) ListTasksExecute(r ApiListTasksRequest) ([]Task, *_nethttp.Response, error) { +func (a *ApiApiService) ListTasksExecute(r ApiListTasksRequest) ([]Task, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodGet + localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile localVarReturnValue []Task @@ -6370,14 +6370,14 @@ func (a *ApiApiService) ListTasksExecute(r ApiListTasksRequest) ([]Task, *_netht localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.ListTasks") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/task/" localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -6406,15 +6406,15 @@ func (a *ApiApiService) ListTasksExecute(r ApiListTasksRequest) ([]Task, *_netht return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -6423,7 +6423,7 @@ func (a *ApiApiService) ListTasksExecute(r ApiListTasksRequest) ([]Task, *_netht err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -6434,12 +6434,12 @@ func (a *ApiApiService) ListTasksExecute(r ApiListTasksRequest) ([]Task, *_netht } type ApiListTaskstatusRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService } -func (r ApiListTaskstatusRequest) Execute() ([]Taskstatus, *_nethttp.Response, error) { +func (r ApiListTaskstatusRequest) Execute() ([]Taskstatus, *http.Response, error) { return r.ApiService.ListTaskstatusExecute(r) } @@ -6448,10 +6448,10 @@ ListTaskstatus Method for ListTaskstatus all objects, allowed: GET - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiListTaskstatusRequest */ -func (a *ApiApiService) ListTaskstatus(ctx _context.Context) ApiListTaskstatusRequest { +func (a *ApiApiService) ListTaskstatus(ctx context.Context) ApiListTaskstatusRequest { return ApiListTaskstatusRequest{ ApiService: a, ctx: ctx, @@ -6460,9 +6460,9 @@ func (a *ApiApiService) ListTaskstatus(ctx _context.Context) ApiListTaskstatusRe // Execute executes the request // @return []Taskstatus -func (a *ApiApiService) ListTaskstatusExecute(r ApiListTaskstatusRequest) ([]Taskstatus, *_nethttp.Response, error) { +func (a *ApiApiService) ListTaskstatusExecute(r ApiListTaskstatusRequest) ([]Taskstatus, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodGet + localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile localVarReturnValue []Taskstatus @@ -6470,14 +6470,14 @@ func (a *ApiApiService) ListTaskstatusExecute(r ApiListTaskstatusRequest) ([]Tas localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.ListTaskstatus") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/taskstatus/" localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -6506,15 +6506,15 @@ func (a *ApiApiService) ListTaskstatusExecute(r ApiListTaskstatusRequest) ([]Tas return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -6523,7 +6523,7 @@ func (a *ApiApiService) ListTaskstatusExecute(r ApiListTaskstatusRequest) ([]Tas err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -6534,7 +6534,7 @@ func (a *ApiApiService) ListTaskstatusExecute(r ApiListTaskstatusRequest) ([]Tas } type ApiPartialUpdateArtifactRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService artifactId string artifact *Artifact @@ -6545,7 +6545,7 @@ func (r ApiPartialUpdateArtifactRequest) Artifact(artifact Artifact) ApiPartialU return r } -func (r ApiPartialUpdateArtifactRequest) Execute() (Artifact, *_nethttp.Response, error) { +func (r ApiPartialUpdateArtifactRequest) Execute() (*Artifact, *http.Response, error) { return r.ApiService.PartialUpdateArtifactExecute(r) } @@ -6554,11 +6554,11 @@ PartialUpdateArtifact Method for PartialUpdateArtifact single object, allowed: GET + PUT - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param artifactId A unique integer value identifying this artifact. @return ApiPartialUpdateArtifactRequest */ -func (a *ApiApiService) PartialUpdateArtifact(ctx _context.Context, artifactId string) ApiPartialUpdateArtifactRequest { +func (a *ApiApiService) PartialUpdateArtifact(ctx context.Context, artifactId string) ApiPartialUpdateArtifactRequest { return ApiPartialUpdateArtifactRequest{ ApiService: a, ctx: ctx, @@ -6568,25 +6568,25 @@ func (a *ApiApiService) PartialUpdateArtifact(ctx _context.Context, artifactId s // Execute executes the request // @return Artifact -func (a *ApiApiService) PartialUpdateArtifactExecute(r ApiPartialUpdateArtifactRequest) (Artifact, *_nethttp.Response, error) { +func (a *ApiApiService) PartialUpdateArtifactExecute(r ApiPartialUpdateArtifactRequest) (*Artifact, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodPatch + localVarHTTPMethod = http.MethodPatch localVarPostBody interface{} formFiles []formFile - localVarReturnValue Artifact + localVarReturnValue *Artifact ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.PartialUpdateArtifact") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/artifact/{artifact_id}/" - localVarPath = strings.Replace(localVarPath, "{"+"artifact_id"+"}", _neturl.PathEscape(parameterToString(r.artifactId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"artifact_id"+"}", url.PathEscape(parameterToString(r.artifactId, "")), -1) localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} @@ -6617,15 +6617,15 @@ func (a *ApiApiService) PartialUpdateArtifactExecute(r ApiPartialUpdateArtifactR return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -6634,7 +6634,7 @@ func (a *ApiApiService) PartialUpdateArtifactExecute(r ApiPartialUpdateArtifactR err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -6645,7 +6645,7 @@ func (a *ApiApiService) PartialUpdateArtifactExecute(r ApiPartialUpdateArtifactR } type ApiPartialUpdateArtifacttypeRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService artifacttypeId string artifacttype *Artifacttype @@ -6656,7 +6656,7 @@ func (r ApiPartialUpdateArtifacttypeRequest) Artifacttype(artifacttype Artifactt return r } -func (r ApiPartialUpdateArtifacttypeRequest) Execute() (Artifacttype, *_nethttp.Response, error) { +func (r ApiPartialUpdateArtifacttypeRequest) Execute() (*Artifacttype, *http.Response, error) { return r.ApiService.PartialUpdateArtifacttypeExecute(r) } @@ -6665,11 +6665,11 @@ PartialUpdateArtifacttype Method for PartialUpdateArtifacttype single object, allowed: GET + PUT - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param artifacttypeId A unique integer value identifying this artifacttype. @return ApiPartialUpdateArtifacttypeRequest */ -func (a *ApiApiService) PartialUpdateArtifacttype(ctx _context.Context, artifacttypeId string) ApiPartialUpdateArtifacttypeRequest { +func (a *ApiApiService) PartialUpdateArtifacttype(ctx context.Context, artifacttypeId string) ApiPartialUpdateArtifacttypeRequest { return ApiPartialUpdateArtifacttypeRequest{ ApiService: a, ctx: ctx, @@ -6679,25 +6679,25 @@ func (a *ApiApiService) PartialUpdateArtifacttype(ctx _context.Context, artifact // Execute executes the request // @return Artifacttype -func (a *ApiApiService) PartialUpdateArtifacttypeExecute(r ApiPartialUpdateArtifacttypeRequest) (Artifacttype, *_nethttp.Response, error) { +func (a *ApiApiService) PartialUpdateArtifacttypeExecute(r ApiPartialUpdateArtifacttypeRequest) (*Artifacttype, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodPatch + localVarHTTPMethod = http.MethodPatch localVarPostBody interface{} formFiles []formFile - localVarReturnValue Artifacttype + localVarReturnValue *Artifacttype ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.PartialUpdateArtifacttype") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/artifacttype/{artifacttype_id}/" - localVarPath = strings.Replace(localVarPath, "{"+"artifacttype_id"+"}", _neturl.PathEscape(parameterToString(r.artifacttypeId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"artifacttype_id"+"}", url.PathEscape(parameterToString(r.artifacttypeId, "")), -1) localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} @@ -6728,15 +6728,15 @@ func (a *ApiApiService) PartialUpdateArtifacttypeExecute(r ApiPartialUpdateArtif return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -6745,7 +6745,7 @@ func (a *ApiApiService) PartialUpdateArtifacttypeExecute(r ApiPartialUpdateArtif err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -6756,7 +6756,7 @@ func (a *ApiApiService) PartialUpdateArtifacttypeExecute(r ApiPartialUpdateArtif } type ApiPartialUpdateCaseRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService caseId string case_ *Case @@ -6767,7 +6767,7 @@ func (r ApiPartialUpdateCaseRequest) Case_(case_ Case) ApiPartialUpdateCaseReque return r } -func (r ApiPartialUpdateCaseRequest) Execute() (Case, *_nethttp.Response, error) { +func (r ApiPartialUpdateCaseRequest) Execute() (*Case, *http.Response, error) { return r.ApiService.PartialUpdateCaseExecute(r) } @@ -6776,11 +6776,11 @@ PartialUpdateCase Method for PartialUpdateCase single object, allowed: GET + PUT - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param caseId A unique integer value identifying this case. @return ApiPartialUpdateCaseRequest */ -func (a *ApiApiService) PartialUpdateCase(ctx _context.Context, caseId string) ApiPartialUpdateCaseRequest { +func (a *ApiApiService) PartialUpdateCase(ctx context.Context, caseId string) ApiPartialUpdateCaseRequest { return ApiPartialUpdateCaseRequest{ ApiService: a, ctx: ctx, @@ -6790,25 +6790,25 @@ func (a *ApiApiService) PartialUpdateCase(ctx _context.Context, caseId string) A // Execute executes the request // @return Case -func (a *ApiApiService) PartialUpdateCaseExecute(r ApiPartialUpdateCaseRequest) (Case, *_nethttp.Response, error) { +func (a *ApiApiService) PartialUpdateCaseExecute(r ApiPartialUpdateCaseRequest) (*Case, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodPatch + localVarHTTPMethod = http.MethodPatch localVarPostBody interface{} formFiles []formFile - localVarReturnValue Case + localVarReturnValue *Case ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.PartialUpdateCase") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/case/{case_id}/" - localVarPath = strings.Replace(localVarPath, "{"+"case_id"+"}", _neturl.PathEscape(parameterToString(r.caseId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"case_id"+"}", url.PathEscape(parameterToString(r.caseId, "")), -1) localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} @@ -6839,15 +6839,15 @@ func (a *ApiApiService) PartialUpdateCaseExecute(r ApiPartialUpdateCaseRequest) return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -6856,7 +6856,7 @@ func (a *ApiApiService) PartialUpdateCaseExecute(r ApiPartialUpdateCaseRequest) err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -6867,7 +6867,7 @@ func (a *ApiApiService) PartialUpdateCaseExecute(r ApiPartialUpdateCaseRequest) } type ApiPartialUpdateCasetypeRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService casetypeId string casetype *Casetype @@ -6878,7 +6878,7 @@ func (r ApiPartialUpdateCasetypeRequest) Casetype(casetype Casetype) ApiPartialU return r } -func (r ApiPartialUpdateCasetypeRequest) Execute() (Casetype, *_nethttp.Response, error) { +func (r ApiPartialUpdateCasetypeRequest) Execute() (*Casetype, *http.Response, error) { return r.ApiService.PartialUpdateCasetypeExecute(r) } @@ -6887,11 +6887,11 @@ PartialUpdateCasetype Method for PartialUpdateCasetype single object, allowed: GET + PUT - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param casetypeId A unique integer value identifying this casetype. @return ApiPartialUpdateCasetypeRequest */ -func (a *ApiApiService) PartialUpdateCasetype(ctx _context.Context, casetypeId string) ApiPartialUpdateCasetypeRequest { +func (a *ApiApiService) PartialUpdateCasetype(ctx context.Context, casetypeId string) ApiPartialUpdateCasetypeRequest { return ApiPartialUpdateCasetypeRequest{ ApiService: a, ctx: ctx, @@ -6901,25 +6901,25 @@ func (a *ApiApiService) PartialUpdateCasetype(ctx _context.Context, casetypeId s // Execute executes the request // @return Casetype -func (a *ApiApiService) PartialUpdateCasetypeExecute(r ApiPartialUpdateCasetypeRequest) (Casetype, *_nethttp.Response, error) { +func (a *ApiApiService) PartialUpdateCasetypeExecute(r ApiPartialUpdateCasetypeRequest) (*Casetype, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodPatch + localVarHTTPMethod = http.MethodPatch localVarPostBody interface{} formFiles []formFile - localVarReturnValue Casetype + localVarReturnValue *Casetype ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.PartialUpdateCasetype") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/casetype/{casetype_id}/" - localVarPath = strings.Replace(localVarPath, "{"+"casetype_id"+"}", _neturl.PathEscape(parameterToString(r.casetypeId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"casetype_id"+"}", url.PathEscape(parameterToString(r.casetypeId, "")), -1) localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} @@ -6950,15 +6950,15 @@ func (a *ApiApiService) PartialUpdateCasetypeExecute(r ApiPartialUpdateCasetypeR return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -6967,7 +6967,7 @@ func (a *ApiApiService) PartialUpdateCasetypeExecute(r ApiPartialUpdateCasetypeR err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -6978,7 +6978,7 @@ func (a *ApiApiService) PartialUpdateCasetypeExecute(r ApiPartialUpdateCasetypeR } type ApiPartialUpdateCompanyRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService companyId string company *Company @@ -6989,7 +6989,7 @@ func (r ApiPartialUpdateCompanyRequest) Company(company Company) ApiPartialUpdat return r } -func (r ApiPartialUpdateCompanyRequest) Execute() (Company, *_nethttp.Response, error) { +func (r ApiPartialUpdateCompanyRequest) Execute() (*Company, *http.Response, error) { return r.ApiService.PartialUpdateCompanyExecute(r) } @@ -6998,11 +6998,11 @@ PartialUpdateCompany Method for PartialUpdateCompany single object, allowed: GET + PUT - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param companyId A unique integer value identifying this company. @return ApiPartialUpdateCompanyRequest */ -func (a *ApiApiService) PartialUpdateCompany(ctx _context.Context, companyId string) ApiPartialUpdateCompanyRequest { +func (a *ApiApiService) PartialUpdateCompany(ctx context.Context, companyId string) ApiPartialUpdateCompanyRequest { return ApiPartialUpdateCompanyRequest{ ApiService: a, ctx: ctx, @@ -7012,25 +7012,25 @@ func (a *ApiApiService) PartialUpdateCompany(ctx _context.Context, companyId str // Execute executes the request // @return Company -func (a *ApiApiService) PartialUpdateCompanyExecute(r ApiPartialUpdateCompanyRequest) (Company, *_nethttp.Response, error) { +func (a *ApiApiService) PartialUpdateCompanyExecute(r ApiPartialUpdateCompanyRequest) (*Company, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodPatch + localVarHTTPMethod = http.MethodPatch localVarPostBody interface{} formFiles []formFile - localVarReturnValue Company + localVarReturnValue *Company ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.PartialUpdateCompany") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/company/{company_id}/" - localVarPath = strings.Replace(localVarPath, "{"+"company_id"+"}", _neturl.PathEscape(parameterToString(r.companyId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"company_id"+"}", url.PathEscape(parameterToString(r.companyId, "")), -1) localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} @@ -7061,15 +7061,15 @@ func (a *ApiApiService) PartialUpdateCompanyExecute(r ApiPartialUpdateCompanyReq return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -7078,7 +7078,7 @@ func (a *ApiApiService) PartialUpdateCompanyExecute(r ApiPartialUpdateCompanyReq err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -7089,7 +7089,7 @@ func (a *ApiApiService) PartialUpdateCompanyExecute(r ApiPartialUpdateCompanyReq } type ApiPartialUpdateContactRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService contactId string contact *Contact @@ -7100,7 +7100,7 @@ func (r ApiPartialUpdateContactRequest) Contact(contact Contact) ApiPartialUpdat return r } -func (r ApiPartialUpdateContactRequest) Execute() (Contact, *_nethttp.Response, error) { +func (r ApiPartialUpdateContactRequest) Execute() (*Contact, *http.Response, error) { return r.ApiService.PartialUpdateContactExecute(r) } @@ -7109,11 +7109,11 @@ PartialUpdateContact Method for PartialUpdateContact single object, allowed: GET + PUT - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param contactId A unique integer value identifying this contact. @return ApiPartialUpdateContactRequest */ -func (a *ApiApiService) PartialUpdateContact(ctx _context.Context, contactId string) ApiPartialUpdateContactRequest { +func (a *ApiApiService) PartialUpdateContact(ctx context.Context, contactId string) ApiPartialUpdateContactRequest { return ApiPartialUpdateContactRequest{ ApiService: a, ctx: ctx, @@ -7123,25 +7123,25 @@ func (a *ApiApiService) PartialUpdateContact(ctx _context.Context, contactId str // Execute executes the request // @return Contact -func (a *ApiApiService) PartialUpdateContactExecute(r ApiPartialUpdateContactRequest) (Contact, *_nethttp.Response, error) { +func (a *ApiApiService) PartialUpdateContactExecute(r ApiPartialUpdateContactRequest) (*Contact, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodPatch + localVarHTTPMethod = http.MethodPatch localVarPostBody interface{} formFiles []formFile - localVarReturnValue Contact + localVarReturnValue *Contact ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.PartialUpdateContact") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/contact/{contact_id}/" - localVarPath = strings.Replace(localVarPath, "{"+"contact_id"+"}", _neturl.PathEscape(parameterToString(r.contactId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"contact_id"+"}", url.PathEscape(parameterToString(r.contactId, "")), -1) localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} @@ -7172,15 +7172,15 @@ func (a *ApiApiService) PartialUpdateContactExecute(r ApiPartialUpdateContactReq return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -7189,7 +7189,7 @@ func (a *ApiApiService) PartialUpdateContactExecute(r ApiPartialUpdateContactReq err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -7200,7 +7200,7 @@ func (a *ApiApiService) PartialUpdateContactExecute(r ApiPartialUpdateContactReq } type ApiPartialUpdateDivisionRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService divisionId string division *Division @@ -7211,7 +7211,7 @@ func (r ApiPartialUpdateDivisionRequest) Division(division Division) ApiPartialU return r } -func (r ApiPartialUpdateDivisionRequest) Execute() (Division, *_nethttp.Response, error) { +func (r ApiPartialUpdateDivisionRequest) Execute() (*Division, *http.Response, error) { return r.ApiService.PartialUpdateDivisionExecute(r) } @@ -7220,11 +7220,11 @@ PartialUpdateDivision Method for PartialUpdateDivision single object, allowed: GET + PUT - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param divisionId A unique integer value identifying this division. @return ApiPartialUpdateDivisionRequest */ -func (a *ApiApiService) PartialUpdateDivision(ctx _context.Context, divisionId string) ApiPartialUpdateDivisionRequest { +func (a *ApiApiService) PartialUpdateDivision(ctx context.Context, divisionId string) ApiPartialUpdateDivisionRequest { return ApiPartialUpdateDivisionRequest{ ApiService: a, ctx: ctx, @@ -7234,25 +7234,25 @@ func (a *ApiApiService) PartialUpdateDivision(ctx _context.Context, divisionId s // Execute executes the request // @return Division -func (a *ApiApiService) PartialUpdateDivisionExecute(r ApiPartialUpdateDivisionRequest) (Division, *_nethttp.Response, error) { +func (a *ApiApiService) PartialUpdateDivisionExecute(r ApiPartialUpdateDivisionRequest) (*Division, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodPatch + localVarHTTPMethod = http.MethodPatch localVarPostBody interface{} formFiles []formFile - localVarReturnValue Division + localVarReturnValue *Division ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.PartialUpdateDivision") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/division/{division_id}/" - localVarPath = strings.Replace(localVarPath, "{"+"division_id"+"}", _neturl.PathEscape(parameterToString(r.divisionId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"division_id"+"}", url.PathEscape(parameterToString(r.divisionId, "")), -1) localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} @@ -7283,15 +7283,15 @@ func (a *ApiApiService) PartialUpdateDivisionExecute(r ApiPartialUpdateDivisionR return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -7300,7 +7300,7 @@ func (a *ApiApiService) PartialUpdateDivisionExecute(r ApiPartialUpdateDivisionR err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -7311,7 +7311,7 @@ func (a *ApiApiService) PartialUpdateDivisionExecute(r ApiPartialUpdateDivisionR } type ApiPartialUpdateDnsnameRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService dnsnameId string dnsname *Dnsname @@ -7322,7 +7322,7 @@ func (r ApiPartialUpdateDnsnameRequest) Dnsname(dnsname Dnsname) ApiPartialUpdat return r } -func (r ApiPartialUpdateDnsnameRequest) Execute() (Dnsname, *_nethttp.Response, error) { +func (r ApiPartialUpdateDnsnameRequest) Execute() (*Dnsname, *http.Response, error) { return r.ApiService.PartialUpdateDnsnameExecute(r) } @@ -7331,11 +7331,11 @@ PartialUpdateDnsname Method for PartialUpdateDnsname single object, allowed: GET + PUT - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param dnsnameId A unique integer value identifying this dnsname. @return ApiPartialUpdateDnsnameRequest */ -func (a *ApiApiService) PartialUpdateDnsname(ctx _context.Context, dnsnameId string) ApiPartialUpdateDnsnameRequest { +func (a *ApiApiService) PartialUpdateDnsname(ctx context.Context, dnsnameId string) ApiPartialUpdateDnsnameRequest { return ApiPartialUpdateDnsnameRequest{ ApiService: a, ctx: ctx, @@ -7345,25 +7345,25 @@ func (a *ApiApiService) PartialUpdateDnsname(ctx _context.Context, dnsnameId str // Execute executes the request // @return Dnsname -func (a *ApiApiService) PartialUpdateDnsnameExecute(r ApiPartialUpdateDnsnameRequest) (Dnsname, *_nethttp.Response, error) { +func (a *ApiApiService) PartialUpdateDnsnameExecute(r ApiPartialUpdateDnsnameRequest) (*Dnsname, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodPatch + localVarHTTPMethod = http.MethodPatch localVarPostBody interface{} formFiles []formFile - localVarReturnValue Dnsname + localVarReturnValue *Dnsname ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.PartialUpdateDnsname") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/dnsname/{dnsname_id}/" - localVarPath = strings.Replace(localVarPath, "{"+"dnsname_id"+"}", _neturl.PathEscape(parameterToString(r.dnsnameId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"dnsname_id"+"}", url.PathEscape(parameterToString(r.dnsnameId, "")), -1) localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} @@ -7394,15 +7394,15 @@ func (a *ApiApiService) PartialUpdateDnsnameExecute(r ApiPartialUpdateDnsnameReq return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -7411,7 +7411,7 @@ func (a *ApiApiService) PartialUpdateDnsnameExecute(r ApiPartialUpdateDnsnameReq err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -7422,7 +7422,7 @@ func (a *ApiApiService) PartialUpdateDnsnameExecute(r ApiPartialUpdateDnsnameReq } type ApiPartialUpdateDomainRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService domainId string domain *Domain @@ -7433,7 +7433,7 @@ func (r ApiPartialUpdateDomainRequest) Domain(domain Domain) ApiPartialUpdateDom return r } -func (r ApiPartialUpdateDomainRequest) Execute() (Domain, *_nethttp.Response, error) { +func (r ApiPartialUpdateDomainRequest) Execute() (*Domain, *http.Response, error) { return r.ApiService.PartialUpdateDomainExecute(r) } @@ -7442,11 +7442,11 @@ PartialUpdateDomain Method for PartialUpdateDomain single object, allowed: GET + PUT - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param domainId A unique integer value identifying this domain. @return ApiPartialUpdateDomainRequest */ -func (a *ApiApiService) PartialUpdateDomain(ctx _context.Context, domainId string) ApiPartialUpdateDomainRequest { +func (a *ApiApiService) PartialUpdateDomain(ctx context.Context, domainId string) ApiPartialUpdateDomainRequest { return ApiPartialUpdateDomainRequest{ ApiService: a, ctx: ctx, @@ -7456,25 +7456,25 @@ func (a *ApiApiService) PartialUpdateDomain(ctx _context.Context, domainId strin // Execute executes the request // @return Domain -func (a *ApiApiService) PartialUpdateDomainExecute(r ApiPartialUpdateDomainRequest) (Domain, *_nethttp.Response, error) { +func (a *ApiApiService) PartialUpdateDomainExecute(r ApiPartialUpdateDomainRequest) (*Domain, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodPatch + localVarHTTPMethod = http.MethodPatch localVarPostBody interface{} formFiles []formFile - localVarReturnValue Domain + localVarReturnValue *Domain ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.PartialUpdateDomain") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/domain/{domain_id}/" - localVarPath = strings.Replace(localVarPath, "{"+"domain_id"+"}", _neturl.PathEscape(parameterToString(r.domainId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"domain_id"+"}", url.PathEscape(parameterToString(r.domainId, "")), -1) localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} @@ -7505,15 +7505,15 @@ func (a *ApiApiService) PartialUpdateDomainExecute(r ApiPartialUpdateDomainReque return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -7522,7 +7522,7 @@ func (a *ApiApiService) PartialUpdateDomainExecute(r ApiPartialUpdateDomainReque err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -7533,7 +7533,7 @@ func (a *ApiApiService) PartialUpdateDomainExecute(r ApiPartialUpdateDomainReque } type ApiPartialUpdateDomainuserRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService domainuserId string domainuser *Domainuser @@ -7544,7 +7544,7 @@ func (r ApiPartialUpdateDomainuserRequest) Domainuser(domainuser Domainuser) Api return r } -func (r ApiPartialUpdateDomainuserRequest) Execute() (Domainuser, *_nethttp.Response, error) { +func (r ApiPartialUpdateDomainuserRequest) Execute() (*Domainuser, *http.Response, error) { return r.ApiService.PartialUpdateDomainuserExecute(r) } @@ -7553,11 +7553,11 @@ PartialUpdateDomainuser Method for PartialUpdateDomainuser single object, allowed: GET + PUT - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param domainuserId A unique integer value identifying this domainuser. @return ApiPartialUpdateDomainuserRequest */ -func (a *ApiApiService) PartialUpdateDomainuser(ctx _context.Context, domainuserId string) ApiPartialUpdateDomainuserRequest { +func (a *ApiApiService) PartialUpdateDomainuser(ctx context.Context, domainuserId string) ApiPartialUpdateDomainuserRequest { return ApiPartialUpdateDomainuserRequest{ ApiService: a, ctx: ctx, @@ -7567,25 +7567,25 @@ func (a *ApiApiService) PartialUpdateDomainuser(ctx _context.Context, domainuser // Execute executes the request // @return Domainuser -func (a *ApiApiService) PartialUpdateDomainuserExecute(r ApiPartialUpdateDomainuserRequest) (Domainuser, *_nethttp.Response, error) { +func (a *ApiApiService) PartialUpdateDomainuserExecute(r ApiPartialUpdateDomainuserRequest) (*Domainuser, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodPatch + localVarHTTPMethod = http.MethodPatch localVarPostBody interface{} formFiles []formFile - localVarReturnValue Domainuser + localVarReturnValue *Domainuser ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.PartialUpdateDomainuser") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/domainuser/{domainuser_id}/" - localVarPath = strings.Replace(localVarPath, "{"+"domainuser_id"+"}", _neturl.PathEscape(parameterToString(r.domainuserId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"domainuser_id"+"}", url.PathEscape(parameterToString(r.domainuserId, "")), -1) localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} @@ -7616,15 +7616,15 @@ func (a *ApiApiService) PartialUpdateDomainuserExecute(r ApiPartialUpdateDomainu return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -7633,7 +7633,7 @@ func (a *ApiApiService) PartialUpdateDomainuserExecute(r ApiPartialUpdateDomainu err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -7644,7 +7644,7 @@ func (a *ApiApiService) PartialUpdateDomainuserExecute(r ApiPartialUpdateDomainu } type ApiPartialUpdateHeadlineRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService headlineId string headline *Headline @@ -7655,7 +7655,7 @@ func (r ApiPartialUpdateHeadlineRequest) Headline(headline Headline) ApiPartialU return r } -func (r ApiPartialUpdateHeadlineRequest) Execute() (Headline, *_nethttp.Response, error) { +func (r ApiPartialUpdateHeadlineRequest) Execute() (*Headline, *http.Response, error) { return r.ApiService.PartialUpdateHeadlineExecute(r) } @@ -7664,11 +7664,11 @@ PartialUpdateHeadline Method for PartialUpdateHeadline single object, allowed: GET + PUT - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param headlineId A unique integer value identifying this headline. @return ApiPartialUpdateHeadlineRequest */ -func (a *ApiApiService) PartialUpdateHeadline(ctx _context.Context, headlineId string) ApiPartialUpdateHeadlineRequest { +func (a *ApiApiService) PartialUpdateHeadline(ctx context.Context, headlineId string) ApiPartialUpdateHeadlineRequest { return ApiPartialUpdateHeadlineRequest{ ApiService: a, ctx: ctx, @@ -7678,25 +7678,25 @@ func (a *ApiApiService) PartialUpdateHeadline(ctx _context.Context, headlineId s // Execute executes the request // @return Headline -func (a *ApiApiService) PartialUpdateHeadlineExecute(r ApiPartialUpdateHeadlineRequest) (Headline, *_nethttp.Response, error) { +func (a *ApiApiService) PartialUpdateHeadlineExecute(r ApiPartialUpdateHeadlineRequest) (*Headline, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodPatch + localVarHTTPMethod = http.MethodPatch localVarPostBody interface{} formFiles []formFile - localVarReturnValue Headline + localVarReturnValue *Headline ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.PartialUpdateHeadline") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/headline/{headline_id}/" - localVarPath = strings.Replace(localVarPath, "{"+"headline_id"+"}", _neturl.PathEscape(parameterToString(r.headlineId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"headline_id"+"}", url.PathEscape(parameterToString(r.headlineId, "")), -1) localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} @@ -7727,15 +7727,15 @@ func (a *ApiApiService) PartialUpdateHeadlineExecute(r ApiPartialUpdateHeadlineR return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -7744,7 +7744,7 @@ func (a *ApiApiService) PartialUpdateHeadlineExecute(r ApiPartialUpdateHeadlineR err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -7755,7 +7755,7 @@ func (a *ApiApiService) PartialUpdateHeadlineExecute(r ApiPartialUpdateHeadlineR } type ApiPartialUpdateIpRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService ipId string ip *Ip @@ -7766,7 +7766,7 @@ func (r ApiPartialUpdateIpRequest) Ip(ip Ip) ApiPartialUpdateIpRequest { return r } -func (r ApiPartialUpdateIpRequest) Execute() (Ip, *_nethttp.Response, error) { +func (r ApiPartialUpdateIpRequest) Execute() (*Ip, *http.Response, error) { return r.ApiService.PartialUpdateIpExecute(r) } @@ -7775,11 +7775,11 @@ PartialUpdateIp Method for PartialUpdateIp single object, allowed: GET + PUT - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param ipId A unique integer value identifying this ip. @return ApiPartialUpdateIpRequest */ -func (a *ApiApiService) PartialUpdateIp(ctx _context.Context, ipId string) ApiPartialUpdateIpRequest { +func (a *ApiApiService) PartialUpdateIp(ctx context.Context, ipId string) ApiPartialUpdateIpRequest { return ApiPartialUpdateIpRequest{ ApiService: a, ctx: ctx, @@ -7789,25 +7789,25 @@ func (a *ApiApiService) PartialUpdateIp(ctx _context.Context, ipId string) ApiPa // Execute executes the request // @return Ip -func (a *ApiApiService) PartialUpdateIpExecute(r ApiPartialUpdateIpRequest) (Ip, *_nethttp.Response, error) { +func (a *ApiApiService) PartialUpdateIpExecute(r ApiPartialUpdateIpRequest) (*Ip, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodPatch + localVarHTTPMethod = http.MethodPatch localVarPostBody interface{} formFiles []formFile - localVarReturnValue Ip + localVarReturnValue *Ip ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.PartialUpdateIp") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/ip/{ip_id}/" - localVarPath = strings.Replace(localVarPath, "{"+"ip_id"+"}", _neturl.PathEscape(parameterToString(r.ipId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"ip_id"+"}", url.PathEscape(parameterToString(r.ipId, "")), -1) localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} @@ -7838,15 +7838,15 @@ func (a *ApiApiService) PartialUpdateIpExecute(r ApiPartialUpdateIpRequest) (Ip, return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -7855,7 +7855,7 @@ func (a *ApiApiService) PartialUpdateIpExecute(r ApiPartialUpdateIpRequest) (Ip, err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -7866,7 +7866,7 @@ func (a *ApiApiService) PartialUpdateIpExecute(r ApiPartialUpdateIpRequest) (Ip, } type ApiPartialUpdateLocationRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService locationId string location *Location @@ -7877,7 +7877,7 @@ func (r ApiPartialUpdateLocationRequest) Location(location Location) ApiPartialU return r } -func (r ApiPartialUpdateLocationRequest) Execute() (Location, *_nethttp.Response, error) { +func (r ApiPartialUpdateLocationRequest) Execute() (*Location, *http.Response, error) { return r.ApiService.PartialUpdateLocationExecute(r) } @@ -7886,11 +7886,11 @@ PartialUpdateLocation Method for PartialUpdateLocation single object, allowed: GET + PUT - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param locationId A unique integer value identifying this location. @return ApiPartialUpdateLocationRequest */ -func (a *ApiApiService) PartialUpdateLocation(ctx _context.Context, locationId string) ApiPartialUpdateLocationRequest { +func (a *ApiApiService) PartialUpdateLocation(ctx context.Context, locationId string) ApiPartialUpdateLocationRequest { return ApiPartialUpdateLocationRequest{ ApiService: a, ctx: ctx, @@ -7900,25 +7900,25 @@ func (a *ApiApiService) PartialUpdateLocation(ctx _context.Context, locationId s // Execute executes the request // @return Location -func (a *ApiApiService) PartialUpdateLocationExecute(r ApiPartialUpdateLocationRequest) (Location, *_nethttp.Response, error) { +func (a *ApiApiService) PartialUpdateLocationExecute(r ApiPartialUpdateLocationRequest) (*Location, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodPatch + localVarHTTPMethod = http.MethodPatch localVarPostBody interface{} formFiles []formFile - localVarReturnValue Location + localVarReturnValue *Location ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.PartialUpdateLocation") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/location/{location_id}/" - localVarPath = strings.Replace(localVarPath, "{"+"location_id"+"}", _neturl.PathEscape(parameterToString(r.locationId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"location_id"+"}", url.PathEscape(parameterToString(r.locationId, "")), -1) localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} @@ -7949,15 +7949,15 @@ func (a *ApiApiService) PartialUpdateLocationExecute(r ApiPartialUpdateLocationR return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -7966,7 +7966,7 @@ func (a *ApiApiService) PartialUpdateLocationExecute(r ApiPartialUpdateLocationR err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -7977,7 +7977,7 @@ func (a *ApiApiService) PartialUpdateLocationExecute(r ApiPartialUpdateLocationR } type ApiPartialUpdateNoteRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService noteId string note *Note @@ -7988,7 +7988,7 @@ func (r ApiPartialUpdateNoteRequest) Note(note Note) ApiPartialUpdateNoteRequest return r } -func (r ApiPartialUpdateNoteRequest) Execute() (Note, *_nethttp.Response, error) { +func (r ApiPartialUpdateNoteRequest) Execute() (*Note, *http.Response, error) { return r.ApiService.PartialUpdateNoteExecute(r) } @@ -7997,11 +7997,11 @@ PartialUpdateNote Method for PartialUpdateNote single object, allowed: GET + PUT - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param noteId A unique integer value identifying this note. @return ApiPartialUpdateNoteRequest */ -func (a *ApiApiService) PartialUpdateNote(ctx _context.Context, noteId string) ApiPartialUpdateNoteRequest { +func (a *ApiApiService) PartialUpdateNote(ctx context.Context, noteId string) ApiPartialUpdateNoteRequest { return ApiPartialUpdateNoteRequest{ ApiService: a, ctx: ctx, @@ -8011,25 +8011,25 @@ func (a *ApiApiService) PartialUpdateNote(ctx _context.Context, noteId string) A // Execute executes the request // @return Note -func (a *ApiApiService) PartialUpdateNoteExecute(r ApiPartialUpdateNoteRequest) (Note, *_nethttp.Response, error) { +func (a *ApiApiService) PartialUpdateNoteExecute(r ApiPartialUpdateNoteRequest) (*Note, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodPatch + localVarHTTPMethod = http.MethodPatch localVarPostBody interface{} formFiles []formFile - localVarReturnValue Note + localVarReturnValue *Note ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.PartialUpdateNote") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/note/{note_id}/" - localVarPath = strings.Replace(localVarPath, "{"+"note_id"+"}", _neturl.PathEscape(parameterToString(r.noteId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"note_id"+"}", url.PathEscape(parameterToString(r.noteId, "")), -1) localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} @@ -8060,15 +8060,15 @@ func (a *ApiApiService) PartialUpdateNoteExecute(r ApiPartialUpdateNoteRequest) return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -8077,7 +8077,7 @@ func (a *ApiApiService) PartialUpdateNoteExecute(r ApiPartialUpdateNoteRequest) err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -8088,7 +8088,7 @@ func (a *ApiApiService) PartialUpdateNoteExecute(r ApiPartialUpdateNoteRequest) } type ApiPartialUpdateOsRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService osId string os *Os @@ -8099,7 +8099,7 @@ func (r ApiPartialUpdateOsRequest) Os(os Os) ApiPartialUpdateOsRequest { return r } -func (r ApiPartialUpdateOsRequest) Execute() (Os, *_nethttp.Response, error) { +func (r ApiPartialUpdateOsRequest) Execute() (*Os, *http.Response, error) { return r.ApiService.PartialUpdateOsExecute(r) } @@ -8108,11 +8108,11 @@ PartialUpdateOs Method for PartialUpdateOs single object, allowed: GET + PUT - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param osId A unique integer value identifying this os. @return ApiPartialUpdateOsRequest */ -func (a *ApiApiService) PartialUpdateOs(ctx _context.Context, osId string) ApiPartialUpdateOsRequest { +func (a *ApiApiService) PartialUpdateOs(ctx context.Context, osId string) ApiPartialUpdateOsRequest { return ApiPartialUpdateOsRequest{ ApiService: a, ctx: ctx, @@ -8122,25 +8122,25 @@ func (a *ApiApiService) PartialUpdateOs(ctx _context.Context, osId string) ApiPa // Execute executes the request // @return Os -func (a *ApiApiService) PartialUpdateOsExecute(r ApiPartialUpdateOsRequest) (Os, *_nethttp.Response, error) { +func (a *ApiApiService) PartialUpdateOsExecute(r ApiPartialUpdateOsRequest) (*Os, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodPatch + localVarHTTPMethod = http.MethodPatch localVarPostBody interface{} formFiles []formFile - localVarReturnValue Os + localVarReturnValue *Os ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.PartialUpdateOs") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/os/{os_id}/" - localVarPath = strings.Replace(localVarPath, "{"+"os_id"+"}", _neturl.PathEscape(parameterToString(r.osId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"os_id"+"}", url.PathEscape(parameterToString(r.osId, "")), -1) localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} @@ -8171,15 +8171,15 @@ func (a *ApiApiService) PartialUpdateOsExecute(r ApiPartialUpdateOsRequest) (Os, return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -8188,7 +8188,7 @@ func (a *ApiApiService) PartialUpdateOsExecute(r ApiPartialUpdateOsRequest) (Os, err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -8199,7 +8199,7 @@ func (a *ApiApiService) PartialUpdateOsExecute(r ApiPartialUpdateOsRequest) (Os, } type ApiPartialUpdateOsarchRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService osarchId string osarch *Osarch @@ -8210,7 +8210,7 @@ func (r ApiPartialUpdateOsarchRequest) Osarch(osarch Osarch) ApiPartialUpdateOsa return r } -func (r ApiPartialUpdateOsarchRequest) Execute() (Osarch, *_nethttp.Response, error) { +func (r ApiPartialUpdateOsarchRequest) Execute() (*Osarch, *http.Response, error) { return r.ApiService.PartialUpdateOsarchExecute(r) } @@ -8219,11 +8219,11 @@ PartialUpdateOsarch Method for PartialUpdateOsarch single object, allowed: GET + PUT - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param osarchId A unique integer value identifying this osarch. @return ApiPartialUpdateOsarchRequest */ -func (a *ApiApiService) PartialUpdateOsarch(ctx _context.Context, osarchId string) ApiPartialUpdateOsarchRequest { +func (a *ApiApiService) PartialUpdateOsarch(ctx context.Context, osarchId string) ApiPartialUpdateOsarchRequest { return ApiPartialUpdateOsarchRequest{ ApiService: a, ctx: ctx, @@ -8233,25 +8233,25 @@ func (a *ApiApiService) PartialUpdateOsarch(ctx _context.Context, osarchId strin // Execute executes the request // @return Osarch -func (a *ApiApiService) PartialUpdateOsarchExecute(r ApiPartialUpdateOsarchRequest) (Osarch, *_nethttp.Response, error) { +func (a *ApiApiService) PartialUpdateOsarchExecute(r ApiPartialUpdateOsarchRequest) (*Osarch, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodPatch + localVarHTTPMethod = http.MethodPatch localVarPostBody interface{} formFiles []formFile - localVarReturnValue Osarch + localVarReturnValue *Osarch ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.PartialUpdateOsarch") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/osarch/{osarch_id}/" - localVarPath = strings.Replace(localVarPath, "{"+"osarch_id"+"}", _neturl.PathEscape(parameterToString(r.osarchId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"osarch_id"+"}", url.PathEscape(parameterToString(r.osarchId, "")), -1) localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} @@ -8282,15 +8282,15 @@ func (a *ApiApiService) PartialUpdateOsarchExecute(r ApiPartialUpdateOsarchReque return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -8299,7 +8299,7 @@ func (a *ApiApiService) PartialUpdateOsarchExecute(r ApiPartialUpdateOsarchReque err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -8310,7 +8310,7 @@ func (a *ApiApiService) PartialUpdateOsarchExecute(r ApiPartialUpdateOsarchReque } type ApiPartialUpdateReasonRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService reasonId string reason *Reason @@ -8321,7 +8321,7 @@ func (r ApiPartialUpdateReasonRequest) Reason(reason Reason) ApiPartialUpdateRea return r } -func (r ApiPartialUpdateReasonRequest) Execute() (Reason, *_nethttp.Response, error) { +func (r ApiPartialUpdateReasonRequest) Execute() (*Reason, *http.Response, error) { return r.ApiService.PartialUpdateReasonExecute(r) } @@ -8330,11 +8330,11 @@ PartialUpdateReason Method for PartialUpdateReason single object, allowed: GET + PUT - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param reasonId A unique integer value identifying this reason. @return ApiPartialUpdateReasonRequest */ -func (a *ApiApiService) PartialUpdateReason(ctx _context.Context, reasonId string) ApiPartialUpdateReasonRequest { +func (a *ApiApiService) PartialUpdateReason(ctx context.Context, reasonId string) ApiPartialUpdateReasonRequest { return ApiPartialUpdateReasonRequest{ ApiService: a, ctx: ctx, @@ -8344,25 +8344,25 @@ func (a *ApiApiService) PartialUpdateReason(ctx _context.Context, reasonId strin // Execute executes the request // @return Reason -func (a *ApiApiService) PartialUpdateReasonExecute(r ApiPartialUpdateReasonRequest) (Reason, *_nethttp.Response, error) { +func (a *ApiApiService) PartialUpdateReasonExecute(r ApiPartialUpdateReasonRequest) (*Reason, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodPatch + localVarHTTPMethod = http.MethodPatch localVarPostBody interface{} formFiles []formFile - localVarReturnValue Reason + localVarReturnValue *Reason ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.PartialUpdateReason") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/reason/{reason_id}/" - localVarPath = strings.Replace(localVarPath, "{"+"reason_id"+"}", _neturl.PathEscape(parameterToString(r.reasonId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"reason_id"+"}", url.PathEscape(parameterToString(r.reasonId, "")), -1) localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} @@ -8393,15 +8393,15 @@ func (a *ApiApiService) PartialUpdateReasonExecute(r ApiPartialUpdateReasonReque return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -8410,7 +8410,7 @@ func (a *ApiApiService) PartialUpdateReasonExecute(r ApiPartialUpdateReasonReque err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -8421,7 +8421,7 @@ func (a *ApiApiService) PartialUpdateReasonExecute(r ApiPartialUpdateReasonReque } type ApiPartialUpdateRecommendationRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService recommendationId string recommendation *Recommendation @@ -8432,7 +8432,7 @@ func (r ApiPartialUpdateRecommendationRequest) Recommendation(recommendation Rec return r } -func (r ApiPartialUpdateRecommendationRequest) Execute() (Recommendation, *_nethttp.Response, error) { +func (r ApiPartialUpdateRecommendationRequest) Execute() (*Recommendation, *http.Response, error) { return r.ApiService.PartialUpdateRecommendationExecute(r) } @@ -8441,11 +8441,11 @@ PartialUpdateRecommendation Method for PartialUpdateRecommendation single object, allowed: GET + PUT - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param recommendationId A unique integer value identifying this recommendation. @return ApiPartialUpdateRecommendationRequest */ -func (a *ApiApiService) PartialUpdateRecommendation(ctx _context.Context, recommendationId string) ApiPartialUpdateRecommendationRequest { +func (a *ApiApiService) PartialUpdateRecommendation(ctx context.Context, recommendationId string) ApiPartialUpdateRecommendationRequest { return ApiPartialUpdateRecommendationRequest{ ApiService: a, ctx: ctx, @@ -8455,25 +8455,25 @@ func (a *ApiApiService) PartialUpdateRecommendation(ctx _context.Context, recomm // Execute executes the request // @return Recommendation -func (a *ApiApiService) PartialUpdateRecommendationExecute(r ApiPartialUpdateRecommendationRequest) (Recommendation, *_nethttp.Response, error) { +func (a *ApiApiService) PartialUpdateRecommendationExecute(r ApiPartialUpdateRecommendationRequest) (*Recommendation, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodPatch + localVarHTTPMethod = http.MethodPatch localVarPostBody interface{} formFiles []formFile - localVarReturnValue Recommendation + localVarReturnValue *Recommendation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.PartialUpdateRecommendation") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/recommendation/{recommendation_id}/" - localVarPath = strings.Replace(localVarPath, "{"+"recommendation_id"+"}", _neturl.PathEscape(parameterToString(r.recommendationId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"recommendation_id"+"}", url.PathEscape(parameterToString(r.recommendationId, "")), -1) localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} @@ -8504,15 +8504,15 @@ func (a *ApiApiService) PartialUpdateRecommendationExecute(r ApiPartialUpdateRec return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -8521,7 +8521,7 @@ func (a *ApiApiService) PartialUpdateRecommendationExecute(r ApiPartialUpdateRec err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -8532,7 +8532,7 @@ func (a *ApiApiService) PartialUpdateRecommendationExecute(r ApiPartialUpdateRec } type ApiPartialUpdateReportitemRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService reportitemId string reportitem *Reportitem @@ -8543,7 +8543,7 @@ func (r ApiPartialUpdateReportitemRequest) Reportitem(reportitem Reportitem) Api return r } -func (r ApiPartialUpdateReportitemRequest) Execute() (Reportitem, *_nethttp.Response, error) { +func (r ApiPartialUpdateReportitemRequest) Execute() (*Reportitem, *http.Response, error) { return r.ApiService.PartialUpdateReportitemExecute(r) } @@ -8552,11 +8552,11 @@ PartialUpdateReportitem Method for PartialUpdateReportitem single object, allowed: GET + PUT - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param reportitemId A unique integer value identifying this reportitem. @return ApiPartialUpdateReportitemRequest */ -func (a *ApiApiService) PartialUpdateReportitem(ctx _context.Context, reportitemId string) ApiPartialUpdateReportitemRequest { +func (a *ApiApiService) PartialUpdateReportitem(ctx context.Context, reportitemId string) ApiPartialUpdateReportitemRequest { return ApiPartialUpdateReportitemRequest{ ApiService: a, ctx: ctx, @@ -8566,25 +8566,25 @@ func (a *ApiApiService) PartialUpdateReportitem(ctx _context.Context, reportitem // Execute executes the request // @return Reportitem -func (a *ApiApiService) PartialUpdateReportitemExecute(r ApiPartialUpdateReportitemRequest) (Reportitem, *_nethttp.Response, error) { +func (a *ApiApiService) PartialUpdateReportitemExecute(r ApiPartialUpdateReportitemRequest) (*Reportitem, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodPatch + localVarHTTPMethod = http.MethodPatch localVarPostBody interface{} formFiles []formFile - localVarReturnValue Reportitem + localVarReturnValue *Reportitem ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.PartialUpdateReportitem") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/reportitem/{reportitem_id}/" - localVarPath = strings.Replace(localVarPath, "{"+"reportitem_id"+"}", _neturl.PathEscape(parameterToString(r.reportitemId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"reportitem_id"+"}", url.PathEscape(parameterToString(r.reportitemId, "")), -1) localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} @@ -8615,15 +8615,15 @@ func (a *ApiApiService) PartialUpdateReportitemExecute(r ApiPartialUpdateReporti return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -8632,7 +8632,7 @@ func (a *ApiApiService) PartialUpdateReportitemExecute(r ApiPartialUpdateReporti err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -8643,7 +8643,7 @@ func (a *ApiApiService) PartialUpdateReportitemExecute(r ApiPartialUpdateReporti } type ApiPartialUpdateServiceproviderRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService serviceproviderId string serviceprovider *Serviceprovider @@ -8654,7 +8654,7 @@ func (r ApiPartialUpdateServiceproviderRequest) Serviceprovider(serviceprovider return r } -func (r ApiPartialUpdateServiceproviderRequest) Execute() (Serviceprovider, *_nethttp.Response, error) { +func (r ApiPartialUpdateServiceproviderRequest) Execute() (*Serviceprovider, *http.Response, error) { return r.ApiService.PartialUpdateServiceproviderExecute(r) } @@ -8663,11 +8663,11 @@ PartialUpdateServiceprovider Method for PartialUpdateServiceprovider single object, allowed: GET + PUT - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param serviceproviderId A unique integer value identifying this serviceprovider. @return ApiPartialUpdateServiceproviderRequest */ -func (a *ApiApiService) PartialUpdateServiceprovider(ctx _context.Context, serviceproviderId string) ApiPartialUpdateServiceproviderRequest { +func (a *ApiApiService) PartialUpdateServiceprovider(ctx context.Context, serviceproviderId string) ApiPartialUpdateServiceproviderRequest { return ApiPartialUpdateServiceproviderRequest{ ApiService: a, ctx: ctx, @@ -8677,25 +8677,25 @@ func (a *ApiApiService) PartialUpdateServiceprovider(ctx _context.Context, servi // Execute executes the request // @return Serviceprovider -func (a *ApiApiService) PartialUpdateServiceproviderExecute(r ApiPartialUpdateServiceproviderRequest) (Serviceprovider, *_nethttp.Response, error) { +func (a *ApiApiService) PartialUpdateServiceproviderExecute(r ApiPartialUpdateServiceproviderRequest) (*Serviceprovider, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodPatch + localVarHTTPMethod = http.MethodPatch localVarPostBody interface{} formFiles []formFile - localVarReturnValue Serviceprovider + localVarReturnValue *Serviceprovider ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.PartialUpdateServiceprovider") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/serviceprovider/{serviceprovider_id}/" - localVarPath = strings.Replace(localVarPath, "{"+"serviceprovider_id"+"}", _neturl.PathEscape(parameterToString(r.serviceproviderId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"serviceprovider_id"+"}", url.PathEscape(parameterToString(r.serviceproviderId, "")), -1) localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} @@ -8726,15 +8726,15 @@ func (a *ApiApiService) PartialUpdateServiceproviderExecute(r ApiPartialUpdateSe return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -8743,7 +8743,7 @@ func (a *ApiApiService) PartialUpdateServiceproviderExecute(r ApiPartialUpdateSe err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -8754,7 +8754,7 @@ func (a *ApiApiService) PartialUpdateServiceproviderExecute(r ApiPartialUpdateSe } type ApiPartialUpdateSystemRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService systemId string system *System @@ -8765,7 +8765,7 @@ func (r ApiPartialUpdateSystemRequest) System(system System) ApiPartialUpdateSys return r } -func (r ApiPartialUpdateSystemRequest) Execute() (System, *_nethttp.Response, error) { +func (r ApiPartialUpdateSystemRequest) Execute() (*System, *http.Response, error) { return r.ApiService.PartialUpdateSystemExecute(r) } @@ -8774,11 +8774,11 @@ PartialUpdateSystem Method for PartialUpdateSystem single object, allowed: GET + PUT - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param systemId A unique integer value identifying this system. @return ApiPartialUpdateSystemRequest */ -func (a *ApiApiService) PartialUpdateSystem(ctx _context.Context, systemId string) ApiPartialUpdateSystemRequest { +func (a *ApiApiService) PartialUpdateSystem(ctx context.Context, systemId string) ApiPartialUpdateSystemRequest { return ApiPartialUpdateSystemRequest{ ApiService: a, ctx: ctx, @@ -8788,25 +8788,25 @@ func (a *ApiApiService) PartialUpdateSystem(ctx _context.Context, systemId strin // Execute executes the request // @return System -func (a *ApiApiService) PartialUpdateSystemExecute(r ApiPartialUpdateSystemRequest) (System, *_nethttp.Response, error) { +func (a *ApiApiService) PartialUpdateSystemExecute(r ApiPartialUpdateSystemRequest) (*System, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodPatch + localVarHTTPMethod = http.MethodPatch localVarPostBody interface{} formFiles []formFile - localVarReturnValue System + localVarReturnValue *System ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.PartialUpdateSystem") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/system/{system_id}/" - localVarPath = strings.Replace(localVarPath, "{"+"system_id"+"}", _neturl.PathEscape(parameterToString(r.systemId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"system_id"+"}", url.PathEscape(parameterToString(r.systemId, "")), -1) localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} @@ -8837,15 +8837,15 @@ func (a *ApiApiService) PartialUpdateSystemExecute(r ApiPartialUpdateSystemReque return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -8854,7 +8854,7 @@ func (a *ApiApiService) PartialUpdateSystemExecute(r ApiPartialUpdateSystemReque err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -8865,7 +8865,7 @@ func (a *ApiApiService) PartialUpdateSystemExecute(r ApiPartialUpdateSystemReque } type ApiPartialUpdateSystemtypeRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService systemtypeId string systemtype *Systemtype @@ -8876,7 +8876,7 @@ func (r ApiPartialUpdateSystemtypeRequest) Systemtype(systemtype Systemtype) Api return r } -func (r ApiPartialUpdateSystemtypeRequest) Execute() (Systemtype, *_nethttp.Response, error) { +func (r ApiPartialUpdateSystemtypeRequest) Execute() (*Systemtype, *http.Response, error) { return r.ApiService.PartialUpdateSystemtypeExecute(r) } @@ -8885,11 +8885,11 @@ PartialUpdateSystemtype Method for PartialUpdateSystemtype single object, allowed: GET + PUT - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param systemtypeId A unique integer value identifying this systemtype. @return ApiPartialUpdateSystemtypeRequest */ -func (a *ApiApiService) PartialUpdateSystemtype(ctx _context.Context, systemtypeId string) ApiPartialUpdateSystemtypeRequest { +func (a *ApiApiService) PartialUpdateSystemtype(ctx context.Context, systemtypeId string) ApiPartialUpdateSystemtypeRequest { return ApiPartialUpdateSystemtypeRequest{ ApiService: a, ctx: ctx, @@ -8899,25 +8899,25 @@ func (a *ApiApiService) PartialUpdateSystemtype(ctx _context.Context, systemtype // Execute executes the request // @return Systemtype -func (a *ApiApiService) PartialUpdateSystemtypeExecute(r ApiPartialUpdateSystemtypeRequest) (Systemtype, *_nethttp.Response, error) { +func (a *ApiApiService) PartialUpdateSystemtypeExecute(r ApiPartialUpdateSystemtypeRequest) (*Systemtype, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodPatch + localVarHTTPMethod = http.MethodPatch localVarPostBody interface{} formFiles []formFile - localVarReturnValue Systemtype + localVarReturnValue *Systemtype ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.PartialUpdateSystemtype") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/systemtype/{systemtype_id}/" - localVarPath = strings.Replace(localVarPath, "{"+"systemtype_id"+"}", _neturl.PathEscape(parameterToString(r.systemtypeId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"systemtype_id"+"}", url.PathEscape(parameterToString(r.systemtypeId, "")), -1) localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} @@ -8948,15 +8948,15 @@ func (a *ApiApiService) PartialUpdateSystemtypeExecute(r ApiPartialUpdateSystemt return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -8965,7 +8965,7 @@ func (a *ApiApiService) PartialUpdateSystemtypeExecute(r ApiPartialUpdateSystemt err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -8976,7 +8976,7 @@ func (a *ApiApiService) PartialUpdateSystemtypeExecute(r ApiPartialUpdateSystemt } type ApiPartialUpdateSystemuserRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService systemuserId string systemuser *Systemuser @@ -8987,7 +8987,7 @@ func (r ApiPartialUpdateSystemuserRequest) Systemuser(systemuser Systemuser) Api return r } -func (r ApiPartialUpdateSystemuserRequest) Execute() (Systemuser, *_nethttp.Response, error) { +func (r ApiPartialUpdateSystemuserRequest) Execute() (*Systemuser, *http.Response, error) { return r.ApiService.PartialUpdateSystemuserExecute(r) } @@ -8996,11 +8996,11 @@ PartialUpdateSystemuser Method for PartialUpdateSystemuser single object, allowed: GET + PUT - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param systemuserId A unique integer value identifying this systemuser. @return ApiPartialUpdateSystemuserRequest */ -func (a *ApiApiService) PartialUpdateSystemuser(ctx _context.Context, systemuserId string) ApiPartialUpdateSystemuserRequest { +func (a *ApiApiService) PartialUpdateSystemuser(ctx context.Context, systemuserId string) ApiPartialUpdateSystemuserRequest { return ApiPartialUpdateSystemuserRequest{ ApiService: a, ctx: ctx, @@ -9010,25 +9010,25 @@ func (a *ApiApiService) PartialUpdateSystemuser(ctx _context.Context, systemuser // Execute executes the request // @return Systemuser -func (a *ApiApiService) PartialUpdateSystemuserExecute(r ApiPartialUpdateSystemuserRequest) (Systemuser, *_nethttp.Response, error) { +func (a *ApiApiService) PartialUpdateSystemuserExecute(r ApiPartialUpdateSystemuserRequest) (*Systemuser, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodPatch + localVarHTTPMethod = http.MethodPatch localVarPostBody interface{} formFiles []formFile - localVarReturnValue Systemuser + localVarReturnValue *Systemuser ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.PartialUpdateSystemuser") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/systemuser/{systemuser_id}/" - localVarPath = strings.Replace(localVarPath, "{"+"systemuser_id"+"}", _neturl.PathEscape(parameterToString(r.systemuserId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"systemuser_id"+"}", url.PathEscape(parameterToString(r.systemuserId, "")), -1) localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} @@ -9059,15 +9059,15 @@ func (a *ApiApiService) PartialUpdateSystemuserExecute(r ApiPartialUpdateSystemu return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -9076,7 +9076,7 @@ func (a *ApiApiService) PartialUpdateSystemuserExecute(r ApiPartialUpdateSystemu err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -9087,7 +9087,7 @@ func (a *ApiApiService) PartialUpdateSystemuserExecute(r ApiPartialUpdateSystemu } type ApiPartialUpdateTagRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService tagId string tag *Tag @@ -9098,7 +9098,7 @@ func (r ApiPartialUpdateTagRequest) Tag(tag Tag) ApiPartialUpdateTagRequest { return r } -func (r ApiPartialUpdateTagRequest) Execute() (Tag, *_nethttp.Response, error) { +func (r ApiPartialUpdateTagRequest) Execute() (*Tag, *http.Response, error) { return r.ApiService.PartialUpdateTagExecute(r) } @@ -9107,11 +9107,11 @@ PartialUpdateTag Method for PartialUpdateTag single object, allowed: GET + PUT - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param tagId A unique integer value identifying this tag. @return ApiPartialUpdateTagRequest */ -func (a *ApiApiService) PartialUpdateTag(ctx _context.Context, tagId string) ApiPartialUpdateTagRequest { +func (a *ApiApiService) PartialUpdateTag(ctx context.Context, tagId string) ApiPartialUpdateTagRequest { return ApiPartialUpdateTagRequest{ ApiService: a, ctx: ctx, @@ -9121,25 +9121,25 @@ func (a *ApiApiService) PartialUpdateTag(ctx _context.Context, tagId string) Api // Execute executes the request // @return Tag -func (a *ApiApiService) PartialUpdateTagExecute(r ApiPartialUpdateTagRequest) (Tag, *_nethttp.Response, error) { +func (a *ApiApiService) PartialUpdateTagExecute(r ApiPartialUpdateTagRequest) (*Tag, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodPatch + localVarHTTPMethod = http.MethodPatch localVarPostBody interface{} formFiles []formFile - localVarReturnValue Tag + localVarReturnValue *Tag ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.PartialUpdateTag") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/tag/{tag_id}/" - localVarPath = strings.Replace(localVarPath, "{"+"tag_id"+"}", _neturl.PathEscape(parameterToString(r.tagId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"tag_id"+"}", url.PathEscape(parameterToString(r.tagId, "")), -1) localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} @@ -9170,15 +9170,15 @@ func (a *ApiApiService) PartialUpdateTagExecute(r ApiPartialUpdateTagRequest) (T return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -9187,7 +9187,7 @@ func (a *ApiApiService) PartialUpdateTagExecute(r ApiPartialUpdateTagRequest) (T err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -9198,7 +9198,7 @@ func (a *ApiApiService) PartialUpdateTagExecute(r ApiPartialUpdateTagRequest) (T } type ApiPartialUpdateTaskRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService taskId string task *Task @@ -9209,7 +9209,7 @@ func (r ApiPartialUpdateTaskRequest) Task(task Task) ApiPartialUpdateTaskRequest return r } -func (r ApiPartialUpdateTaskRequest) Execute() (Task, *_nethttp.Response, error) { +func (r ApiPartialUpdateTaskRequest) Execute() (*Task, *http.Response, error) { return r.ApiService.PartialUpdateTaskExecute(r) } @@ -9218,11 +9218,11 @@ PartialUpdateTask Method for PartialUpdateTask single object, allowed: GET + PUT - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param taskId A unique integer value identifying this task. @return ApiPartialUpdateTaskRequest */ -func (a *ApiApiService) PartialUpdateTask(ctx _context.Context, taskId string) ApiPartialUpdateTaskRequest { +func (a *ApiApiService) PartialUpdateTask(ctx context.Context, taskId string) ApiPartialUpdateTaskRequest { return ApiPartialUpdateTaskRequest{ ApiService: a, ctx: ctx, @@ -9232,25 +9232,25 @@ func (a *ApiApiService) PartialUpdateTask(ctx _context.Context, taskId string) A // Execute executes the request // @return Task -func (a *ApiApiService) PartialUpdateTaskExecute(r ApiPartialUpdateTaskRequest) (Task, *_nethttp.Response, error) { +func (a *ApiApiService) PartialUpdateTaskExecute(r ApiPartialUpdateTaskRequest) (*Task, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodPatch + localVarHTTPMethod = http.MethodPatch localVarPostBody interface{} formFiles []formFile - localVarReturnValue Task + localVarReturnValue *Task ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.PartialUpdateTask") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/task/{task_id}/" - localVarPath = strings.Replace(localVarPath, "{"+"task_id"+"}", _neturl.PathEscape(parameterToString(r.taskId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"task_id"+"}", url.PathEscape(parameterToString(r.taskId, "")), -1) localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} @@ -9281,15 +9281,15 @@ func (a *ApiApiService) PartialUpdateTaskExecute(r ApiPartialUpdateTaskRequest) return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -9298,7 +9298,7 @@ func (a *ApiApiService) PartialUpdateTaskExecute(r ApiPartialUpdateTaskRequest) err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -9309,7 +9309,7 @@ func (a *ApiApiService) PartialUpdateTaskExecute(r ApiPartialUpdateTaskRequest) } type ApiPartialUpdateTasknameRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService tasknameId string taskname *Taskname @@ -9320,7 +9320,7 @@ func (r ApiPartialUpdateTasknameRequest) Taskname(taskname Taskname) ApiPartialU return r } -func (r ApiPartialUpdateTasknameRequest) Execute() (Taskname, *_nethttp.Response, error) { +func (r ApiPartialUpdateTasknameRequest) Execute() (*Taskname, *http.Response, error) { return r.ApiService.PartialUpdateTasknameExecute(r) } @@ -9329,11 +9329,11 @@ PartialUpdateTaskname Method for PartialUpdateTaskname single object, allowed: GET + PUT - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param tasknameId A unique integer value identifying this taskname. @return ApiPartialUpdateTasknameRequest */ -func (a *ApiApiService) PartialUpdateTaskname(ctx _context.Context, tasknameId string) ApiPartialUpdateTasknameRequest { +func (a *ApiApiService) PartialUpdateTaskname(ctx context.Context, tasknameId string) ApiPartialUpdateTasknameRequest { return ApiPartialUpdateTasknameRequest{ ApiService: a, ctx: ctx, @@ -9343,25 +9343,25 @@ func (a *ApiApiService) PartialUpdateTaskname(ctx _context.Context, tasknameId s // Execute executes the request // @return Taskname -func (a *ApiApiService) PartialUpdateTasknameExecute(r ApiPartialUpdateTasknameRequest) (Taskname, *_nethttp.Response, error) { +func (a *ApiApiService) PartialUpdateTasknameExecute(r ApiPartialUpdateTasknameRequest) (*Taskname, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodPatch + localVarHTTPMethod = http.MethodPatch localVarPostBody interface{} formFiles []formFile - localVarReturnValue Taskname + localVarReturnValue *Taskname ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.PartialUpdateTaskname") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/taskname/{taskname_id}/" - localVarPath = strings.Replace(localVarPath, "{"+"taskname_id"+"}", _neturl.PathEscape(parameterToString(r.tasknameId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"taskname_id"+"}", url.PathEscape(parameterToString(r.tasknameId, "")), -1) localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} @@ -9392,15 +9392,15 @@ func (a *ApiApiService) PartialUpdateTasknameExecute(r ApiPartialUpdateTasknameR return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -9409,7 +9409,7 @@ func (a *ApiApiService) PartialUpdateTasknameExecute(r ApiPartialUpdateTasknameR err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -9420,13 +9420,13 @@ func (a *ApiApiService) PartialUpdateTasknameExecute(r ApiPartialUpdateTasknameR } type ApiRetrieveAnalysisstatusRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService analysisstatusId string } -func (r ApiRetrieveAnalysisstatusRequest) Execute() (Analysisstatus, *_nethttp.Response, error) { +func (r ApiRetrieveAnalysisstatusRequest) Execute() (*Analysisstatus, *http.Response, error) { return r.ApiService.RetrieveAnalysisstatusExecute(r) } @@ -9435,11 +9435,11 @@ RetrieveAnalysisstatus Method for RetrieveAnalysisstatus single object, allowed: GET - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param analysisstatusId A unique integer value identifying this analysisstatus. @return ApiRetrieveAnalysisstatusRequest */ -func (a *ApiApiService) RetrieveAnalysisstatus(ctx _context.Context, analysisstatusId string) ApiRetrieveAnalysisstatusRequest { +func (a *ApiApiService) RetrieveAnalysisstatus(ctx context.Context, analysisstatusId string) ApiRetrieveAnalysisstatusRequest { return ApiRetrieveAnalysisstatusRequest{ ApiService: a, ctx: ctx, @@ -9449,25 +9449,25 @@ func (a *ApiApiService) RetrieveAnalysisstatus(ctx _context.Context, analysissta // Execute executes the request // @return Analysisstatus -func (a *ApiApiService) RetrieveAnalysisstatusExecute(r ApiRetrieveAnalysisstatusRequest) (Analysisstatus, *_nethttp.Response, error) { +func (a *ApiApiService) RetrieveAnalysisstatusExecute(r ApiRetrieveAnalysisstatusRequest) (*Analysisstatus, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodGet + localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue Analysisstatus + localVarReturnValue *Analysisstatus ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.RetrieveAnalysisstatus") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/analysisstatus/{analysisstatus_id}/" - localVarPath = strings.Replace(localVarPath, "{"+"analysisstatus_id"+"}", _neturl.PathEscape(parameterToString(r.analysisstatusId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"analysisstatus_id"+"}", url.PathEscape(parameterToString(r.analysisstatusId, "")), -1) localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -9496,15 +9496,15 @@ func (a *ApiApiService) RetrieveAnalysisstatusExecute(r ApiRetrieveAnalysisstatu return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -9513,7 +9513,7 @@ func (a *ApiApiService) RetrieveAnalysisstatusExecute(r ApiRetrieveAnalysisstatu err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -9524,13 +9524,13 @@ func (a *ApiApiService) RetrieveAnalysisstatusExecute(r ApiRetrieveAnalysisstatu } type ApiRetrieveArtifactRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService artifactId string } -func (r ApiRetrieveArtifactRequest) Execute() (Artifact, *_nethttp.Response, error) { +func (r ApiRetrieveArtifactRequest) Execute() (*Artifact, *http.Response, error) { return r.ApiService.RetrieveArtifactExecute(r) } @@ -9539,11 +9539,11 @@ RetrieveArtifact Method for RetrieveArtifact single object, allowed: GET + PUT - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param artifactId A unique integer value identifying this artifact. @return ApiRetrieveArtifactRequest */ -func (a *ApiApiService) RetrieveArtifact(ctx _context.Context, artifactId string) ApiRetrieveArtifactRequest { +func (a *ApiApiService) RetrieveArtifact(ctx context.Context, artifactId string) ApiRetrieveArtifactRequest { return ApiRetrieveArtifactRequest{ ApiService: a, ctx: ctx, @@ -9553,25 +9553,25 @@ func (a *ApiApiService) RetrieveArtifact(ctx _context.Context, artifactId string // Execute executes the request // @return Artifact -func (a *ApiApiService) RetrieveArtifactExecute(r ApiRetrieveArtifactRequest) (Artifact, *_nethttp.Response, error) { +func (a *ApiApiService) RetrieveArtifactExecute(r ApiRetrieveArtifactRequest) (*Artifact, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodGet + localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue Artifact + localVarReturnValue *Artifact ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.RetrieveArtifact") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/artifact/{artifact_id}/" - localVarPath = strings.Replace(localVarPath, "{"+"artifact_id"+"}", _neturl.PathEscape(parameterToString(r.artifactId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"artifact_id"+"}", url.PathEscape(parameterToString(r.artifactId, "")), -1) localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -9600,15 +9600,15 @@ func (a *ApiApiService) RetrieveArtifactExecute(r ApiRetrieveArtifactRequest) (A return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -9617,7 +9617,7 @@ func (a *ApiApiService) RetrieveArtifactExecute(r ApiRetrieveArtifactRequest) (A err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -9628,13 +9628,13 @@ func (a *ApiApiService) RetrieveArtifactExecute(r ApiRetrieveArtifactRequest) (A } type ApiRetrieveArtifactpriorityRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService artifactpriorityId string } -func (r ApiRetrieveArtifactpriorityRequest) Execute() (Artifactpriority, *_nethttp.Response, error) { +func (r ApiRetrieveArtifactpriorityRequest) Execute() (*Artifactpriority, *http.Response, error) { return r.ApiService.RetrieveArtifactpriorityExecute(r) } @@ -9643,11 +9643,11 @@ RetrieveArtifactpriority Method for RetrieveArtifactpriority single object, allowed: GET - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param artifactpriorityId A unique integer value identifying this artifactpriority. @return ApiRetrieveArtifactpriorityRequest */ -func (a *ApiApiService) RetrieveArtifactpriority(ctx _context.Context, artifactpriorityId string) ApiRetrieveArtifactpriorityRequest { +func (a *ApiApiService) RetrieveArtifactpriority(ctx context.Context, artifactpriorityId string) ApiRetrieveArtifactpriorityRequest { return ApiRetrieveArtifactpriorityRequest{ ApiService: a, ctx: ctx, @@ -9657,25 +9657,25 @@ func (a *ApiApiService) RetrieveArtifactpriority(ctx _context.Context, artifactp // Execute executes the request // @return Artifactpriority -func (a *ApiApiService) RetrieveArtifactpriorityExecute(r ApiRetrieveArtifactpriorityRequest) (Artifactpriority, *_nethttp.Response, error) { +func (a *ApiApiService) RetrieveArtifactpriorityExecute(r ApiRetrieveArtifactpriorityRequest) (*Artifactpriority, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodGet + localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue Artifactpriority + localVarReturnValue *Artifactpriority ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.RetrieveArtifactpriority") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/artifactpriority/{artifactpriority_id}/" - localVarPath = strings.Replace(localVarPath, "{"+"artifactpriority_id"+"}", _neturl.PathEscape(parameterToString(r.artifactpriorityId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"artifactpriority_id"+"}", url.PathEscape(parameterToString(r.artifactpriorityId, "")), -1) localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -9704,15 +9704,15 @@ func (a *ApiApiService) RetrieveArtifactpriorityExecute(r ApiRetrieveArtifactpri return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -9721,7 +9721,7 @@ func (a *ApiApiService) RetrieveArtifactpriorityExecute(r ApiRetrieveArtifactpri err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -9732,13 +9732,13 @@ func (a *ApiApiService) RetrieveArtifactpriorityExecute(r ApiRetrieveArtifactpri } type ApiRetrieveArtifactstatusRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService artifactstatusId string } -func (r ApiRetrieveArtifactstatusRequest) Execute() (Artifactstatus, *_nethttp.Response, error) { +func (r ApiRetrieveArtifactstatusRequest) Execute() (*Artifactstatus, *http.Response, error) { return r.ApiService.RetrieveArtifactstatusExecute(r) } @@ -9747,11 +9747,11 @@ RetrieveArtifactstatus Method for RetrieveArtifactstatus single object, allowed: GET - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param artifactstatusId A unique integer value identifying this artifactstatus. @return ApiRetrieveArtifactstatusRequest */ -func (a *ApiApiService) RetrieveArtifactstatus(ctx _context.Context, artifactstatusId string) ApiRetrieveArtifactstatusRequest { +func (a *ApiApiService) RetrieveArtifactstatus(ctx context.Context, artifactstatusId string) ApiRetrieveArtifactstatusRequest { return ApiRetrieveArtifactstatusRequest{ ApiService: a, ctx: ctx, @@ -9761,25 +9761,25 @@ func (a *ApiApiService) RetrieveArtifactstatus(ctx _context.Context, artifactsta // Execute executes the request // @return Artifactstatus -func (a *ApiApiService) RetrieveArtifactstatusExecute(r ApiRetrieveArtifactstatusRequest) (Artifactstatus, *_nethttp.Response, error) { +func (a *ApiApiService) RetrieveArtifactstatusExecute(r ApiRetrieveArtifactstatusRequest) (*Artifactstatus, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodGet + localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue Artifactstatus + localVarReturnValue *Artifactstatus ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.RetrieveArtifactstatus") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/artifactstatus/{artifactstatus_id}/" - localVarPath = strings.Replace(localVarPath, "{"+"artifactstatus_id"+"}", _neturl.PathEscape(parameterToString(r.artifactstatusId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"artifactstatus_id"+"}", url.PathEscape(parameterToString(r.artifactstatusId, "")), -1) localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -9808,15 +9808,15 @@ func (a *ApiApiService) RetrieveArtifactstatusExecute(r ApiRetrieveArtifactstatu return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -9825,7 +9825,7 @@ func (a *ApiApiService) RetrieveArtifactstatusExecute(r ApiRetrieveArtifactstatu err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -9836,13 +9836,13 @@ func (a *ApiApiService) RetrieveArtifactstatusExecute(r ApiRetrieveArtifactstatu } type ApiRetrieveArtifacttypeRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService artifacttypeId string } -func (r ApiRetrieveArtifacttypeRequest) Execute() (Artifacttype, *_nethttp.Response, error) { +func (r ApiRetrieveArtifacttypeRequest) Execute() (*Artifacttype, *http.Response, error) { return r.ApiService.RetrieveArtifacttypeExecute(r) } @@ -9851,11 +9851,11 @@ RetrieveArtifacttype Method for RetrieveArtifacttype single object, allowed: GET + PUT - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param artifacttypeId A unique integer value identifying this artifacttype. @return ApiRetrieveArtifacttypeRequest */ -func (a *ApiApiService) RetrieveArtifacttype(ctx _context.Context, artifacttypeId string) ApiRetrieveArtifacttypeRequest { +func (a *ApiApiService) RetrieveArtifacttype(ctx context.Context, artifacttypeId string) ApiRetrieveArtifacttypeRequest { return ApiRetrieveArtifacttypeRequest{ ApiService: a, ctx: ctx, @@ -9865,25 +9865,25 @@ func (a *ApiApiService) RetrieveArtifacttype(ctx _context.Context, artifacttypeI // Execute executes the request // @return Artifacttype -func (a *ApiApiService) RetrieveArtifacttypeExecute(r ApiRetrieveArtifacttypeRequest) (Artifacttype, *_nethttp.Response, error) { +func (a *ApiApiService) RetrieveArtifacttypeExecute(r ApiRetrieveArtifacttypeRequest) (*Artifacttype, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodGet + localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue Artifacttype + localVarReturnValue *Artifacttype ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.RetrieveArtifacttype") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/artifacttype/{artifacttype_id}/" - localVarPath = strings.Replace(localVarPath, "{"+"artifacttype_id"+"}", _neturl.PathEscape(parameterToString(r.artifacttypeId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"artifacttype_id"+"}", url.PathEscape(parameterToString(r.artifacttypeId, "")), -1) localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -9912,15 +9912,15 @@ func (a *ApiApiService) RetrieveArtifacttypeExecute(r ApiRetrieveArtifacttypeReq return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -9929,7 +9929,7 @@ func (a *ApiApiService) RetrieveArtifacttypeExecute(r ApiRetrieveArtifacttypeReq err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -9940,13 +9940,13 @@ func (a *ApiApiService) RetrieveArtifacttypeExecute(r ApiRetrieveArtifacttypeReq } type ApiRetrieveCaseRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService caseId string } -func (r ApiRetrieveCaseRequest) Execute() (Case, *_nethttp.Response, error) { +func (r ApiRetrieveCaseRequest) Execute() (*Case, *http.Response, error) { return r.ApiService.RetrieveCaseExecute(r) } @@ -9955,11 +9955,11 @@ RetrieveCase Method for RetrieveCase single object, allowed: GET + PUT - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param caseId A unique integer value identifying this case. @return ApiRetrieveCaseRequest */ -func (a *ApiApiService) RetrieveCase(ctx _context.Context, caseId string) ApiRetrieveCaseRequest { +func (a *ApiApiService) RetrieveCase(ctx context.Context, caseId string) ApiRetrieveCaseRequest { return ApiRetrieveCaseRequest{ ApiService: a, ctx: ctx, @@ -9969,25 +9969,25 @@ func (a *ApiApiService) RetrieveCase(ctx _context.Context, caseId string) ApiRet // Execute executes the request // @return Case -func (a *ApiApiService) RetrieveCaseExecute(r ApiRetrieveCaseRequest) (Case, *_nethttp.Response, error) { +func (a *ApiApiService) RetrieveCaseExecute(r ApiRetrieveCaseRequest) (*Case, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodGet + localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue Case + localVarReturnValue *Case ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.RetrieveCase") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/case/{case_id}/" - localVarPath = strings.Replace(localVarPath, "{"+"case_id"+"}", _neturl.PathEscape(parameterToString(r.caseId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"case_id"+"}", url.PathEscape(parameterToString(r.caseId, "")), -1) localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -10016,15 +10016,15 @@ func (a *ApiApiService) RetrieveCaseExecute(r ApiRetrieveCaseRequest) (Case, *_n return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -10033,7 +10033,7 @@ func (a *ApiApiService) RetrieveCaseExecute(r ApiRetrieveCaseRequest) (Case, *_n err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -10044,13 +10044,13 @@ func (a *ApiApiService) RetrieveCaseExecute(r ApiRetrieveCaseRequest) (Case, *_n } type ApiRetrieveCasepriorityRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService casepriorityId string } -func (r ApiRetrieveCasepriorityRequest) Execute() (Casepriority, *_nethttp.Response, error) { +func (r ApiRetrieveCasepriorityRequest) Execute() (*Casepriority, *http.Response, error) { return r.ApiService.RetrieveCasepriorityExecute(r) } @@ -10059,11 +10059,11 @@ RetrieveCasepriority Method for RetrieveCasepriority single object, allowed: GET - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param casepriorityId A unique integer value identifying this casepriority. @return ApiRetrieveCasepriorityRequest */ -func (a *ApiApiService) RetrieveCasepriority(ctx _context.Context, casepriorityId string) ApiRetrieveCasepriorityRequest { +func (a *ApiApiService) RetrieveCasepriority(ctx context.Context, casepriorityId string) ApiRetrieveCasepriorityRequest { return ApiRetrieveCasepriorityRequest{ ApiService: a, ctx: ctx, @@ -10073,25 +10073,25 @@ func (a *ApiApiService) RetrieveCasepriority(ctx _context.Context, casepriorityI // Execute executes the request // @return Casepriority -func (a *ApiApiService) RetrieveCasepriorityExecute(r ApiRetrieveCasepriorityRequest) (Casepriority, *_nethttp.Response, error) { +func (a *ApiApiService) RetrieveCasepriorityExecute(r ApiRetrieveCasepriorityRequest) (*Casepriority, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodGet + localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue Casepriority + localVarReturnValue *Casepriority ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.RetrieveCasepriority") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/casepriority/{casepriority_id}/" - localVarPath = strings.Replace(localVarPath, "{"+"casepriority_id"+"}", _neturl.PathEscape(parameterToString(r.casepriorityId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"casepriority_id"+"}", url.PathEscape(parameterToString(r.casepriorityId, "")), -1) localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -10120,15 +10120,15 @@ func (a *ApiApiService) RetrieveCasepriorityExecute(r ApiRetrieveCasepriorityReq return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -10137,7 +10137,7 @@ func (a *ApiApiService) RetrieveCasepriorityExecute(r ApiRetrieveCasepriorityReq err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -10148,13 +10148,13 @@ func (a *ApiApiService) RetrieveCasepriorityExecute(r ApiRetrieveCasepriorityReq } type ApiRetrieveCasestatusRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService casestatusId string } -func (r ApiRetrieveCasestatusRequest) Execute() (Casestatus, *_nethttp.Response, error) { +func (r ApiRetrieveCasestatusRequest) Execute() (*Casestatus, *http.Response, error) { return r.ApiService.RetrieveCasestatusExecute(r) } @@ -10163,11 +10163,11 @@ RetrieveCasestatus Method for RetrieveCasestatus single object, allowed: GET - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param casestatusId A unique integer value identifying this casestatus. @return ApiRetrieveCasestatusRequest */ -func (a *ApiApiService) RetrieveCasestatus(ctx _context.Context, casestatusId string) ApiRetrieveCasestatusRequest { +func (a *ApiApiService) RetrieveCasestatus(ctx context.Context, casestatusId string) ApiRetrieveCasestatusRequest { return ApiRetrieveCasestatusRequest{ ApiService: a, ctx: ctx, @@ -10177,25 +10177,25 @@ func (a *ApiApiService) RetrieveCasestatus(ctx _context.Context, casestatusId st // Execute executes the request // @return Casestatus -func (a *ApiApiService) RetrieveCasestatusExecute(r ApiRetrieveCasestatusRequest) (Casestatus, *_nethttp.Response, error) { +func (a *ApiApiService) RetrieveCasestatusExecute(r ApiRetrieveCasestatusRequest) (*Casestatus, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodGet + localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue Casestatus + localVarReturnValue *Casestatus ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.RetrieveCasestatus") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/casestatus/{casestatus_id}/" - localVarPath = strings.Replace(localVarPath, "{"+"casestatus_id"+"}", _neturl.PathEscape(parameterToString(r.casestatusId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"casestatus_id"+"}", url.PathEscape(parameterToString(r.casestatusId, "")), -1) localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -10224,15 +10224,15 @@ func (a *ApiApiService) RetrieveCasestatusExecute(r ApiRetrieveCasestatusRequest return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -10241,7 +10241,7 @@ func (a *ApiApiService) RetrieveCasestatusExecute(r ApiRetrieveCasestatusRequest err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -10252,13 +10252,13 @@ func (a *ApiApiService) RetrieveCasestatusExecute(r ApiRetrieveCasestatusRequest } type ApiRetrieveCasetypeRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService casetypeId string } -func (r ApiRetrieveCasetypeRequest) Execute() (Casetype, *_nethttp.Response, error) { +func (r ApiRetrieveCasetypeRequest) Execute() (*Casetype, *http.Response, error) { return r.ApiService.RetrieveCasetypeExecute(r) } @@ -10267,11 +10267,11 @@ RetrieveCasetype Method for RetrieveCasetype single object, allowed: GET + PUT - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param casetypeId A unique integer value identifying this casetype. @return ApiRetrieveCasetypeRequest */ -func (a *ApiApiService) RetrieveCasetype(ctx _context.Context, casetypeId string) ApiRetrieveCasetypeRequest { +func (a *ApiApiService) RetrieveCasetype(ctx context.Context, casetypeId string) ApiRetrieveCasetypeRequest { return ApiRetrieveCasetypeRequest{ ApiService: a, ctx: ctx, @@ -10281,25 +10281,25 @@ func (a *ApiApiService) RetrieveCasetype(ctx _context.Context, casetypeId string // Execute executes the request // @return Casetype -func (a *ApiApiService) RetrieveCasetypeExecute(r ApiRetrieveCasetypeRequest) (Casetype, *_nethttp.Response, error) { +func (a *ApiApiService) RetrieveCasetypeExecute(r ApiRetrieveCasetypeRequest) (*Casetype, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodGet + localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue Casetype + localVarReturnValue *Casetype ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.RetrieveCasetype") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/casetype/{casetype_id}/" - localVarPath = strings.Replace(localVarPath, "{"+"casetype_id"+"}", _neturl.PathEscape(parameterToString(r.casetypeId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"casetype_id"+"}", url.PathEscape(parameterToString(r.casetypeId, "")), -1) localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -10328,15 +10328,15 @@ func (a *ApiApiService) RetrieveCasetypeExecute(r ApiRetrieveCasetypeRequest) (C return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -10345,7 +10345,7 @@ func (a *ApiApiService) RetrieveCasetypeExecute(r ApiRetrieveCasetypeRequest) (C err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -10356,13 +10356,13 @@ func (a *ApiApiService) RetrieveCasetypeExecute(r ApiRetrieveCasetypeRequest) (C } type ApiRetrieveCompanyRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService companyId string } -func (r ApiRetrieveCompanyRequest) Execute() (Company, *_nethttp.Response, error) { +func (r ApiRetrieveCompanyRequest) Execute() (*Company, *http.Response, error) { return r.ApiService.RetrieveCompanyExecute(r) } @@ -10371,11 +10371,11 @@ RetrieveCompany Method for RetrieveCompany single object, allowed: GET + PUT - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param companyId A unique integer value identifying this company. @return ApiRetrieveCompanyRequest */ -func (a *ApiApiService) RetrieveCompany(ctx _context.Context, companyId string) ApiRetrieveCompanyRequest { +func (a *ApiApiService) RetrieveCompany(ctx context.Context, companyId string) ApiRetrieveCompanyRequest { return ApiRetrieveCompanyRequest{ ApiService: a, ctx: ctx, @@ -10385,25 +10385,25 @@ func (a *ApiApiService) RetrieveCompany(ctx _context.Context, companyId string) // Execute executes the request // @return Company -func (a *ApiApiService) RetrieveCompanyExecute(r ApiRetrieveCompanyRequest) (Company, *_nethttp.Response, error) { +func (a *ApiApiService) RetrieveCompanyExecute(r ApiRetrieveCompanyRequest) (*Company, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodGet + localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue Company + localVarReturnValue *Company ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.RetrieveCompany") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/company/{company_id}/" - localVarPath = strings.Replace(localVarPath, "{"+"company_id"+"}", _neturl.PathEscape(parameterToString(r.companyId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"company_id"+"}", url.PathEscape(parameterToString(r.companyId, "")), -1) localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -10432,15 +10432,15 @@ func (a *ApiApiService) RetrieveCompanyExecute(r ApiRetrieveCompanyRequest) (Com return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -10449,7 +10449,7 @@ func (a *ApiApiService) RetrieveCompanyExecute(r ApiRetrieveCompanyRequest) (Com err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -10460,13 +10460,13 @@ func (a *ApiApiService) RetrieveCompanyExecute(r ApiRetrieveCompanyRequest) (Com } type ApiRetrieveContactRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService contactId string } -func (r ApiRetrieveContactRequest) Execute() (Contact, *_nethttp.Response, error) { +func (r ApiRetrieveContactRequest) Execute() (*Contact, *http.Response, error) { return r.ApiService.RetrieveContactExecute(r) } @@ -10475,11 +10475,11 @@ RetrieveContact Method for RetrieveContact single object, allowed: GET + PUT - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param contactId A unique integer value identifying this contact. @return ApiRetrieveContactRequest */ -func (a *ApiApiService) RetrieveContact(ctx _context.Context, contactId string) ApiRetrieveContactRequest { +func (a *ApiApiService) RetrieveContact(ctx context.Context, contactId string) ApiRetrieveContactRequest { return ApiRetrieveContactRequest{ ApiService: a, ctx: ctx, @@ -10489,25 +10489,25 @@ func (a *ApiApiService) RetrieveContact(ctx _context.Context, contactId string) // Execute executes the request // @return Contact -func (a *ApiApiService) RetrieveContactExecute(r ApiRetrieveContactRequest) (Contact, *_nethttp.Response, error) { +func (a *ApiApiService) RetrieveContactExecute(r ApiRetrieveContactRequest) (*Contact, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodGet + localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue Contact + localVarReturnValue *Contact ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.RetrieveContact") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/contact/{contact_id}/" - localVarPath = strings.Replace(localVarPath, "{"+"contact_id"+"}", _neturl.PathEscape(parameterToString(r.contactId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"contact_id"+"}", url.PathEscape(parameterToString(r.contactId, "")), -1) localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -10536,15 +10536,15 @@ func (a *ApiApiService) RetrieveContactExecute(r ApiRetrieveContactRequest) (Con return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -10553,7 +10553,7 @@ func (a *ApiApiService) RetrieveContactExecute(r ApiRetrieveContactRequest) (Con err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -10564,13 +10564,13 @@ func (a *ApiApiService) RetrieveContactExecute(r ApiRetrieveContactRequest) (Con } type ApiRetrieveDivisionRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService divisionId string } -func (r ApiRetrieveDivisionRequest) Execute() (Division, *_nethttp.Response, error) { +func (r ApiRetrieveDivisionRequest) Execute() (*Division, *http.Response, error) { return r.ApiService.RetrieveDivisionExecute(r) } @@ -10579,11 +10579,11 @@ RetrieveDivision Method for RetrieveDivision single object, allowed: GET + PUT - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param divisionId A unique integer value identifying this division. @return ApiRetrieveDivisionRequest */ -func (a *ApiApiService) RetrieveDivision(ctx _context.Context, divisionId string) ApiRetrieveDivisionRequest { +func (a *ApiApiService) RetrieveDivision(ctx context.Context, divisionId string) ApiRetrieveDivisionRequest { return ApiRetrieveDivisionRequest{ ApiService: a, ctx: ctx, @@ -10593,25 +10593,25 @@ func (a *ApiApiService) RetrieveDivision(ctx _context.Context, divisionId string // Execute executes the request // @return Division -func (a *ApiApiService) RetrieveDivisionExecute(r ApiRetrieveDivisionRequest) (Division, *_nethttp.Response, error) { +func (a *ApiApiService) RetrieveDivisionExecute(r ApiRetrieveDivisionRequest) (*Division, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodGet + localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue Division + localVarReturnValue *Division ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.RetrieveDivision") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/division/{division_id}/" - localVarPath = strings.Replace(localVarPath, "{"+"division_id"+"}", _neturl.PathEscape(parameterToString(r.divisionId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"division_id"+"}", url.PathEscape(parameterToString(r.divisionId, "")), -1) localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -10640,15 +10640,15 @@ func (a *ApiApiService) RetrieveDivisionExecute(r ApiRetrieveDivisionRequest) (D return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -10657,7 +10657,7 @@ func (a *ApiApiService) RetrieveDivisionExecute(r ApiRetrieveDivisionRequest) (D err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -10668,13 +10668,13 @@ func (a *ApiApiService) RetrieveDivisionExecute(r ApiRetrieveDivisionRequest) (D } type ApiRetrieveDnsnameRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService dnsnameId string } -func (r ApiRetrieveDnsnameRequest) Execute() (Dnsname, *_nethttp.Response, error) { +func (r ApiRetrieveDnsnameRequest) Execute() (*Dnsname, *http.Response, error) { return r.ApiService.RetrieveDnsnameExecute(r) } @@ -10683,11 +10683,11 @@ RetrieveDnsname Method for RetrieveDnsname single object, allowed: GET + PUT - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param dnsnameId A unique integer value identifying this dnsname. @return ApiRetrieveDnsnameRequest */ -func (a *ApiApiService) RetrieveDnsname(ctx _context.Context, dnsnameId string) ApiRetrieveDnsnameRequest { +func (a *ApiApiService) RetrieveDnsname(ctx context.Context, dnsnameId string) ApiRetrieveDnsnameRequest { return ApiRetrieveDnsnameRequest{ ApiService: a, ctx: ctx, @@ -10697,25 +10697,25 @@ func (a *ApiApiService) RetrieveDnsname(ctx _context.Context, dnsnameId string) // Execute executes the request // @return Dnsname -func (a *ApiApiService) RetrieveDnsnameExecute(r ApiRetrieveDnsnameRequest) (Dnsname, *_nethttp.Response, error) { +func (a *ApiApiService) RetrieveDnsnameExecute(r ApiRetrieveDnsnameRequest) (*Dnsname, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodGet + localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue Dnsname + localVarReturnValue *Dnsname ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.RetrieveDnsname") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/dnsname/{dnsname_id}/" - localVarPath = strings.Replace(localVarPath, "{"+"dnsname_id"+"}", _neturl.PathEscape(parameterToString(r.dnsnameId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"dnsname_id"+"}", url.PathEscape(parameterToString(r.dnsnameId, "")), -1) localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -10744,15 +10744,15 @@ func (a *ApiApiService) RetrieveDnsnameExecute(r ApiRetrieveDnsnameRequest) (Dns return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -10761,7 +10761,7 @@ func (a *ApiApiService) RetrieveDnsnameExecute(r ApiRetrieveDnsnameRequest) (Dns err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -10772,13 +10772,13 @@ func (a *ApiApiService) RetrieveDnsnameExecute(r ApiRetrieveDnsnameRequest) (Dns } type ApiRetrieveDomainRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService domainId string } -func (r ApiRetrieveDomainRequest) Execute() (Domain, *_nethttp.Response, error) { +func (r ApiRetrieveDomainRequest) Execute() (*Domain, *http.Response, error) { return r.ApiService.RetrieveDomainExecute(r) } @@ -10787,11 +10787,11 @@ RetrieveDomain Method for RetrieveDomain single object, allowed: GET + PUT - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param domainId A unique integer value identifying this domain. @return ApiRetrieveDomainRequest */ -func (a *ApiApiService) RetrieveDomain(ctx _context.Context, domainId string) ApiRetrieveDomainRequest { +func (a *ApiApiService) RetrieveDomain(ctx context.Context, domainId string) ApiRetrieveDomainRequest { return ApiRetrieveDomainRequest{ ApiService: a, ctx: ctx, @@ -10801,25 +10801,25 @@ func (a *ApiApiService) RetrieveDomain(ctx _context.Context, domainId string) Ap // Execute executes the request // @return Domain -func (a *ApiApiService) RetrieveDomainExecute(r ApiRetrieveDomainRequest) (Domain, *_nethttp.Response, error) { +func (a *ApiApiService) RetrieveDomainExecute(r ApiRetrieveDomainRequest) (*Domain, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodGet + localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue Domain + localVarReturnValue *Domain ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.RetrieveDomain") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/domain/{domain_id}/" - localVarPath = strings.Replace(localVarPath, "{"+"domain_id"+"}", _neturl.PathEscape(parameterToString(r.domainId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"domain_id"+"}", url.PathEscape(parameterToString(r.domainId, "")), -1) localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -10848,15 +10848,15 @@ func (a *ApiApiService) RetrieveDomainExecute(r ApiRetrieveDomainRequest) (Domai return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -10865,7 +10865,7 @@ func (a *ApiApiService) RetrieveDomainExecute(r ApiRetrieveDomainRequest) (Domai err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -10876,13 +10876,13 @@ func (a *ApiApiService) RetrieveDomainExecute(r ApiRetrieveDomainRequest) (Domai } type ApiRetrieveDomainuserRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService domainuserId string } -func (r ApiRetrieveDomainuserRequest) Execute() (Domainuser, *_nethttp.Response, error) { +func (r ApiRetrieveDomainuserRequest) Execute() (*Domainuser, *http.Response, error) { return r.ApiService.RetrieveDomainuserExecute(r) } @@ -10891,11 +10891,11 @@ RetrieveDomainuser Method for RetrieveDomainuser single object, allowed: GET + PUT - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param domainuserId A unique integer value identifying this domainuser. @return ApiRetrieveDomainuserRequest */ -func (a *ApiApiService) RetrieveDomainuser(ctx _context.Context, domainuserId string) ApiRetrieveDomainuserRequest { +func (a *ApiApiService) RetrieveDomainuser(ctx context.Context, domainuserId string) ApiRetrieveDomainuserRequest { return ApiRetrieveDomainuserRequest{ ApiService: a, ctx: ctx, @@ -10905,25 +10905,25 @@ func (a *ApiApiService) RetrieveDomainuser(ctx _context.Context, domainuserId st // Execute executes the request // @return Domainuser -func (a *ApiApiService) RetrieveDomainuserExecute(r ApiRetrieveDomainuserRequest) (Domainuser, *_nethttp.Response, error) { +func (a *ApiApiService) RetrieveDomainuserExecute(r ApiRetrieveDomainuserRequest) (*Domainuser, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodGet + localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue Domainuser + localVarReturnValue *Domainuser ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.RetrieveDomainuser") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/domainuser/{domainuser_id}/" - localVarPath = strings.Replace(localVarPath, "{"+"domainuser_id"+"}", _neturl.PathEscape(parameterToString(r.domainuserId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"domainuser_id"+"}", url.PathEscape(parameterToString(r.domainuserId, "")), -1) localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -10952,15 +10952,15 @@ func (a *ApiApiService) RetrieveDomainuserExecute(r ApiRetrieveDomainuserRequest return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -10969,7 +10969,7 @@ func (a *ApiApiService) RetrieveDomainuserExecute(r ApiRetrieveDomainuserRequest err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -10980,13 +10980,13 @@ func (a *ApiApiService) RetrieveDomainuserExecute(r ApiRetrieveDomainuserRequest } type ApiRetrieveHeadlineRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService headlineId string } -func (r ApiRetrieveHeadlineRequest) Execute() (Headline, *_nethttp.Response, error) { +func (r ApiRetrieveHeadlineRequest) Execute() (*Headline, *http.Response, error) { return r.ApiService.RetrieveHeadlineExecute(r) } @@ -10995,11 +10995,11 @@ RetrieveHeadline Method for RetrieveHeadline single object, allowed: GET + PUT - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param headlineId A unique integer value identifying this headline. @return ApiRetrieveHeadlineRequest */ -func (a *ApiApiService) RetrieveHeadline(ctx _context.Context, headlineId string) ApiRetrieveHeadlineRequest { +func (a *ApiApiService) RetrieveHeadline(ctx context.Context, headlineId string) ApiRetrieveHeadlineRequest { return ApiRetrieveHeadlineRequest{ ApiService: a, ctx: ctx, @@ -11009,25 +11009,25 @@ func (a *ApiApiService) RetrieveHeadline(ctx _context.Context, headlineId string // Execute executes the request // @return Headline -func (a *ApiApiService) RetrieveHeadlineExecute(r ApiRetrieveHeadlineRequest) (Headline, *_nethttp.Response, error) { +func (a *ApiApiService) RetrieveHeadlineExecute(r ApiRetrieveHeadlineRequest) (*Headline, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodGet + localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue Headline + localVarReturnValue *Headline ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.RetrieveHeadline") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/headline/{headline_id}/" - localVarPath = strings.Replace(localVarPath, "{"+"headline_id"+"}", _neturl.PathEscape(parameterToString(r.headlineId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"headline_id"+"}", url.PathEscape(parameterToString(r.headlineId, "")), -1) localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -11056,15 +11056,15 @@ func (a *ApiApiService) RetrieveHeadlineExecute(r ApiRetrieveHeadlineRequest) (H return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -11073,7 +11073,7 @@ func (a *ApiApiService) RetrieveHeadlineExecute(r ApiRetrieveHeadlineRequest) (H err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -11084,13 +11084,13 @@ func (a *ApiApiService) RetrieveHeadlineExecute(r ApiRetrieveHeadlineRequest) (H } type ApiRetrieveIpRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService ipId string } -func (r ApiRetrieveIpRequest) Execute() (Ip, *_nethttp.Response, error) { +func (r ApiRetrieveIpRequest) Execute() (*Ip, *http.Response, error) { return r.ApiService.RetrieveIpExecute(r) } @@ -11099,11 +11099,11 @@ RetrieveIp Method for RetrieveIp single object, allowed: GET + PUT - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param ipId A unique integer value identifying this ip. @return ApiRetrieveIpRequest */ -func (a *ApiApiService) RetrieveIp(ctx _context.Context, ipId string) ApiRetrieveIpRequest { +func (a *ApiApiService) RetrieveIp(ctx context.Context, ipId string) ApiRetrieveIpRequest { return ApiRetrieveIpRequest{ ApiService: a, ctx: ctx, @@ -11113,25 +11113,25 @@ func (a *ApiApiService) RetrieveIp(ctx _context.Context, ipId string) ApiRetriev // Execute executes the request // @return Ip -func (a *ApiApiService) RetrieveIpExecute(r ApiRetrieveIpRequest) (Ip, *_nethttp.Response, error) { +func (a *ApiApiService) RetrieveIpExecute(r ApiRetrieveIpRequest) (*Ip, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodGet + localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue Ip + localVarReturnValue *Ip ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.RetrieveIp") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/ip/{ip_id}/" - localVarPath = strings.Replace(localVarPath, "{"+"ip_id"+"}", _neturl.PathEscape(parameterToString(r.ipId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"ip_id"+"}", url.PathEscape(parameterToString(r.ipId, "")), -1) localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -11160,15 +11160,15 @@ func (a *ApiApiService) RetrieveIpExecute(r ApiRetrieveIpRequest) (Ip, *_nethttp return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -11177,7 +11177,7 @@ func (a *ApiApiService) RetrieveIpExecute(r ApiRetrieveIpRequest) (Ip, *_nethttp err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -11188,13 +11188,13 @@ func (a *ApiApiService) RetrieveIpExecute(r ApiRetrieveIpRequest) (Ip, *_nethttp } type ApiRetrieveLocationRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService locationId string } -func (r ApiRetrieveLocationRequest) Execute() (Location, *_nethttp.Response, error) { +func (r ApiRetrieveLocationRequest) Execute() (*Location, *http.Response, error) { return r.ApiService.RetrieveLocationExecute(r) } @@ -11203,11 +11203,11 @@ RetrieveLocation Method for RetrieveLocation single object, allowed: GET + PUT - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param locationId A unique integer value identifying this location. @return ApiRetrieveLocationRequest */ -func (a *ApiApiService) RetrieveLocation(ctx _context.Context, locationId string) ApiRetrieveLocationRequest { +func (a *ApiApiService) RetrieveLocation(ctx context.Context, locationId string) ApiRetrieveLocationRequest { return ApiRetrieveLocationRequest{ ApiService: a, ctx: ctx, @@ -11217,25 +11217,25 @@ func (a *ApiApiService) RetrieveLocation(ctx _context.Context, locationId string // Execute executes the request // @return Location -func (a *ApiApiService) RetrieveLocationExecute(r ApiRetrieveLocationRequest) (Location, *_nethttp.Response, error) { +func (a *ApiApiService) RetrieveLocationExecute(r ApiRetrieveLocationRequest) (*Location, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodGet + localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue Location + localVarReturnValue *Location ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.RetrieveLocation") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/location/{location_id}/" - localVarPath = strings.Replace(localVarPath, "{"+"location_id"+"}", _neturl.PathEscape(parameterToString(r.locationId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"location_id"+"}", url.PathEscape(parameterToString(r.locationId, "")), -1) localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -11264,15 +11264,15 @@ func (a *ApiApiService) RetrieveLocationExecute(r ApiRetrieveLocationRequest) (L return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -11281,7 +11281,7 @@ func (a *ApiApiService) RetrieveLocationExecute(r ApiRetrieveLocationRequest) (L err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -11292,13 +11292,13 @@ func (a *ApiApiService) RetrieveLocationExecute(r ApiRetrieveLocationRequest) (L } type ApiRetrieveNoteRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService noteId string } -func (r ApiRetrieveNoteRequest) Execute() (Note, *_nethttp.Response, error) { +func (r ApiRetrieveNoteRequest) Execute() (*Note, *http.Response, error) { return r.ApiService.RetrieveNoteExecute(r) } @@ -11307,11 +11307,11 @@ RetrieveNote Method for RetrieveNote single object, allowed: GET + PUT - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param noteId A unique integer value identifying this note. @return ApiRetrieveNoteRequest */ -func (a *ApiApiService) RetrieveNote(ctx _context.Context, noteId string) ApiRetrieveNoteRequest { +func (a *ApiApiService) RetrieveNote(ctx context.Context, noteId string) ApiRetrieveNoteRequest { return ApiRetrieveNoteRequest{ ApiService: a, ctx: ctx, @@ -11321,25 +11321,25 @@ func (a *ApiApiService) RetrieveNote(ctx _context.Context, noteId string) ApiRet // Execute executes the request // @return Note -func (a *ApiApiService) RetrieveNoteExecute(r ApiRetrieveNoteRequest) (Note, *_nethttp.Response, error) { +func (a *ApiApiService) RetrieveNoteExecute(r ApiRetrieveNoteRequest) (*Note, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodGet + localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue Note + localVarReturnValue *Note ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.RetrieveNote") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/note/{note_id}/" - localVarPath = strings.Replace(localVarPath, "{"+"note_id"+"}", _neturl.PathEscape(parameterToString(r.noteId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"note_id"+"}", url.PathEscape(parameterToString(r.noteId, "")), -1) localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -11368,15 +11368,15 @@ func (a *ApiApiService) RetrieveNoteExecute(r ApiRetrieveNoteRequest) (Note, *_n return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -11385,7 +11385,7 @@ func (a *ApiApiService) RetrieveNoteExecute(r ApiRetrieveNoteRequest) (Note, *_n err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -11396,13 +11396,13 @@ func (a *ApiApiService) RetrieveNoteExecute(r ApiRetrieveNoteRequest) (Note, *_n } type ApiRetrieveNotestatusRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService notestatusId string } -func (r ApiRetrieveNotestatusRequest) Execute() (Notestatus, *_nethttp.Response, error) { +func (r ApiRetrieveNotestatusRequest) Execute() (*Notestatus, *http.Response, error) { return r.ApiService.RetrieveNotestatusExecute(r) } @@ -11411,11 +11411,11 @@ RetrieveNotestatus Method for RetrieveNotestatus single object, allowed: GET - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param notestatusId A unique integer value identifying this notestatus. @return ApiRetrieveNotestatusRequest */ -func (a *ApiApiService) RetrieveNotestatus(ctx _context.Context, notestatusId string) ApiRetrieveNotestatusRequest { +func (a *ApiApiService) RetrieveNotestatus(ctx context.Context, notestatusId string) ApiRetrieveNotestatusRequest { return ApiRetrieveNotestatusRequest{ ApiService: a, ctx: ctx, @@ -11425,25 +11425,25 @@ func (a *ApiApiService) RetrieveNotestatus(ctx _context.Context, notestatusId st // Execute executes the request // @return Notestatus -func (a *ApiApiService) RetrieveNotestatusExecute(r ApiRetrieveNotestatusRequest) (Notestatus, *_nethttp.Response, error) { +func (a *ApiApiService) RetrieveNotestatusExecute(r ApiRetrieveNotestatusRequest) (*Notestatus, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodGet + localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue Notestatus + localVarReturnValue *Notestatus ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.RetrieveNotestatus") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/notestatus/{notestatus_id}/" - localVarPath = strings.Replace(localVarPath, "{"+"notestatus_id"+"}", _neturl.PathEscape(parameterToString(r.notestatusId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"notestatus_id"+"}", url.PathEscape(parameterToString(r.notestatusId, "")), -1) localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -11472,15 +11472,15 @@ func (a *ApiApiService) RetrieveNotestatusExecute(r ApiRetrieveNotestatusRequest return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -11489,7 +11489,7 @@ func (a *ApiApiService) RetrieveNotestatusExecute(r ApiRetrieveNotestatusRequest err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -11500,13 +11500,13 @@ func (a *ApiApiService) RetrieveNotestatusExecute(r ApiRetrieveNotestatusRequest } type ApiRetrieveOsRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService osId string } -func (r ApiRetrieveOsRequest) Execute() (Os, *_nethttp.Response, error) { +func (r ApiRetrieveOsRequest) Execute() (*Os, *http.Response, error) { return r.ApiService.RetrieveOsExecute(r) } @@ -11515,11 +11515,11 @@ RetrieveOs Method for RetrieveOs single object, allowed: GET + PUT - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param osId A unique integer value identifying this os. @return ApiRetrieveOsRequest */ -func (a *ApiApiService) RetrieveOs(ctx _context.Context, osId string) ApiRetrieveOsRequest { +func (a *ApiApiService) RetrieveOs(ctx context.Context, osId string) ApiRetrieveOsRequest { return ApiRetrieveOsRequest{ ApiService: a, ctx: ctx, @@ -11529,25 +11529,25 @@ func (a *ApiApiService) RetrieveOs(ctx _context.Context, osId string) ApiRetriev // Execute executes the request // @return Os -func (a *ApiApiService) RetrieveOsExecute(r ApiRetrieveOsRequest) (Os, *_nethttp.Response, error) { +func (a *ApiApiService) RetrieveOsExecute(r ApiRetrieveOsRequest) (*Os, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodGet + localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue Os + localVarReturnValue *Os ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.RetrieveOs") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/os/{os_id}/" - localVarPath = strings.Replace(localVarPath, "{"+"os_id"+"}", _neturl.PathEscape(parameterToString(r.osId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"os_id"+"}", url.PathEscape(parameterToString(r.osId, "")), -1) localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -11576,15 +11576,15 @@ func (a *ApiApiService) RetrieveOsExecute(r ApiRetrieveOsRequest) (Os, *_nethttp return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -11593,7 +11593,7 @@ func (a *ApiApiService) RetrieveOsExecute(r ApiRetrieveOsRequest) (Os, *_nethttp err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -11604,13 +11604,13 @@ func (a *ApiApiService) RetrieveOsExecute(r ApiRetrieveOsRequest) (Os, *_nethttp } type ApiRetrieveOsarchRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService osarchId string } -func (r ApiRetrieveOsarchRequest) Execute() (Osarch, *_nethttp.Response, error) { +func (r ApiRetrieveOsarchRequest) Execute() (*Osarch, *http.Response, error) { return r.ApiService.RetrieveOsarchExecute(r) } @@ -11619,11 +11619,11 @@ RetrieveOsarch Method for RetrieveOsarch single object, allowed: GET + PUT - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param osarchId A unique integer value identifying this osarch. @return ApiRetrieveOsarchRequest */ -func (a *ApiApiService) RetrieveOsarch(ctx _context.Context, osarchId string) ApiRetrieveOsarchRequest { +func (a *ApiApiService) RetrieveOsarch(ctx context.Context, osarchId string) ApiRetrieveOsarchRequest { return ApiRetrieveOsarchRequest{ ApiService: a, ctx: ctx, @@ -11633,25 +11633,25 @@ func (a *ApiApiService) RetrieveOsarch(ctx _context.Context, osarchId string) Ap // Execute executes the request // @return Osarch -func (a *ApiApiService) RetrieveOsarchExecute(r ApiRetrieveOsarchRequest) (Osarch, *_nethttp.Response, error) { +func (a *ApiApiService) RetrieveOsarchExecute(r ApiRetrieveOsarchRequest) (*Osarch, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodGet + localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue Osarch + localVarReturnValue *Osarch ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.RetrieveOsarch") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/osarch/{osarch_id}/" - localVarPath = strings.Replace(localVarPath, "{"+"osarch_id"+"}", _neturl.PathEscape(parameterToString(r.osarchId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"osarch_id"+"}", url.PathEscape(parameterToString(r.osarchId, "")), -1) localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -11680,15 +11680,15 @@ func (a *ApiApiService) RetrieveOsarchExecute(r ApiRetrieveOsarchRequest) (Osarc return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -11697,7 +11697,7 @@ func (a *ApiApiService) RetrieveOsarchExecute(r ApiRetrieveOsarchRequest) (Osarc err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -11708,13 +11708,13 @@ func (a *ApiApiService) RetrieveOsarchExecute(r ApiRetrieveOsarchRequest) (Osarc } type ApiRetrieveReasonRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService reasonId string } -func (r ApiRetrieveReasonRequest) Execute() (Reason, *_nethttp.Response, error) { +func (r ApiRetrieveReasonRequest) Execute() (*Reason, *http.Response, error) { return r.ApiService.RetrieveReasonExecute(r) } @@ -11723,11 +11723,11 @@ RetrieveReason Method for RetrieveReason single object, allowed: GET + PUT - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param reasonId A unique integer value identifying this reason. @return ApiRetrieveReasonRequest */ -func (a *ApiApiService) RetrieveReason(ctx _context.Context, reasonId string) ApiRetrieveReasonRequest { +func (a *ApiApiService) RetrieveReason(ctx context.Context, reasonId string) ApiRetrieveReasonRequest { return ApiRetrieveReasonRequest{ ApiService: a, ctx: ctx, @@ -11737,25 +11737,25 @@ func (a *ApiApiService) RetrieveReason(ctx _context.Context, reasonId string) Ap // Execute executes the request // @return Reason -func (a *ApiApiService) RetrieveReasonExecute(r ApiRetrieveReasonRequest) (Reason, *_nethttp.Response, error) { +func (a *ApiApiService) RetrieveReasonExecute(r ApiRetrieveReasonRequest) (*Reason, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodGet + localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue Reason + localVarReturnValue *Reason ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.RetrieveReason") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/reason/{reason_id}/" - localVarPath = strings.Replace(localVarPath, "{"+"reason_id"+"}", _neturl.PathEscape(parameterToString(r.reasonId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"reason_id"+"}", url.PathEscape(parameterToString(r.reasonId, "")), -1) localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -11784,15 +11784,15 @@ func (a *ApiApiService) RetrieveReasonExecute(r ApiRetrieveReasonRequest) (Reaso return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -11801,7 +11801,7 @@ func (a *ApiApiService) RetrieveReasonExecute(r ApiRetrieveReasonRequest) (Reaso err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -11812,13 +11812,13 @@ func (a *ApiApiService) RetrieveReasonExecute(r ApiRetrieveReasonRequest) (Reaso } type ApiRetrieveRecommendationRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService recommendationId string } -func (r ApiRetrieveRecommendationRequest) Execute() (Recommendation, *_nethttp.Response, error) { +func (r ApiRetrieveRecommendationRequest) Execute() (*Recommendation, *http.Response, error) { return r.ApiService.RetrieveRecommendationExecute(r) } @@ -11827,11 +11827,11 @@ RetrieveRecommendation Method for RetrieveRecommendation single object, allowed: GET + PUT - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param recommendationId A unique integer value identifying this recommendation. @return ApiRetrieveRecommendationRequest */ -func (a *ApiApiService) RetrieveRecommendation(ctx _context.Context, recommendationId string) ApiRetrieveRecommendationRequest { +func (a *ApiApiService) RetrieveRecommendation(ctx context.Context, recommendationId string) ApiRetrieveRecommendationRequest { return ApiRetrieveRecommendationRequest{ ApiService: a, ctx: ctx, @@ -11841,25 +11841,25 @@ func (a *ApiApiService) RetrieveRecommendation(ctx _context.Context, recommendat // Execute executes the request // @return Recommendation -func (a *ApiApiService) RetrieveRecommendationExecute(r ApiRetrieveRecommendationRequest) (Recommendation, *_nethttp.Response, error) { +func (a *ApiApiService) RetrieveRecommendationExecute(r ApiRetrieveRecommendationRequest) (*Recommendation, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodGet + localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue Recommendation + localVarReturnValue *Recommendation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.RetrieveRecommendation") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/recommendation/{recommendation_id}/" - localVarPath = strings.Replace(localVarPath, "{"+"recommendation_id"+"}", _neturl.PathEscape(parameterToString(r.recommendationId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"recommendation_id"+"}", url.PathEscape(parameterToString(r.recommendationId, "")), -1) localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -11888,15 +11888,15 @@ func (a *ApiApiService) RetrieveRecommendationExecute(r ApiRetrieveRecommendatio return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -11905,7 +11905,7 @@ func (a *ApiApiService) RetrieveRecommendationExecute(r ApiRetrieveRecommendatio err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -11916,13 +11916,13 @@ func (a *ApiApiService) RetrieveRecommendationExecute(r ApiRetrieveRecommendatio } type ApiRetrieveReportitemRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService reportitemId string } -func (r ApiRetrieveReportitemRequest) Execute() (Reportitem, *_nethttp.Response, error) { +func (r ApiRetrieveReportitemRequest) Execute() (*Reportitem, *http.Response, error) { return r.ApiService.RetrieveReportitemExecute(r) } @@ -11931,11 +11931,11 @@ RetrieveReportitem Method for RetrieveReportitem single object, allowed: GET + PUT - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param reportitemId A unique integer value identifying this reportitem. @return ApiRetrieveReportitemRequest */ -func (a *ApiApiService) RetrieveReportitem(ctx _context.Context, reportitemId string) ApiRetrieveReportitemRequest { +func (a *ApiApiService) RetrieveReportitem(ctx context.Context, reportitemId string) ApiRetrieveReportitemRequest { return ApiRetrieveReportitemRequest{ ApiService: a, ctx: ctx, @@ -11945,25 +11945,25 @@ func (a *ApiApiService) RetrieveReportitem(ctx _context.Context, reportitemId st // Execute executes the request // @return Reportitem -func (a *ApiApiService) RetrieveReportitemExecute(r ApiRetrieveReportitemRequest) (Reportitem, *_nethttp.Response, error) { +func (a *ApiApiService) RetrieveReportitemExecute(r ApiRetrieveReportitemRequest) (*Reportitem, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodGet + localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue Reportitem + localVarReturnValue *Reportitem ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.RetrieveReportitem") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/reportitem/{reportitem_id}/" - localVarPath = strings.Replace(localVarPath, "{"+"reportitem_id"+"}", _neturl.PathEscape(parameterToString(r.reportitemId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"reportitem_id"+"}", url.PathEscape(parameterToString(r.reportitemId, "")), -1) localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -11992,15 +11992,15 @@ func (a *ApiApiService) RetrieveReportitemExecute(r ApiRetrieveReportitemRequest return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -12009,7 +12009,7 @@ func (a *ApiApiService) RetrieveReportitemExecute(r ApiRetrieveReportitemRequest err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -12020,13 +12020,13 @@ func (a *ApiApiService) RetrieveReportitemExecute(r ApiRetrieveReportitemRequest } type ApiRetrieveServiceproviderRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService serviceproviderId string } -func (r ApiRetrieveServiceproviderRequest) Execute() (Serviceprovider, *_nethttp.Response, error) { +func (r ApiRetrieveServiceproviderRequest) Execute() (*Serviceprovider, *http.Response, error) { return r.ApiService.RetrieveServiceproviderExecute(r) } @@ -12035,11 +12035,11 @@ RetrieveServiceprovider Method for RetrieveServiceprovider single object, allowed: GET + PUT - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param serviceproviderId A unique integer value identifying this serviceprovider. @return ApiRetrieveServiceproviderRequest */ -func (a *ApiApiService) RetrieveServiceprovider(ctx _context.Context, serviceproviderId string) ApiRetrieveServiceproviderRequest { +func (a *ApiApiService) RetrieveServiceprovider(ctx context.Context, serviceproviderId string) ApiRetrieveServiceproviderRequest { return ApiRetrieveServiceproviderRequest{ ApiService: a, ctx: ctx, @@ -12049,25 +12049,25 @@ func (a *ApiApiService) RetrieveServiceprovider(ctx _context.Context, servicepro // Execute executes the request // @return Serviceprovider -func (a *ApiApiService) RetrieveServiceproviderExecute(r ApiRetrieveServiceproviderRequest) (Serviceprovider, *_nethttp.Response, error) { +func (a *ApiApiService) RetrieveServiceproviderExecute(r ApiRetrieveServiceproviderRequest) (*Serviceprovider, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodGet + localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue Serviceprovider + localVarReturnValue *Serviceprovider ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.RetrieveServiceprovider") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/serviceprovider/{serviceprovider_id}/" - localVarPath = strings.Replace(localVarPath, "{"+"serviceprovider_id"+"}", _neturl.PathEscape(parameterToString(r.serviceproviderId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"serviceprovider_id"+"}", url.PathEscape(parameterToString(r.serviceproviderId, "")), -1) localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -12096,15 +12096,15 @@ func (a *ApiApiService) RetrieveServiceproviderExecute(r ApiRetrieveServiceprovi return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -12113,7 +12113,7 @@ func (a *ApiApiService) RetrieveServiceproviderExecute(r ApiRetrieveServiceprovi err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -12124,13 +12124,13 @@ func (a *ApiApiService) RetrieveServiceproviderExecute(r ApiRetrieveServiceprovi } type ApiRetrieveSystemRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService systemId string } -func (r ApiRetrieveSystemRequest) Execute() (System, *_nethttp.Response, error) { +func (r ApiRetrieveSystemRequest) Execute() (*System, *http.Response, error) { return r.ApiService.RetrieveSystemExecute(r) } @@ -12139,11 +12139,11 @@ RetrieveSystem Method for RetrieveSystem single object, allowed: GET + PUT - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param systemId A unique integer value identifying this system. @return ApiRetrieveSystemRequest */ -func (a *ApiApiService) RetrieveSystem(ctx _context.Context, systemId string) ApiRetrieveSystemRequest { +func (a *ApiApiService) RetrieveSystem(ctx context.Context, systemId string) ApiRetrieveSystemRequest { return ApiRetrieveSystemRequest{ ApiService: a, ctx: ctx, @@ -12153,25 +12153,25 @@ func (a *ApiApiService) RetrieveSystem(ctx _context.Context, systemId string) Ap // Execute executes the request // @return System -func (a *ApiApiService) RetrieveSystemExecute(r ApiRetrieveSystemRequest) (System, *_nethttp.Response, error) { +func (a *ApiApiService) RetrieveSystemExecute(r ApiRetrieveSystemRequest) (*System, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodGet + localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue System + localVarReturnValue *System ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.RetrieveSystem") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/system/{system_id}/" - localVarPath = strings.Replace(localVarPath, "{"+"system_id"+"}", _neturl.PathEscape(parameterToString(r.systemId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"system_id"+"}", url.PathEscape(parameterToString(r.systemId, "")), -1) localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -12200,15 +12200,15 @@ func (a *ApiApiService) RetrieveSystemExecute(r ApiRetrieveSystemRequest) (Syste return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -12217,7 +12217,7 @@ func (a *ApiApiService) RetrieveSystemExecute(r ApiRetrieveSystemRequest) (Syste err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -12228,13 +12228,13 @@ func (a *ApiApiService) RetrieveSystemExecute(r ApiRetrieveSystemRequest) (Syste } type ApiRetrieveSystemstatusRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService systemstatusId string } -func (r ApiRetrieveSystemstatusRequest) Execute() (Systemstatus, *_nethttp.Response, error) { +func (r ApiRetrieveSystemstatusRequest) Execute() (*Systemstatus, *http.Response, error) { return r.ApiService.RetrieveSystemstatusExecute(r) } @@ -12243,11 +12243,11 @@ RetrieveSystemstatus Method for RetrieveSystemstatus single object, allowed: GET - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param systemstatusId A unique integer value identifying this systemstatus. @return ApiRetrieveSystemstatusRequest */ -func (a *ApiApiService) RetrieveSystemstatus(ctx _context.Context, systemstatusId string) ApiRetrieveSystemstatusRequest { +func (a *ApiApiService) RetrieveSystemstatus(ctx context.Context, systemstatusId string) ApiRetrieveSystemstatusRequest { return ApiRetrieveSystemstatusRequest{ ApiService: a, ctx: ctx, @@ -12257,25 +12257,25 @@ func (a *ApiApiService) RetrieveSystemstatus(ctx _context.Context, systemstatusI // Execute executes the request // @return Systemstatus -func (a *ApiApiService) RetrieveSystemstatusExecute(r ApiRetrieveSystemstatusRequest) (Systemstatus, *_nethttp.Response, error) { +func (a *ApiApiService) RetrieveSystemstatusExecute(r ApiRetrieveSystemstatusRequest) (*Systemstatus, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodGet + localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue Systemstatus + localVarReturnValue *Systemstatus ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.RetrieveSystemstatus") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/systemstatus/{systemstatus_id}/" - localVarPath = strings.Replace(localVarPath, "{"+"systemstatus_id"+"}", _neturl.PathEscape(parameterToString(r.systemstatusId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"systemstatus_id"+"}", url.PathEscape(parameterToString(r.systemstatusId, "")), -1) localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -12304,15 +12304,15 @@ func (a *ApiApiService) RetrieveSystemstatusExecute(r ApiRetrieveSystemstatusReq return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -12321,7 +12321,7 @@ func (a *ApiApiService) RetrieveSystemstatusExecute(r ApiRetrieveSystemstatusReq err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -12332,13 +12332,13 @@ func (a *ApiApiService) RetrieveSystemstatusExecute(r ApiRetrieveSystemstatusReq } type ApiRetrieveSystemtypeRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService systemtypeId string } -func (r ApiRetrieveSystemtypeRequest) Execute() (Systemtype, *_nethttp.Response, error) { +func (r ApiRetrieveSystemtypeRequest) Execute() (*Systemtype, *http.Response, error) { return r.ApiService.RetrieveSystemtypeExecute(r) } @@ -12347,11 +12347,11 @@ RetrieveSystemtype Method for RetrieveSystemtype single object, allowed: GET + PUT - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param systemtypeId A unique integer value identifying this systemtype. @return ApiRetrieveSystemtypeRequest */ -func (a *ApiApiService) RetrieveSystemtype(ctx _context.Context, systemtypeId string) ApiRetrieveSystemtypeRequest { +func (a *ApiApiService) RetrieveSystemtype(ctx context.Context, systemtypeId string) ApiRetrieveSystemtypeRequest { return ApiRetrieveSystemtypeRequest{ ApiService: a, ctx: ctx, @@ -12361,25 +12361,25 @@ func (a *ApiApiService) RetrieveSystemtype(ctx _context.Context, systemtypeId st // Execute executes the request // @return Systemtype -func (a *ApiApiService) RetrieveSystemtypeExecute(r ApiRetrieveSystemtypeRequest) (Systemtype, *_nethttp.Response, error) { +func (a *ApiApiService) RetrieveSystemtypeExecute(r ApiRetrieveSystemtypeRequest) (*Systemtype, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodGet + localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue Systemtype + localVarReturnValue *Systemtype ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.RetrieveSystemtype") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/systemtype/{systemtype_id}/" - localVarPath = strings.Replace(localVarPath, "{"+"systemtype_id"+"}", _neturl.PathEscape(parameterToString(r.systemtypeId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"systemtype_id"+"}", url.PathEscape(parameterToString(r.systemtypeId, "")), -1) localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -12408,15 +12408,15 @@ func (a *ApiApiService) RetrieveSystemtypeExecute(r ApiRetrieveSystemtypeRequest return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -12425,7 +12425,7 @@ func (a *ApiApiService) RetrieveSystemtypeExecute(r ApiRetrieveSystemtypeRequest err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -12436,13 +12436,13 @@ func (a *ApiApiService) RetrieveSystemtypeExecute(r ApiRetrieveSystemtypeRequest } type ApiRetrieveSystemuserRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService systemuserId string } -func (r ApiRetrieveSystemuserRequest) Execute() (Systemuser, *_nethttp.Response, error) { +func (r ApiRetrieveSystemuserRequest) Execute() (*Systemuser, *http.Response, error) { return r.ApiService.RetrieveSystemuserExecute(r) } @@ -12451,11 +12451,11 @@ RetrieveSystemuser Method for RetrieveSystemuser single object, allowed: GET + PUT - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param systemuserId A unique integer value identifying this systemuser. @return ApiRetrieveSystemuserRequest */ -func (a *ApiApiService) RetrieveSystemuser(ctx _context.Context, systemuserId string) ApiRetrieveSystemuserRequest { +func (a *ApiApiService) RetrieveSystemuser(ctx context.Context, systemuserId string) ApiRetrieveSystemuserRequest { return ApiRetrieveSystemuserRequest{ ApiService: a, ctx: ctx, @@ -12465,25 +12465,25 @@ func (a *ApiApiService) RetrieveSystemuser(ctx _context.Context, systemuserId st // Execute executes the request // @return Systemuser -func (a *ApiApiService) RetrieveSystemuserExecute(r ApiRetrieveSystemuserRequest) (Systemuser, *_nethttp.Response, error) { +func (a *ApiApiService) RetrieveSystemuserExecute(r ApiRetrieveSystemuserRequest) (*Systemuser, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodGet + localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue Systemuser + localVarReturnValue *Systemuser ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.RetrieveSystemuser") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/systemuser/{systemuser_id}/" - localVarPath = strings.Replace(localVarPath, "{"+"systemuser_id"+"}", _neturl.PathEscape(parameterToString(r.systemuserId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"systemuser_id"+"}", url.PathEscape(parameterToString(r.systemuserId, "")), -1) localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -12512,15 +12512,15 @@ func (a *ApiApiService) RetrieveSystemuserExecute(r ApiRetrieveSystemuserRequest return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -12529,7 +12529,7 @@ func (a *ApiApiService) RetrieveSystemuserExecute(r ApiRetrieveSystemuserRequest err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -12540,13 +12540,13 @@ func (a *ApiApiService) RetrieveSystemuserExecute(r ApiRetrieveSystemuserRequest } type ApiRetrieveTagRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService tagId string } -func (r ApiRetrieveTagRequest) Execute() (Tag, *_nethttp.Response, error) { +func (r ApiRetrieveTagRequest) Execute() (*Tag, *http.Response, error) { return r.ApiService.RetrieveTagExecute(r) } @@ -12555,11 +12555,11 @@ RetrieveTag Method for RetrieveTag single object, allowed: GET + PUT - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param tagId A unique integer value identifying this tag. @return ApiRetrieveTagRequest */ -func (a *ApiApiService) RetrieveTag(ctx _context.Context, tagId string) ApiRetrieveTagRequest { +func (a *ApiApiService) RetrieveTag(ctx context.Context, tagId string) ApiRetrieveTagRequest { return ApiRetrieveTagRequest{ ApiService: a, ctx: ctx, @@ -12569,25 +12569,25 @@ func (a *ApiApiService) RetrieveTag(ctx _context.Context, tagId string) ApiRetri // Execute executes the request // @return Tag -func (a *ApiApiService) RetrieveTagExecute(r ApiRetrieveTagRequest) (Tag, *_nethttp.Response, error) { +func (a *ApiApiService) RetrieveTagExecute(r ApiRetrieveTagRequest) (*Tag, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodGet + localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue Tag + localVarReturnValue *Tag ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.RetrieveTag") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/tag/{tag_id}/" - localVarPath = strings.Replace(localVarPath, "{"+"tag_id"+"}", _neturl.PathEscape(parameterToString(r.tagId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"tag_id"+"}", url.PathEscape(parameterToString(r.tagId, "")), -1) localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -12616,15 +12616,15 @@ func (a *ApiApiService) RetrieveTagExecute(r ApiRetrieveTagRequest) (Tag, *_neth return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -12633,7 +12633,7 @@ func (a *ApiApiService) RetrieveTagExecute(r ApiRetrieveTagRequest) (Tag, *_neth err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -12644,13 +12644,13 @@ func (a *ApiApiService) RetrieveTagExecute(r ApiRetrieveTagRequest) (Tag, *_neth } type ApiRetrieveTagcolorRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService tagcolorId string } -func (r ApiRetrieveTagcolorRequest) Execute() (Tagcolor, *_nethttp.Response, error) { +func (r ApiRetrieveTagcolorRequest) Execute() (*Tagcolor, *http.Response, error) { return r.ApiService.RetrieveTagcolorExecute(r) } @@ -12659,11 +12659,11 @@ RetrieveTagcolor Method for RetrieveTagcolor single object, allowed: GET - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param tagcolorId A unique integer value identifying this tagcolor. @return ApiRetrieveTagcolorRequest */ -func (a *ApiApiService) RetrieveTagcolor(ctx _context.Context, tagcolorId string) ApiRetrieveTagcolorRequest { +func (a *ApiApiService) RetrieveTagcolor(ctx context.Context, tagcolorId string) ApiRetrieveTagcolorRequest { return ApiRetrieveTagcolorRequest{ ApiService: a, ctx: ctx, @@ -12673,25 +12673,25 @@ func (a *ApiApiService) RetrieveTagcolor(ctx _context.Context, tagcolorId string // Execute executes the request // @return Tagcolor -func (a *ApiApiService) RetrieveTagcolorExecute(r ApiRetrieveTagcolorRequest) (Tagcolor, *_nethttp.Response, error) { +func (a *ApiApiService) RetrieveTagcolorExecute(r ApiRetrieveTagcolorRequest) (*Tagcolor, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodGet + localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue Tagcolor + localVarReturnValue *Tagcolor ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.RetrieveTagcolor") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/tagcolor/{tagcolor_id}/" - localVarPath = strings.Replace(localVarPath, "{"+"tagcolor_id"+"}", _neturl.PathEscape(parameterToString(r.tagcolorId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"tagcolor_id"+"}", url.PathEscape(parameterToString(r.tagcolorId, "")), -1) localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -12720,15 +12720,15 @@ func (a *ApiApiService) RetrieveTagcolorExecute(r ApiRetrieveTagcolorRequest) (T return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -12737,7 +12737,7 @@ func (a *ApiApiService) RetrieveTagcolorExecute(r ApiRetrieveTagcolorRequest) (T err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -12748,13 +12748,13 @@ func (a *ApiApiService) RetrieveTagcolorExecute(r ApiRetrieveTagcolorRequest) (T } type ApiRetrieveTaskRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService taskId string } -func (r ApiRetrieveTaskRequest) Execute() (Task, *_nethttp.Response, error) { +func (r ApiRetrieveTaskRequest) Execute() (*Task, *http.Response, error) { return r.ApiService.RetrieveTaskExecute(r) } @@ -12763,11 +12763,11 @@ RetrieveTask Method for RetrieveTask single object, allowed: GET + PUT - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param taskId A unique integer value identifying this task. @return ApiRetrieveTaskRequest */ -func (a *ApiApiService) RetrieveTask(ctx _context.Context, taskId string) ApiRetrieveTaskRequest { +func (a *ApiApiService) RetrieveTask(ctx context.Context, taskId string) ApiRetrieveTaskRequest { return ApiRetrieveTaskRequest{ ApiService: a, ctx: ctx, @@ -12777,25 +12777,25 @@ func (a *ApiApiService) RetrieveTask(ctx _context.Context, taskId string) ApiRet // Execute executes the request // @return Task -func (a *ApiApiService) RetrieveTaskExecute(r ApiRetrieveTaskRequest) (Task, *_nethttp.Response, error) { +func (a *ApiApiService) RetrieveTaskExecute(r ApiRetrieveTaskRequest) (*Task, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodGet + localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue Task + localVarReturnValue *Task ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.RetrieveTask") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/task/{task_id}/" - localVarPath = strings.Replace(localVarPath, "{"+"task_id"+"}", _neturl.PathEscape(parameterToString(r.taskId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"task_id"+"}", url.PathEscape(parameterToString(r.taskId, "")), -1) localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -12824,15 +12824,15 @@ func (a *ApiApiService) RetrieveTaskExecute(r ApiRetrieveTaskRequest) (Task, *_n return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -12841,7 +12841,7 @@ func (a *ApiApiService) RetrieveTaskExecute(r ApiRetrieveTaskRequest) (Task, *_n err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -12852,13 +12852,13 @@ func (a *ApiApiService) RetrieveTaskExecute(r ApiRetrieveTaskRequest) (Task, *_n } type ApiRetrieveTasknameRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService tasknameId string } -func (r ApiRetrieveTasknameRequest) Execute() (Taskname, *_nethttp.Response, error) { +func (r ApiRetrieveTasknameRequest) Execute() (*Taskname, *http.Response, error) { return r.ApiService.RetrieveTasknameExecute(r) } @@ -12867,11 +12867,11 @@ RetrieveTaskname Method for RetrieveTaskname single object, allowed: GET + PUT - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param tasknameId A unique integer value identifying this taskname. @return ApiRetrieveTasknameRequest */ -func (a *ApiApiService) RetrieveTaskname(ctx _context.Context, tasknameId string) ApiRetrieveTasknameRequest { +func (a *ApiApiService) RetrieveTaskname(ctx context.Context, tasknameId string) ApiRetrieveTasknameRequest { return ApiRetrieveTasknameRequest{ ApiService: a, ctx: ctx, @@ -12881,25 +12881,25 @@ func (a *ApiApiService) RetrieveTaskname(ctx _context.Context, tasknameId string // Execute executes the request // @return Taskname -func (a *ApiApiService) RetrieveTasknameExecute(r ApiRetrieveTasknameRequest) (Taskname, *_nethttp.Response, error) { +func (a *ApiApiService) RetrieveTasknameExecute(r ApiRetrieveTasknameRequest) (*Taskname, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodGet + localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue Taskname + localVarReturnValue *Taskname ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.RetrieveTaskname") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/taskname/{taskname_id}/" - localVarPath = strings.Replace(localVarPath, "{"+"taskname_id"+"}", _neturl.PathEscape(parameterToString(r.tasknameId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"taskname_id"+"}", url.PathEscape(parameterToString(r.tasknameId, "")), -1) localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -12928,15 +12928,15 @@ func (a *ApiApiService) RetrieveTasknameExecute(r ApiRetrieveTasknameRequest) (T return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -12945,7 +12945,7 @@ func (a *ApiApiService) RetrieveTasknameExecute(r ApiRetrieveTasknameRequest) (T err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -12956,13 +12956,13 @@ func (a *ApiApiService) RetrieveTasknameExecute(r ApiRetrieveTasknameRequest) (T } type ApiRetrieveTaskpriorityRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService taskpriorityId string } -func (r ApiRetrieveTaskpriorityRequest) Execute() (Taskpriority, *_nethttp.Response, error) { +func (r ApiRetrieveTaskpriorityRequest) Execute() (*Taskpriority, *http.Response, error) { return r.ApiService.RetrieveTaskpriorityExecute(r) } @@ -12971,11 +12971,11 @@ RetrieveTaskpriority Method for RetrieveTaskpriority single object, allowed: GET - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param taskpriorityId A unique integer value identifying this taskpriority. @return ApiRetrieveTaskpriorityRequest */ -func (a *ApiApiService) RetrieveTaskpriority(ctx _context.Context, taskpriorityId string) ApiRetrieveTaskpriorityRequest { +func (a *ApiApiService) RetrieveTaskpriority(ctx context.Context, taskpriorityId string) ApiRetrieveTaskpriorityRequest { return ApiRetrieveTaskpriorityRequest{ ApiService: a, ctx: ctx, @@ -12985,25 +12985,25 @@ func (a *ApiApiService) RetrieveTaskpriority(ctx _context.Context, taskpriorityI // Execute executes the request // @return Taskpriority -func (a *ApiApiService) RetrieveTaskpriorityExecute(r ApiRetrieveTaskpriorityRequest) (Taskpriority, *_nethttp.Response, error) { +func (a *ApiApiService) RetrieveTaskpriorityExecute(r ApiRetrieveTaskpriorityRequest) (*Taskpriority, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodGet + localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue Taskpriority + localVarReturnValue *Taskpriority ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.RetrieveTaskpriority") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/taskpriority/{taskpriority_id}/" - localVarPath = strings.Replace(localVarPath, "{"+"taskpriority_id"+"}", _neturl.PathEscape(parameterToString(r.taskpriorityId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"taskpriority_id"+"}", url.PathEscape(parameterToString(r.taskpriorityId, "")), -1) localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -13032,15 +13032,15 @@ func (a *ApiApiService) RetrieveTaskpriorityExecute(r ApiRetrieveTaskpriorityReq return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -13049,7 +13049,7 @@ func (a *ApiApiService) RetrieveTaskpriorityExecute(r ApiRetrieveTaskpriorityReq err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -13060,13 +13060,13 @@ func (a *ApiApiService) RetrieveTaskpriorityExecute(r ApiRetrieveTaskpriorityReq } type ApiRetrieveTaskstatusRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService taskstatusId string } -func (r ApiRetrieveTaskstatusRequest) Execute() (Taskstatus, *_nethttp.Response, error) { +func (r ApiRetrieveTaskstatusRequest) Execute() (*Taskstatus, *http.Response, error) { return r.ApiService.RetrieveTaskstatusExecute(r) } @@ -13075,11 +13075,11 @@ RetrieveTaskstatus Method for RetrieveTaskstatus single object, allowed: GET - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param taskstatusId A unique integer value identifying this taskstatus. @return ApiRetrieveTaskstatusRequest */ -func (a *ApiApiService) RetrieveTaskstatus(ctx _context.Context, taskstatusId string) ApiRetrieveTaskstatusRequest { +func (a *ApiApiService) RetrieveTaskstatus(ctx context.Context, taskstatusId string) ApiRetrieveTaskstatusRequest { return ApiRetrieveTaskstatusRequest{ ApiService: a, ctx: ctx, @@ -13089,25 +13089,25 @@ func (a *ApiApiService) RetrieveTaskstatus(ctx _context.Context, taskstatusId st // Execute executes the request // @return Taskstatus -func (a *ApiApiService) RetrieveTaskstatusExecute(r ApiRetrieveTaskstatusRequest) (Taskstatus, *_nethttp.Response, error) { +func (a *ApiApiService) RetrieveTaskstatusExecute(r ApiRetrieveTaskstatusRequest) (*Taskstatus, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodGet + localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue Taskstatus + localVarReturnValue *Taskstatus ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.RetrieveTaskstatus") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/taskstatus/{taskstatus_id}/" - localVarPath = strings.Replace(localVarPath, "{"+"taskstatus_id"+"}", _neturl.PathEscape(parameterToString(r.taskstatusId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"taskstatus_id"+"}", url.PathEscape(parameterToString(r.taskstatusId, "")), -1) localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -13136,15 +13136,15 @@ func (a *ApiApiService) RetrieveTaskstatusExecute(r ApiRetrieveTaskstatusRequest return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -13153,7 +13153,7 @@ func (a *ApiApiService) RetrieveTaskstatusExecute(r ApiRetrieveTaskstatusRequest err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -13164,7 +13164,7 @@ func (a *ApiApiService) RetrieveTaskstatusExecute(r ApiRetrieveTaskstatusRequest } type ApiUpdateArtifactRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService artifactId string artifact *Artifact @@ -13175,7 +13175,7 @@ func (r ApiUpdateArtifactRequest) Artifact(artifact Artifact) ApiUpdateArtifactR return r } -func (r ApiUpdateArtifactRequest) Execute() (Artifact, *_nethttp.Response, error) { +func (r ApiUpdateArtifactRequest) Execute() (*Artifact, *http.Response, error) { return r.ApiService.UpdateArtifactExecute(r) } @@ -13184,11 +13184,11 @@ UpdateArtifact Method for UpdateArtifact single object, allowed: GET + PUT - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param artifactId A unique integer value identifying this artifact. @return ApiUpdateArtifactRequest */ -func (a *ApiApiService) UpdateArtifact(ctx _context.Context, artifactId string) ApiUpdateArtifactRequest { +func (a *ApiApiService) UpdateArtifact(ctx context.Context, artifactId string) ApiUpdateArtifactRequest { return ApiUpdateArtifactRequest{ ApiService: a, ctx: ctx, @@ -13198,25 +13198,25 @@ func (a *ApiApiService) UpdateArtifact(ctx _context.Context, artifactId string) // Execute executes the request // @return Artifact -func (a *ApiApiService) UpdateArtifactExecute(r ApiUpdateArtifactRequest) (Artifact, *_nethttp.Response, error) { +func (a *ApiApiService) UpdateArtifactExecute(r ApiUpdateArtifactRequest) (*Artifact, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodPut + localVarHTTPMethod = http.MethodPut localVarPostBody interface{} formFiles []formFile - localVarReturnValue Artifact + localVarReturnValue *Artifact ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.UpdateArtifact") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/artifact/{artifact_id}/" - localVarPath = strings.Replace(localVarPath, "{"+"artifact_id"+"}", _neturl.PathEscape(parameterToString(r.artifactId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"artifact_id"+"}", url.PathEscape(parameterToString(r.artifactId, "")), -1) localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} @@ -13247,15 +13247,15 @@ func (a *ApiApiService) UpdateArtifactExecute(r ApiUpdateArtifactRequest) (Artif return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -13264,7 +13264,7 @@ func (a *ApiApiService) UpdateArtifactExecute(r ApiUpdateArtifactRequest) (Artif err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -13275,7 +13275,7 @@ func (a *ApiApiService) UpdateArtifactExecute(r ApiUpdateArtifactRequest) (Artif } type ApiUpdateArtifacttypeRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService artifacttypeId string artifacttype *Artifacttype @@ -13286,7 +13286,7 @@ func (r ApiUpdateArtifacttypeRequest) Artifacttype(artifacttype Artifacttype) Ap return r } -func (r ApiUpdateArtifacttypeRequest) Execute() (Artifacttype, *_nethttp.Response, error) { +func (r ApiUpdateArtifacttypeRequest) Execute() (*Artifacttype, *http.Response, error) { return r.ApiService.UpdateArtifacttypeExecute(r) } @@ -13295,11 +13295,11 @@ UpdateArtifacttype Method for UpdateArtifacttype single object, allowed: GET + PUT - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param artifacttypeId A unique integer value identifying this artifacttype. @return ApiUpdateArtifacttypeRequest */ -func (a *ApiApiService) UpdateArtifacttype(ctx _context.Context, artifacttypeId string) ApiUpdateArtifacttypeRequest { +func (a *ApiApiService) UpdateArtifacttype(ctx context.Context, artifacttypeId string) ApiUpdateArtifacttypeRequest { return ApiUpdateArtifacttypeRequest{ ApiService: a, ctx: ctx, @@ -13309,25 +13309,25 @@ func (a *ApiApiService) UpdateArtifacttype(ctx _context.Context, artifacttypeId // Execute executes the request // @return Artifacttype -func (a *ApiApiService) UpdateArtifacttypeExecute(r ApiUpdateArtifacttypeRequest) (Artifacttype, *_nethttp.Response, error) { +func (a *ApiApiService) UpdateArtifacttypeExecute(r ApiUpdateArtifacttypeRequest) (*Artifacttype, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodPut + localVarHTTPMethod = http.MethodPut localVarPostBody interface{} formFiles []formFile - localVarReturnValue Artifacttype + localVarReturnValue *Artifacttype ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.UpdateArtifacttype") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/artifacttype/{artifacttype_id}/" - localVarPath = strings.Replace(localVarPath, "{"+"artifacttype_id"+"}", _neturl.PathEscape(parameterToString(r.artifacttypeId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"artifacttype_id"+"}", url.PathEscape(parameterToString(r.artifacttypeId, "")), -1) localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} @@ -13358,15 +13358,15 @@ func (a *ApiApiService) UpdateArtifacttypeExecute(r ApiUpdateArtifacttypeRequest return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -13375,7 +13375,7 @@ func (a *ApiApiService) UpdateArtifacttypeExecute(r ApiUpdateArtifacttypeRequest err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -13386,7 +13386,7 @@ func (a *ApiApiService) UpdateArtifacttypeExecute(r ApiUpdateArtifacttypeRequest } type ApiUpdateCaseRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService caseId string case_ *Case @@ -13397,7 +13397,7 @@ func (r ApiUpdateCaseRequest) Case_(case_ Case) ApiUpdateCaseRequest { return r } -func (r ApiUpdateCaseRequest) Execute() (Case, *_nethttp.Response, error) { +func (r ApiUpdateCaseRequest) Execute() (*Case, *http.Response, error) { return r.ApiService.UpdateCaseExecute(r) } @@ -13406,11 +13406,11 @@ UpdateCase Method for UpdateCase single object, allowed: GET + PUT - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param caseId A unique integer value identifying this case. @return ApiUpdateCaseRequest */ -func (a *ApiApiService) UpdateCase(ctx _context.Context, caseId string) ApiUpdateCaseRequest { +func (a *ApiApiService) UpdateCase(ctx context.Context, caseId string) ApiUpdateCaseRequest { return ApiUpdateCaseRequest{ ApiService: a, ctx: ctx, @@ -13420,25 +13420,25 @@ func (a *ApiApiService) UpdateCase(ctx _context.Context, caseId string) ApiUpdat // Execute executes the request // @return Case -func (a *ApiApiService) UpdateCaseExecute(r ApiUpdateCaseRequest) (Case, *_nethttp.Response, error) { +func (a *ApiApiService) UpdateCaseExecute(r ApiUpdateCaseRequest) (*Case, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodPut + localVarHTTPMethod = http.MethodPut localVarPostBody interface{} formFiles []formFile - localVarReturnValue Case + localVarReturnValue *Case ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.UpdateCase") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/case/{case_id}/" - localVarPath = strings.Replace(localVarPath, "{"+"case_id"+"}", _neturl.PathEscape(parameterToString(r.caseId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"case_id"+"}", url.PathEscape(parameterToString(r.caseId, "")), -1) localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} @@ -13469,15 +13469,15 @@ func (a *ApiApiService) UpdateCaseExecute(r ApiUpdateCaseRequest) (Case, *_netht return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -13486,7 +13486,7 @@ func (a *ApiApiService) UpdateCaseExecute(r ApiUpdateCaseRequest) (Case, *_netht err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -13497,7 +13497,7 @@ func (a *ApiApiService) UpdateCaseExecute(r ApiUpdateCaseRequest) (Case, *_netht } type ApiUpdateCasetypeRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService casetypeId string casetype *Casetype @@ -13508,7 +13508,7 @@ func (r ApiUpdateCasetypeRequest) Casetype(casetype Casetype) ApiUpdateCasetypeR return r } -func (r ApiUpdateCasetypeRequest) Execute() (Casetype, *_nethttp.Response, error) { +func (r ApiUpdateCasetypeRequest) Execute() (*Casetype, *http.Response, error) { return r.ApiService.UpdateCasetypeExecute(r) } @@ -13517,11 +13517,11 @@ UpdateCasetype Method for UpdateCasetype single object, allowed: GET + PUT - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param casetypeId A unique integer value identifying this casetype. @return ApiUpdateCasetypeRequest */ -func (a *ApiApiService) UpdateCasetype(ctx _context.Context, casetypeId string) ApiUpdateCasetypeRequest { +func (a *ApiApiService) UpdateCasetype(ctx context.Context, casetypeId string) ApiUpdateCasetypeRequest { return ApiUpdateCasetypeRequest{ ApiService: a, ctx: ctx, @@ -13531,25 +13531,25 @@ func (a *ApiApiService) UpdateCasetype(ctx _context.Context, casetypeId string) // Execute executes the request // @return Casetype -func (a *ApiApiService) UpdateCasetypeExecute(r ApiUpdateCasetypeRequest) (Casetype, *_nethttp.Response, error) { +func (a *ApiApiService) UpdateCasetypeExecute(r ApiUpdateCasetypeRequest) (*Casetype, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodPut + localVarHTTPMethod = http.MethodPut localVarPostBody interface{} formFiles []formFile - localVarReturnValue Casetype + localVarReturnValue *Casetype ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.UpdateCasetype") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/casetype/{casetype_id}/" - localVarPath = strings.Replace(localVarPath, "{"+"casetype_id"+"}", _neturl.PathEscape(parameterToString(r.casetypeId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"casetype_id"+"}", url.PathEscape(parameterToString(r.casetypeId, "")), -1) localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} @@ -13580,15 +13580,15 @@ func (a *ApiApiService) UpdateCasetypeExecute(r ApiUpdateCasetypeRequest) (Caset return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -13597,7 +13597,7 @@ func (a *ApiApiService) UpdateCasetypeExecute(r ApiUpdateCasetypeRequest) (Caset err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -13608,7 +13608,7 @@ func (a *ApiApiService) UpdateCasetypeExecute(r ApiUpdateCasetypeRequest) (Caset } type ApiUpdateCompanyRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService companyId string company *Company @@ -13619,7 +13619,7 @@ func (r ApiUpdateCompanyRequest) Company(company Company) ApiUpdateCompanyReques return r } -func (r ApiUpdateCompanyRequest) Execute() (Company, *_nethttp.Response, error) { +func (r ApiUpdateCompanyRequest) Execute() (*Company, *http.Response, error) { return r.ApiService.UpdateCompanyExecute(r) } @@ -13628,11 +13628,11 @@ UpdateCompany Method for UpdateCompany single object, allowed: GET + PUT - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param companyId A unique integer value identifying this company. @return ApiUpdateCompanyRequest */ -func (a *ApiApiService) UpdateCompany(ctx _context.Context, companyId string) ApiUpdateCompanyRequest { +func (a *ApiApiService) UpdateCompany(ctx context.Context, companyId string) ApiUpdateCompanyRequest { return ApiUpdateCompanyRequest{ ApiService: a, ctx: ctx, @@ -13642,25 +13642,25 @@ func (a *ApiApiService) UpdateCompany(ctx _context.Context, companyId string) Ap // Execute executes the request // @return Company -func (a *ApiApiService) UpdateCompanyExecute(r ApiUpdateCompanyRequest) (Company, *_nethttp.Response, error) { +func (a *ApiApiService) UpdateCompanyExecute(r ApiUpdateCompanyRequest) (*Company, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodPut + localVarHTTPMethod = http.MethodPut localVarPostBody interface{} formFiles []formFile - localVarReturnValue Company + localVarReturnValue *Company ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.UpdateCompany") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/company/{company_id}/" - localVarPath = strings.Replace(localVarPath, "{"+"company_id"+"}", _neturl.PathEscape(parameterToString(r.companyId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"company_id"+"}", url.PathEscape(parameterToString(r.companyId, "")), -1) localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} @@ -13691,15 +13691,15 @@ func (a *ApiApiService) UpdateCompanyExecute(r ApiUpdateCompanyRequest) (Company return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -13708,7 +13708,7 @@ func (a *ApiApiService) UpdateCompanyExecute(r ApiUpdateCompanyRequest) (Company err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -13719,7 +13719,7 @@ func (a *ApiApiService) UpdateCompanyExecute(r ApiUpdateCompanyRequest) (Company } type ApiUpdateContactRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService contactId string contact *Contact @@ -13730,7 +13730,7 @@ func (r ApiUpdateContactRequest) Contact(contact Contact) ApiUpdateContactReques return r } -func (r ApiUpdateContactRequest) Execute() (Contact, *_nethttp.Response, error) { +func (r ApiUpdateContactRequest) Execute() (*Contact, *http.Response, error) { return r.ApiService.UpdateContactExecute(r) } @@ -13739,11 +13739,11 @@ UpdateContact Method for UpdateContact single object, allowed: GET + PUT - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param contactId A unique integer value identifying this contact. @return ApiUpdateContactRequest */ -func (a *ApiApiService) UpdateContact(ctx _context.Context, contactId string) ApiUpdateContactRequest { +func (a *ApiApiService) UpdateContact(ctx context.Context, contactId string) ApiUpdateContactRequest { return ApiUpdateContactRequest{ ApiService: a, ctx: ctx, @@ -13753,25 +13753,25 @@ func (a *ApiApiService) UpdateContact(ctx _context.Context, contactId string) Ap // Execute executes the request // @return Contact -func (a *ApiApiService) UpdateContactExecute(r ApiUpdateContactRequest) (Contact, *_nethttp.Response, error) { +func (a *ApiApiService) UpdateContactExecute(r ApiUpdateContactRequest) (*Contact, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodPut + localVarHTTPMethod = http.MethodPut localVarPostBody interface{} formFiles []formFile - localVarReturnValue Contact + localVarReturnValue *Contact ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.UpdateContact") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/contact/{contact_id}/" - localVarPath = strings.Replace(localVarPath, "{"+"contact_id"+"}", _neturl.PathEscape(parameterToString(r.contactId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"contact_id"+"}", url.PathEscape(parameterToString(r.contactId, "")), -1) localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} @@ -13802,15 +13802,15 @@ func (a *ApiApiService) UpdateContactExecute(r ApiUpdateContactRequest) (Contact return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -13819,7 +13819,7 @@ func (a *ApiApiService) UpdateContactExecute(r ApiUpdateContactRequest) (Contact err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -13830,7 +13830,7 @@ func (a *ApiApiService) UpdateContactExecute(r ApiUpdateContactRequest) (Contact } type ApiUpdateDivisionRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService divisionId string division *Division @@ -13841,7 +13841,7 @@ func (r ApiUpdateDivisionRequest) Division(division Division) ApiUpdateDivisionR return r } -func (r ApiUpdateDivisionRequest) Execute() (Division, *_nethttp.Response, error) { +func (r ApiUpdateDivisionRequest) Execute() (*Division, *http.Response, error) { return r.ApiService.UpdateDivisionExecute(r) } @@ -13850,11 +13850,11 @@ UpdateDivision Method for UpdateDivision single object, allowed: GET + PUT - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param divisionId A unique integer value identifying this division. @return ApiUpdateDivisionRequest */ -func (a *ApiApiService) UpdateDivision(ctx _context.Context, divisionId string) ApiUpdateDivisionRequest { +func (a *ApiApiService) UpdateDivision(ctx context.Context, divisionId string) ApiUpdateDivisionRequest { return ApiUpdateDivisionRequest{ ApiService: a, ctx: ctx, @@ -13864,25 +13864,25 @@ func (a *ApiApiService) UpdateDivision(ctx _context.Context, divisionId string) // Execute executes the request // @return Division -func (a *ApiApiService) UpdateDivisionExecute(r ApiUpdateDivisionRequest) (Division, *_nethttp.Response, error) { +func (a *ApiApiService) UpdateDivisionExecute(r ApiUpdateDivisionRequest) (*Division, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodPut + localVarHTTPMethod = http.MethodPut localVarPostBody interface{} formFiles []formFile - localVarReturnValue Division + localVarReturnValue *Division ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.UpdateDivision") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/division/{division_id}/" - localVarPath = strings.Replace(localVarPath, "{"+"division_id"+"}", _neturl.PathEscape(parameterToString(r.divisionId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"division_id"+"}", url.PathEscape(parameterToString(r.divisionId, "")), -1) localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} @@ -13913,15 +13913,15 @@ func (a *ApiApiService) UpdateDivisionExecute(r ApiUpdateDivisionRequest) (Divis return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -13930,7 +13930,7 @@ func (a *ApiApiService) UpdateDivisionExecute(r ApiUpdateDivisionRequest) (Divis err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -13941,7 +13941,7 @@ func (a *ApiApiService) UpdateDivisionExecute(r ApiUpdateDivisionRequest) (Divis } type ApiUpdateDnsnameRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService dnsnameId string dnsname *Dnsname @@ -13952,7 +13952,7 @@ func (r ApiUpdateDnsnameRequest) Dnsname(dnsname Dnsname) ApiUpdateDnsnameReques return r } -func (r ApiUpdateDnsnameRequest) Execute() (Dnsname, *_nethttp.Response, error) { +func (r ApiUpdateDnsnameRequest) Execute() (*Dnsname, *http.Response, error) { return r.ApiService.UpdateDnsnameExecute(r) } @@ -13961,11 +13961,11 @@ UpdateDnsname Method for UpdateDnsname single object, allowed: GET + PUT - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param dnsnameId A unique integer value identifying this dnsname. @return ApiUpdateDnsnameRequest */ -func (a *ApiApiService) UpdateDnsname(ctx _context.Context, dnsnameId string) ApiUpdateDnsnameRequest { +func (a *ApiApiService) UpdateDnsname(ctx context.Context, dnsnameId string) ApiUpdateDnsnameRequest { return ApiUpdateDnsnameRequest{ ApiService: a, ctx: ctx, @@ -13975,25 +13975,25 @@ func (a *ApiApiService) UpdateDnsname(ctx _context.Context, dnsnameId string) Ap // Execute executes the request // @return Dnsname -func (a *ApiApiService) UpdateDnsnameExecute(r ApiUpdateDnsnameRequest) (Dnsname, *_nethttp.Response, error) { +func (a *ApiApiService) UpdateDnsnameExecute(r ApiUpdateDnsnameRequest) (*Dnsname, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodPut + localVarHTTPMethod = http.MethodPut localVarPostBody interface{} formFiles []formFile - localVarReturnValue Dnsname + localVarReturnValue *Dnsname ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.UpdateDnsname") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/dnsname/{dnsname_id}/" - localVarPath = strings.Replace(localVarPath, "{"+"dnsname_id"+"}", _neturl.PathEscape(parameterToString(r.dnsnameId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"dnsname_id"+"}", url.PathEscape(parameterToString(r.dnsnameId, "")), -1) localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} @@ -14024,15 +14024,15 @@ func (a *ApiApiService) UpdateDnsnameExecute(r ApiUpdateDnsnameRequest) (Dnsname return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -14041,7 +14041,7 @@ func (a *ApiApiService) UpdateDnsnameExecute(r ApiUpdateDnsnameRequest) (Dnsname err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -14052,7 +14052,7 @@ func (a *ApiApiService) UpdateDnsnameExecute(r ApiUpdateDnsnameRequest) (Dnsname } type ApiUpdateDomainRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService domainId string domain *Domain @@ -14063,7 +14063,7 @@ func (r ApiUpdateDomainRequest) Domain(domain Domain) ApiUpdateDomainRequest { return r } -func (r ApiUpdateDomainRequest) Execute() (Domain, *_nethttp.Response, error) { +func (r ApiUpdateDomainRequest) Execute() (*Domain, *http.Response, error) { return r.ApiService.UpdateDomainExecute(r) } @@ -14072,11 +14072,11 @@ UpdateDomain Method for UpdateDomain single object, allowed: GET + PUT - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param domainId A unique integer value identifying this domain. @return ApiUpdateDomainRequest */ -func (a *ApiApiService) UpdateDomain(ctx _context.Context, domainId string) ApiUpdateDomainRequest { +func (a *ApiApiService) UpdateDomain(ctx context.Context, domainId string) ApiUpdateDomainRequest { return ApiUpdateDomainRequest{ ApiService: a, ctx: ctx, @@ -14086,25 +14086,25 @@ func (a *ApiApiService) UpdateDomain(ctx _context.Context, domainId string) ApiU // Execute executes the request // @return Domain -func (a *ApiApiService) UpdateDomainExecute(r ApiUpdateDomainRequest) (Domain, *_nethttp.Response, error) { +func (a *ApiApiService) UpdateDomainExecute(r ApiUpdateDomainRequest) (*Domain, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodPut + localVarHTTPMethod = http.MethodPut localVarPostBody interface{} formFiles []formFile - localVarReturnValue Domain + localVarReturnValue *Domain ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.UpdateDomain") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/domain/{domain_id}/" - localVarPath = strings.Replace(localVarPath, "{"+"domain_id"+"}", _neturl.PathEscape(parameterToString(r.domainId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"domain_id"+"}", url.PathEscape(parameterToString(r.domainId, "")), -1) localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} @@ -14135,15 +14135,15 @@ func (a *ApiApiService) UpdateDomainExecute(r ApiUpdateDomainRequest) (Domain, * return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -14152,7 +14152,7 @@ func (a *ApiApiService) UpdateDomainExecute(r ApiUpdateDomainRequest) (Domain, * err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -14163,7 +14163,7 @@ func (a *ApiApiService) UpdateDomainExecute(r ApiUpdateDomainRequest) (Domain, * } type ApiUpdateDomainuserRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService domainuserId string domainuser *Domainuser @@ -14174,7 +14174,7 @@ func (r ApiUpdateDomainuserRequest) Domainuser(domainuser Domainuser) ApiUpdateD return r } -func (r ApiUpdateDomainuserRequest) Execute() (Domainuser, *_nethttp.Response, error) { +func (r ApiUpdateDomainuserRequest) Execute() (*Domainuser, *http.Response, error) { return r.ApiService.UpdateDomainuserExecute(r) } @@ -14183,11 +14183,11 @@ UpdateDomainuser Method for UpdateDomainuser single object, allowed: GET + PUT - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param domainuserId A unique integer value identifying this domainuser. @return ApiUpdateDomainuserRequest */ -func (a *ApiApiService) UpdateDomainuser(ctx _context.Context, domainuserId string) ApiUpdateDomainuserRequest { +func (a *ApiApiService) UpdateDomainuser(ctx context.Context, domainuserId string) ApiUpdateDomainuserRequest { return ApiUpdateDomainuserRequest{ ApiService: a, ctx: ctx, @@ -14197,25 +14197,25 @@ func (a *ApiApiService) UpdateDomainuser(ctx _context.Context, domainuserId stri // Execute executes the request // @return Domainuser -func (a *ApiApiService) UpdateDomainuserExecute(r ApiUpdateDomainuserRequest) (Domainuser, *_nethttp.Response, error) { +func (a *ApiApiService) UpdateDomainuserExecute(r ApiUpdateDomainuserRequest) (*Domainuser, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodPut + localVarHTTPMethod = http.MethodPut localVarPostBody interface{} formFiles []formFile - localVarReturnValue Domainuser + localVarReturnValue *Domainuser ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.UpdateDomainuser") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/domainuser/{domainuser_id}/" - localVarPath = strings.Replace(localVarPath, "{"+"domainuser_id"+"}", _neturl.PathEscape(parameterToString(r.domainuserId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"domainuser_id"+"}", url.PathEscape(parameterToString(r.domainuserId, "")), -1) localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} @@ -14246,15 +14246,15 @@ func (a *ApiApiService) UpdateDomainuserExecute(r ApiUpdateDomainuserRequest) (D return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -14263,7 +14263,7 @@ func (a *ApiApiService) UpdateDomainuserExecute(r ApiUpdateDomainuserRequest) (D err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -14274,7 +14274,7 @@ func (a *ApiApiService) UpdateDomainuserExecute(r ApiUpdateDomainuserRequest) (D } type ApiUpdateHeadlineRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService headlineId string headline *Headline @@ -14285,7 +14285,7 @@ func (r ApiUpdateHeadlineRequest) Headline(headline Headline) ApiUpdateHeadlineR return r } -func (r ApiUpdateHeadlineRequest) Execute() (Headline, *_nethttp.Response, error) { +func (r ApiUpdateHeadlineRequest) Execute() (*Headline, *http.Response, error) { return r.ApiService.UpdateHeadlineExecute(r) } @@ -14294,11 +14294,11 @@ UpdateHeadline Method for UpdateHeadline single object, allowed: GET + PUT - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param headlineId A unique integer value identifying this headline. @return ApiUpdateHeadlineRequest */ -func (a *ApiApiService) UpdateHeadline(ctx _context.Context, headlineId string) ApiUpdateHeadlineRequest { +func (a *ApiApiService) UpdateHeadline(ctx context.Context, headlineId string) ApiUpdateHeadlineRequest { return ApiUpdateHeadlineRequest{ ApiService: a, ctx: ctx, @@ -14308,25 +14308,25 @@ func (a *ApiApiService) UpdateHeadline(ctx _context.Context, headlineId string) // Execute executes the request // @return Headline -func (a *ApiApiService) UpdateHeadlineExecute(r ApiUpdateHeadlineRequest) (Headline, *_nethttp.Response, error) { +func (a *ApiApiService) UpdateHeadlineExecute(r ApiUpdateHeadlineRequest) (*Headline, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodPut + localVarHTTPMethod = http.MethodPut localVarPostBody interface{} formFiles []formFile - localVarReturnValue Headline + localVarReturnValue *Headline ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.UpdateHeadline") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/headline/{headline_id}/" - localVarPath = strings.Replace(localVarPath, "{"+"headline_id"+"}", _neturl.PathEscape(parameterToString(r.headlineId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"headline_id"+"}", url.PathEscape(parameterToString(r.headlineId, "")), -1) localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} @@ -14357,15 +14357,15 @@ func (a *ApiApiService) UpdateHeadlineExecute(r ApiUpdateHeadlineRequest) (Headl return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -14374,7 +14374,7 @@ func (a *ApiApiService) UpdateHeadlineExecute(r ApiUpdateHeadlineRequest) (Headl err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -14385,7 +14385,7 @@ func (a *ApiApiService) UpdateHeadlineExecute(r ApiUpdateHeadlineRequest) (Headl } type ApiUpdateIpRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService ipId string ip *Ip @@ -14396,7 +14396,7 @@ func (r ApiUpdateIpRequest) Ip(ip Ip) ApiUpdateIpRequest { return r } -func (r ApiUpdateIpRequest) Execute() (Ip, *_nethttp.Response, error) { +func (r ApiUpdateIpRequest) Execute() (*Ip, *http.Response, error) { return r.ApiService.UpdateIpExecute(r) } @@ -14405,11 +14405,11 @@ UpdateIp Method for UpdateIp single object, allowed: GET + PUT - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param ipId A unique integer value identifying this ip. @return ApiUpdateIpRequest */ -func (a *ApiApiService) UpdateIp(ctx _context.Context, ipId string) ApiUpdateIpRequest { +func (a *ApiApiService) UpdateIp(ctx context.Context, ipId string) ApiUpdateIpRequest { return ApiUpdateIpRequest{ ApiService: a, ctx: ctx, @@ -14419,25 +14419,25 @@ func (a *ApiApiService) UpdateIp(ctx _context.Context, ipId string) ApiUpdateIpR // Execute executes the request // @return Ip -func (a *ApiApiService) UpdateIpExecute(r ApiUpdateIpRequest) (Ip, *_nethttp.Response, error) { +func (a *ApiApiService) UpdateIpExecute(r ApiUpdateIpRequest) (*Ip, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodPut + localVarHTTPMethod = http.MethodPut localVarPostBody interface{} formFiles []formFile - localVarReturnValue Ip + localVarReturnValue *Ip ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.UpdateIp") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/ip/{ip_id}/" - localVarPath = strings.Replace(localVarPath, "{"+"ip_id"+"}", _neturl.PathEscape(parameterToString(r.ipId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"ip_id"+"}", url.PathEscape(parameterToString(r.ipId, "")), -1) localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} @@ -14468,15 +14468,15 @@ func (a *ApiApiService) UpdateIpExecute(r ApiUpdateIpRequest) (Ip, *_nethttp.Res return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -14485,7 +14485,7 @@ func (a *ApiApiService) UpdateIpExecute(r ApiUpdateIpRequest) (Ip, *_nethttp.Res err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -14496,7 +14496,7 @@ func (a *ApiApiService) UpdateIpExecute(r ApiUpdateIpRequest) (Ip, *_nethttp.Res } type ApiUpdateLocationRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService locationId string location *Location @@ -14507,7 +14507,7 @@ func (r ApiUpdateLocationRequest) Location(location Location) ApiUpdateLocationR return r } -func (r ApiUpdateLocationRequest) Execute() (Location, *_nethttp.Response, error) { +func (r ApiUpdateLocationRequest) Execute() (*Location, *http.Response, error) { return r.ApiService.UpdateLocationExecute(r) } @@ -14516,11 +14516,11 @@ UpdateLocation Method for UpdateLocation single object, allowed: GET + PUT - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param locationId A unique integer value identifying this location. @return ApiUpdateLocationRequest */ -func (a *ApiApiService) UpdateLocation(ctx _context.Context, locationId string) ApiUpdateLocationRequest { +func (a *ApiApiService) UpdateLocation(ctx context.Context, locationId string) ApiUpdateLocationRequest { return ApiUpdateLocationRequest{ ApiService: a, ctx: ctx, @@ -14530,25 +14530,25 @@ func (a *ApiApiService) UpdateLocation(ctx _context.Context, locationId string) // Execute executes the request // @return Location -func (a *ApiApiService) UpdateLocationExecute(r ApiUpdateLocationRequest) (Location, *_nethttp.Response, error) { +func (a *ApiApiService) UpdateLocationExecute(r ApiUpdateLocationRequest) (*Location, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodPut + localVarHTTPMethod = http.MethodPut localVarPostBody interface{} formFiles []formFile - localVarReturnValue Location + localVarReturnValue *Location ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.UpdateLocation") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/location/{location_id}/" - localVarPath = strings.Replace(localVarPath, "{"+"location_id"+"}", _neturl.PathEscape(parameterToString(r.locationId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"location_id"+"}", url.PathEscape(parameterToString(r.locationId, "")), -1) localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} @@ -14579,15 +14579,15 @@ func (a *ApiApiService) UpdateLocationExecute(r ApiUpdateLocationRequest) (Locat return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -14596,7 +14596,7 @@ func (a *ApiApiService) UpdateLocationExecute(r ApiUpdateLocationRequest) (Locat err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -14607,7 +14607,7 @@ func (a *ApiApiService) UpdateLocationExecute(r ApiUpdateLocationRequest) (Locat } type ApiUpdateNoteRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService noteId string note *Note @@ -14618,7 +14618,7 @@ func (r ApiUpdateNoteRequest) Note(note Note) ApiUpdateNoteRequest { return r } -func (r ApiUpdateNoteRequest) Execute() (Note, *_nethttp.Response, error) { +func (r ApiUpdateNoteRequest) Execute() (*Note, *http.Response, error) { return r.ApiService.UpdateNoteExecute(r) } @@ -14627,11 +14627,11 @@ UpdateNote Method for UpdateNote single object, allowed: GET + PUT - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param noteId A unique integer value identifying this note. @return ApiUpdateNoteRequest */ -func (a *ApiApiService) UpdateNote(ctx _context.Context, noteId string) ApiUpdateNoteRequest { +func (a *ApiApiService) UpdateNote(ctx context.Context, noteId string) ApiUpdateNoteRequest { return ApiUpdateNoteRequest{ ApiService: a, ctx: ctx, @@ -14641,25 +14641,25 @@ func (a *ApiApiService) UpdateNote(ctx _context.Context, noteId string) ApiUpdat // Execute executes the request // @return Note -func (a *ApiApiService) UpdateNoteExecute(r ApiUpdateNoteRequest) (Note, *_nethttp.Response, error) { +func (a *ApiApiService) UpdateNoteExecute(r ApiUpdateNoteRequest) (*Note, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodPut + localVarHTTPMethod = http.MethodPut localVarPostBody interface{} formFiles []formFile - localVarReturnValue Note + localVarReturnValue *Note ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.UpdateNote") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/note/{note_id}/" - localVarPath = strings.Replace(localVarPath, "{"+"note_id"+"}", _neturl.PathEscape(parameterToString(r.noteId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"note_id"+"}", url.PathEscape(parameterToString(r.noteId, "")), -1) localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} @@ -14690,15 +14690,15 @@ func (a *ApiApiService) UpdateNoteExecute(r ApiUpdateNoteRequest) (Note, *_netht return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -14707,7 +14707,7 @@ func (a *ApiApiService) UpdateNoteExecute(r ApiUpdateNoteRequest) (Note, *_netht err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -14718,7 +14718,7 @@ func (a *ApiApiService) UpdateNoteExecute(r ApiUpdateNoteRequest) (Note, *_netht } type ApiUpdateOsRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService osId string os *Os @@ -14729,7 +14729,7 @@ func (r ApiUpdateOsRequest) Os(os Os) ApiUpdateOsRequest { return r } -func (r ApiUpdateOsRequest) Execute() (Os, *_nethttp.Response, error) { +func (r ApiUpdateOsRequest) Execute() (*Os, *http.Response, error) { return r.ApiService.UpdateOsExecute(r) } @@ -14738,11 +14738,11 @@ UpdateOs Method for UpdateOs single object, allowed: GET + PUT - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param osId A unique integer value identifying this os. @return ApiUpdateOsRequest */ -func (a *ApiApiService) UpdateOs(ctx _context.Context, osId string) ApiUpdateOsRequest { +func (a *ApiApiService) UpdateOs(ctx context.Context, osId string) ApiUpdateOsRequest { return ApiUpdateOsRequest{ ApiService: a, ctx: ctx, @@ -14752,25 +14752,25 @@ func (a *ApiApiService) UpdateOs(ctx _context.Context, osId string) ApiUpdateOsR // Execute executes the request // @return Os -func (a *ApiApiService) UpdateOsExecute(r ApiUpdateOsRequest) (Os, *_nethttp.Response, error) { +func (a *ApiApiService) UpdateOsExecute(r ApiUpdateOsRequest) (*Os, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodPut + localVarHTTPMethod = http.MethodPut localVarPostBody interface{} formFiles []formFile - localVarReturnValue Os + localVarReturnValue *Os ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.UpdateOs") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/os/{os_id}/" - localVarPath = strings.Replace(localVarPath, "{"+"os_id"+"}", _neturl.PathEscape(parameterToString(r.osId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"os_id"+"}", url.PathEscape(parameterToString(r.osId, "")), -1) localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} @@ -14801,15 +14801,15 @@ func (a *ApiApiService) UpdateOsExecute(r ApiUpdateOsRequest) (Os, *_nethttp.Res return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -14818,7 +14818,7 @@ func (a *ApiApiService) UpdateOsExecute(r ApiUpdateOsRequest) (Os, *_nethttp.Res err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -14829,7 +14829,7 @@ func (a *ApiApiService) UpdateOsExecute(r ApiUpdateOsRequest) (Os, *_nethttp.Res } type ApiUpdateOsarchRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService osarchId string osarch *Osarch @@ -14840,7 +14840,7 @@ func (r ApiUpdateOsarchRequest) Osarch(osarch Osarch) ApiUpdateOsarchRequest { return r } -func (r ApiUpdateOsarchRequest) Execute() (Osarch, *_nethttp.Response, error) { +func (r ApiUpdateOsarchRequest) Execute() (*Osarch, *http.Response, error) { return r.ApiService.UpdateOsarchExecute(r) } @@ -14849,11 +14849,11 @@ UpdateOsarch Method for UpdateOsarch single object, allowed: GET + PUT - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param osarchId A unique integer value identifying this osarch. @return ApiUpdateOsarchRequest */ -func (a *ApiApiService) UpdateOsarch(ctx _context.Context, osarchId string) ApiUpdateOsarchRequest { +func (a *ApiApiService) UpdateOsarch(ctx context.Context, osarchId string) ApiUpdateOsarchRequest { return ApiUpdateOsarchRequest{ ApiService: a, ctx: ctx, @@ -14863,25 +14863,25 @@ func (a *ApiApiService) UpdateOsarch(ctx _context.Context, osarchId string) ApiU // Execute executes the request // @return Osarch -func (a *ApiApiService) UpdateOsarchExecute(r ApiUpdateOsarchRequest) (Osarch, *_nethttp.Response, error) { +func (a *ApiApiService) UpdateOsarchExecute(r ApiUpdateOsarchRequest) (*Osarch, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodPut + localVarHTTPMethod = http.MethodPut localVarPostBody interface{} formFiles []formFile - localVarReturnValue Osarch + localVarReturnValue *Osarch ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.UpdateOsarch") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/osarch/{osarch_id}/" - localVarPath = strings.Replace(localVarPath, "{"+"osarch_id"+"}", _neturl.PathEscape(parameterToString(r.osarchId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"osarch_id"+"}", url.PathEscape(parameterToString(r.osarchId, "")), -1) localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} @@ -14912,15 +14912,15 @@ func (a *ApiApiService) UpdateOsarchExecute(r ApiUpdateOsarchRequest) (Osarch, * return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -14929,7 +14929,7 @@ func (a *ApiApiService) UpdateOsarchExecute(r ApiUpdateOsarchRequest) (Osarch, * err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -14940,7 +14940,7 @@ func (a *ApiApiService) UpdateOsarchExecute(r ApiUpdateOsarchRequest) (Osarch, * } type ApiUpdateReasonRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService reasonId string reason *Reason @@ -14951,7 +14951,7 @@ func (r ApiUpdateReasonRequest) Reason(reason Reason) ApiUpdateReasonRequest { return r } -func (r ApiUpdateReasonRequest) Execute() (Reason, *_nethttp.Response, error) { +func (r ApiUpdateReasonRequest) Execute() (*Reason, *http.Response, error) { return r.ApiService.UpdateReasonExecute(r) } @@ -14960,11 +14960,11 @@ UpdateReason Method for UpdateReason single object, allowed: GET + PUT - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param reasonId A unique integer value identifying this reason. @return ApiUpdateReasonRequest */ -func (a *ApiApiService) UpdateReason(ctx _context.Context, reasonId string) ApiUpdateReasonRequest { +func (a *ApiApiService) UpdateReason(ctx context.Context, reasonId string) ApiUpdateReasonRequest { return ApiUpdateReasonRequest{ ApiService: a, ctx: ctx, @@ -14974,25 +14974,25 @@ func (a *ApiApiService) UpdateReason(ctx _context.Context, reasonId string) ApiU // Execute executes the request // @return Reason -func (a *ApiApiService) UpdateReasonExecute(r ApiUpdateReasonRequest) (Reason, *_nethttp.Response, error) { +func (a *ApiApiService) UpdateReasonExecute(r ApiUpdateReasonRequest) (*Reason, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodPut + localVarHTTPMethod = http.MethodPut localVarPostBody interface{} formFiles []formFile - localVarReturnValue Reason + localVarReturnValue *Reason ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.UpdateReason") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/reason/{reason_id}/" - localVarPath = strings.Replace(localVarPath, "{"+"reason_id"+"}", _neturl.PathEscape(parameterToString(r.reasonId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"reason_id"+"}", url.PathEscape(parameterToString(r.reasonId, "")), -1) localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} @@ -15023,15 +15023,15 @@ func (a *ApiApiService) UpdateReasonExecute(r ApiUpdateReasonRequest) (Reason, * return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -15040,7 +15040,7 @@ func (a *ApiApiService) UpdateReasonExecute(r ApiUpdateReasonRequest) (Reason, * err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -15051,7 +15051,7 @@ func (a *ApiApiService) UpdateReasonExecute(r ApiUpdateReasonRequest) (Reason, * } type ApiUpdateRecommendationRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService recommendationId string recommendation *Recommendation @@ -15062,7 +15062,7 @@ func (r ApiUpdateRecommendationRequest) Recommendation(recommendation Recommenda return r } -func (r ApiUpdateRecommendationRequest) Execute() (Recommendation, *_nethttp.Response, error) { +func (r ApiUpdateRecommendationRequest) Execute() (*Recommendation, *http.Response, error) { return r.ApiService.UpdateRecommendationExecute(r) } @@ -15071,11 +15071,11 @@ UpdateRecommendation Method for UpdateRecommendation single object, allowed: GET + PUT - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param recommendationId A unique integer value identifying this recommendation. @return ApiUpdateRecommendationRequest */ -func (a *ApiApiService) UpdateRecommendation(ctx _context.Context, recommendationId string) ApiUpdateRecommendationRequest { +func (a *ApiApiService) UpdateRecommendation(ctx context.Context, recommendationId string) ApiUpdateRecommendationRequest { return ApiUpdateRecommendationRequest{ ApiService: a, ctx: ctx, @@ -15085,25 +15085,25 @@ func (a *ApiApiService) UpdateRecommendation(ctx _context.Context, recommendatio // Execute executes the request // @return Recommendation -func (a *ApiApiService) UpdateRecommendationExecute(r ApiUpdateRecommendationRequest) (Recommendation, *_nethttp.Response, error) { +func (a *ApiApiService) UpdateRecommendationExecute(r ApiUpdateRecommendationRequest) (*Recommendation, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodPut + localVarHTTPMethod = http.MethodPut localVarPostBody interface{} formFiles []formFile - localVarReturnValue Recommendation + localVarReturnValue *Recommendation ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.UpdateRecommendation") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/recommendation/{recommendation_id}/" - localVarPath = strings.Replace(localVarPath, "{"+"recommendation_id"+"}", _neturl.PathEscape(parameterToString(r.recommendationId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"recommendation_id"+"}", url.PathEscape(parameterToString(r.recommendationId, "")), -1) localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} @@ -15134,15 +15134,15 @@ func (a *ApiApiService) UpdateRecommendationExecute(r ApiUpdateRecommendationReq return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -15151,7 +15151,7 @@ func (a *ApiApiService) UpdateRecommendationExecute(r ApiUpdateRecommendationReq err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -15162,7 +15162,7 @@ func (a *ApiApiService) UpdateRecommendationExecute(r ApiUpdateRecommendationReq } type ApiUpdateReportitemRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService reportitemId string reportitem *Reportitem @@ -15173,7 +15173,7 @@ func (r ApiUpdateReportitemRequest) Reportitem(reportitem Reportitem) ApiUpdateR return r } -func (r ApiUpdateReportitemRequest) Execute() (Reportitem, *_nethttp.Response, error) { +func (r ApiUpdateReportitemRequest) Execute() (*Reportitem, *http.Response, error) { return r.ApiService.UpdateReportitemExecute(r) } @@ -15182,11 +15182,11 @@ UpdateReportitem Method for UpdateReportitem single object, allowed: GET + PUT - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param reportitemId A unique integer value identifying this reportitem. @return ApiUpdateReportitemRequest */ -func (a *ApiApiService) UpdateReportitem(ctx _context.Context, reportitemId string) ApiUpdateReportitemRequest { +func (a *ApiApiService) UpdateReportitem(ctx context.Context, reportitemId string) ApiUpdateReportitemRequest { return ApiUpdateReportitemRequest{ ApiService: a, ctx: ctx, @@ -15196,25 +15196,25 @@ func (a *ApiApiService) UpdateReportitem(ctx _context.Context, reportitemId stri // Execute executes the request // @return Reportitem -func (a *ApiApiService) UpdateReportitemExecute(r ApiUpdateReportitemRequest) (Reportitem, *_nethttp.Response, error) { +func (a *ApiApiService) UpdateReportitemExecute(r ApiUpdateReportitemRequest) (*Reportitem, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodPut + localVarHTTPMethod = http.MethodPut localVarPostBody interface{} formFiles []formFile - localVarReturnValue Reportitem + localVarReturnValue *Reportitem ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.UpdateReportitem") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/reportitem/{reportitem_id}/" - localVarPath = strings.Replace(localVarPath, "{"+"reportitem_id"+"}", _neturl.PathEscape(parameterToString(r.reportitemId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"reportitem_id"+"}", url.PathEscape(parameterToString(r.reportitemId, "")), -1) localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} @@ -15245,15 +15245,15 @@ func (a *ApiApiService) UpdateReportitemExecute(r ApiUpdateReportitemRequest) (R return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -15262,7 +15262,7 @@ func (a *ApiApiService) UpdateReportitemExecute(r ApiUpdateReportitemRequest) (R err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -15273,7 +15273,7 @@ func (a *ApiApiService) UpdateReportitemExecute(r ApiUpdateReportitemRequest) (R } type ApiUpdateServiceproviderRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService serviceproviderId string serviceprovider *Serviceprovider @@ -15284,7 +15284,7 @@ func (r ApiUpdateServiceproviderRequest) Serviceprovider(serviceprovider Service return r } -func (r ApiUpdateServiceproviderRequest) Execute() (Serviceprovider, *_nethttp.Response, error) { +func (r ApiUpdateServiceproviderRequest) Execute() (*Serviceprovider, *http.Response, error) { return r.ApiService.UpdateServiceproviderExecute(r) } @@ -15293,11 +15293,11 @@ UpdateServiceprovider Method for UpdateServiceprovider single object, allowed: GET + PUT - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param serviceproviderId A unique integer value identifying this serviceprovider. @return ApiUpdateServiceproviderRequest */ -func (a *ApiApiService) UpdateServiceprovider(ctx _context.Context, serviceproviderId string) ApiUpdateServiceproviderRequest { +func (a *ApiApiService) UpdateServiceprovider(ctx context.Context, serviceproviderId string) ApiUpdateServiceproviderRequest { return ApiUpdateServiceproviderRequest{ ApiService: a, ctx: ctx, @@ -15307,25 +15307,25 @@ func (a *ApiApiService) UpdateServiceprovider(ctx _context.Context, serviceprovi // Execute executes the request // @return Serviceprovider -func (a *ApiApiService) UpdateServiceproviderExecute(r ApiUpdateServiceproviderRequest) (Serviceprovider, *_nethttp.Response, error) { +func (a *ApiApiService) UpdateServiceproviderExecute(r ApiUpdateServiceproviderRequest) (*Serviceprovider, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodPut + localVarHTTPMethod = http.MethodPut localVarPostBody interface{} formFiles []formFile - localVarReturnValue Serviceprovider + localVarReturnValue *Serviceprovider ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.UpdateServiceprovider") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/serviceprovider/{serviceprovider_id}/" - localVarPath = strings.Replace(localVarPath, "{"+"serviceprovider_id"+"}", _neturl.PathEscape(parameterToString(r.serviceproviderId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"serviceprovider_id"+"}", url.PathEscape(parameterToString(r.serviceproviderId, "")), -1) localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} @@ -15356,15 +15356,15 @@ func (a *ApiApiService) UpdateServiceproviderExecute(r ApiUpdateServiceproviderR return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -15373,7 +15373,7 @@ func (a *ApiApiService) UpdateServiceproviderExecute(r ApiUpdateServiceproviderR err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -15384,7 +15384,7 @@ func (a *ApiApiService) UpdateServiceproviderExecute(r ApiUpdateServiceproviderR } type ApiUpdateSystemRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService systemId string system *System @@ -15395,7 +15395,7 @@ func (r ApiUpdateSystemRequest) System(system System) ApiUpdateSystemRequest { return r } -func (r ApiUpdateSystemRequest) Execute() (System, *_nethttp.Response, error) { +func (r ApiUpdateSystemRequest) Execute() (*System, *http.Response, error) { return r.ApiService.UpdateSystemExecute(r) } @@ -15404,11 +15404,11 @@ UpdateSystem Method for UpdateSystem single object, allowed: GET + PUT - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param systemId A unique integer value identifying this system. @return ApiUpdateSystemRequest */ -func (a *ApiApiService) UpdateSystem(ctx _context.Context, systemId string) ApiUpdateSystemRequest { +func (a *ApiApiService) UpdateSystem(ctx context.Context, systemId string) ApiUpdateSystemRequest { return ApiUpdateSystemRequest{ ApiService: a, ctx: ctx, @@ -15418,25 +15418,25 @@ func (a *ApiApiService) UpdateSystem(ctx _context.Context, systemId string) ApiU // Execute executes the request // @return System -func (a *ApiApiService) UpdateSystemExecute(r ApiUpdateSystemRequest) (System, *_nethttp.Response, error) { +func (a *ApiApiService) UpdateSystemExecute(r ApiUpdateSystemRequest) (*System, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodPut + localVarHTTPMethod = http.MethodPut localVarPostBody interface{} formFiles []formFile - localVarReturnValue System + localVarReturnValue *System ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.UpdateSystem") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/system/{system_id}/" - localVarPath = strings.Replace(localVarPath, "{"+"system_id"+"}", _neturl.PathEscape(parameterToString(r.systemId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"system_id"+"}", url.PathEscape(parameterToString(r.systemId, "")), -1) localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} @@ -15467,15 +15467,15 @@ func (a *ApiApiService) UpdateSystemExecute(r ApiUpdateSystemRequest) (System, * return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -15484,7 +15484,7 @@ func (a *ApiApiService) UpdateSystemExecute(r ApiUpdateSystemRequest) (System, * err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -15495,7 +15495,7 @@ func (a *ApiApiService) UpdateSystemExecute(r ApiUpdateSystemRequest) (System, * } type ApiUpdateSystemtypeRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService systemtypeId string systemtype *Systemtype @@ -15506,7 +15506,7 @@ func (r ApiUpdateSystemtypeRequest) Systemtype(systemtype Systemtype) ApiUpdateS return r } -func (r ApiUpdateSystemtypeRequest) Execute() (Systemtype, *_nethttp.Response, error) { +func (r ApiUpdateSystemtypeRequest) Execute() (*Systemtype, *http.Response, error) { return r.ApiService.UpdateSystemtypeExecute(r) } @@ -15515,11 +15515,11 @@ UpdateSystemtype Method for UpdateSystemtype single object, allowed: GET + PUT - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param systemtypeId A unique integer value identifying this systemtype. @return ApiUpdateSystemtypeRequest */ -func (a *ApiApiService) UpdateSystemtype(ctx _context.Context, systemtypeId string) ApiUpdateSystemtypeRequest { +func (a *ApiApiService) UpdateSystemtype(ctx context.Context, systemtypeId string) ApiUpdateSystemtypeRequest { return ApiUpdateSystemtypeRequest{ ApiService: a, ctx: ctx, @@ -15529,25 +15529,25 @@ func (a *ApiApiService) UpdateSystemtype(ctx _context.Context, systemtypeId stri // Execute executes the request // @return Systemtype -func (a *ApiApiService) UpdateSystemtypeExecute(r ApiUpdateSystemtypeRequest) (Systemtype, *_nethttp.Response, error) { +func (a *ApiApiService) UpdateSystemtypeExecute(r ApiUpdateSystemtypeRequest) (*Systemtype, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodPut + localVarHTTPMethod = http.MethodPut localVarPostBody interface{} formFiles []formFile - localVarReturnValue Systemtype + localVarReturnValue *Systemtype ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.UpdateSystemtype") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/systemtype/{systemtype_id}/" - localVarPath = strings.Replace(localVarPath, "{"+"systemtype_id"+"}", _neturl.PathEscape(parameterToString(r.systemtypeId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"systemtype_id"+"}", url.PathEscape(parameterToString(r.systemtypeId, "")), -1) localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} @@ -15578,15 +15578,15 @@ func (a *ApiApiService) UpdateSystemtypeExecute(r ApiUpdateSystemtypeRequest) (S return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -15595,7 +15595,7 @@ func (a *ApiApiService) UpdateSystemtypeExecute(r ApiUpdateSystemtypeRequest) (S err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -15606,7 +15606,7 @@ func (a *ApiApiService) UpdateSystemtypeExecute(r ApiUpdateSystemtypeRequest) (S } type ApiUpdateSystemuserRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService systemuserId string systemuser *Systemuser @@ -15617,7 +15617,7 @@ func (r ApiUpdateSystemuserRequest) Systemuser(systemuser Systemuser) ApiUpdateS return r } -func (r ApiUpdateSystemuserRequest) Execute() (Systemuser, *_nethttp.Response, error) { +func (r ApiUpdateSystemuserRequest) Execute() (*Systemuser, *http.Response, error) { return r.ApiService.UpdateSystemuserExecute(r) } @@ -15626,11 +15626,11 @@ UpdateSystemuser Method for UpdateSystemuser single object, allowed: GET + PUT - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param systemuserId A unique integer value identifying this systemuser. @return ApiUpdateSystemuserRequest */ -func (a *ApiApiService) UpdateSystemuser(ctx _context.Context, systemuserId string) ApiUpdateSystemuserRequest { +func (a *ApiApiService) UpdateSystemuser(ctx context.Context, systemuserId string) ApiUpdateSystemuserRequest { return ApiUpdateSystemuserRequest{ ApiService: a, ctx: ctx, @@ -15640,25 +15640,25 @@ func (a *ApiApiService) UpdateSystemuser(ctx _context.Context, systemuserId stri // Execute executes the request // @return Systemuser -func (a *ApiApiService) UpdateSystemuserExecute(r ApiUpdateSystemuserRequest) (Systemuser, *_nethttp.Response, error) { +func (a *ApiApiService) UpdateSystemuserExecute(r ApiUpdateSystemuserRequest) (*Systemuser, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodPut + localVarHTTPMethod = http.MethodPut localVarPostBody interface{} formFiles []formFile - localVarReturnValue Systemuser + localVarReturnValue *Systemuser ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.UpdateSystemuser") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/systemuser/{systemuser_id}/" - localVarPath = strings.Replace(localVarPath, "{"+"systemuser_id"+"}", _neturl.PathEscape(parameterToString(r.systemuserId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"systemuser_id"+"}", url.PathEscape(parameterToString(r.systemuserId, "")), -1) localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} @@ -15689,15 +15689,15 @@ func (a *ApiApiService) UpdateSystemuserExecute(r ApiUpdateSystemuserRequest) (S return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -15706,7 +15706,7 @@ func (a *ApiApiService) UpdateSystemuserExecute(r ApiUpdateSystemuserRequest) (S err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -15717,7 +15717,7 @@ func (a *ApiApiService) UpdateSystemuserExecute(r ApiUpdateSystemuserRequest) (S } type ApiUpdateTagRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService tagId string tag *Tag @@ -15728,7 +15728,7 @@ func (r ApiUpdateTagRequest) Tag(tag Tag) ApiUpdateTagRequest { return r } -func (r ApiUpdateTagRequest) Execute() (Tag, *_nethttp.Response, error) { +func (r ApiUpdateTagRequest) Execute() (*Tag, *http.Response, error) { return r.ApiService.UpdateTagExecute(r) } @@ -15737,11 +15737,11 @@ UpdateTag Method for UpdateTag single object, allowed: GET + PUT - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param tagId A unique integer value identifying this tag. @return ApiUpdateTagRequest */ -func (a *ApiApiService) UpdateTag(ctx _context.Context, tagId string) ApiUpdateTagRequest { +func (a *ApiApiService) UpdateTag(ctx context.Context, tagId string) ApiUpdateTagRequest { return ApiUpdateTagRequest{ ApiService: a, ctx: ctx, @@ -15751,25 +15751,25 @@ func (a *ApiApiService) UpdateTag(ctx _context.Context, tagId string) ApiUpdateT // Execute executes the request // @return Tag -func (a *ApiApiService) UpdateTagExecute(r ApiUpdateTagRequest) (Tag, *_nethttp.Response, error) { +func (a *ApiApiService) UpdateTagExecute(r ApiUpdateTagRequest) (*Tag, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodPut + localVarHTTPMethod = http.MethodPut localVarPostBody interface{} formFiles []formFile - localVarReturnValue Tag + localVarReturnValue *Tag ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.UpdateTag") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/tag/{tag_id}/" - localVarPath = strings.Replace(localVarPath, "{"+"tag_id"+"}", _neturl.PathEscape(parameterToString(r.tagId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"tag_id"+"}", url.PathEscape(parameterToString(r.tagId, "")), -1) localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} @@ -15800,15 +15800,15 @@ func (a *ApiApiService) UpdateTagExecute(r ApiUpdateTagRequest) (Tag, *_nethttp. return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -15817,7 +15817,7 @@ func (a *ApiApiService) UpdateTagExecute(r ApiUpdateTagRequest) (Tag, *_nethttp. err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -15828,7 +15828,7 @@ func (a *ApiApiService) UpdateTagExecute(r ApiUpdateTagRequest) (Tag, *_nethttp. } type ApiUpdateTaskRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService taskId string task *Task @@ -15839,7 +15839,7 @@ func (r ApiUpdateTaskRequest) Task(task Task) ApiUpdateTaskRequest { return r } -func (r ApiUpdateTaskRequest) Execute() (Task, *_nethttp.Response, error) { +func (r ApiUpdateTaskRequest) Execute() (*Task, *http.Response, error) { return r.ApiService.UpdateTaskExecute(r) } @@ -15848,11 +15848,11 @@ UpdateTask Method for UpdateTask single object, allowed: GET + PUT - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param taskId A unique integer value identifying this task. @return ApiUpdateTaskRequest */ -func (a *ApiApiService) UpdateTask(ctx _context.Context, taskId string) ApiUpdateTaskRequest { +func (a *ApiApiService) UpdateTask(ctx context.Context, taskId string) ApiUpdateTaskRequest { return ApiUpdateTaskRequest{ ApiService: a, ctx: ctx, @@ -15862,25 +15862,25 @@ func (a *ApiApiService) UpdateTask(ctx _context.Context, taskId string) ApiUpdat // Execute executes the request // @return Task -func (a *ApiApiService) UpdateTaskExecute(r ApiUpdateTaskRequest) (Task, *_nethttp.Response, error) { +func (a *ApiApiService) UpdateTaskExecute(r ApiUpdateTaskRequest) (*Task, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodPut + localVarHTTPMethod = http.MethodPut localVarPostBody interface{} formFiles []formFile - localVarReturnValue Task + localVarReturnValue *Task ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.UpdateTask") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/task/{task_id}/" - localVarPath = strings.Replace(localVarPath, "{"+"task_id"+"}", _neturl.PathEscape(parameterToString(r.taskId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"task_id"+"}", url.PathEscape(parameterToString(r.taskId, "")), -1) localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} @@ -15911,15 +15911,15 @@ func (a *ApiApiService) UpdateTaskExecute(r ApiUpdateTaskRequest) (Task, *_netht return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -15928,7 +15928,7 @@ func (a *ApiApiService) UpdateTaskExecute(r ApiUpdateTaskRequest) (Task, *_netht err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } @@ -15939,7 +15939,7 @@ func (a *ApiApiService) UpdateTaskExecute(r ApiUpdateTaskRequest) (Task, *_netht } type ApiUpdateTasknameRequest struct { - ctx _context.Context + ctx context.Context ApiService *ApiApiService tasknameId string taskname *Taskname @@ -15950,7 +15950,7 @@ func (r ApiUpdateTasknameRequest) Taskname(taskname Taskname) ApiUpdateTasknameR return r } -func (r ApiUpdateTasknameRequest) Execute() (Taskname, *_nethttp.Response, error) { +func (r ApiUpdateTasknameRequest) Execute() (*Taskname, *http.Response, error) { return r.ApiService.UpdateTasknameExecute(r) } @@ -15959,11 +15959,11 @@ UpdateTaskname Method for UpdateTaskname single object, allowed: GET + PUT - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param tasknameId A unique integer value identifying this taskname. @return ApiUpdateTasknameRequest */ -func (a *ApiApiService) UpdateTaskname(ctx _context.Context, tasknameId string) ApiUpdateTasknameRequest { +func (a *ApiApiService) UpdateTaskname(ctx context.Context, tasknameId string) ApiUpdateTasknameRequest { return ApiUpdateTasknameRequest{ ApiService: a, ctx: ctx, @@ -15973,25 +15973,25 @@ func (a *ApiApiService) UpdateTaskname(ctx _context.Context, tasknameId string) // Execute executes the request // @return Taskname -func (a *ApiApiService) UpdateTasknameExecute(r ApiUpdateTasknameRequest) (Taskname, *_nethttp.Response, error) { +func (a *ApiApiService) UpdateTasknameExecute(r ApiUpdateTasknameRequest) (*Taskname, *http.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodPut + localVarHTTPMethod = http.MethodPut localVarPostBody interface{} formFiles []formFile - localVarReturnValue Taskname + localVarReturnValue *Taskname ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiApiService.UpdateTaskname") if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/taskname/{taskname_id}/" - localVarPath = strings.Replace(localVarPath, "{"+"taskname_id"+"}", _neturl.PathEscape(parameterToString(r.tasknameId, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"taskname_id"+"}", url.PathEscape(parameterToString(r.tasknameId, "")), -1) localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json", "application/x-www-form-urlencoded", "multipart/form-data"} @@ -16022,15 +16022,15 @@ func (a *ApiApiService) UpdateTasknameExecute(r ApiUpdateTasknameRequest) (Taskn return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: localVarHTTPResponse.Status, } @@ -16039,7 +16039,7 @@ func (a *ApiApiService) UpdateTasknameExecute(r ApiUpdateTasknameRequest) (Taskn err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { - newErr := GenericOpenAPIError{ + newErr := &GenericOpenAPIError{ body: localVarBody, error: err.Error(), } diff --git a/client.go b/client.go index b09a547..a29028d 100644 --- a/client.go +++ b/client.go @@ -3,7 +3,7 @@ DFIRTrack OpenAPI 3 - Documentation of DFIRTrack API -API version: v2.0.0 +API version: v2.4.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -41,7 +41,7 @@ var ( xmlCheck = regexp.MustCompile(`(?i:(?:application|text)/xml)`) ) -// APIClient manages communication with the DFIRTrack API vv2.0.0 +// APIClient manages communication with the DFIRTrack API vv2.4.1 // In most cases there should be only one, shared, APIClient. type APIClient struct { cfg *Configuration @@ -422,6 +422,13 @@ func reportError(format string, a ...interface{}) error { return fmt.Errorf(format, a...) } +// A wrapper for strict JSON decoding +func newStrictDecoder(data []byte) *json.Decoder { + dec := json.NewDecoder(bytes.NewBuffer(data)) + dec.DisallowUnknownFields() + return dec +} + // Set request body from an interface{} func setBody(body interface{}, contentType string) (bodyBuf *bytes.Buffer, err error) { if bodyBuf == nil { diff --git a/configuration.go b/configuration.go index 0a7f8f5..f31d939 100644 --- a/configuration.go +++ b/configuration.go @@ -3,7 +3,7 @@ DFIRTrack OpenAPI 3 - Documentation of DFIRTrack API -API version: v2.0.0 +API version: v2.4.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -101,7 +101,7 @@ type Configuration struct { func NewConfiguration() *Configuration { cfg := &Configuration{ DefaultHeader: make(map[string]string), - UserAgent: "OpenAPI-Generator/2.2.0/go", + UserAgent: "OpenAPI-Generator/2.4.1/go", Debug: false, Servers: ServerConfigurations{ { diff --git a/docs/ApiApi.md b/docs/ApiApi.md index 98c71dc..b70e418 100644 --- a/docs/ApiApi.md +++ b/docs/ApiApi.md @@ -182,8 +182,8 @@ func main() { artifact := *openapiclient.NewArtifact("ArtifactName_example", int32(123), int32(123), int32(123), int32(123)) // Artifact | (optional) configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.CreateArtifact(context.Background()).Artifact(artifact).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.CreateArtifact(context.Background()).Artifact(artifact).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.CreateArtifact``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -248,8 +248,8 @@ func main() { artifacttype := *openapiclient.NewArtifacttype("ArtifacttypeName_example") // Artifacttype | (optional) configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.CreateArtifacttype(context.Background()).Artifacttype(artifacttype).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.CreateArtifacttype(context.Background()).Artifacttype(artifacttype).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.CreateArtifacttype``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -314,8 +314,8 @@ func main() { token := "token_example" // string | (optional) configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.CreateAuthToken(context.Background()).Username(username).Password(password).Token(token).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.CreateAuthToken(context.Background()).Username(username).Password(password).Token(token).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.CreateAuthToken``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -382,8 +382,8 @@ func main() { case_ := *openapiclient.NewCase("CaseName_example", false, int32(123)) // Case | (optional) configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.CreateCase(context.Background()).Case_(case_).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.CreateCase(context.Background()).Case_(case_).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.CreateCase``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -448,8 +448,8 @@ func main() { casetype := *openapiclient.NewCasetype("CasetypeName_example") // Casetype | (optional) configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.CreateCasetype(context.Background()).Casetype(casetype).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.CreateCasetype(context.Background()).Casetype(casetype).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.CreateCasetype``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -514,8 +514,8 @@ func main() { company := *openapiclient.NewCompany("CompanyName_example") // Company | (optional) configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.CreateCompany(context.Background()).Company(company).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.CreateCompany(context.Background()).Company(company).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.CreateCompany``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -580,8 +580,8 @@ func main() { contact := *openapiclient.NewContact("ContactName_example", "ContactEmail_example") // Contact | (optional) configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.CreateContact(context.Background()).Contact(contact).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.CreateContact(context.Background()).Contact(contact).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.CreateContact``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -646,8 +646,8 @@ func main() { division := *openapiclient.NewDivision("DivisionName_example") // Division | (optional) configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.CreateDivision(context.Background()).Division(division).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.CreateDivision(context.Background()).Division(division).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.CreateDivision``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -712,8 +712,8 @@ func main() { dnsname := *openapiclient.NewDnsname("DnsnameName_example") // Dnsname | (optional) configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.CreateDnsname(context.Background()).Dnsname(dnsname).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.CreateDnsname(context.Background()).Dnsname(dnsname).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.CreateDnsname``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -778,8 +778,8 @@ func main() { domain := *openapiclient.NewDomain("DomainName_example") // Domain | (optional) configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.CreateDomain(context.Background()).Domain(domain).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.CreateDomain(context.Background()).Domain(domain).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.CreateDomain``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -844,8 +844,8 @@ func main() { domainuser := *openapiclient.NewDomainuser("DomainuserName_example", int32(123)) // Domainuser | (optional) configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.CreateDomainuser(context.Background()).Domainuser(domainuser).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.CreateDomainuser(context.Background()).Domainuser(domainuser).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.CreateDomainuser``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -910,8 +910,8 @@ func main() { headline := *openapiclient.NewHeadline("HeadlineName_example") // Headline | (optional) configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.CreateHeadline(context.Background()).Headline(headline).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.CreateHeadline(context.Background()).Headline(headline).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.CreateHeadline``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -976,8 +976,8 @@ func main() { ip := *openapiclient.NewIp("IpIp_example") // Ip | (optional) configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.CreateIp(context.Background()).Ip(ip).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.CreateIp(context.Background()).Ip(ip).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.CreateIp``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -1042,8 +1042,8 @@ func main() { location := *openapiclient.NewLocation("LocationName_example") // Location | (optional) configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.CreateLocation(context.Background()).Location(location).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.CreateLocation(context.Background()).Location(location).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.CreateLocation``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -1108,8 +1108,8 @@ func main() { note := *openapiclient.NewNote("NoteTitle_example", "NoteContent_example", int32(123), int32(123), int32(123)) // Note | (optional) configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.CreateNote(context.Background()).Note(note).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.CreateNote(context.Background()).Note(note).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.CreateNote``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -1174,8 +1174,8 @@ func main() { os := *openapiclient.NewOs("OsName_example") // Os | (optional) configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.CreateOs(context.Background()).Os(os).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.CreateOs(context.Background()).Os(os).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.CreateOs``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -1240,8 +1240,8 @@ func main() { osarch := *openapiclient.NewOsarch("OsarchName_example") // Osarch | (optional) configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.CreateOsarch(context.Background()).Osarch(osarch).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.CreateOsarch(context.Background()).Osarch(osarch).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.CreateOsarch``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -1306,8 +1306,8 @@ func main() { reason := *openapiclient.NewReason("ReasonName_example") // Reason | (optional) configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.CreateReason(context.Background()).Reason(reason).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.CreateReason(context.Background()).Reason(reason).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.CreateReason``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -1372,8 +1372,8 @@ func main() { recommendation := *openapiclient.NewRecommendation("RecommendationName_example") // Recommendation | (optional) configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.CreateRecommendation(context.Background()).Recommendation(recommendation).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.CreateRecommendation(context.Background()).Recommendation(recommendation).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.CreateRecommendation``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -1438,8 +1438,8 @@ func main() { reportitem := *openapiclient.NewReportitem(int32(123), int32(123), "ReportitemSubheadline_example", "ReportitemNote_example", int32(123), int32(123)) // Reportitem | (optional) configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.CreateReportitem(context.Background()).Reportitem(reportitem).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.CreateReportitem(context.Background()).Reportitem(reportitem).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.CreateReportitem``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -1504,8 +1504,8 @@ func main() { serviceprovider := *openapiclient.NewServiceprovider("ServiceproviderName_example") // Serviceprovider | (optional) configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.CreateServiceprovider(context.Background()).Serviceprovider(serviceprovider).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.CreateServiceprovider(context.Background()).Serviceprovider(serviceprovider).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.CreateServiceprovider``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -1570,8 +1570,8 @@ func main() { system := *openapiclient.NewSystem("SystemName_example", int32(123), int32(123), int32(123)) // System | (optional) configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.CreateSystem(context.Background()).System(system).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.CreateSystem(context.Background()).System(system).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.CreateSystem``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -1636,8 +1636,8 @@ func main() { systemtype := *openapiclient.NewSystemtype("SystemtypeName_example") // Systemtype | (optional) configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.CreateSystemtype(context.Background()).Systemtype(systemtype).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.CreateSystemtype(context.Background()).Systemtype(systemtype).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.CreateSystemtype``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -1702,8 +1702,8 @@ func main() { systemuser := *openapiclient.NewSystemuser("SystemuserName_example", int32(123)) // Systemuser | (optional) configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.CreateSystemuser(context.Background()).Systemuser(systemuser).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.CreateSystemuser(context.Background()).Systemuser(systemuser).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.CreateSystemuser``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -1768,8 +1768,8 @@ func main() { tag := *openapiclient.NewTag("TagName_example", int32(123)) // Tag | (optional) configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.CreateTag(context.Background()).Tag(tag).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.CreateTag(context.Background()).Tag(tag).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.CreateTag``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -1834,8 +1834,8 @@ func main() { task := *openapiclient.NewTask(int32(123), int32(123), int32(123), int32(123), int32(123)) // Task | (optional) configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.CreateTask(context.Background()).Task(task).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.CreateTask(context.Background()).Task(task).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.CreateTask``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -1900,8 +1900,8 @@ func main() { taskname := *openapiclient.NewTaskname("TasknameName_example") // Taskname | (optional) configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.CreateTaskname(context.Background()).Taskname(taskname).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.CreateTaskname(context.Background()).Taskname(taskname).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.CreateTaskname``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -1965,8 +1965,8 @@ import ( func main() { configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.ListAnalysisstatus(context.Background()).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.ListAnalysisstatus(context.Background()).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.ListAnalysisstatus``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -2026,8 +2026,8 @@ import ( func main() { configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.ListArtifactprioritys(context.Background()).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.ListArtifactprioritys(context.Background()).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.ListArtifactprioritys``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -2087,8 +2087,8 @@ import ( func main() { configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.ListArtifacts(context.Background()).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.ListArtifacts(context.Background()).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.ListArtifacts``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -2148,8 +2148,8 @@ import ( func main() { configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.ListArtifactstatus(context.Background()).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.ListArtifactstatus(context.Background()).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.ListArtifactstatus``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -2209,8 +2209,8 @@ import ( func main() { configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.ListArtifacttypes(context.Background()).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.ListArtifacttypes(context.Background()).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.ListArtifacttypes``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -2270,8 +2270,8 @@ import ( func main() { configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.ListCaseprioritys(context.Background()).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.ListCaseprioritys(context.Background()).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.ListCaseprioritys``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -2331,8 +2331,8 @@ import ( func main() { configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.ListCases(context.Background()).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.ListCases(context.Background()).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.ListCases``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -2392,8 +2392,8 @@ import ( func main() { configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.ListCasestatus(context.Background()).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.ListCasestatus(context.Background()).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.ListCasestatus``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -2453,8 +2453,8 @@ import ( func main() { configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.ListCasetypes(context.Background()).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.ListCasetypes(context.Background()).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.ListCasetypes``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -2514,8 +2514,8 @@ import ( func main() { configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.ListCompanys(context.Background()).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.ListCompanys(context.Background()).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.ListCompanys``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -2575,8 +2575,8 @@ import ( func main() { configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.ListContacts(context.Background()).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.ListContacts(context.Background()).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.ListContacts``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -2636,8 +2636,8 @@ import ( func main() { configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.ListDivisions(context.Background()).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.ListDivisions(context.Background()).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.ListDivisions``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -2697,8 +2697,8 @@ import ( func main() { configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.ListDnsnames(context.Background()).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.ListDnsnames(context.Background()).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.ListDnsnames``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -2758,8 +2758,8 @@ import ( func main() { configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.ListDomains(context.Background()).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.ListDomains(context.Background()).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.ListDomains``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -2819,8 +2819,8 @@ import ( func main() { configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.ListDomainusers(context.Background()).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.ListDomainusers(context.Background()).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.ListDomainusers``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -2880,8 +2880,8 @@ import ( func main() { configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.ListHeadlines(context.Background()).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.ListHeadlines(context.Background()).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.ListHeadlines``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -2941,8 +2941,8 @@ import ( func main() { configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.ListIps(context.Background()).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.ListIps(context.Background()).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.ListIps``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -3002,8 +3002,8 @@ import ( func main() { configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.ListLocations(context.Background()).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.ListLocations(context.Background()).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.ListLocations``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -3063,8 +3063,8 @@ import ( func main() { configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.ListNotes(context.Background()).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.ListNotes(context.Background()).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.ListNotes``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -3124,8 +3124,8 @@ import ( func main() { configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.ListNotestatus(context.Background()).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.ListNotestatus(context.Background()).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.ListNotestatus``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -3185,8 +3185,8 @@ import ( func main() { configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.ListOs(context.Background()).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.ListOs(context.Background()).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.ListOs``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -3246,8 +3246,8 @@ import ( func main() { configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.ListOsarchs(context.Background()).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.ListOsarchs(context.Background()).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.ListOsarchs``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -3307,8 +3307,8 @@ import ( func main() { configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.ListReasons(context.Background()).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.ListReasons(context.Background()).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.ListReasons``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -3368,8 +3368,8 @@ import ( func main() { configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.ListRecommendations(context.Background()).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.ListRecommendations(context.Background()).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.ListRecommendations``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -3429,8 +3429,8 @@ import ( func main() { configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.ListReportitems(context.Background()).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.ListReportitems(context.Background()).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.ListReportitems``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -3490,8 +3490,8 @@ import ( func main() { configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.ListServiceproviders(context.Background()).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.ListServiceproviders(context.Background()).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.ListServiceproviders``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -3551,8 +3551,8 @@ import ( func main() { configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.ListSystems(context.Background()).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.ListSystems(context.Background()).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.ListSystems``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -3612,8 +3612,8 @@ import ( func main() { configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.ListSystemstatus(context.Background()).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.ListSystemstatus(context.Background()).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.ListSystemstatus``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -3673,8 +3673,8 @@ import ( func main() { configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.ListSystemtypes(context.Background()).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.ListSystemtypes(context.Background()).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.ListSystemtypes``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -3734,8 +3734,8 @@ import ( func main() { configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.ListSystemusers(context.Background()).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.ListSystemusers(context.Background()).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.ListSystemusers``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -3795,8 +3795,8 @@ import ( func main() { configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.ListTagcolors(context.Background()).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.ListTagcolors(context.Background()).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.ListTagcolors``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -3856,8 +3856,8 @@ import ( func main() { configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.ListTags(context.Background()).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.ListTags(context.Background()).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.ListTags``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -3917,8 +3917,8 @@ import ( func main() { configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.ListTasknames(context.Background()).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.ListTasknames(context.Background()).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.ListTasknames``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -3978,8 +3978,8 @@ import ( func main() { configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.ListTaskprioritys(context.Background()).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.ListTaskprioritys(context.Background()).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.ListTaskprioritys``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -4039,8 +4039,8 @@ import ( func main() { configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.ListTasks(context.Background()).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.ListTasks(context.Background()).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.ListTasks``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -4100,8 +4100,8 @@ import ( func main() { configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.ListTaskstatus(context.Background()).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.ListTaskstatus(context.Background()).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.ListTaskstatus``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -4163,8 +4163,8 @@ func main() { artifact := *openapiclient.NewArtifact("ArtifactName_example", int32(123), int32(123), int32(123), int32(123)) // Artifact | (optional) configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.PartialUpdateArtifact(context.Background(), artifactId).Artifact(artifact).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.PartialUpdateArtifact(context.Background(), artifactId).Artifact(artifact).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.PartialUpdateArtifact``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -4235,8 +4235,8 @@ func main() { artifacttype := *openapiclient.NewArtifacttype("ArtifacttypeName_example") // Artifacttype | (optional) configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.PartialUpdateArtifacttype(context.Background(), artifacttypeId).Artifacttype(artifacttype).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.PartialUpdateArtifacttype(context.Background(), artifacttypeId).Artifacttype(artifacttype).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.PartialUpdateArtifacttype``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -4307,8 +4307,8 @@ func main() { case_ := *openapiclient.NewCase("CaseName_example", false, int32(123)) // Case | (optional) configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.PartialUpdateCase(context.Background(), caseId).Case_(case_).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.PartialUpdateCase(context.Background(), caseId).Case_(case_).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.PartialUpdateCase``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -4379,8 +4379,8 @@ func main() { casetype := *openapiclient.NewCasetype("CasetypeName_example") // Casetype | (optional) configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.PartialUpdateCasetype(context.Background(), casetypeId).Casetype(casetype).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.PartialUpdateCasetype(context.Background(), casetypeId).Casetype(casetype).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.PartialUpdateCasetype``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -4451,8 +4451,8 @@ func main() { company := *openapiclient.NewCompany("CompanyName_example") // Company | (optional) configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.PartialUpdateCompany(context.Background(), companyId).Company(company).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.PartialUpdateCompany(context.Background(), companyId).Company(company).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.PartialUpdateCompany``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -4523,8 +4523,8 @@ func main() { contact := *openapiclient.NewContact("ContactName_example", "ContactEmail_example") // Contact | (optional) configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.PartialUpdateContact(context.Background(), contactId).Contact(contact).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.PartialUpdateContact(context.Background(), contactId).Contact(contact).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.PartialUpdateContact``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -4595,8 +4595,8 @@ func main() { division := *openapiclient.NewDivision("DivisionName_example") // Division | (optional) configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.PartialUpdateDivision(context.Background(), divisionId).Division(division).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.PartialUpdateDivision(context.Background(), divisionId).Division(division).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.PartialUpdateDivision``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -4667,8 +4667,8 @@ func main() { dnsname := *openapiclient.NewDnsname("DnsnameName_example") // Dnsname | (optional) configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.PartialUpdateDnsname(context.Background(), dnsnameId).Dnsname(dnsname).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.PartialUpdateDnsname(context.Background(), dnsnameId).Dnsname(dnsname).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.PartialUpdateDnsname``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -4739,8 +4739,8 @@ func main() { domain := *openapiclient.NewDomain("DomainName_example") // Domain | (optional) configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.PartialUpdateDomain(context.Background(), domainId).Domain(domain).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.PartialUpdateDomain(context.Background(), domainId).Domain(domain).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.PartialUpdateDomain``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -4811,8 +4811,8 @@ func main() { domainuser := *openapiclient.NewDomainuser("DomainuserName_example", int32(123)) // Domainuser | (optional) configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.PartialUpdateDomainuser(context.Background(), domainuserId).Domainuser(domainuser).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.PartialUpdateDomainuser(context.Background(), domainuserId).Domainuser(domainuser).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.PartialUpdateDomainuser``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -4883,8 +4883,8 @@ func main() { headline := *openapiclient.NewHeadline("HeadlineName_example") // Headline | (optional) configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.PartialUpdateHeadline(context.Background(), headlineId).Headline(headline).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.PartialUpdateHeadline(context.Background(), headlineId).Headline(headline).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.PartialUpdateHeadline``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -4955,8 +4955,8 @@ func main() { ip := *openapiclient.NewIp("IpIp_example") // Ip | (optional) configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.PartialUpdateIp(context.Background(), ipId).Ip(ip).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.PartialUpdateIp(context.Background(), ipId).Ip(ip).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.PartialUpdateIp``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -5027,8 +5027,8 @@ func main() { location := *openapiclient.NewLocation("LocationName_example") // Location | (optional) configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.PartialUpdateLocation(context.Background(), locationId).Location(location).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.PartialUpdateLocation(context.Background(), locationId).Location(location).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.PartialUpdateLocation``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -5099,8 +5099,8 @@ func main() { note := *openapiclient.NewNote("NoteTitle_example", "NoteContent_example", int32(123), int32(123), int32(123)) // Note | (optional) configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.PartialUpdateNote(context.Background(), noteId).Note(note).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.PartialUpdateNote(context.Background(), noteId).Note(note).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.PartialUpdateNote``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -5171,8 +5171,8 @@ func main() { os := *openapiclient.NewOs("OsName_example") // Os | (optional) configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.PartialUpdateOs(context.Background(), osId).Os(os).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.PartialUpdateOs(context.Background(), osId).Os(os).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.PartialUpdateOs``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -5243,8 +5243,8 @@ func main() { osarch := *openapiclient.NewOsarch("OsarchName_example") // Osarch | (optional) configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.PartialUpdateOsarch(context.Background(), osarchId).Osarch(osarch).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.PartialUpdateOsarch(context.Background(), osarchId).Osarch(osarch).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.PartialUpdateOsarch``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -5315,8 +5315,8 @@ func main() { reason := *openapiclient.NewReason("ReasonName_example") // Reason | (optional) configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.PartialUpdateReason(context.Background(), reasonId).Reason(reason).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.PartialUpdateReason(context.Background(), reasonId).Reason(reason).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.PartialUpdateReason``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -5387,8 +5387,8 @@ func main() { recommendation := *openapiclient.NewRecommendation("RecommendationName_example") // Recommendation | (optional) configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.PartialUpdateRecommendation(context.Background(), recommendationId).Recommendation(recommendation).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.PartialUpdateRecommendation(context.Background(), recommendationId).Recommendation(recommendation).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.PartialUpdateRecommendation``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -5459,8 +5459,8 @@ func main() { reportitem := *openapiclient.NewReportitem(int32(123), int32(123), "ReportitemSubheadline_example", "ReportitemNote_example", int32(123), int32(123)) // Reportitem | (optional) configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.PartialUpdateReportitem(context.Background(), reportitemId).Reportitem(reportitem).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.PartialUpdateReportitem(context.Background(), reportitemId).Reportitem(reportitem).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.PartialUpdateReportitem``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -5531,8 +5531,8 @@ func main() { serviceprovider := *openapiclient.NewServiceprovider("ServiceproviderName_example") // Serviceprovider | (optional) configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.PartialUpdateServiceprovider(context.Background(), serviceproviderId).Serviceprovider(serviceprovider).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.PartialUpdateServiceprovider(context.Background(), serviceproviderId).Serviceprovider(serviceprovider).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.PartialUpdateServiceprovider``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -5603,8 +5603,8 @@ func main() { system := *openapiclient.NewSystem("SystemName_example", int32(123), int32(123), int32(123)) // System | (optional) configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.PartialUpdateSystem(context.Background(), systemId).System(system).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.PartialUpdateSystem(context.Background(), systemId).System(system).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.PartialUpdateSystem``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -5675,8 +5675,8 @@ func main() { systemtype := *openapiclient.NewSystemtype("SystemtypeName_example") // Systemtype | (optional) configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.PartialUpdateSystemtype(context.Background(), systemtypeId).Systemtype(systemtype).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.PartialUpdateSystemtype(context.Background(), systemtypeId).Systemtype(systemtype).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.PartialUpdateSystemtype``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -5747,8 +5747,8 @@ func main() { systemuser := *openapiclient.NewSystemuser("SystemuserName_example", int32(123)) // Systemuser | (optional) configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.PartialUpdateSystemuser(context.Background(), systemuserId).Systemuser(systemuser).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.PartialUpdateSystemuser(context.Background(), systemuserId).Systemuser(systemuser).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.PartialUpdateSystemuser``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -5819,8 +5819,8 @@ func main() { tag := *openapiclient.NewTag("TagName_example", int32(123)) // Tag | (optional) configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.PartialUpdateTag(context.Background(), tagId).Tag(tag).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.PartialUpdateTag(context.Background(), tagId).Tag(tag).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.PartialUpdateTag``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -5891,8 +5891,8 @@ func main() { task := *openapiclient.NewTask(int32(123), int32(123), int32(123), int32(123), int32(123)) // Task | (optional) configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.PartialUpdateTask(context.Background(), taskId).Task(task).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.PartialUpdateTask(context.Background(), taskId).Task(task).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.PartialUpdateTask``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -5963,8 +5963,8 @@ func main() { taskname := *openapiclient.NewTaskname("TasknameName_example") // Taskname | (optional) configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.PartialUpdateTaskname(context.Background(), tasknameId).Taskname(taskname).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.PartialUpdateTaskname(context.Background(), tasknameId).Taskname(taskname).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.PartialUpdateTaskname``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -6034,8 +6034,8 @@ func main() { analysisstatusId := "analysisstatusId_example" // string | A unique integer value identifying this analysisstatus. configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.RetrieveAnalysisstatus(context.Background(), analysisstatusId).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.RetrieveAnalysisstatus(context.Background(), analysisstatusId).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.RetrieveAnalysisstatus``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -6104,8 +6104,8 @@ func main() { artifactId := "artifactId_example" // string | A unique integer value identifying this artifact. configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.RetrieveArtifact(context.Background(), artifactId).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.RetrieveArtifact(context.Background(), artifactId).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.RetrieveArtifact``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -6174,8 +6174,8 @@ func main() { artifactpriorityId := "artifactpriorityId_example" // string | A unique integer value identifying this artifactpriority. configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.RetrieveArtifactpriority(context.Background(), artifactpriorityId).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.RetrieveArtifactpriority(context.Background(), artifactpriorityId).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.RetrieveArtifactpriority``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -6244,8 +6244,8 @@ func main() { artifactstatusId := "artifactstatusId_example" // string | A unique integer value identifying this artifactstatus. configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.RetrieveArtifactstatus(context.Background(), artifactstatusId).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.RetrieveArtifactstatus(context.Background(), artifactstatusId).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.RetrieveArtifactstatus``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -6314,8 +6314,8 @@ func main() { artifacttypeId := "artifacttypeId_example" // string | A unique integer value identifying this artifacttype. configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.RetrieveArtifacttype(context.Background(), artifacttypeId).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.RetrieveArtifacttype(context.Background(), artifacttypeId).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.RetrieveArtifacttype``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -6384,8 +6384,8 @@ func main() { caseId := "caseId_example" // string | A unique integer value identifying this case. configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.RetrieveCase(context.Background(), caseId).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.RetrieveCase(context.Background(), caseId).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.RetrieveCase``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -6454,8 +6454,8 @@ func main() { casepriorityId := "casepriorityId_example" // string | A unique integer value identifying this casepriority. configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.RetrieveCasepriority(context.Background(), casepriorityId).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.RetrieveCasepriority(context.Background(), casepriorityId).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.RetrieveCasepriority``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -6524,8 +6524,8 @@ func main() { casestatusId := "casestatusId_example" // string | A unique integer value identifying this casestatus. configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.RetrieveCasestatus(context.Background(), casestatusId).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.RetrieveCasestatus(context.Background(), casestatusId).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.RetrieveCasestatus``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -6594,8 +6594,8 @@ func main() { casetypeId := "casetypeId_example" // string | A unique integer value identifying this casetype. configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.RetrieveCasetype(context.Background(), casetypeId).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.RetrieveCasetype(context.Background(), casetypeId).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.RetrieveCasetype``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -6664,8 +6664,8 @@ func main() { companyId := "companyId_example" // string | A unique integer value identifying this company. configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.RetrieveCompany(context.Background(), companyId).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.RetrieveCompany(context.Background(), companyId).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.RetrieveCompany``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -6734,8 +6734,8 @@ func main() { contactId := "contactId_example" // string | A unique integer value identifying this contact. configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.RetrieveContact(context.Background(), contactId).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.RetrieveContact(context.Background(), contactId).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.RetrieveContact``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -6804,8 +6804,8 @@ func main() { divisionId := "divisionId_example" // string | A unique integer value identifying this division. configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.RetrieveDivision(context.Background(), divisionId).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.RetrieveDivision(context.Background(), divisionId).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.RetrieveDivision``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -6874,8 +6874,8 @@ func main() { dnsnameId := "dnsnameId_example" // string | A unique integer value identifying this dnsname. configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.RetrieveDnsname(context.Background(), dnsnameId).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.RetrieveDnsname(context.Background(), dnsnameId).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.RetrieveDnsname``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -6944,8 +6944,8 @@ func main() { domainId := "domainId_example" // string | A unique integer value identifying this domain. configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.RetrieveDomain(context.Background(), domainId).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.RetrieveDomain(context.Background(), domainId).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.RetrieveDomain``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -7014,8 +7014,8 @@ func main() { domainuserId := "domainuserId_example" // string | A unique integer value identifying this domainuser. configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.RetrieveDomainuser(context.Background(), domainuserId).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.RetrieveDomainuser(context.Background(), domainuserId).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.RetrieveDomainuser``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -7084,8 +7084,8 @@ func main() { headlineId := "headlineId_example" // string | A unique integer value identifying this headline. configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.RetrieveHeadline(context.Background(), headlineId).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.RetrieveHeadline(context.Background(), headlineId).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.RetrieveHeadline``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -7154,8 +7154,8 @@ func main() { ipId := "ipId_example" // string | A unique integer value identifying this ip. configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.RetrieveIp(context.Background(), ipId).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.RetrieveIp(context.Background(), ipId).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.RetrieveIp``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -7224,8 +7224,8 @@ func main() { locationId := "locationId_example" // string | A unique integer value identifying this location. configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.RetrieveLocation(context.Background(), locationId).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.RetrieveLocation(context.Background(), locationId).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.RetrieveLocation``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -7294,8 +7294,8 @@ func main() { noteId := "noteId_example" // string | A unique integer value identifying this note. configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.RetrieveNote(context.Background(), noteId).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.RetrieveNote(context.Background(), noteId).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.RetrieveNote``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -7364,8 +7364,8 @@ func main() { notestatusId := "notestatusId_example" // string | A unique integer value identifying this notestatus. configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.RetrieveNotestatus(context.Background(), notestatusId).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.RetrieveNotestatus(context.Background(), notestatusId).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.RetrieveNotestatus``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -7434,8 +7434,8 @@ func main() { osId := "osId_example" // string | A unique integer value identifying this os. configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.RetrieveOs(context.Background(), osId).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.RetrieveOs(context.Background(), osId).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.RetrieveOs``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -7504,8 +7504,8 @@ func main() { osarchId := "osarchId_example" // string | A unique integer value identifying this osarch. configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.RetrieveOsarch(context.Background(), osarchId).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.RetrieveOsarch(context.Background(), osarchId).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.RetrieveOsarch``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -7574,8 +7574,8 @@ func main() { reasonId := "reasonId_example" // string | A unique integer value identifying this reason. configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.RetrieveReason(context.Background(), reasonId).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.RetrieveReason(context.Background(), reasonId).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.RetrieveReason``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -7644,8 +7644,8 @@ func main() { recommendationId := "recommendationId_example" // string | A unique integer value identifying this recommendation. configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.RetrieveRecommendation(context.Background(), recommendationId).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.RetrieveRecommendation(context.Background(), recommendationId).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.RetrieveRecommendation``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -7714,8 +7714,8 @@ func main() { reportitemId := "reportitemId_example" // string | A unique integer value identifying this reportitem. configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.RetrieveReportitem(context.Background(), reportitemId).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.RetrieveReportitem(context.Background(), reportitemId).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.RetrieveReportitem``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -7784,8 +7784,8 @@ func main() { serviceproviderId := "serviceproviderId_example" // string | A unique integer value identifying this serviceprovider. configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.RetrieveServiceprovider(context.Background(), serviceproviderId).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.RetrieveServiceprovider(context.Background(), serviceproviderId).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.RetrieveServiceprovider``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -7854,8 +7854,8 @@ func main() { systemId := "systemId_example" // string | A unique integer value identifying this system. configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.RetrieveSystem(context.Background(), systemId).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.RetrieveSystem(context.Background(), systemId).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.RetrieveSystem``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -7924,8 +7924,8 @@ func main() { systemstatusId := "systemstatusId_example" // string | A unique integer value identifying this systemstatus. configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.RetrieveSystemstatus(context.Background(), systemstatusId).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.RetrieveSystemstatus(context.Background(), systemstatusId).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.RetrieveSystemstatus``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -7994,8 +7994,8 @@ func main() { systemtypeId := "systemtypeId_example" // string | A unique integer value identifying this systemtype. configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.RetrieveSystemtype(context.Background(), systemtypeId).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.RetrieveSystemtype(context.Background(), systemtypeId).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.RetrieveSystemtype``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -8064,8 +8064,8 @@ func main() { systemuserId := "systemuserId_example" // string | A unique integer value identifying this systemuser. configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.RetrieveSystemuser(context.Background(), systemuserId).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.RetrieveSystemuser(context.Background(), systemuserId).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.RetrieveSystemuser``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -8134,8 +8134,8 @@ func main() { tagId := "tagId_example" // string | A unique integer value identifying this tag. configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.RetrieveTag(context.Background(), tagId).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.RetrieveTag(context.Background(), tagId).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.RetrieveTag``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -8204,8 +8204,8 @@ func main() { tagcolorId := "tagcolorId_example" // string | A unique integer value identifying this tagcolor. configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.RetrieveTagcolor(context.Background(), tagcolorId).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.RetrieveTagcolor(context.Background(), tagcolorId).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.RetrieveTagcolor``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -8274,8 +8274,8 @@ func main() { taskId := "taskId_example" // string | A unique integer value identifying this task. configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.RetrieveTask(context.Background(), taskId).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.RetrieveTask(context.Background(), taskId).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.RetrieveTask``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -8344,8 +8344,8 @@ func main() { tasknameId := "tasknameId_example" // string | A unique integer value identifying this taskname. configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.RetrieveTaskname(context.Background(), tasknameId).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.RetrieveTaskname(context.Background(), tasknameId).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.RetrieveTaskname``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -8414,8 +8414,8 @@ func main() { taskpriorityId := "taskpriorityId_example" // string | A unique integer value identifying this taskpriority. configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.RetrieveTaskpriority(context.Background(), taskpriorityId).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.RetrieveTaskpriority(context.Background(), taskpriorityId).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.RetrieveTaskpriority``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -8484,8 +8484,8 @@ func main() { taskstatusId := "taskstatusId_example" // string | A unique integer value identifying this taskstatus. configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.RetrieveTaskstatus(context.Background(), taskstatusId).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.RetrieveTaskstatus(context.Background(), taskstatusId).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.RetrieveTaskstatus``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -8555,8 +8555,8 @@ func main() { artifact := *openapiclient.NewArtifact("ArtifactName_example", int32(123), int32(123), int32(123), int32(123)) // Artifact | (optional) configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.UpdateArtifact(context.Background(), artifactId).Artifact(artifact).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.UpdateArtifact(context.Background(), artifactId).Artifact(artifact).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.UpdateArtifact``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -8627,8 +8627,8 @@ func main() { artifacttype := *openapiclient.NewArtifacttype("ArtifacttypeName_example") // Artifacttype | (optional) configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.UpdateArtifacttype(context.Background(), artifacttypeId).Artifacttype(artifacttype).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.UpdateArtifacttype(context.Background(), artifacttypeId).Artifacttype(artifacttype).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.UpdateArtifacttype``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -8699,8 +8699,8 @@ func main() { case_ := *openapiclient.NewCase("CaseName_example", false, int32(123)) // Case | (optional) configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.UpdateCase(context.Background(), caseId).Case_(case_).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.UpdateCase(context.Background(), caseId).Case_(case_).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.UpdateCase``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -8771,8 +8771,8 @@ func main() { casetype := *openapiclient.NewCasetype("CasetypeName_example") // Casetype | (optional) configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.UpdateCasetype(context.Background(), casetypeId).Casetype(casetype).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.UpdateCasetype(context.Background(), casetypeId).Casetype(casetype).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.UpdateCasetype``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -8843,8 +8843,8 @@ func main() { company := *openapiclient.NewCompany("CompanyName_example") // Company | (optional) configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.UpdateCompany(context.Background(), companyId).Company(company).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.UpdateCompany(context.Background(), companyId).Company(company).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.UpdateCompany``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -8915,8 +8915,8 @@ func main() { contact := *openapiclient.NewContact("ContactName_example", "ContactEmail_example") // Contact | (optional) configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.UpdateContact(context.Background(), contactId).Contact(contact).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.UpdateContact(context.Background(), contactId).Contact(contact).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.UpdateContact``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -8987,8 +8987,8 @@ func main() { division := *openapiclient.NewDivision("DivisionName_example") // Division | (optional) configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.UpdateDivision(context.Background(), divisionId).Division(division).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.UpdateDivision(context.Background(), divisionId).Division(division).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.UpdateDivision``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -9059,8 +9059,8 @@ func main() { dnsname := *openapiclient.NewDnsname("DnsnameName_example") // Dnsname | (optional) configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.UpdateDnsname(context.Background(), dnsnameId).Dnsname(dnsname).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.UpdateDnsname(context.Background(), dnsnameId).Dnsname(dnsname).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.UpdateDnsname``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -9131,8 +9131,8 @@ func main() { domain := *openapiclient.NewDomain("DomainName_example") // Domain | (optional) configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.UpdateDomain(context.Background(), domainId).Domain(domain).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.UpdateDomain(context.Background(), domainId).Domain(domain).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.UpdateDomain``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -9203,8 +9203,8 @@ func main() { domainuser := *openapiclient.NewDomainuser("DomainuserName_example", int32(123)) // Domainuser | (optional) configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.UpdateDomainuser(context.Background(), domainuserId).Domainuser(domainuser).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.UpdateDomainuser(context.Background(), domainuserId).Domainuser(domainuser).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.UpdateDomainuser``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -9275,8 +9275,8 @@ func main() { headline := *openapiclient.NewHeadline("HeadlineName_example") // Headline | (optional) configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.UpdateHeadline(context.Background(), headlineId).Headline(headline).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.UpdateHeadline(context.Background(), headlineId).Headline(headline).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.UpdateHeadline``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -9347,8 +9347,8 @@ func main() { ip := *openapiclient.NewIp("IpIp_example") // Ip | (optional) configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.UpdateIp(context.Background(), ipId).Ip(ip).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.UpdateIp(context.Background(), ipId).Ip(ip).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.UpdateIp``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -9419,8 +9419,8 @@ func main() { location := *openapiclient.NewLocation("LocationName_example") // Location | (optional) configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.UpdateLocation(context.Background(), locationId).Location(location).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.UpdateLocation(context.Background(), locationId).Location(location).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.UpdateLocation``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -9491,8 +9491,8 @@ func main() { note := *openapiclient.NewNote("NoteTitle_example", "NoteContent_example", int32(123), int32(123), int32(123)) // Note | (optional) configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.UpdateNote(context.Background(), noteId).Note(note).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.UpdateNote(context.Background(), noteId).Note(note).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.UpdateNote``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -9563,8 +9563,8 @@ func main() { os := *openapiclient.NewOs("OsName_example") // Os | (optional) configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.UpdateOs(context.Background(), osId).Os(os).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.UpdateOs(context.Background(), osId).Os(os).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.UpdateOs``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -9635,8 +9635,8 @@ func main() { osarch := *openapiclient.NewOsarch("OsarchName_example") // Osarch | (optional) configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.UpdateOsarch(context.Background(), osarchId).Osarch(osarch).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.UpdateOsarch(context.Background(), osarchId).Osarch(osarch).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.UpdateOsarch``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -9707,8 +9707,8 @@ func main() { reason := *openapiclient.NewReason("ReasonName_example") // Reason | (optional) configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.UpdateReason(context.Background(), reasonId).Reason(reason).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.UpdateReason(context.Background(), reasonId).Reason(reason).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.UpdateReason``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -9779,8 +9779,8 @@ func main() { recommendation := *openapiclient.NewRecommendation("RecommendationName_example") // Recommendation | (optional) configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.UpdateRecommendation(context.Background(), recommendationId).Recommendation(recommendation).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.UpdateRecommendation(context.Background(), recommendationId).Recommendation(recommendation).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.UpdateRecommendation``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -9851,8 +9851,8 @@ func main() { reportitem := *openapiclient.NewReportitem(int32(123), int32(123), "ReportitemSubheadline_example", "ReportitemNote_example", int32(123), int32(123)) // Reportitem | (optional) configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.UpdateReportitem(context.Background(), reportitemId).Reportitem(reportitem).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.UpdateReportitem(context.Background(), reportitemId).Reportitem(reportitem).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.UpdateReportitem``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -9923,8 +9923,8 @@ func main() { serviceprovider := *openapiclient.NewServiceprovider("ServiceproviderName_example") // Serviceprovider | (optional) configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.UpdateServiceprovider(context.Background(), serviceproviderId).Serviceprovider(serviceprovider).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.UpdateServiceprovider(context.Background(), serviceproviderId).Serviceprovider(serviceprovider).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.UpdateServiceprovider``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -9995,8 +9995,8 @@ func main() { system := *openapiclient.NewSystem("SystemName_example", int32(123), int32(123), int32(123)) // System | (optional) configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.UpdateSystem(context.Background(), systemId).System(system).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.UpdateSystem(context.Background(), systemId).System(system).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.UpdateSystem``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -10067,8 +10067,8 @@ func main() { systemtype := *openapiclient.NewSystemtype("SystemtypeName_example") // Systemtype | (optional) configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.UpdateSystemtype(context.Background(), systemtypeId).Systemtype(systemtype).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.UpdateSystemtype(context.Background(), systemtypeId).Systemtype(systemtype).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.UpdateSystemtype``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -10139,8 +10139,8 @@ func main() { systemuser := *openapiclient.NewSystemuser("SystemuserName_example", int32(123)) // Systemuser | (optional) configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.UpdateSystemuser(context.Background(), systemuserId).Systemuser(systemuser).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.UpdateSystemuser(context.Background(), systemuserId).Systemuser(systemuser).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.UpdateSystemuser``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -10211,8 +10211,8 @@ func main() { tag := *openapiclient.NewTag("TagName_example", int32(123)) // Tag | (optional) configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.UpdateTag(context.Background(), tagId).Tag(tag).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.UpdateTag(context.Background(), tagId).Tag(tag).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.UpdateTag``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -10283,8 +10283,8 @@ func main() { task := *openapiclient.NewTask(int32(123), int32(123), int32(123), int32(123), int32(123)) // Task | (optional) configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.UpdateTask(context.Background(), taskId).Task(task).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.UpdateTask(context.Background(), taskId).Task(task).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.UpdateTask``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -10355,8 +10355,8 @@ func main() { taskname := *openapiclient.NewTaskname("TasknameName_example") // Taskname | (optional) configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.ApiApi.UpdateTaskname(context.Background(), tasknameId).Taskname(taskname).Execute() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiApi.UpdateTaskname(context.Background(), tasknameId).Taskname(taskname).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ApiApi.UpdateTaskname``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) diff --git a/docs/Artifact.md b/docs/Artifact.md index 2779de9..c47ba65 100644 --- a/docs/Artifact.md +++ b/docs/Artifact.md @@ -24,6 +24,7 @@ Name | Type | Description | Notes **ArtifactCreatedByUserId** | **int32** | | **ArtifactModifyTime** | Pointer to **time.Time** | | [optional] [readonly] **ArtifactModifiedByUserId** | **int32** | | +**ArtifactAssignedToUserId** | Pointer to **NullableInt32** | | [optional] ## Methods @@ -589,6 +590,41 @@ and a boolean to check if the value has been set. SetArtifactModifiedByUserId sets ArtifactModifiedByUserId field to given value. +### GetArtifactAssignedToUserId + +`func (o *Artifact) GetArtifactAssignedToUserId() int32` + +GetArtifactAssignedToUserId returns the ArtifactAssignedToUserId field if non-nil, zero value otherwise. + +### GetArtifactAssignedToUserIdOk + +`func (o *Artifact) GetArtifactAssignedToUserIdOk() (*int32, bool)` + +GetArtifactAssignedToUserIdOk returns a tuple with the ArtifactAssignedToUserId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetArtifactAssignedToUserId + +`func (o *Artifact) SetArtifactAssignedToUserId(v int32)` + +SetArtifactAssignedToUserId sets ArtifactAssignedToUserId field to given value. + +### HasArtifactAssignedToUserId + +`func (o *Artifact) HasArtifactAssignedToUserId() bool` + +HasArtifactAssignedToUserId returns a boolean if a field has been set. + +### SetArtifactAssignedToUserIdNil + +`func (o *Artifact) SetArtifactAssignedToUserIdNil(b bool)` + + SetArtifactAssignedToUserIdNil sets the value for ArtifactAssignedToUserId to be an explicit nil + +### UnsetArtifactAssignedToUserId +`func (o *Artifact) UnsetArtifactAssignedToUserId()` + +UnsetArtifactAssignedToUserId ensures that no value is present for ArtifactAssignedToUserId, not even an explicit nil [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Case.md b/docs/Case.md index 4903814..89f9d17 100644 --- a/docs/Case.md +++ b/docs/Case.md @@ -18,6 +18,7 @@ Name | Type | Description | Notes **CaseCreateTime** | Pointer to **time.Time** | | [optional] [readonly] **CaseModifiedByUserId** | Pointer to **NullableInt32** | | [optional] **CaseModifyTime** | Pointer to **time.Time** | | [optional] [readonly] +**CaseAssignedToUserId** | Pointer to **NullableInt32** | | [optional] ## Methods @@ -423,6 +424,41 @@ SetCaseModifyTime sets CaseModifyTime field to given value. HasCaseModifyTime returns a boolean if a field has been set. +### GetCaseAssignedToUserId + +`func (o *Case) GetCaseAssignedToUserId() int32` + +GetCaseAssignedToUserId returns the CaseAssignedToUserId field if non-nil, zero value otherwise. + +### GetCaseAssignedToUserIdOk + +`func (o *Case) GetCaseAssignedToUserIdOk() (*int32, bool)` + +GetCaseAssignedToUserIdOk returns a tuple with the CaseAssignedToUserId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCaseAssignedToUserId + +`func (o *Case) SetCaseAssignedToUserId(v int32)` + +SetCaseAssignedToUserId sets CaseAssignedToUserId field to given value. + +### HasCaseAssignedToUserId + +`func (o *Case) HasCaseAssignedToUserId() bool` + +HasCaseAssignedToUserId returns a boolean if a field has been set. + +### SetCaseAssignedToUserIdNil + +`func (o *Case) SetCaseAssignedToUserIdNil(b bool)` + + SetCaseAssignedToUserIdNil sets the value for CaseAssignedToUserId to be an explicit nil + +### UnsetCaseAssignedToUserId +`func (o *Case) UnsetCaseAssignedToUserId()` + +UnsetCaseAssignedToUserId ensures that no value is present for CaseAssignedToUserId, not even an explicit nil [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Note.md b/docs/Note.md index 9f43427..a7011ae 100644 --- a/docs/Note.md +++ b/docs/Note.md @@ -15,6 +15,7 @@ Name | Type | Description | Notes **NoteCreatedByUserId** | **int32** | | **NoteModifyTime** | Pointer to **time.Time** | | [optional] [readonly] **NoteModifiedByUserId** | **int32** | | +**NoteAssignedToUserId** | Pointer to **NullableInt32** | | [optional] ## Methods @@ -295,6 +296,41 @@ and a boolean to check if the value has been set. SetNoteModifiedByUserId sets NoteModifiedByUserId field to given value. +### GetNoteAssignedToUserId + +`func (o *Note) GetNoteAssignedToUserId() int32` + +GetNoteAssignedToUserId returns the NoteAssignedToUserId field if non-nil, zero value otherwise. + +### GetNoteAssignedToUserIdOk + +`func (o *Note) GetNoteAssignedToUserIdOk() (*int32, bool)` + +GetNoteAssignedToUserIdOk returns a tuple with the NoteAssignedToUserId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNoteAssignedToUserId + +`func (o *Note) SetNoteAssignedToUserId(v int32)` + +SetNoteAssignedToUserId sets NoteAssignedToUserId field to given value. + +### HasNoteAssignedToUserId + +`func (o *Note) HasNoteAssignedToUserId() bool` + +HasNoteAssignedToUserId returns a boolean if a field has been set. + +### SetNoteAssignedToUserIdNil + +`func (o *Note) SetNoteAssignedToUserIdNil(b bool)` + + SetNoteAssignedToUserIdNil sets the value for NoteAssignedToUserId to be an explicit nil + +### UnsetNoteAssignedToUserId +`func (o *Note) UnsetNoteAssignedToUserId()` + +UnsetNoteAssignedToUserId ensures that no value is present for NoteAssignedToUserId, not even an explicit nil [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Reportitem.md b/docs/Reportitem.md index 9a7f17f..4a98f85 100644 --- a/docs/Reportitem.md +++ b/docs/Reportitem.md @@ -16,6 +16,7 @@ Name | Type | Description | Notes **ReportitemCreatedByUserId** | **int32** | | **ReportitemModifyTime** | Pointer to **time.Time** | | [optional] [readonly] **ReportitemModifiedByUserId** | **int32** | | +**ReportitemAssignedToUserId** | Pointer to **NullableInt32** | | [optional] ## Methods @@ -326,6 +327,41 @@ and a boolean to check if the value has been set. SetReportitemModifiedByUserId sets ReportitemModifiedByUserId field to given value. +### GetReportitemAssignedToUserId + +`func (o *Reportitem) GetReportitemAssignedToUserId() int32` + +GetReportitemAssignedToUserId returns the ReportitemAssignedToUserId field if non-nil, zero value otherwise. + +### GetReportitemAssignedToUserIdOk + +`func (o *Reportitem) GetReportitemAssignedToUserIdOk() (*int32, bool)` + +GetReportitemAssignedToUserIdOk returns a tuple with the ReportitemAssignedToUserId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReportitemAssignedToUserId + +`func (o *Reportitem) SetReportitemAssignedToUserId(v int32)` + +SetReportitemAssignedToUserId sets ReportitemAssignedToUserId field to given value. + +### HasReportitemAssignedToUserId + +`func (o *Reportitem) HasReportitemAssignedToUserId() bool` + +HasReportitemAssignedToUserId returns a boolean if a field has been set. + +### SetReportitemAssignedToUserIdNil + +`func (o *Reportitem) SetReportitemAssignedToUserIdNil(b bool)` + + SetReportitemAssignedToUserIdNil sets the value for ReportitemAssignedToUserId to be an explicit nil + +### UnsetReportitemAssignedToUserId +`func (o *Reportitem) UnsetReportitemAssignedToUserId()` + +UnsetReportitemAssignedToUserId ensures that no value is present for ReportitemAssignedToUserId, not even an explicit nil [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/System.md b/docs/System.md index 0cd9caf..5eed291 100644 --- a/docs/System.md +++ b/docs/System.md @@ -31,6 +31,7 @@ Name | Type | Description | Notes **SystemCreatedByUserId** | **int32** | | **SystemModifyTime** | Pointer to **time.Time** | | [optional] [readonly] **SystemModifiedByUserId** | **int32** | | +**SystemAssignedToUserId** | Pointer to **NullableInt32** | | [optional] **SystemExportMarkdown** | Pointer to **bool** | | [optional] **SystemExportSpreadsheet** | Pointer to **bool** | | [optional] @@ -858,6 +859,41 @@ and a boolean to check if the value has been set. SetSystemModifiedByUserId sets SystemModifiedByUserId field to given value. +### GetSystemAssignedToUserId + +`func (o *System) GetSystemAssignedToUserId() int32` + +GetSystemAssignedToUserId returns the SystemAssignedToUserId field if non-nil, zero value otherwise. + +### GetSystemAssignedToUserIdOk + +`func (o *System) GetSystemAssignedToUserIdOk() (*int32, bool)` + +GetSystemAssignedToUserIdOk returns a tuple with the SystemAssignedToUserId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSystemAssignedToUserId + +`func (o *System) SetSystemAssignedToUserId(v int32)` + +SetSystemAssignedToUserId sets SystemAssignedToUserId field to given value. + +### HasSystemAssignedToUserId + +`func (o *System) HasSystemAssignedToUserId() bool` + +HasSystemAssignedToUserId returns a boolean if a field has been set. + +### SetSystemAssignedToUserIdNil + +`func (o *System) SetSystemAssignedToUserIdNil(b bool)` + + SetSystemAssignedToUserIdNil sets the value for SystemAssignedToUserId to be an explicit nil + +### UnsetSystemAssignedToUserId +`func (o *System) UnsetSystemAssignedToUserId()` + +UnsetSystemAssignedToUserId ensures that no value is present for SystemAssignedToUserId, not even an explicit nil ### GetSystemExportMarkdown `func (o *System) GetSystemExportMarkdown() bool` diff --git a/docs/Tag.md b/docs/Tag.md index 328521a..841ff0d 100644 --- a/docs/Tag.md +++ b/docs/Tag.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes **TagId** | Pointer to **int32** | | [optional] [readonly] **TagName** | **string** | | **Tagcolor** | **int32** | | +**TagAssignedToUserId** | Pointer to **NullableInt32** | | [optional] ## Methods @@ -92,6 +93,41 @@ and a boolean to check if the value has been set. SetTagcolor sets Tagcolor field to given value. +### GetTagAssignedToUserId + +`func (o *Tag) GetTagAssignedToUserId() int32` + +GetTagAssignedToUserId returns the TagAssignedToUserId field if non-nil, zero value otherwise. + +### GetTagAssignedToUserIdOk + +`func (o *Tag) GetTagAssignedToUserIdOk() (*int32, bool)` + +GetTagAssignedToUserIdOk returns a tuple with the TagAssignedToUserId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTagAssignedToUserId + +`func (o *Tag) SetTagAssignedToUserId(v int32)` + +SetTagAssignedToUserId sets TagAssignedToUserId field to given value. + +### HasTagAssignedToUserId + +`func (o *Tag) HasTagAssignedToUserId() bool` + +HasTagAssignedToUserId returns a boolean if a field has been set. + +### SetTagAssignedToUserIdNil + +`func (o *Tag) SetTagAssignedToUserIdNil(b bool)` + + SetTagAssignedToUserIdNil sets the value for TagAssignedToUserId to be an explicit nil + +### UnsetTagAssignedToUserId +`func (o *Tag) UnsetTagAssignedToUserId()` + +UnsetTagAssignedToUserId ensures that no value is present for TagAssignedToUserId, not even an explicit nil [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/go.mod b/go.mod index 19d8c12..8e982ec 100644 --- a/go.mod +++ b/go.mod @@ -3,5 +3,5 @@ module github.com/dfirtrack/dfirtrackapi go 1.13 require ( - golang.org/x/oauth2 v0.0.0-20210218202405-ba52d332ba99 + golang.org/x/oauth2 v0.0.0-20210323180902-22b0adad7558 ) diff --git a/model_analysisstatus.go b/model_analysisstatus.go index 175f142..ffcd7b8 100644 --- a/model_analysisstatus.go +++ b/model_analysisstatus.go @@ -3,7 +3,7 @@ DFIRTrack OpenAPI 3 - Documentation of DFIRTrack API -API version: v2.0.0 +API version: v2.4.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_artifact.go b/model_artifact.go index 3814d5c..1c58ccc 100644 --- a/model_artifact.go +++ b/model_artifact.go @@ -3,7 +3,7 @@ DFIRTrack OpenAPI 3 - Documentation of DFIRTrack API -API version: v2.0.0 +API version: v2.4.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -25,7 +25,7 @@ type Artifact struct { Artifacttype int32 `json:"artifacttype"` Case NullableInt32 `json:"case,omitempty"` System int32 `json:"system"` - Tag *[]int32 `json:"tag,omitempty"` + Tag []int32 `json:"tag,omitempty"` ArtifactMd5 NullableString `json:"artifact_md5,omitempty"` ArtifactSha1 NullableString `json:"artifact_sha1,omitempty"` ArtifactSha256 NullableString `json:"artifact_sha256,omitempty"` @@ -37,6 +37,7 @@ type Artifact struct { ArtifactCreatedByUserId int32 `json:"artifact_created_by_user_id"` ArtifactModifyTime *time.Time `json:"artifact_modify_time,omitempty"` ArtifactModifiedByUserId int32 `json:"artifact_modified_by_user_id"` + ArtifactAssignedToUserId NullableInt32 `json:"artifact_assigned_to_user_id,omitempty"` } // NewArtifact instantiates a new Artifact object @@ -309,12 +310,12 @@ func (o *Artifact) GetTag() []int32 { var ret []int32 return ret } - return *o.Tag + return o.Tag } // GetTagOk returns a tuple with the Tag field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *Artifact) GetTagOk() (*[]int32, bool) { +func (o *Artifact) GetTagOk() ([]int32, bool) { if o == nil || o.Tag == nil { return nil, false } @@ -332,7 +333,7 @@ func (o *Artifact) HasTag() bool { // SetTag gets a reference to the given []int32 and assigns it to the Tag field. func (o *Artifact) SetTag(v []int32) { - o.Tag = &v + o.Tag = v } // GetArtifactMd5 returns the ArtifactMd5 field value if set, zero value otherwise (both if not set or set to explicit null). @@ -731,6 +732,48 @@ func (o *Artifact) SetArtifactModifiedByUserId(v int32) { o.ArtifactModifiedByUserId = v } +// GetArtifactAssignedToUserId returns the ArtifactAssignedToUserId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Artifact) GetArtifactAssignedToUserId() int32 { + if o == nil || o.ArtifactAssignedToUserId.Get() == nil { + var ret int32 + return ret + } + return *o.ArtifactAssignedToUserId.Get() +} + +// GetArtifactAssignedToUserIdOk returns a tuple with the ArtifactAssignedToUserId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Artifact) GetArtifactAssignedToUserIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.ArtifactAssignedToUserId.Get(), o.ArtifactAssignedToUserId.IsSet() +} + +// HasArtifactAssignedToUserId returns a boolean if a field has been set. +func (o *Artifact) HasArtifactAssignedToUserId() bool { + if o != nil && o.ArtifactAssignedToUserId.IsSet() { + return true + } + + return false +} + +// SetArtifactAssignedToUserId gets a reference to the given NullableInt32 and assigns it to the ArtifactAssignedToUserId field. +func (o *Artifact) SetArtifactAssignedToUserId(v int32) { + o.ArtifactAssignedToUserId.Set(&v) +} +// SetArtifactAssignedToUserIdNil sets the value for ArtifactAssignedToUserId to be an explicit nil +func (o *Artifact) SetArtifactAssignedToUserIdNil() { + o.ArtifactAssignedToUserId.Set(nil) +} + +// UnsetArtifactAssignedToUserId ensures that no value is present for ArtifactAssignedToUserId, not even an explicit nil +func (o *Artifact) UnsetArtifactAssignedToUserId() { + o.ArtifactAssignedToUserId.Unset() +} + func (o Artifact) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.ArtifactId != nil { @@ -793,6 +836,9 @@ func (o Artifact) MarshalJSON() ([]byte, error) { if true { toSerialize["artifact_modified_by_user_id"] = o.ArtifactModifiedByUserId } + if o.ArtifactAssignedToUserId.IsSet() { + toSerialize["artifact_assigned_to_user_id"] = o.ArtifactAssignedToUserId.Get() + } return json.Marshal(toSerialize) } diff --git a/model_artifactpriority.go b/model_artifactpriority.go index 95891e8..11eb0bf 100644 --- a/model_artifactpriority.go +++ b/model_artifactpriority.go @@ -3,7 +3,7 @@ DFIRTrack OpenAPI 3 - Documentation of DFIRTrack API -API version: v2.0.0 +API version: v2.4.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_artifactstatus.go b/model_artifactstatus.go index 4c7af65..9074771 100644 --- a/model_artifactstatus.go +++ b/model_artifactstatus.go @@ -3,7 +3,7 @@ DFIRTrack OpenAPI 3 - Documentation of DFIRTrack API -API version: v2.0.0 +API version: v2.4.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_artifacttype.go b/model_artifacttype.go index c7a78d7..5cb5af5 100644 --- a/model_artifacttype.go +++ b/model_artifacttype.go @@ -3,7 +3,7 @@ DFIRTrack OpenAPI 3 - Documentation of DFIRTrack API -API version: v2.0.0 +API version: v2.4.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_auth_token.go b/model_auth_token.go index 1a45db0..3d8c992 100644 --- a/model_auth_token.go +++ b/model_auth_token.go @@ -3,7 +3,7 @@ DFIRTrack OpenAPI 3 - Documentation of DFIRTrack API -API version: v2.0.0 +API version: v2.4.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_case.go b/model_case.go index ed7bfc6..999fe2e 100644 --- a/model_case.go +++ b/model_case.go @@ -3,7 +3,7 @@ DFIRTrack OpenAPI 3 - Documentation of DFIRTrack API -API version: v2.0.0 +API version: v2.4.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,7 +23,7 @@ type Case struct { Casepriority *int32 `json:"casepriority,omitempty"` Casestatus *int32 `json:"casestatus,omitempty"` Casetype NullableInt32 `json:"casetype,omitempty"` - Tag *[]int32 `json:"tag,omitempty"` + Tag []int32 `json:"tag,omitempty"` CaseIsIncident bool `json:"case_is_incident"` CaseStartTime NullableTime `json:"case_start_time,omitempty"` CaseEndTime NullableTime `json:"case_end_time,omitempty"` @@ -31,6 +31,7 @@ type Case struct { CaseCreateTime *time.Time `json:"case_create_time,omitempty"` CaseModifiedByUserId NullableInt32 `json:"case_modified_by_user_id,omitempty"` CaseModifyTime *time.Time `json:"case_modify_time,omitempty"` + CaseAssignedToUserId NullableInt32 `json:"case_assigned_to_user_id,omitempty"` } // NewCase instantiates a new Case object @@ -263,12 +264,12 @@ func (o *Case) GetTag() []int32 { var ret []int32 return ret } - return *o.Tag + return o.Tag } // GetTagOk returns a tuple with the Tag field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *Case) GetTagOk() (*[]int32, bool) { +func (o *Case) GetTagOk() ([]int32, bool) { if o == nil || o.Tag == nil { return nil, false } @@ -286,7 +287,7 @@ func (o *Case) HasTag() bool { // SetTag gets a reference to the given []int32 and assigns it to the Tag field. func (o *Case) SetTag(v []int32) { - o.Tag = &v + o.Tag = v } // GetCaseIsIncident returns the CaseIsIncident field value @@ -527,6 +528,48 @@ func (o *Case) SetCaseModifyTime(v time.Time) { o.CaseModifyTime = &v } +// GetCaseAssignedToUserId returns the CaseAssignedToUserId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Case) GetCaseAssignedToUserId() int32 { + if o == nil || o.CaseAssignedToUserId.Get() == nil { + var ret int32 + return ret + } + return *o.CaseAssignedToUserId.Get() +} + +// GetCaseAssignedToUserIdOk returns a tuple with the CaseAssignedToUserId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Case) GetCaseAssignedToUserIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.CaseAssignedToUserId.Get(), o.CaseAssignedToUserId.IsSet() +} + +// HasCaseAssignedToUserId returns a boolean if a field has been set. +func (o *Case) HasCaseAssignedToUserId() bool { + if o != nil && o.CaseAssignedToUserId.IsSet() { + return true + } + + return false +} + +// SetCaseAssignedToUserId gets a reference to the given NullableInt32 and assigns it to the CaseAssignedToUserId field. +func (o *Case) SetCaseAssignedToUserId(v int32) { + o.CaseAssignedToUserId.Set(&v) +} +// SetCaseAssignedToUserIdNil sets the value for CaseAssignedToUserId to be an explicit nil +func (o *Case) SetCaseAssignedToUserIdNil() { + o.CaseAssignedToUserId.Set(nil) +} + +// UnsetCaseAssignedToUserId ensures that no value is present for CaseAssignedToUserId, not even an explicit nil +func (o *Case) UnsetCaseAssignedToUserId() { + o.CaseAssignedToUserId.Unset() +} + func (o Case) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.CaseId != nil { @@ -571,6 +614,9 @@ func (o Case) MarshalJSON() ([]byte, error) { if o.CaseModifyTime != nil { toSerialize["case_modify_time"] = o.CaseModifyTime } + if o.CaseAssignedToUserId.IsSet() { + toSerialize["case_assigned_to_user_id"] = o.CaseAssignedToUserId.Get() + } return json.Marshal(toSerialize) } diff --git a/model_casepriority.go b/model_casepriority.go index 16be1d7..354189d 100644 --- a/model_casepriority.go +++ b/model_casepriority.go @@ -3,7 +3,7 @@ DFIRTrack OpenAPI 3 - Documentation of DFIRTrack API -API version: v2.0.0 +API version: v2.4.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_casestatus.go b/model_casestatus.go index db17bf0..7dc13f0 100644 --- a/model_casestatus.go +++ b/model_casestatus.go @@ -3,7 +3,7 @@ DFIRTrack OpenAPI 3 - Documentation of DFIRTrack API -API version: v2.0.0 +API version: v2.4.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_casetype.go b/model_casetype.go index 0b57ed6..b8f7b1a 100644 --- a/model_casetype.go +++ b/model_casetype.go @@ -3,7 +3,7 @@ DFIRTrack OpenAPI 3 - Documentation of DFIRTrack API -API version: v2.0.0 +API version: v2.4.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_company.go b/model_company.go index 555496c..8b5faa7 100644 --- a/model_company.go +++ b/model_company.go @@ -3,7 +3,7 @@ DFIRTrack OpenAPI 3 - Documentation of DFIRTrack API -API version: v2.0.0 +API version: v2.4.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_contact.go b/model_contact.go index 47a3318..77e1a3f 100644 --- a/model_contact.go +++ b/model_contact.go @@ -3,7 +3,7 @@ DFIRTrack OpenAPI 3 - Documentation of DFIRTrack API -API version: v2.0.0 +API version: v2.4.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_division.go b/model_division.go index b74021a..f27b859 100644 --- a/model_division.go +++ b/model_division.go @@ -3,7 +3,7 @@ DFIRTrack OpenAPI 3 - Documentation of DFIRTrack API -API version: v2.0.0 +API version: v2.4.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_dnsname.go b/model_dnsname.go index c28eec4..b7bed20 100644 --- a/model_dnsname.go +++ b/model_dnsname.go @@ -3,7 +3,7 @@ DFIRTrack OpenAPI 3 - Documentation of DFIRTrack API -API version: v2.0.0 +API version: v2.4.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_domain.go b/model_domain.go index 30b3a7e..8fad76a 100644 --- a/model_domain.go +++ b/model_domain.go @@ -3,7 +3,7 @@ DFIRTrack OpenAPI 3 - Documentation of DFIRTrack API -API version: v2.0.0 +API version: v2.4.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_domainuser.go b/model_domainuser.go index 9d71173..958fc26 100644 --- a/model_domainuser.go +++ b/model_domainuser.go @@ -3,7 +3,7 @@ DFIRTrack OpenAPI 3 - Documentation of DFIRTrack API -API version: v2.0.0 +API version: v2.4.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_headline.go b/model_headline.go index c3084d6..3b99ac1 100644 --- a/model_headline.go +++ b/model_headline.go @@ -3,7 +3,7 @@ DFIRTrack OpenAPI 3 - Documentation of DFIRTrack API -API version: v2.0.0 +API version: v2.4.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_ip.go b/model_ip.go index 8afdf12..ce322ea 100644 --- a/model_ip.go +++ b/model_ip.go @@ -3,7 +3,7 @@ DFIRTrack OpenAPI 3 - Documentation of DFIRTrack API -API version: v2.0.0 +API version: v2.4.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_location.go b/model_location.go index 0b183d0..c9a3321 100644 --- a/model_location.go +++ b/model_location.go @@ -3,7 +3,7 @@ DFIRTrack OpenAPI 3 - Documentation of DFIRTrack API -API version: v2.0.0 +API version: v2.4.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_note.go b/model_note.go index 86ee55e..6d27c7d 100644 --- a/model_note.go +++ b/model_note.go @@ -3,7 +3,7 @@ DFIRTrack OpenAPI 3 - Documentation of DFIRTrack API -API version: v2.0.0 +API version: v2.4.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,11 +23,12 @@ type Note struct { NoteVersion int32 `json:"note_version"` Case NullableInt32 `json:"case,omitempty"` Notestatus *int32 `json:"notestatus,omitempty"` - Tag *[]int32 `json:"tag,omitempty"` + Tag []int32 `json:"tag,omitempty"` NoteCreateTime *time.Time `json:"note_create_time,omitempty"` NoteCreatedByUserId int32 `json:"note_created_by_user_id"` NoteModifyTime *time.Time `json:"note_modify_time,omitempty"` NoteModifiedByUserId int32 `json:"note_modified_by_user_id"` + NoteAssignedToUserId NullableInt32 `json:"note_assigned_to_user_id,omitempty"` } // NewNote instantiates a new Note object @@ -236,12 +237,12 @@ func (o *Note) GetTag() []int32 { var ret []int32 return ret } - return *o.Tag + return o.Tag } // GetTagOk returns a tuple with the Tag field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *Note) GetTagOk() (*[]int32, bool) { +func (o *Note) GetTagOk() ([]int32, bool) { if o == nil || o.Tag == nil { return nil, false } @@ -259,7 +260,7 @@ func (o *Note) HasTag() bool { // SetTag gets a reference to the given []int32 and assigns it to the Tag field. func (o *Note) SetTag(v []int32) { - o.Tag = &v + o.Tag = v } // GetNoteCreateTime returns the NoteCreateTime field value if set, zero value otherwise. @@ -374,6 +375,48 @@ func (o *Note) SetNoteModifiedByUserId(v int32) { o.NoteModifiedByUserId = v } +// GetNoteAssignedToUserId returns the NoteAssignedToUserId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Note) GetNoteAssignedToUserId() int32 { + if o == nil || o.NoteAssignedToUserId.Get() == nil { + var ret int32 + return ret + } + return *o.NoteAssignedToUserId.Get() +} + +// GetNoteAssignedToUserIdOk returns a tuple with the NoteAssignedToUserId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Note) GetNoteAssignedToUserIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.NoteAssignedToUserId.Get(), o.NoteAssignedToUserId.IsSet() +} + +// HasNoteAssignedToUserId returns a boolean if a field has been set. +func (o *Note) HasNoteAssignedToUserId() bool { + if o != nil && o.NoteAssignedToUserId.IsSet() { + return true + } + + return false +} + +// SetNoteAssignedToUserId gets a reference to the given NullableInt32 and assigns it to the NoteAssignedToUserId field. +func (o *Note) SetNoteAssignedToUserId(v int32) { + o.NoteAssignedToUserId.Set(&v) +} +// SetNoteAssignedToUserIdNil sets the value for NoteAssignedToUserId to be an explicit nil +func (o *Note) SetNoteAssignedToUserIdNil() { + o.NoteAssignedToUserId.Set(nil) +} + +// UnsetNoteAssignedToUserId ensures that no value is present for NoteAssignedToUserId, not even an explicit nil +func (o *Note) UnsetNoteAssignedToUserId() { + o.NoteAssignedToUserId.Unset() +} + func (o Note) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.NoteId != nil { @@ -409,6 +452,9 @@ func (o Note) MarshalJSON() ([]byte, error) { if true { toSerialize["note_modified_by_user_id"] = o.NoteModifiedByUserId } + if o.NoteAssignedToUserId.IsSet() { + toSerialize["note_assigned_to_user_id"] = o.NoteAssignedToUserId.Get() + } return json.Marshal(toSerialize) } diff --git a/model_notestatus.go b/model_notestatus.go index f23390b..8f38f28 100644 --- a/model_notestatus.go +++ b/model_notestatus.go @@ -3,7 +3,7 @@ DFIRTrack OpenAPI 3 - Documentation of DFIRTrack API -API version: v2.0.0 +API version: v2.4.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_os.go b/model_os.go index 0ee868e..7ee5ad4 100644 --- a/model_os.go +++ b/model_os.go @@ -3,7 +3,7 @@ DFIRTrack OpenAPI 3 - Documentation of DFIRTrack API -API version: v2.0.0 +API version: v2.4.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_osarch.go b/model_osarch.go index ee1f342..2465d8a 100644 --- a/model_osarch.go +++ b/model_osarch.go @@ -3,7 +3,7 @@ DFIRTrack OpenAPI 3 - Documentation of DFIRTrack API -API version: v2.0.0 +API version: v2.4.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_reason.go b/model_reason.go index 7be6f09..5d13245 100644 --- a/model_reason.go +++ b/model_reason.go @@ -3,7 +3,7 @@ DFIRTrack OpenAPI 3 - Documentation of DFIRTrack API -API version: v2.0.0 +API version: v2.4.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_recommendation.go b/model_recommendation.go index 6783cfd..8df7cf4 100644 --- a/model_recommendation.go +++ b/model_recommendation.go @@ -3,7 +3,7 @@ DFIRTrack OpenAPI 3 - Documentation of DFIRTrack API -API version: v2.0.0 +API version: v2.4.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_reportitem.go b/model_reportitem.go index 1925a60..1709bbf 100644 --- a/model_reportitem.go +++ b/model_reportitem.go @@ -3,7 +3,7 @@ DFIRTrack OpenAPI 3 - Documentation of DFIRTrack API -API version: v2.0.0 +API version: v2.4.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -22,13 +22,14 @@ type Reportitem struct { Headline int32 `json:"headline"` Notestatus *int32 `json:"notestatus,omitempty"` System int32 `json:"system"` - Tag *[]int32 `json:"tag,omitempty"` + Tag []int32 `json:"tag,omitempty"` ReportitemSubheadline NullableString `json:"reportitem_subheadline"` ReportitemNote string `json:"reportitem_note"` ReportitemCreateTime *time.Time `json:"reportitem_create_time,omitempty"` ReportitemCreatedByUserId int32 `json:"reportitem_created_by_user_id"` ReportitemModifyTime *time.Time `json:"reportitem_modify_time,omitempty"` ReportitemModifiedByUserId int32 `json:"reportitem_modified_by_user_id"` + ReportitemAssignedToUserId NullableInt32 `json:"reportitem_assigned_to_user_id,omitempty"` } // NewReportitem instantiates a new Reportitem object @@ -214,12 +215,12 @@ func (o *Reportitem) GetTag() []int32 { var ret []int32 return ret } - return *o.Tag + return o.Tag } // GetTagOk returns a tuple with the Tag field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *Reportitem) GetTagOk() (*[]int32, bool) { +func (o *Reportitem) GetTagOk() ([]int32, bool) { if o == nil || o.Tag == nil { return nil, false } @@ -237,7 +238,7 @@ func (o *Reportitem) HasTag() bool { // SetTag gets a reference to the given []int32 and assigns it to the Tag field. func (o *Reportitem) SetTag(v []int32) { - o.Tag = &v + o.Tag = v } // GetReportitemSubheadline returns the ReportitemSubheadline field value @@ -402,6 +403,48 @@ func (o *Reportitem) SetReportitemModifiedByUserId(v int32) { o.ReportitemModifiedByUserId = v } +// GetReportitemAssignedToUserId returns the ReportitemAssignedToUserId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Reportitem) GetReportitemAssignedToUserId() int32 { + if o == nil || o.ReportitemAssignedToUserId.Get() == nil { + var ret int32 + return ret + } + return *o.ReportitemAssignedToUserId.Get() +} + +// GetReportitemAssignedToUserIdOk returns a tuple with the ReportitemAssignedToUserId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Reportitem) GetReportitemAssignedToUserIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.ReportitemAssignedToUserId.Get(), o.ReportitemAssignedToUserId.IsSet() +} + +// HasReportitemAssignedToUserId returns a boolean if a field has been set. +func (o *Reportitem) HasReportitemAssignedToUserId() bool { + if o != nil && o.ReportitemAssignedToUserId.IsSet() { + return true + } + + return false +} + +// SetReportitemAssignedToUserId gets a reference to the given NullableInt32 and assigns it to the ReportitemAssignedToUserId field. +func (o *Reportitem) SetReportitemAssignedToUserId(v int32) { + o.ReportitemAssignedToUserId.Set(&v) +} +// SetReportitemAssignedToUserIdNil sets the value for ReportitemAssignedToUserId to be an explicit nil +func (o *Reportitem) SetReportitemAssignedToUserIdNil() { + o.ReportitemAssignedToUserId.Set(nil) +} + +// UnsetReportitemAssignedToUserId ensures that no value is present for ReportitemAssignedToUserId, not even an explicit nil +func (o *Reportitem) UnsetReportitemAssignedToUserId() { + o.ReportitemAssignedToUserId.Unset() +} + func (o Reportitem) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.ReportitemId != nil { @@ -440,6 +483,9 @@ func (o Reportitem) MarshalJSON() ([]byte, error) { if true { toSerialize["reportitem_modified_by_user_id"] = o.ReportitemModifiedByUserId } + if o.ReportitemAssignedToUserId.IsSet() { + toSerialize["reportitem_assigned_to_user_id"] = o.ReportitemAssignedToUserId.Get() + } return json.Marshal(toSerialize) } diff --git a/model_serviceprovider.go b/model_serviceprovider.go index cea183d..5fd3bae 100644 --- a/model_serviceprovider.go +++ b/model_serviceprovider.go @@ -3,7 +3,7 @@ DFIRTrack OpenAPI 3 - Documentation of DFIRTrack API -API version: v2.0.0 +API version: v2.4.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_system.go b/model_system.go index 8f1f98e..29c3c8b 100644 --- a/model_system.go +++ b/model_system.go @@ -3,7 +3,7 @@ DFIRTrack OpenAPI 3 - Documentation of DFIRTrack API -API version: v2.0.0 +API version: v2.4.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -27,23 +27,24 @@ type System struct { Reason NullableInt32 `json:"reason,omitempty"` Recommendation NullableInt32 `json:"recommendation,omitempty"` Systemtype NullableInt32 `json:"systemtype,omitempty"` - Ip *[]int32 `json:"ip,omitempty"` + Ip []int32 `json:"ip,omitempty"` Os NullableInt32 `json:"os,omitempty"` Osarch NullableInt32 `json:"osarch,omitempty"` SystemLastbootedTime NullableTime `json:"system_lastbooted_time,omitempty"` SystemDeprecatedTime NullableTime `json:"system_deprecated_time,omitempty"` SystemIsVm NullableBool `json:"system_is_vm,omitempty"` HostSystem NullableInt32 `json:"host_system,omitempty"` - Company *[]int32 `json:"company,omitempty"` + Company []int32 `json:"company,omitempty"` Location NullableInt32 `json:"location,omitempty"` Serviceprovider NullableInt32 `json:"serviceprovider,omitempty"` Contact NullableInt32 `json:"contact,omitempty"` - Tag *[]int32 `json:"tag,omitempty"` - Case *[]int32 `json:"case,omitempty"` + Tag []int32 `json:"tag,omitempty"` + Case []int32 `json:"case,omitempty"` SystemCreateTime *time.Time `json:"system_create_time,omitempty"` SystemCreatedByUserId int32 `json:"system_created_by_user_id"` SystemModifyTime *time.Time `json:"system_modify_time,omitempty"` SystemModifiedByUserId int32 `json:"system_modified_by_user_id"` + SystemAssignedToUserId NullableInt32 `json:"system_assigned_to_user_id,omitempty"` SystemExportMarkdown *bool `json:"system_export_markdown,omitempty"` SystemExportSpreadsheet *bool `json:"system_export_spreadsheet,omitempty"` } @@ -439,12 +440,12 @@ func (o *System) GetIp() []int32 { var ret []int32 return ret } - return *o.Ip + return o.Ip } // GetIpOk returns a tuple with the Ip field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *System) GetIpOk() (*[]int32, bool) { +func (o *System) GetIpOk() ([]int32, bool) { if o == nil || o.Ip == nil { return nil, false } @@ -462,7 +463,7 @@ func (o *System) HasIp() bool { // SetIp gets a reference to the given []int32 and assigns it to the Ip field. func (o *System) SetIp(v []int32) { - o.Ip = &v + o.Ip = v } // GetOs returns the Os field value if set, zero value otherwise (both if not set or set to explicit null). @@ -723,12 +724,12 @@ func (o *System) GetCompany() []int32 { var ret []int32 return ret } - return *o.Company + return o.Company } // GetCompanyOk returns a tuple with the Company field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *System) GetCompanyOk() (*[]int32, bool) { +func (o *System) GetCompanyOk() ([]int32, bool) { if o == nil || o.Company == nil { return nil, false } @@ -746,7 +747,7 @@ func (o *System) HasCompany() bool { // SetCompany gets a reference to the given []int32 and assigns it to the Company field. func (o *System) SetCompany(v []int32) { - o.Company = &v + o.Company = v } // GetLocation returns the Location field value if set, zero value otherwise (both if not set or set to explicit null). @@ -881,12 +882,12 @@ func (o *System) GetTag() []int32 { var ret []int32 return ret } - return *o.Tag + return o.Tag } // GetTagOk returns a tuple with the Tag field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *System) GetTagOk() (*[]int32, bool) { +func (o *System) GetTagOk() ([]int32, bool) { if o == nil || o.Tag == nil { return nil, false } @@ -904,7 +905,7 @@ func (o *System) HasTag() bool { // SetTag gets a reference to the given []int32 and assigns it to the Tag field. func (o *System) SetTag(v []int32) { - o.Tag = &v + o.Tag = v } // GetCase returns the Case field value if set, zero value otherwise. @@ -913,12 +914,12 @@ func (o *System) GetCase() []int32 { var ret []int32 return ret } - return *o.Case + return o.Case } // GetCaseOk returns a tuple with the Case field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *System) GetCaseOk() (*[]int32, bool) { +func (o *System) GetCaseOk() ([]int32, bool) { if o == nil || o.Case == nil { return nil, false } @@ -936,7 +937,7 @@ func (o *System) HasCase() bool { // SetCase gets a reference to the given []int32 and assigns it to the Case field. func (o *System) SetCase(v []int32) { - o.Case = &v + o.Case = v } // GetSystemCreateTime returns the SystemCreateTime field value if set, zero value otherwise. @@ -1051,6 +1052,48 @@ func (o *System) SetSystemModifiedByUserId(v int32) { o.SystemModifiedByUserId = v } +// GetSystemAssignedToUserId returns the SystemAssignedToUserId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *System) GetSystemAssignedToUserId() int32 { + if o == nil || o.SystemAssignedToUserId.Get() == nil { + var ret int32 + return ret + } + return *o.SystemAssignedToUserId.Get() +} + +// GetSystemAssignedToUserIdOk returns a tuple with the SystemAssignedToUserId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *System) GetSystemAssignedToUserIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.SystemAssignedToUserId.Get(), o.SystemAssignedToUserId.IsSet() +} + +// HasSystemAssignedToUserId returns a boolean if a field has been set. +func (o *System) HasSystemAssignedToUserId() bool { + if o != nil && o.SystemAssignedToUserId.IsSet() { + return true + } + + return false +} + +// SetSystemAssignedToUserId gets a reference to the given NullableInt32 and assigns it to the SystemAssignedToUserId field. +func (o *System) SetSystemAssignedToUserId(v int32) { + o.SystemAssignedToUserId.Set(&v) +} +// SetSystemAssignedToUserIdNil sets the value for SystemAssignedToUserId to be an explicit nil +func (o *System) SetSystemAssignedToUserIdNil() { + o.SystemAssignedToUserId.Set(nil) +} + +// UnsetSystemAssignedToUserId ensures that no value is present for SystemAssignedToUserId, not even an explicit nil +func (o *System) UnsetSystemAssignedToUserId() { + o.SystemAssignedToUserId.Unset() +} + // GetSystemExportMarkdown returns the SystemExportMarkdown field value if set, zero value otherwise. func (o *System) GetSystemExportMarkdown() bool { if o == nil || o.SystemExportMarkdown == nil { @@ -1198,6 +1241,9 @@ func (o System) MarshalJSON() ([]byte, error) { if true { toSerialize["system_modified_by_user_id"] = o.SystemModifiedByUserId } + if o.SystemAssignedToUserId.IsSet() { + toSerialize["system_assigned_to_user_id"] = o.SystemAssignedToUserId.Get() + } if o.SystemExportMarkdown != nil { toSerialize["system_export_markdown"] = o.SystemExportMarkdown } diff --git a/model_systemstatus.go b/model_systemstatus.go index 4128118..fd86dc1 100644 --- a/model_systemstatus.go +++ b/model_systemstatus.go @@ -3,7 +3,7 @@ DFIRTrack OpenAPI 3 - Documentation of DFIRTrack API -API version: v2.0.0 +API version: v2.4.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_systemtype.go b/model_systemtype.go index 8f7994b..6d441bb 100644 --- a/model_systemtype.go +++ b/model_systemtype.go @@ -3,7 +3,7 @@ DFIRTrack OpenAPI 3 - Documentation of DFIRTrack API -API version: v2.0.0 +API version: v2.4.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_systemuser.go b/model_systemuser.go index c1a3ae1..0164b22 100644 --- a/model_systemuser.go +++ b/model_systemuser.go @@ -3,7 +3,7 @@ DFIRTrack OpenAPI 3 - Documentation of DFIRTrack API -API version: v2.0.0 +API version: v2.4.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_tag.go b/model_tag.go index c202a9a..cc64371 100644 --- a/model_tag.go +++ b/model_tag.go @@ -3,7 +3,7 @@ DFIRTrack OpenAPI 3 - Documentation of DFIRTrack API -API version: v2.0.0 +API version: v2.4.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,6 +19,7 @@ type Tag struct { TagId *int32 `json:"tag_id,omitempty"` TagName string `json:"tag_name"` Tagcolor int32 `json:"tagcolor"` + TagAssignedToUserId NullableInt32 `json:"tag_assigned_to_user_id,omitempty"` } // NewTag instantiates a new Tag object @@ -120,6 +121,48 @@ func (o *Tag) SetTagcolor(v int32) { o.Tagcolor = v } +// GetTagAssignedToUserId returns the TagAssignedToUserId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Tag) GetTagAssignedToUserId() int32 { + if o == nil || o.TagAssignedToUserId.Get() == nil { + var ret int32 + return ret + } + return *o.TagAssignedToUserId.Get() +} + +// GetTagAssignedToUserIdOk returns a tuple with the TagAssignedToUserId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Tag) GetTagAssignedToUserIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.TagAssignedToUserId.Get(), o.TagAssignedToUserId.IsSet() +} + +// HasTagAssignedToUserId returns a boolean if a field has been set. +func (o *Tag) HasTagAssignedToUserId() bool { + if o != nil && o.TagAssignedToUserId.IsSet() { + return true + } + + return false +} + +// SetTagAssignedToUserId gets a reference to the given NullableInt32 and assigns it to the TagAssignedToUserId field. +func (o *Tag) SetTagAssignedToUserId(v int32) { + o.TagAssignedToUserId.Set(&v) +} +// SetTagAssignedToUserIdNil sets the value for TagAssignedToUserId to be an explicit nil +func (o *Tag) SetTagAssignedToUserIdNil() { + o.TagAssignedToUserId.Set(nil) +} + +// UnsetTagAssignedToUserId ensures that no value is present for TagAssignedToUserId, not even an explicit nil +func (o *Tag) UnsetTagAssignedToUserId() { + o.TagAssignedToUserId.Unset() +} + func (o Tag) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.TagId != nil { @@ -131,6 +174,9 @@ func (o Tag) MarshalJSON() ([]byte, error) { if true { toSerialize["tagcolor"] = o.Tagcolor } + if o.TagAssignedToUserId.IsSet() { + toSerialize["tag_assigned_to_user_id"] = o.TagAssignedToUserId.Get() + } return json.Marshal(toSerialize) } diff --git a/model_tagcolor.go b/model_tagcolor.go index 9b0691c..9a742e5 100644 --- a/model_tagcolor.go +++ b/model_tagcolor.go @@ -3,7 +3,7 @@ DFIRTrack OpenAPI 3 - Documentation of DFIRTrack API -API version: v2.0.0 +API version: v2.4.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_task.go b/model_task.go index 2a16c74..c74edb0 100644 --- a/model_task.go +++ b/model_task.go @@ -3,7 +3,7 @@ DFIRTrack OpenAPI 3 - Documentation of DFIRTrack API -API version: v2.0.0 +API version: v2.4.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -26,7 +26,7 @@ type Task struct { Case NullableInt32 `json:"case,omitempty"` System NullableInt32 `json:"system,omitempty"` TaskAssignedToUserId NullableInt32 `json:"task_assigned_to_user_id,omitempty"` - Tag *[]int32 `json:"tag,omitempty"` + Tag []int32 `json:"tag,omitempty"` TaskScheduledTime NullableTime `json:"task_scheduled_time,omitempty"` TaskStartedTime NullableTime `json:"task_started_time,omitempty"` TaskFinishedTime NullableTime `json:"task_finished_time,omitempty"` @@ -379,12 +379,12 @@ func (o *Task) GetTag() []int32 { var ret []int32 return ret } - return *o.Tag + return o.Tag } // GetTagOk returns a tuple with the Tag field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *Task) GetTagOk() (*[]int32, bool) { +func (o *Task) GetTagOk() ([]int32, bool) { if o == nil || o.Tag == nil { return nil, false } @@ -402,7 +402,7 @@ func (o *Task) HasTag() bool { // SetTag gets a reference to the given []int32 and assigns it to the Tag field. func (o *Task) SetTag(v []int32) { - o.Tag = &v + o.Tag = v } // GetTaskScheduledTime returns the TaskScheduledTime field value if set, zero value otherwise (both if not set or set to explicit null). diff --git a/model_taskname.go b/model_taskname.go index 4d89e2f..0b08eb7 100644 --- a/model_taskname.go +++ b/model_taskname.go @@ -3,7 +3,7 @@ DFIRTrack OpenAPI 3 - Documentation of DFIRTrack API -API version: v2.0.0 +API version: v2.4.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_taskpriority.go b/model_taskpriority.go index 83cd1d3..4b9afbb 100644 --- a/model_taskpriority.go +++ b/model_taskpriority.go @@ -3,7 +3,7 @@ DFIRTrack OpenAPI 3 - Documentation of DFIRTrack API -API version: v2.0.0 +API version: v2.4.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_taskstatus.go b/model_taskstatus.go index ae930b5..b76a33f 100644 --- a/model_taskstatus.go +++ b/model_taskstatus.go @@ -3,7 +3,7 @@ DFIRTrack OpenAPI 3 - Documentation of DFIRTrack API -API version: v2.0.0 +API version: v2.4.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/response.go b/response.go index 4a70a6b..43476c0 100644 --- a/response.go +++ b/response.go @@ -3,7 +3,7 @@ DFIRTrack OpenAPI 3 - Documentation of DFIRTrack API -API version: v2.0.0 +API version: v2.4.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/utils.go b/utils.go index 22f7056..01ccd9c 100644 --- a/utils.go +++ b/utils.go @@ -3,7 +3,7 @@ DFIRTrack OpenAPI 3 - Documentation of DFIRTrack API -API version: v2.0.0 +API version: v2.4.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.