diff --git a/cluster-autoscaler/cloudprovider/builder/builder_all.go b/cluster-autoscaler/cloudprovider/builder/builder_all.go index 43c77c34b965..e94e8acb1009 100644 --- a/cluster-autoscaler/cloudprovider/builder/builder_all.go +++ b/cluster-autoscaler/cloudprovider/builder/builder_all.go @@ -1,7 +1,6 @@ -//go:build !gce && !aws && !azure && !kubemark && !alicloud && !magnum && !digitalocean && !clusterapi && !huaweicloud && !ionoscloud && !linode && !hetzner && !bizflycloud && !brightbox && !packet && !oci && !vultr && !tencentcloud && !externalgrpc +//go:build !gce && !aws && !azure && !kubemark && !alicloud && !magnum && !digitalocean && !clusterapi && !huaweicloud && !ionoscloud && !linode && !hetzner && !bizflycloud && !brightbox && !packet && !oci && !vultr && !tencentcloud && !externalgrpc && !civo // +build !gce,!aws,!azure,!kubemark,!alicloud,!magnum,!digitalocean,!clusterapi,!huaweicloud,!ionoscloud,!linode,!hetzner,!bizflycloud,!brightbox,!packet,!oci,!vultr,!tencentcloud,!externalgrpc,!civo - /* Copyright 2018 The Kubernetes Authors. diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/api_backup_unit.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/api_backup_unit.go index 63098600a977..64ff047de0a9 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/api_backup_unit.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/api_backup_unit.go @@ -27,11 +27,11 @@ var ( type BackupUnitApiService service type ApiBackupunitsDeleteRequest struct { - ctx _context.Context - ApiService *BackupUnitApiService - backupunitId string - pretty *bool - depth *int32 + ctx _context.Context + ApiService *BackupUnitApiService + backupunitId string + pretty *bool + depth *int32 xContractNumber *int32 } @@ -61,8 +61,8 @@ func (r ApiBackupunitsDeleteRequest) Execute() (map[string]interface{}, *APIResp */ func (a *BackupUnitApiService) BackupunitsDelete(ctx _context.Context, backupunitId string) ApiBackupunitsDeleteRequest { return ApiBackupunitsDeleteRequest{ - ApiService: a, - ctx: ctx, + ApiService: a, + ctx: ctx, backupunitId: backupunitId, } } @@ -140,11 +140,11 @@ func (a *BackupUnitApiService) BackupunitsDeleteExecute(r ApiBackupunitsDeleteRe localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "BackupunitsDelete", + Operation: "BackupunitsDelete", } if err != nil || localVarHTTPResponse == nil { @@ -163,13 +163,13 @@ func (a *BackupUnitApiService) BackupunitsDeleteExecute(r ApiBackupunitsDeleteRe body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -186,11 +186,11 @@ func (a *BackupUnitApiService) BackupunitsDeleteExecute(r ApiBackupunitsDeleteRe } type ApiBackupunitsFindByIdRequest struct { - ctx _context.Context - ApiService *BackupUnitApiService - backupunitId string - pretty *bool - depth *int32 + ctx _context.Context + ApiService *BackupUnitApiService + backupunitId string + pretty *bool + depth *int32 xContractNumber *int32 } @@ -220,8 +220,8 @@ func (r ApiBackupunitsFindByIdRequest) Execute() (BackupUnit, *APIResponse, erro */ func (a *BackupUnitApiService) BackupunitsFindById(ctx _context.Context, backupunitId string) ApiBackupunitsFindByIdRequest { return ApiBackupunitsFindByIdRequest{ - ApiService: a, - ctx: ctx, + ApiService: a, + ctx: ctx, backupunitId: backupunitId, } } @@ -299,11 +299,11 @@ func (a *BackupUnitApiService) BackupunitsFindByIdExecute(r ApiBackupunitsFindBy localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "BackupunitsFindById", + Operation: "BackupunitsFindById", } if err != nil || localVarHTTPResponse == nil { @@ -322,13 +322,13 @@ func (a *BackupUnitApiService) BackupunitsFindByIdExecute(r ApiBackupunitsFindBy body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -345,10 +345,10 @@ func (a *BackupUnitApiService) BackupunitsFindByIdExecute(r ApiBackupunitsFindBy } type ApiBackupunitsGetRequest struct { - ctx _context.Context - ApiService *BackupUnitApiService - pretty *bool - depth *int32 + ctx _context.Context + ApiService *BackupUnitApiService + pretty *bool + depth *int32 xContractNumber *int32 } @@ -370,7 +370,7 @@ func (r ApiBackupunitsGetRequest) Execute() (BackupUnits, *APIResponse, error) { } /* - * BackupunitsGet List Backup Units + * BackupunitsGet List Backup Units * You can retrieve a complete list of backup Units that you have access to. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @return ApiBackupunitsGetRequest @@ -378,7 +378,7 @@ func (r ApiBackupunitsGetRequest) Execute() (BackupUnits, *APIResponse, error) { func (a *BackupUnitApiService) BackupunitsGet(ctx _context.Context) ApiBackupunitsGetRequest { return ApiBackupunitsGetRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -454,11 +454,11 @@ func (a *BackupUnitApiService) BackupunitsGetExecute(r ApiBackupunitsGetRequest) localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "BackupunitsGet", + Operation: "BackupunitsGet", } if err != nil || localVarHTTPResponse == nil { @@ -477,13 +477,13 @@ func (a *BackupUnitApiService) BackupunitsGetExecute(r ApiBackupunitsGetRequest) body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -500,13 +500,13 @@ func (a *BackupUnitApiService) BackupunitsGetExecute(r ApiBackupunitsGetRequest) } type ApiBackupunitsPatchRequest struct { - ctx _context.Context - ApiService *BackupUnitApiService - backupunitId string + ctx _context.Context + ApiService *BackupUnitApiService + backupunitId string backupUnitProperties *BackupUnitProperties - pretty *bool - depth *int32 - xContractNumber *int32 + pretty *bool + depth *int32 + xContractNumber *int32 } func (r ApiBackupunitsPatchRequest) BackupUnitProperties(backupUnitProperties BackupUnitProperties) ApiBackupunitsPatchRequest { @@ -539,8 +539,8 @@ func (r ApiBackupunitsPatchRequest) Execute() (BackupUnit, *APIResponse, error) */ func (a *BackupUnitApiService) BackupunitsPatch(ctx _context.Context, backupunitId string) ApiBackupunitsPatchRequest { return ApiBackupunitsPatchRequest{ - ApiService: a, - ctx: ctx, + ApiService: a, + ctx: ctx, backupunitId: backupunitId, } } @@ -623,11 +623,11 @@ func (a *BackupUnitApiService) BackupunitsPatchExecute(r ApiBackupunitsPatchRequ localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "BackupunitsPatch", + Operation: "BackupunitsPatch", } if err != nil || localVarHTTPResponse == nil { @@ -646,13 +646,13 @@ func (a *BackupUnitApiService) BackupunitsPatchExecute(r ApiBackupunitsPatchRequ body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -669,11 +669,11 @@ func (a *BackupUnitApiService) BackupunitsPatchExecute(r ApiBackupunitsPatchRequ } type ApiBackupunitsPostRequest struct { - ctx _context.Context - ApiService *BackupUnitApiService - backupUnit *BackupUnit - pretty *bool - depth *int32 + ctx _context.Context + ApiService *BackupUnitApiService + backupUnit *BackupUnit + pretty *bool + depth *int32 xContractNumber *int32 } @@ -700,14 +700,14 @@ func (r ApiBackupunitsPostRequest) Execute() (BackupUnit, *APIResponse, error) { /* * BackupunitsPost Create a Backup Unit - * Create a Backup Unit. A Backup Unit is considered a resource like a virtual datacenter, IP Block, snapshot, etc. It shall be shareable via groups inside our User Management Feature + * Create a Backup Unit. A Backup Unit is considered a resource like a virtual datacenter, IP Block, snapshot, etc. It shall be shareable via groups inside our User Management Feature * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @return ApiBackupunitsPostRequest */ func (a *BackupUnitApiService) BackupunitsPost(ctx _context.Context) ApiBackupunitsPostRequest { return ApiBackupunitsPostRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -788,11 +788,11 @@ func (a *BackupUnitApiService) BackupunitsPostExecute(r ApiBackupunitsPostReques localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "BackupunitsPost", + Operation: "BackupunitsPost", } if err != nil || localVarHTTPResponse == nil { @@ -811,13 +811,13 @@ func (a *BackupUnitApiService) BackupunitsPostExecute(r ApiBackupunitsPostReques body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -834,12 +834,12 @@ func (a *BackupUnitApiService) BackupunitsPostExecute(r ApiBackupunitsPostReques } type ApiBackupunitsPutRequest struct { - ctx _context.Context - ApiService *BackupUnitApiService - backupunitId string - backupUnit *BackupUnit - pretty *bool - depth *int32 + ctx _context.Context + ApiService *BackupUnitApiService + backupunitId string + backupUnit *BackupUnit + pretty *bool + depth *int32 xContractNumber *int32 } @@ -873,8 +873,8 @@ func (r ApiBackupunitsPutRequest) Execute() (BackupUnit, *APIResponse, error) { */ func (a *BackupUnitApiService) BackupunitsPut(ctx _context.Context, backupunitId string) ApiBackupunitsPutRequest { return ApiBackupunitsPutRequest{ - ApiService: a, - ctx: ctx, + ApiService: a, + ctx: ctx, backupunitId: backupunitId, } } @@ -957,11 +957,11 @@ func (a *BackupUnitApiService) BackupunitsPutExecute(r ApiBackupunitsPutRequest) localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "BackupunitsPut", + Operation: "BackupunitsPut", } if err != nil || localVarHTTPResponse == nil { @@ -980,13 +980,13 @@ func (a *BackupUnitApiService) BackupunitsPutExecute(r ApiBackupunitsPutRequest) body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -1003,10 +1003,10 @@ func (a *BackupUnitApiService) BackupunitsPutExecute(r ApiBackupunitsPutRequest) } type ApiBackupunitsSsourlGetRequest struct { - ctx _context.Context - ApiService *BackupUnitApiService - backupunitId string - pretty *bool + ctx _context.Context + ApiService *BackupUnitApiService + backupunitId string + pretty *bool xContractNumber *int32 } @@ -1032,8 +1032,8 @@ func (r ApiBackupunitsSsourlGetRequest) Execute() (BackupUnitSSO, *APIResponse, */ func (a *BackupUnitApiService) BackupunitsSsourlGet(ctx _context.Context, backupunitId string) ApiBackupunitsSsourlGetRequest { return ApiBackupunitsSsourlGetRequest{ - ApiService: a, - ctx: ctx, + ApiService: a, + ctx: ctx, backupunitId: backupunitId, } } @@ -1108,11 +1108,11 @@ func (a *BackupUnitApiService) BackupunitsSsourlGetExecute(r ApiBackupunitsSsour localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "BackupunitsSsourlGet", + Operation: "BackupunitsSsourlGet", } if err != nil || localVarHTTPResponse == nil { @@ -1131,13 +1131,13 @@ func (a *BackupUnitApiService) BackupunitsSsourlGetExecute(r ApiBackupunitsSsour body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/api_contract.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/api_contract.go index 5d1ad332f4b3..caee5ea6bc3e 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/api_contract.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/api_contract.go @@ -26,10 +26,10 @@ var ( type ContractApiService service type ApiContractsGetRequest struct { - ctx _context.Context - ApiService *ContractApiService - pretty *bool - depth *int32 + ctx _context.Context + ApiService *ContractApiService + pretty *bool + depth *int32 xContractNumber *int32 } @@ -59,7 +59,7 @@ func (r ApiContractsGetRequest) Execute() (Contract, *APIResponse, error) { func (a *ContractApiService) ContractsGet(ctx _context.Context) ApiContractsGetRequest { return ApiContractsGetRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -135,11 +135,11 @@ func (a *ContractApiService) ContractsGetExecute(r ApiContractsGetRequest) (Cont localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "ContractsGet", + Operation: "ContractsGet", } if err != nil || localVarHTTPResponse == nil { @@ -158,13 +158,13 @@ func (a *ContractApiService) ContractsGetExecute(r ApiContractsGetRequest) (Cont body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/api_data_center.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/api_data_center.go index 67138e907e25..697be74db33a 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/api_data_center.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/api_data_center.go @@ -27,11 +27,11 @@ var ( type DataCenterApiService service type ApiDatacentersDeleteRequest struct { - ctx _context.Context - ApiService *DataCenterApiService - datacenterId string - pretty *bool - depth *int32 + ctx _context.Context + ApiService *DataCenterApiService + datacenterId string + pretty *bool + depth *int32 xContractNumber *int32 } @@ -61,8 +61,8 @@ func (r ApiDatacentersDeleteRequest) Execute() (map[string]interface{}, *APIResp */ func (a *DataCenterApiService) DatacentersDelete(ctx _context.Context, datacenterId string) ApiDatacentersDeleteRequest { return ApiDatacentersDeleteRequest{ - ApiService: a, - ctx: ctx, + ApiService: a, + ctx: ctx, datacenterId: datacenterId, } } @@ -140,11 +140,11 @@ func (a *DataCenterApiService) DatacentersDeleteExecute(r ApiDatacentersDeleteRe localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "DatacentersDelete", + Operation: "DatacentersDelete", } if err != nil || localVarHTTPResponse == nil { @@ -163,13 +163,13 @@ func (a *DataCenterApiService) DatacentersDeleteExecute(r ApiDatacentersDeleteRe body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -186,11 +186,11 @@ func (a *DataCenterApiService) DatacentersDeleteExecute(r ApiDatacentersDeleteRe } type ApiDatacentersFindByIdRequest struct { - ctx _context.Context - ApiService *DataCenterApiService - datacenterId string - pretty *bool - depth *int32 + ctx _context.Context + ApiService *DataCenterApiService + datacenterId string + pretty *bool + depth *int32 xContractNumber *int32 } @@ -220,8 +220,8 @@ func (r ApiDatacentersFindByIdRequest) Execute() (Datacenter, *APIResponse, erro */ func (a *DataCenterApiService) DatacentersFindById(ctx _context.Context, datacenterId string) ApiDatacentersFindByIdRequest { return ApiDatacentersFindByIdRequest{ - ApiService: a, - ctx: ctx, + ApiService: a, + ctx: ctx, datacenterId: datacenterId, } } @@ -299,11 +299,11 @@ func (a *DataCenterApiService) DatacentersFindByIdExecute(r ApiDatacentersFindBy localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "DatacentersFindById", + Operation: "DatacentersFindById", } if err != nil || localVarHTTPResponse == nil { @@ -322,13 +322,13 @@ func (a *DataCenterApiService) DatacentersFindByIdExecute(r ApiDatacentersFindBy body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -345,10 +345,10 @@ func (a *DataCenterApiService) DatacentersFindByIdExecute(r ApiDatacentersFindBy } type ApiDatacentersGetRequest struct { - ctx _context.Context - ApiService *DataCenterApiService - pretty *bool - depth *int32 + ctx _context.Context + ApiService *DataCenterApiService + pretty *bool + depth *int32 xContractNumber *int32 } @@ -378,7 +378,7 @@ func (r ApiDatacentersGetRequest) Execute() (Datacenters, *APIResponse, error) { func (a *DataCenterApiService) DatacentersGet(ctx _context.Context) ApiDatacentersGetRequest { return ApiDatacentersGetRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -454,11 +454,11 @@ func (a *DataCenterApiService) DatacentersGetExecute(r ApiDatacentersGetRequest) localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "DatacentersGet", + Operation: "DatacentersGet", } if err != nil || localVarHTTPResponse == nil { @@ -477,13 +477,13 @@ func (a *DataCenterApiService) DatacentersGetExecute(r ApiDatacentersGetRequest) body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -500,12 +500,12 @@ func (a *DataCenterApiService) DatacentersGetExecute(r ApiDatacentersGetRequest) } type ApiDatacentersPatchRequest struct { - ctx _context.Context - ApiService *DataCenterApiService - datacenterId string - datacenter *DatacenterProperties - pretty *bool - depth *int32 + ctx _context.Context + ApiService *DataCenterApiService + datacenterId string + datacenter *DatacenterProperties + pretty *bool + depth *int32 xContractNumber *int32 } @@ -539,8 +539,8 @@ func (r ApiDatacentersPatchRequest) Execute() (Datacenter, *APIResponse, error) */ func (a *DataCenterApiService) DatacentersPatch(ctx _context.Context, datacenterId string) ApiDatacentersPatchRequest { return ApiDatacentersPatchRequest{ - ApiService: a, - ctx: ctx, + ApiService: a, + ctx: ctx, datacenterId: datacenterId, } } @@ -623,11 +623,11 @@ func (a *DataCenterApiService) DatacentersPatchExecute(r ApiDatacentersPatchRequ localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "DatacentersPatch", + Operation: "DatacentersPatch", } if err != nil || localVarHTTPResponse == nil { @@ -646,13 +646,13 @@ func (a *DataCenterApiService) DatacentersPatchExecute(r ApiDatacentersPatchRequ body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -669,11 +669,11 @@ func (a *DataCenterApiService) DatacentersPatchExecute(r ApiDatacentersPatchRequ } type ApiDatacentersPostRequest struct { - ctx _context.Context - ApiService *DataCenterApiService - datacenter *Datacenter - pretty *bool - depth *int32 + ctx _context.Context + ApiService *DataCenterApiService + datacenter *Datacenter + pretty *bool + depth *int32 xContractNumber *int32 } @@ -707,7 +707,7 @@ func (r ApiDatacentersPostRequest) Execute() (Datacenter, *APIResponse, error) { func (a *DataCenterApiService) DatacentersPost(ctx _context.Context) ApiDatacentersPostRequest { return ApiDatacentersPostRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -788,11 +788,11 @@ func (a *DataCenterApiService) DatacentersPostExecute(r ApiDatacentersPostReques localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "DatacentersPost", + Operation: "DatacentersPost", } if err != nil || localVarHTTPResponse == nil { @@ -811,13 +811,13 @@ func (a *DataCenterApiService) DatacentersPostExecute(r ApiDatacentersPostReques body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -834,12 +834,12 @@ func (a *DataCenterApiService) DatacentersPostExecute(r ApiDatacentersPostReques } type ApiDatacentersPutRequest struct { - ctx _context.Context - ApiService *DataCenterApiService - datacenterId string - datacenter *Datacenter - pretty *bool - depth *int32 + ctx _context.Context + ApiService *DataCenterApiService + datacenterId string + datacenter *Datacenter + pretty *bool + depth *int32 xContractNumber *int32 } @@ -873,8 +873,8 @@ func (r ApiDatacentersPutRequest) Execute() (Datacenter, *APIResponse, error) { */ func (a *DataCenterApiService) DatacentersPut(ctx _context.Context, datacenterId string) ApiDatacentersPutRequest { return ApiDatacentersPutRequest{ - ApiService: a, - ctx: ctx, + ApiService: a, + ctx: ctx, datacenterId: datacenterId, } } @@ -957,11 +957,11 @@ func (a *DataCenterApiService) DatacentersPutExecute(r ApiDatacentersPutRequest) localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "DatacentersPut", + Operation: "DatacentersPut", } if err != nil || localVarHTTPResponse == nil { @@ -980,13 +980,13 @@ func (a *DataCenterApiService) DatacentersPutExecute(r ApiDatacentersPutRequest) body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/api_image.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/api_image.go index 48d6def5d090..c219838b0e79 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/api_image.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/api_image.go @@ -27,11 +27,11 @@ var ( type ImageApiService service type ApiImagesDeleteRequest struct { - ctx _context.Context - ApiService *ImageApiService - imageId string - pretty *bool - depth *int32 + ctx _context.Context + ApiService *ImageApiService + imageId string + pretty *bool + depth *int32 xContractNumber *int32 } @@ -62,8 +62,8 @@ func (r ApiImagesDeleteRequest) Execute() (map[string]interface{}, *APIResponse, func (a *ImageApiService) ImagesDelete(ctx _context.Context, imageId string) ApiImagesDeleteRequest { return ApiImagesDeleteRequest{ ApiService: a, - ctx: ctx, - imageId: imageId, + ctx: ctx, + imageId: imageId, } } @@ -140,11 +140,11 @@ func (a *ImageApiService) ImagesDeleteExecute(r ApiImagesDeleteRequest) (map[str localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "ImagesDelete", + Operation: "ImagesDelete", } if err != nil || localVarHTTPResponse == nil { @@ -163,13 +163,13 @@ func (a *ImageApiService) ImagesDeleteExecute(r ApiImagesDeleteRequest) (map[str body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -186,11 +186,11 @@ func (a *ImageApiService) ImagesDeleteExecute(r ApiImagesDeleteRequest) (map[str } type ApiImagesFindByIdRequest struct { - ctx _context.Context - ApiService *ImageApiService - imageId string - pretty *bool - depth *int32 + ctx _context.Context + ApiService *ImageApiService + imageId string + pretty *bool + depth *int32 xContractNumber *int32 } @@ -221,8 +221,8 @@ func (r ApiImagesFindByIdRequest) Execute() (Image, *APIResponse, error) { func (a *ImageApiService) ImagesFindById(ctx _context.Context, imageId string) ApiImagesFindByIdRequest { return ApiImagesFindByIdRequest{ ApiService: a, - ctx: ctx, - imageId: imageId, + ctx: ctx, + imageId: imageId, } } @@ -299,11 +299,11 @@ func (a *ImageApiService) ImagesFindByIdExecute(r ApiImagesFindByIdRequest) (Ima localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "ImagesFindById", + Operation: "ImagesFindById", } if err != nil || localVarHTTPResponse == nil { @@ -322,13 +322,13 @@ func (a *ImageApiService) ImagesFindByIdExecute(r ApiImagesFindByIdRequest) (Ima body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -345,10 +345,10 @@ func (a *ImageApiService) ImagesFindByIdExecute(r ApiImagesFindByIdRequest) (Ima } type ApiImagesGetRequest struct { - ctx _context.Context - ApiService *ImageApiService - pretty *bool - depth *int32 + ctx _context.Context + ApiService *ImageApiService + pretty *bool + depth *int32 xContractNumber *int32 } @@ -370,7 +370,7 @@ func (r ApiImagesGetRequest) Execute() (Images, *APIResponse, error) { } /* - * ImagesGet List Images + * ImagesGet List Images * Retrieve a list of images within the datacenter * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @return ApiImagesGetRequest @@ -378,7 +378,7 @@ func (r ApiImagesGetRequest) Execute() (Images, *APIResponse, error) { func (a *ImageApiService) ImagesGet(ctx _context.Context) ApiImagesGetRequest { return ApiImagesGetRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -454,11 +454,11 @@ func (a *ImageApiService) ImagesGetExecute(r ApiImagesGetRequest) (Images, *APIR localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "ImagesGet", + Operation: "ImagesGet", } if err != nil || localVarHTTPResponse == nil { @@ -477,13 +477,13 @@ func (a *ImageApiService) ImagesGetExecute(r ApiImagesGetRequest) (Images, *APIR body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -500,12 +500,12 @@ func (a *ImageApiService) ImagesGetExecute(r ApiImagesGetRequest) (Images, *APIR } type ApiImagesPatchRequest struct { - ctx _context.Context - ApiService *ImageApiService - imageId string - image *ImageProperties - pretty *bool - depth *int32 + ctx _context.Context + ApiService *ImageApiService + imageId string + image *ImageProperties + pretty *bool + depth *int32 xContractNumber *int32 } @@ -540,8 +540,8 @@ func (r ApiImagesPatchRequest) Execute() (Image, *APIResponse, error) { func (a *ImageApiService) ImagesPatch(ctx _context.Context, imageId string) ApiImagesPatchRequest { return ApiImagesPatchRequest{ ApiService: a, - ctx: ctx, - imageId: imageId, + ctx: ctx, + imageId: imageId, } } @@ -623,11 +623,11 @@ func (a *ImageApiService) ImagesPatchExecute(r ApiImagesPatchRequest) (Image, *A localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "ImagesPatch", + Operation: "ImagesPatch", } if err != nil || localVarHTTPResponse == nil { @@ -646,13 +646,13 @@ func (a *ImageApiService) ImagesPatchExecute(r ApiImagesPatchRequest) (Image, *A body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -669,12 +669,12 @@ func (a *ImageApiService) ImagesPatchExecute(r ApiImagesPatchRequest) (Image, *A } type ApiImagesPutRequest struct { - ctx _context.Context - ApiService *ImageApiService - imageId string - image *Image - pretty *bool - depth *int32 + ctx _context.Context + ApiService *ImageApiService + imageId string + image *Image + pretty *bool + depth *int32 xContractNumber *int32 } @@ -709,8 +709,8 @@ func (r ApiImagesPutRequest) Execute() (Image, *APIResponse, error) { func (a *ImageApiService) ImagesPut(ctx _context.Context, imageId string) ApiImagesPutRequest { return ApiImagesPutRequest{ ApiService: a, - ctx: ctx, - imageId: imageId, + ctx: ctx, + imageId: imageId, } } @@ -792,11 +792,11 @@ func (a *ImageApiService) ImagesPutExecute(r ApiImagesPutRequest) (Image, *APIRe localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "ImagesPut", + Operation: "ImagesPut", } if err != nil || localVarHTTPResponse == nil { @@ -815,13 +815,13 @@ func (a *ImageApiService) ImagesPutExecute(r ApiImagesPutRequest) (Image, *APIRe body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/api_ip_blocks.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/api_ip_blocks.go index 74b49c832541..94303b371a8f 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/api_ip_blocks.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/api_ip_blocks.go @@ -27,11 +27,11 @@ var ( type IPBlocksApiService service type ApiIpblocksDeleteRequest struct { - ctx _context.Context - ApiService *IPBlocksApiService - ipblockId string - pretty *bool - depth *int32 + ctx _context.Context + ApiService *IPBlocksApiService + ipblockId string + pretty *bool + depth *int32 xContractNumber *int32 } @@ -62,8 +62,8 @@ func (r ApiIpblocksDeleteRequest) Execute() (map[string]interface{}, *APIRespons func (a *IPBlocksApiService) IpblocksDelete(ctx _context.Context, ipblockId string) ApiIpblocksDeleteRequest { return ApiIpblocksDeleteRequest{ ApiService: a, - ctx: ctx, - ipblockId: ipblockId, + ctx: ctx, + ipblockId: ipblockId, } } @@ -140,11 +140,11 @@ func (a *IPBlocksApiService) IpblocksDeleteExecute(r ApiIpblocksDeleteRequest) ( localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "IpblocksDelete", + Operation: "IpblocksDelete", } if err != nil || localVarHTTPResponse == nil { @@ -163,13 +163,13 @@ func (a *IPBlocksApiService) IpblocksDeleteExecute(r ApiIpblocksDeleteRequest) ( body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -186,11 +186,11 @@ func (a *IPBlocksApiService) IpblocksDeleteExecute(r ApiIpblocksDeleteRequest) ( } type ApiIpblocksFindByIdRequest struct { - ctx _context.Context - ApiService *IPBlocksApiService - ipblockId string - pretty *bool - depth *int32 + ctx _context.Context + ApiService *IPBlocksApiService + ipblockId string + pretty *bool + depth *int32 xContractNumber *int32 } @@ -221,8 +221,8 @@ func (r ApiIpblocksFindByIdRequest) Execute() (IpBlock, *APIResponse, error) { func (a *IPBlocksApiService) IpblocksFindById(ctx _context.Context, ipblockId string) ApiIpblocksFindByIdRequest { return ApiIpblocksFindByIdRequest{ ApiService: a, - ctx: ctx, - ipblockId: ipblockId, + ctx: ctx, + ipblockId: ipblockId, } } @@ -299,11 +299,11 @@ func (a *IPBlocksApiService) IpblocksFindByIdExecute(r ApiIpblocksFindByIdReques localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "IpblocksFindById", + Operation: "IpblocksFindById", } if err != nil || localVarHTTPResponse == nil { @@ -322,13 +322,13 @@ func (a *IPBlocksApiService) IpblocksFindByIdExecute(r ApiIpblocksFindByIdReques body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -345,10 +345,10 @@ func (a *IPBlocksApiService) IpblocksFindByIdExecute(r ApiIpblocksFindByIdReques } type ApiIpblocksGetRequest struct { - ctx _context.Context - ApiService *IPBlocksApiService - pretty *bool - depth *int32 + ctx _context.Context + ApiService *IPBlocksApiService + pretty *bool + depth *int32 xContractNumber *int32 } @@ -370,7 +370,7 @@ func (r ApiIpblocksGetRequest) Execute() (IpBlocks, *APIResponse, error) { } /* - * IpblocksGet List IP Blocks + * IpblocksGet List IP Blocks * Retrieve a list of all reserved IP Blocks * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @return ApiIpblocksGetRequest @@ -378,7 +378,7 @@ func (r ApiIpblocksGetRequest) Execute() (IpBlocks, *APIResponse, error) { func (a *IPBlocksApiService) IpblocksGet(ctx _context.Context) ApiIpblocksGetRequest { return ApiIpblocksGetRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -454,11 +454,11 @@ func (a *IPBlocksApiService) IpblocksGetExecute(r ApiIpblocksGetRequest) (IpBloc localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "IpblocksGet", + Operation: "IpblocksGet", } if err != nil || localVarHTTPResponse == nil { @@ -477,13 +477,13 @@ func (a *IPBlocksApiService) IpblocksGetExecute(r ApiIpblocksGetRequest) (IpBloc body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -500,12 +500,12 @@ func (a *IPBlocksApiService) IpblocksGetExecute(r ApiIpblocksGetRequest) (IpBloc } type ApiIpblocksPatchRequest struct { - ctx _context.Context - ApiService *IPBlocksApiService - ipblockId string - ipblock *IpBlockProperties - pretty *bool - depth *int32 + ctx _context.Context + ApiService *IPBlocksApiService + ipblockId string + ipblock *IpBlockProperties + pretty *bool + depth *int32 xContractNumber *int32 } @@ -540,8 +540,8 @@ func (r ApiIpblocksPatchRequest) Execute() (IpBlock, *APIResponse, error) { func (a *IPBlocksApiService) IpblocksPatch(ctx _context.Context, ipblockId string) ApiIpblocksPatchRequest { return ApiIpblocksPatchRequest{ ApiService: a, - ctx: ctx, - ipblockId: ipblockId, + ctx: ctx, + ipblockId: ipblockId, } } @@ -623,11 +623,11 @@ func (a *IPBlocksApiService) IpblocksPatchExecute(r ApiIpblocksPatchRequest) (Ip localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "IpblocksPatch", + Operation: "IpblocksPatch", } if err != nil || localVarHTTPResponse == nil { @@ -646,13 +646,13 @@ func (a *IPBlocksApiService) IpblocksPatchExecute(r ApiIpblocksPatchRequest) (Ip body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -669,11 +669,11 @@ func (a *IPBlocksApiService) IpblocksPatchExecute(r ApiIpblocksPatchRequest) (Ip } type ApiIpblocksPostRequest struct { - ctx _context.Context - ApiService *IPBlocksApiService - ipblock *IpBlock - pretty *bool - depth *int32 + ctx _context.Context + ApiService *IPBlocksApiService + ipblock *IpBlock + pretty *bool + depth *int32 xContractNumber *int32 } @@ -707,7 +707,7 @@ func (r ApiIpblocksPostRequest) Execute() (IpBlock, *APIResponse, error) { func (a *IPBlocksApiService) IpblocksPost(ctx _context.Context) ApiIpblocksPostRequest { return ApiIpblocksPostRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -788,11 +788,11 @@ func (a *IPBlocksApiService) IpblocksPostExecute(r ApiIpblocksPostRequest) (IpBl localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "IpblocksPost", + Operation: "IpblocksPost", } if err != nil || localVarHTTPResponse == nil { @@ -811,13 +811,13 @@ func (a *IPBlocksApiService) IpblocksPostExecute(r ApiIpblocksPostRequest) (IpBl body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -834,12 +834,12 @@ func (a *IPBlocksApiService) IpblocksPostExecute(r ApiIpblocksPostRequest) (IpBl } type ApiIpblocksPutRequest struct { - ctx _context.Context - ApiService *IPBlocksApiService - ipblockId string - ipblock *IpBlock - pretty *bool - depth *int32 + ctx _context.Context + ApiService *IPBlocksApiService + ipblockId string + ipblock *IpBlock + pretty *bool + depth *int32 xContractNumber *int32 } @@ -874,8 +874,8 @@ func (r ApiIpblocksPutRequest) Execute() (IpBlock, *APIResponse, error) { func (a *IPBlocksApiService) IpblocksPut(ctx _context.Context, ipblockId string) ApiIpblocksPutRequest { return ApiIpblocksPutRequest{ ApiService: a, - ctx: ctx, - ipblockId: ipblockId, + ctx: ctx, + ipblockId: ipblockId, } } @@ -957,11 +957,11 @@ func (a *IPBlocksApiService) IpblocksPutExecute(r ApiIpblocksPutRequest) (IpBloc localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "IpblocksPut", + Operation: "IpblocksPut", } if err != nil || localVarHTTPResponse == nil { @@ -980,13 +980,13 @@ func (a *IPBlocksApiService) IpblocksPutExecute(r ApiIpblocksPutRequest) (IpBloc body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/api_kubernetes.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/api_kubernetes.go index 374ad9dd0df2..82e932f00f3a 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/api_kubernetes.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/api_kubernetes.go @@ -27,11 +27,11 @@ var ( type KubernetesApiService service type ApiK8sDeleteRequest struct { - ctx _context.Context - ApiService *KubernetesApiService - k8sClusterId string - pretty *bool - depth *int32 + ctx _context.Context + ApiService *KubernetesApiService + k8sClusterId string + pretty *bool + depth *int32 xContractNumber *int32 } @@ -61,8 +61,8 @@ func (r ApiK8sDeleteRequest) Execute() (map[string]interface{}, *APIResponse, er */ func (a *KubernetesApiService) K8sDelete(ctx _context.Context, k8sClusterId string) ApiK8sDeleteRequest { return ApiK8sDeleteRequest{ - ApiService: a, - ctx: ctx, + ApiService: a, + ctx: ctx, k8sClusterId: k8sClusterId, } } @@ -140,11 +140,11 @@ func (a *KubernetesApiService) K8sDeleteExecute(r ApiK8sDeleteRequest) (map[stri localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "K8sDelete", + Operation: "K8sDelete", } if err != nil || localVarHTTPResponse == nil { @@ -163,13 +163,13 @@ func (a *KubernetesApiService) K8sDeleteExecute(r ApiK8sDeleteRequest) (map[stri body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -186,11 +186,11 @@ func (a *KubernetesApiService) K8sDeleteExecute(r ApiK8sDeleteRequest) (map[stri } type ApiK8sFindByClusteridRequest struct { - ctx _context.Context - ApiService *KubernetesApiService - k8sClusterId string - pretty *bool - depth *int32 + ctx _context.Context + ApiService *KubernetesApiService + k8sClusterId string + pretty *bool + depth *int32 xContractNumber *int32 } @@ -220,8 +220,8 @@ func (r ApiK8sFindByClusteridRequest) Execute() (KubernetesCluster, *APIResponse */ func (a *KubernetesApiService) K8sFindByClusterid(ctx _context.Context, k8sClusterId string) ApiK8sFindByClusteridRequest { return ApiK8sFindByClusteridRequest{ - ApiService: a, - ctx: ctx, + ApiService: a, + ctx: ctx, k8sClusterId: k8sClusterId, } } @@ -299,11 +299,11 @@ func (a *KubernetesApiService) K8sFindByClusteridExecute(r ApiK8sFindByClusterid localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "K8sFindByClusterid", + Operation: "K8sFindByClusterid", } if err != nil || localVarHTTPResponse == nil { @@ -322,13 +322,13 @@ func (a *KubernetesApiService) K8sFindByClusteridExecute(r ApiK8sFindByClusterid body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -345,10 +345,10 @@ func (a *KubernetesApiService) K8sFindByClusteridExecute(r ApiK8sFindByClusterid } type ApiK8sGetRequest struct { - ctx _context.Context - ApiService *KubernetesApiService - pretty *bool - depth *int32 + ctx _context.Context + ApiService *KubernetesApiService + pretty *bool + depth *int32 xContractNumber *int32 } @@ -378,7 +378,7 @@ func (r ApiK8sGetRequest) Execute() (KubernetesClusters, *APIResponse, error) { func (a *KubernetesApiService) K8sGet(ctx _context.Context) ApiK8sGetRequest { return ApiK8sGetRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -454,11 +454,11 @@ func (a *KubernetesApiService) K8sGetExecute(r ApiK8sGetRequest) (KubernetesClus localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "K8sGet", + Operation: "K8sGet", } if err != nil || localVarHTTPResponse == nil { @@ -477,13 +477,13 @@ func (a *KubernetesApiService) K8sGetExecute(r ApiK8sGetRequest) (KubernetesClus body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -500,11 +500,11 @@ func (a *KubernetesApiService) K8sGetExecute(r ApiK8sGetRequest) (KubernetesClus } type ApiK8sKubeconfigGetRequest struct { - ctx _context.Context - ApiService *KubernetesApiService - k8sClusterId string - pretty *bool - depth *int32 + ctx _context.Context + ApiService *KubernetesApiService + k8sClusterId string + pretty *bool + depth *int32 xContractNumber *int32 } @@ -534,8 +534,8 @@ func (r ApiK8sKubeconfigGetRequest) Execute() (KubernetesConfig, *APIResponse, e */ func (a *KubernetesApiService) K8sKubeconfigGet(ctx _context.Context, k8sClusterId string) ApiK8sKubeconfigGetRequest { return ApiK8sKubeconfigGetRequest{ - ApiService: a, - ctx: ctx, + ApiService: a, + ctx: ctx, k8sClusterId: k8sClusterId, } } @@ -613,11 +613,11 @@ func (a *KubernetesApiService) K8sKubeconfigGetExecute(r ApiK8sKubeconfigGetRequ localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "K8sKubeconfigGet", + Operation: "K8sKubeconfigGet", } if err != nil || localVarHTTPResponse == nil { @@ -636,13 +636,13 @@ func (a *KubernetesApiService) K8sKubeconfigGetExecute(r ApiK8sKubeconfigGetRequ body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -659,12 +659,12 @@ func (a *KubernetesApiService) K8sKubeconfigGetExecute(r ApiK8sKubeconfigGetRequ } type ApiK8sNodepoolsDeleteRequest struct { - ctx _context.Context - ApiService *KubernetesApiService - k8sClusterId string - nodepoolId string - pretty *bool - depth *int32 + ctx _context.Context + ApiService *KubernetesApiService + k8sClusterId string + nodepoolId string + pretty *bool + depth *int32 xContractNumber *int32 } @@ -695,10 +695,10 @@ func (r ApiK8sNodepoolsDeleteRequest) Execute() (map[string]interface{}, *APIRes */ func (a *KubernetesApiService) K8sNodepoolsDelete(ctx _context.Context, k8sClusterId string, nodepoolId string) ApiK8sNodepoolsDeleteRequest { return ApiK8sNodepoolsDeleteRequest{ - ApiService: a, - ctx: ctx, + ApiService: a, + ctx: ctx, k8sClusterId: k8sClusterId, - nodepoolId: nodepoolId, + nodepoolId: nodepoolId, } } @@ -776,11 +776,11 @@ func (a *KubernetesApiService) K8sNodepoolsDeleteExecute(r ApiK8sNodepoolsDelete localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "K8sNodepoolsDelete", + Operation: "K8sNodepoolsDelete", } if err != nil || localVarHTTPResponse == nil { @@ -799,13 +799,13 @@ func (a *KubernetesApiService) K8sNodepoolsDeleteExecute(r ApiK8sNodepoolsDelete body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -822,12 +822,12 @@ func (a *KubernetesApiService) K8sNodepoolsDeleteExecute(r ApiK8sNodepoolsDelete } type ApiK8sNodepoolsFindByIdRequest struct { - ctx _context.Context - ApiService *KubernetesApiService - k8sClusterId string - nodepoolId string - pretty *bool - depth *int32 + ctx _context.Context + ApiService *KubernetesApiService + k8sClusterId string + nodepoolId string + pretty *bool + depth *int32 xContractNumber *int32 } @@ -858,10 +858,10 @@ func (r ApiK8sNodepoolsFindByIdRequest) Execute() (KubernetesNodePool, *APIRespo */ func (a *KubernetesApiService) K8sNodepoolsFindById(ctx _context.Context, k8sClusterId string, nodepoolId string) ApiK8sNodepoolsFindByIdRequest { return ApiK8sNodepoolsFindByIdRequest{ - ApiService: a, - ctx: ctx, + ApiService: a, + ctx: ctx, k8sClusterId: k8sClusterId, - nodepoolId: nodepoolId, + nodepoolId: nodepoolId, } } @@ -939,11 +939,11 @@ func (a *KubernetesApiService) K8sNodepoolsFindByIdExecute(r ApiK8sNodepoolsFind localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "K8sNodepoolsFindById", + Operation: "K8sNodepoolsFindById", } if err != nil || localVarHTTPResponse == nil { @@ -962,13 +962,13 @@ func (a *KubernetesApiService) K8sNodepoolsFindByIdExecute(r ApiK8sNodepoolsFind body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -985,11 +985,11 @@ func (a *KubernetesApiService) K8sNodepoolsFindByIdExecute(r ApiK8sNodepoolsFind } type ApiK8sNodepoolsGetRequest struct { - ctx _context.Context - ApiService *KubernetesApiService - k8sClusterId string - pretty *bool - depth *int32 + ctx _context.Context + ApiService *KubernetesApiService + k8sClusterId string + pretty *bool + depth *int32 xContractNumber *int32 } @@ -1019,8 +1019,8 @@ func (r ApiK8sNodepoolsGetRequest) Execute() (KubernetesNodePools, *APIResponse, */ func (a *KubernetesApiService) K8sNodepoolsGet(ctx _context.Context, k8sClusterId string) ApiK8sNodepoolsGetRequest { return ApiK8sNodepoolsGetRequest{ - ApiService: a, - ctx: ctx, + ApiService: a, + ctx: ctx, k8sClusterId: k8sClusterId, } } @@ -1098,11 +1098,11 @@ func (a *KubernetesApiService) K8sNodepoolsGetExecute(r ApiK8sNodepoolsGetReques localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "K8sNodepoolsGet", + Operation: "K8sNodepoolsGet", } if err != nil || localVarHTTPResponse == nil { @@ -1121,13 +1121,13 @@ func (a *KubernetesApiService) K8sNodepoolsGetExecute(r ApiK8sNodepoolsGetReques body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -1144,13 +1144,13 @@ func (a *KubernetesApiService) K8sNodepoolsGetExecute(r ApiK8sNodepoolsGetReques } type ApiK8sNodepoolsNodesDeleteRequest struct { - ctx _context.Context - ApiService *KubernetesApiService - k8sClusterId string - nodepoolId string - nodeId string - pretty *bool - depth *int32 + ctx _context.Context + ApiService *KubernetesApiService + k8sClusterId string + nodepoolId string + nodeId string + pretty *bool + depth *int32 xContractNumber *int32 } @@ -1182,11 +1182,11 @@ func (r ApiK8sNodepoolsNodesDeleteRequest) Execute() (map[string]interface{}, *A */ func (a *KubernetesApiService) K8sNodepoolsNodesDelete(ctx _context.Context, k8sClusterId string, nodepoolId string, nodeId string) ApiK8sNodepoolsNodesDeleteRequest { return ApiK8sNodepoolsNodesDeleteRequest{ - ApiService: a, - ctx: ctx, + ApiService: a, + ctx: ctx, k8sClusterId: k8sClusterId, - nodepoolId: nodepoolId, - nodeId: nodeId, + nodepoolId: nodepoolId, + nodeId: nodeId, } } @@ -1265,11 +1265,11 @@ func (a *KubernetesApiService) K8sNodepoolsNodesDeleteExecute(r ApiK8sNodepoolsN localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "K8sNodepoolsNodesDelete", + Operation: "K8sNodepoolsNodesDelete", } if err != nil || localVarHTTPResponse == nil { @@ -1288,13 +1288,13 @@ func (a *KubernetesApiService) K8sNodepoolsNodesDeleteExecute(r ApiK8sNodepoolsN body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -1311,13 +1311,13 @@ func (a *KubernetesApiService) K8sNodepoolsNodesDeleteExecute(r ApiK8sNodepoolsN } type ApiK8sNodepoolsNodesFindByIdRequest struct { - ctx _context.Context - ApiService *KubernetesApiService - k8sClusterId string - nodepoolId string - nodeId string - pretty *bool - depth *int32 + ctx _context.Context + ApiService *KubernetesApiService + k8sClusterId string + nodepoolId string + nodeId string + pretty *bool + depth *int32 xContractNumber *int32 } @@ -1349,11 +1349,11 @@ func (r ApiK8sNodepoolsNodesFindByIdRequest) Execute() (KubernetesNode, *APIResp */ func (a *KubernetesApiService) K8sNodepoolsNodesFindById(ctx _context.Context, k8sClusterId string, nodepoolId string, nodeId string) ApiK8sNodepoolsNodesFindByIdRequest { return ApiK8sNodepoolsNodesFindByIdRequest{ - ApiService: a, - ctx: ctx, + ApiService: a, + ctx: ctx, k8sClusterId: k8sClusterId, - nodepoolId: nodepoolId, - nodeId: nodeId, + nodepoolId: nodepoolId, + nodeId: nodeId, } } @@ -1432,11 +1432,11 @@ func (a *KubernetesApiService) K8sNodepoolsNodesFindByIdExecute(r ApiK8sNodepool localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "K8sNodepoolsNodesFindById", + Operation: "K8sNodepoolsNodesFindById", } if err != nil || localVarHTTPResponse == nil { @@ -1455,13 +1455,13 @@ func (a *KubernetesApiService) K8sNodepoolsNodesFindByIdExecute(r ApiK8sNodepool body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -1478,12 +1478,12 @@ func (a *KubernetesApiService) K8sNodepoolsNodesFindByIdExecute(r ApiK8sNodepool } type ApiK8sNodepoolsNodesGetRequest struct { - ctx _context.Context - ApiService *KubernetesApiService - k8sClusterId string - nodepoolId string - pretty *bool - depth *int32 + ctx _context.Context + ApiService *KubernetesApiService + k8sClusterId string + nodepoolId string + pretty *bool + depth *int32 xContractNumber *int32 } @@ -1514,10 +1514,10 @@ func (r ApiK8sNodepoolsNodesGetRequest) Execute() (KubernetesNodes, *APIResponse */ func (a *KubernetesApiService) K8sNodepoolsNodesGet(ctx _context.Context, k8sClusterId string, nodepoolId string) ApiK8sNodepoolsNodesGetRequest { return ApiK8sNodepoolsNodesGetRequest{ - ApiService: a, - ctx: ctx, + ApiService: a, + ctx: ctx, k8sClusterId: k8sClusterId, - nodepoolId: nodepoolId, + nodepoolId: nodepoolId, } } @@ -1595,11 +1595,11 @@ func (a *KubernetesApiService) K8sNodepoolsNodesGetExecute(r ApiK8sNodepoolsNode localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "K8sNodepoolsNodesGet", + Operation: "K8sNodepoolsNodesGet", } if err != nil || localVarHTTPResponse == nil { @@ -1618,13 +1618,13 @@ func (a *KubernetesApiService) K8sNodepoolsNodesGetExecute(r ApiK8sNodepoolsNode body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -1641,13 +1641,13 @@ func (a *KubernetesApiService) K8sNodepoolsNodesGetExecute(r ApiK8sNodepoolsNode } type ApiK8sNodepoolsNodesReplacePostRequest struct { - ctx _context.Context - ApiService *KubernetesApiService - k8sClusterId string - nodepoolId string - nodeId string - pretty *bool - depth *int32 + ctx _context.Context + ApiService *KubernetesApiService + k8sClusterId string + nodepoolId string + nodeId string + pretty *bool + depth *int32 xContractNumber *int32 } @@ -1678,14 +1678,14 @@ Managed Kubernetes starts a process which based on the nodepool's template creat * @param nodepoolId The unique ID of the Kubernetes Node Pool * @param nodeId The unique ID of the Kubernetes Node. * @return ApiK8sNodepoolsNodesReplacePostRequest - */ +*/ func (a *KubernetesApiService) K8sNodepoolsNodesReplacePost(ctx _context.Context, k8sClusterId string, nodepoolId string, nodeId string) ApiK8sNodepoolsNodesReplacePostRequest { return ApiK8sNodepoolsNodesReplacePostRequest{ - ApiService: a, - ctx: ctx, + ApiService: a, + ctx: ctx, k8sClusterId: k8sClusterId, - nodepoolId: nodepoolId, - nodeId: nodeId, + nodepoolId: nodepoolId, + nodeId: nodeId, } } @@ -1764,11 +1764,11 @@ func (a *KubernetesApiService) K8sNodepoolsNodesReplacePostExecute(r ApiK8sNodep localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "K8sNodepoolsNodesReplacePost", + Operation: "K8sNodepoolsNodesReplacePost", } if err != nil || localVarHTTPResponse == nil { @@ -1787,13 +1787,13 @@ func (a *KubernetesApiService) K8sNodepoolsNodesReplacePostExecute(r ApiK8sNodep body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -1810,13 +1810,13 @@ func (a *KubernetesApiService) K8sNodepoolsNodesReplacePostExecute(r ApiK8sNodep } type ApiK8sNodepoolsPostRequest struct { - ctx _context.Context - ApiService *KubernetesApiService - k8sClusterId string + ctx _context.Context + ApiService *KubernetesApiService + k8sClusterId string kubernetesNodePool *KubernetesNodePool - pretty *bool - depth *int32 - xContractNumber *int32 + pretty *bool + depth *int32 + xContractNumber *int32 } func (r ApiK8sNodepoolsPostRequest) KubernetesNodePool(kubernetesNodePool KubernetesNodePool) ApiK8sNodepoolsPostRequest { @@ -1849,8 +1849,8 @@ func (r ApiK8sNodepoolsPostRequest) Execute() (KubernetesNodePool, *APIResponse, */ func (a *KubernetesApiService) K8sNodepoolsPost(ctx _context.Context, k8sClusterId string) ApiK8sNodepoolsPostRequest { return ApiK8sNodepoolsPostRequest{ - ApiService: a, - ctx: ctx, + ApiService: a, + ctx: ctx, k8sClusterId: k8sClusterId, } } @@ -1933,11 +1933,11 @@ func (a *KubernetesApiService) K8sNodepoolsPostExecute(r ApiK8sNodepoolsPostRequ localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "K8sNodepoolsPost", + Operation: "K8sNodepoolsPost", } if err != nil || localVarHTTPResponse == nil { @@ -1956,13 +1956,13 @@ func (a *KubernetesApiService) K8sNodepoolsPostExecute(r ApiK8sNodepoolsPostRequ body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -1979,14 +1979,14 @@ func (a *KubernetesApiService) K8sNodepoolsPostExecute(r ApiK8sNodepoolsPostRequ } type ApiK8sNodepoolsPutRequest struct { - ctx _context.Context - ApiService *KubernetesApiService - k8sClusterId string - nodepoolId string + ctx _context.Context + ApiService *KubernetesApiService + k8sClusterId string + nodepoolId string kubernetesNodePoolProperties *KubernetesNodePoolPropertiesForPut - pretty *bool - depth *int32 - xContractNumber *int32 + pretty *bool + depth *int32 + xContractNumber *int32 } func (r ApiK8sNodepoolsPutRequest) KubernetesNodePoolProperties(kubernetesNodePoolProperties KubernetesNodePoolPropertiesForPut) ApiK8sNodepoolsPutRequest { @@ -2020,10 +2020,10 @@ func (r ApiK8sNodepoolsPutRequest) Execute() (KubernetesNodePoolForPut, *APIResp */ func (a *KubernetesApiService) K8sNodepoolsPut(ctx _context.Context, k8sClusterId string, nodepoolId string) ApiK8sNodepoolsPutRequest { return ApiK8sNodepoolsPutRequest{ - ApiService: a, - ctx: ctx, + ApiService: a, + ctx: ctx, k8sClusterId: k8sClusterId, - nodepoolId: nodepoolId, + nodepoolId: nodepoolId, } } @@ -2106,11 +2106,11 @@ func (a *KubernetesApiService) K8sNodepoolsPutExecute(r ApiK8sNodepoolsPutReques localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "K8sNodepoolsPut", + Operation: "K8sNodepoolsPut", } if err != nil || localVarHTTPResponse == nil { @@ -2129,13 +2129,13 @@ func (a *KubernetesApiService) K8sNodepoolsPutExecute(r ApiK8sNodepoolsPutReques body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -2152,12 +2152,12 @@ func (a *KubernetesApiService) K8sNodepoolsPutExecute(r ApiK8sNodepoolsPutReques } type ApiK8sPostRequest struct { - ctx _context.Context - ApiService *KubernetesApiService + ctx _context.Context + ApiService *KubernetesApiService kubernetesCluster *KubernetesCluster - pretty *bool - depth *int32 - xContractNumber *int32 + pretty *bool + depth *int32 + xContractNumber *int32 } func (r ApiK8sPostRequest) KubernetesCluster(kubernetesCluster KubernetesCluster) ApiK8sPostRequest { @@ -2190,7 +2190,7 @@ func (r ApiK8sPostRequest) Execute() (KubernetesCluster, *APIResponse, error) { func (a *KubernetesApiService) K8sPost(ctx _context.Context) ApiK8sPostRequest { return ApiK8sPostRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -2271,11 +2271,11 @@ func (a *KubernetesApiService) K8sPostExecute(r ApiK8sPostRequest) (KubernetesCl localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "K8sPost", + Operation: "K8sPost", } if err != nil || localVarHTTPResponse == nil { @@ -2294,13 +2294,13 @@ func (a *KubernetesApiService) K8sPostExecute(r ApiK8sPostRequest) (KubernetesCl body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -2317,13 +2317,13 @@ func (a *KubernetesApiService) K8sPostExecute(r ApiK8sPostRequest) (KubernetesCl } type ApiK8sPutRequest struct { - ctx _context.Context - ApiService *KubernetesApiService - k8sClusterId string + ctx _context.Context + ApiService *KubernetesApiService + k8sClusterId string kubernetescluster *KubernetesCluster - pretty *bool - depth *int32 - xContractNumber *int32 + pretty *bool + depth *int32 + xContractNumber *int32 } func (r ApiK8sPutRequest) Kubernetescluster(kubernetescluster KubernetesCluster) ApiK8sPutRequest { @@ -2356,8 +2356,8 @@ func (r ApiK8sPutRequest) Execute() (KubernetesCluster, *APIResponse, error) { */ func (a *KubernetesApiService) K8sPut(ctx _context.Context, k8sClusterId string) ApiK8sPutRequest { return ApiK8sPutRequest{ - ApiService: a, - ctx: ctx, + ApiService: a, + ctx: ctx, k8sClusterId: k8sClusterId, } } @@ -2440,11 +2440,11 @@ func (a *KubernetesApiService) K8sPutExecute(r ApiK8sPutRequest) (KubernetesClus localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "K8sPut", + Operation: "K8sPut", } if err != nil || localVarHTTPResponse == nil { @@ -2463,13 +2463,13 @@ func (a *KubernetesApiService) K8sPutExecute(r ApiK8sPutRequest) (KubernetesClus body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -2486,12 +2486,11 @@ func (a *KubernetesApiService) K8sPutExecute(r ApiK8sPutRequest) (KubernetesClus } type ApiK8sVersionsCompatibilitiesGetRequest struct { - ctx _context.Context - ApiService *KubernetesApiService + ctx _context.Context + ApiService *KubernetesApiService clusterVersion string } - func (r ApiK8sVersionsCompatibilitiesGetRequest) Execute() ([]string, *APIResponse, error) { return r.ApiService.K8sVersionsCompatibilitiesGetExecute(r) } @@ -2505,8 +2504,8 @@ func (r ApiK8sVersionsCompatibilitiesGetRequest) Execute() ([]string, *APIRespon */ func (a *KubernetesApiService) K8sVersionsCompatibilitiesGet(ctx _context.Context, clusterVersion string) ApiK8sVersionsCompatibilitiesGetRequest { return ApiK8sVersionsCompatibilitiesGetRequest{ - ApiService: a, - ctx: ctx, + ApiService: a, + ctx: ctx, clusterVersion: clusterVersion, } } @@ -2575,11 +2574,11 @@ func (a *KubernetesApiService) K8sVersionsCompatibilitiesGetExecute(r ApiK8sVers localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "K8sVersionsCompatibilitiesGet", + Operation: "K8sVersionsCompatibilitiesGet", } if err != nil || localVarHTTPResponse == nil { @@ -2598,13 +2597,13 @@ func (a *KubernetesApiService) K8sVersionsCompatibilitiesGetExecute(r ApiK8sVers body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -2621,11 +2620,10 @@ func (a *KubernetesApiService) K8sVersionsCompatibilitiesGetExecute(r ApiK8sVers } type ApiK8sVersionsDefaultGetRequest struct { - ctx _context.Context + ctx _context.Context ApiService *KubernetesApiService } - func (r ApiK8sVersionsDefaultGetRequest) Execute() (string, *APIResponse, error) { return r.ApiService.K8sVersionsDefaultGetExecute(r) } @@ -2639,7 +2637,7 @@ func (r ApiK8sVersionsDefaultGetRequest) Execute() (string, *APIResponse, error) func (a *KubernetesApiService) K8sVersionsDefaultGet(ctx _context.Context) ApiK8sVersionsDefaultGetRequest { return ApiK8sVersionsDefaultGetRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -2706,11 +2704,11 @@ func (a *KubernetesApiService) K8sVersionsDefaultGetExecute(r ApiK8sVersionsDefa localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "K8sVersionsDefaultGet", + Operation: "K8sVersionsDefaultGet", } if err != nil || localVarHTTPResponse == nil { @@ -2729,13 +2727,13 @@ func (a *KubernetesApiService) K8sVersionsDefaultGetExecute(r ApiK8sVersionsDefa body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -2752,11 +2750,10 @@ func (a *KubernetesApiService) K8sVersionsDefaultGetExecute(r ApiK8sVersionsDefa } type ApiK8sVersionsGetRequest struct { - ctx _context.Context + ctx _context.Context ApiService *KubernetesApiService } - func (r ApiK8sVersionsGetRequest) Execute() ([]string, *APIResponse, error) { return r.ApiService.K8sVersionsGetExecute(r) } @@ -2770,7 +2767,7 @@ func (r ApiK8sVersionsGetRequest) Execute() ([]string, *APIResponse, error) { func (a *KubernetesApiService) K8sVersionsGet(ctx _context.Context) ApiK8sVersionsGetRequest { return ApiK8sVersionsGetRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -2837,11 +2834,11 @@ func (a *KubernetesApiService) K8sVersionsGetExecute(r ApiK8sVersionsGetRequest) localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "K8sVersionsGet", + Operation: "K8sVersionsGet", } if err != nil || localVarHTTPResponse == nil { @@ -2860,13 +2857,13 @@ func (a *KubernetesApiService) K8sVersionsGetExecute(r ApiK8sVersionsGetRequest) body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/api_label.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/api_label.go index 4b60017262ff..3f1ed7593957 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/api_label.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/api_label.go @@ -27,12 +27,12 @@ var ( type LabelApiService service type ApiDatacentersLabelsDeleteRequest struct { - ctx _context.Context - ApiService *LabelApiService - datacenterId string - key string - pretty *bool - depth *int32 + ctx _context.Context + ApiService *LabelApiService + datacenterId string + key string + pretty *bool + depth *int32 xContractNumber *int32 } @@ -63,10 +63,10 @@ func (r ApiDatacentersLabelsDeleteRequest) Execute() (map[string]interface{}, *A */ func (a *LabelApiService) DatacentersLabelsDelete(ctx _context.Context, datacenterId string, key string) ApiDatacentersLabelsDeleteRequest { return ApiDatacentersLabelsDeleteRequest{ - ApiService: a, - ctx: ctx, + ApiService: a, + ctx: ctx, datacenterId: datacenterId, - key: key, + key: key, } } @@ -144,11 +144,11 @@ func (a *LabelApiService) DatacentersLabelsDeleteExecute(r ApiDatacentersLabelsD localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "DatacentersLabelsDelete", + Operation: "DatacentersLabelsDelete", } if err != nil || localVarHTTPResponse == nil { @@ -167,13 +167,13 @@ func (a *LabelApiService) DatacentersLabelsDeleteExecute(r ApiDatacentersLabelsD body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -190,12 +190,12 @@ func (a *LabelApiService) DatacentersLabelsDeleteExecute(r ApiDatacentersLabelsD } type ApiDatacentersLabelsFindByKeyRequest struct { - ctx _context.Context - ApiService *LabelApiService - datacenterId string - key string - pretty *bool - depth *int32 + ctx _context.Context + ApiService *LabelApiService + datacenterId string + key string + pretty *bool + depth *int32 xContractNumber *int32 } @@ -226,10 +226,10 @@ func (r ApiDatacentersLabelsFindByKeyRequest) Execute() (LabelResource, *APIResp */ func (a *LabelApiService) DatacentersLabelsFindByKey(ctx _context.Context, datacenterId string, key string) ApiDatacentersLabelsFindByKeyRequest { return ApiDatacentersLabelsFindByKeyRequest{ - ApiService: a, - ctx: ctx, + ApiService: a, + ctx: ctx, datacenterId: datacenterId, - key: key, + key: key, } } @@ -307,11 +307,11 @@ func (a *LabelApiService) DatacentersLabelsFindByKeyExecute(r ApiDatacentersLabe localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "DatacentersLabelsFindByKey", + Operation: "DatacentersLabelsFindByKey", } if err != nil || localVarHTTPResponse == nil { @@ -330,13 +330,13 @@ func (a *LabelApiService) DatacentersLabelsFindByKeyExecute(r ApiDatacentersLabe body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -353,11 +353,11 @@ func (a *LabelApiService) DatacentersLabelsFindByKeyExecute(r ApiDatacentersLabe } type ApiDatacentersLabelsGetRequest struct { - ctx _context.Context - ApiService *LabelApiService - datacenterId string - pretty *bool - depth *int32 + ctx _context.Context + ApiService *LabelApiService + datacenterId string + pretty *bool + depth *int32 xContractNumber *int32 } @@ -387,8 +387,8 @@ func (r ApiDatacentersLabelsGetRequest) Execute() (LabelResources, *APIResponse, */ func (a *LabelApiService) DatacentersLabelsGet(ctx _context.Context, datacenterId string) ApiDatacentersLabelsGetRequest { return ApiDatacentersLabelsGetRequest{ - ApiService: a, - ctx: ctx, + ApiService: a, + ctx: ctx, datacenterId: datacenterId, } } @@ -466,11 +466,11 @@ func (a *LabelApiService) DatacentersLabelsGetExecute(r ApiDatacentersLabelsGetR localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "DatacentersLabelsGet", + Operation: "DatacentersLabelsGet", } if err != nil || localVarHTTPResponse == nil { @@ -489,13 +489,13 @@ func (a *LabelApiService) DatacentersLabelsGetExecute(r ApiDatacentersLabelsGetR body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -512,12 +512,12 @@ func (a *LabelApiService) DatacentersLabelsGetExecute(r ApiDatacentersLabelsGetR } type ApiDatacentersLabelsPostRequest struct { - ctx _context.Context - ApiService *LabelApiService - datacenterId string - label *LabelResource - pretty *bool - depth *int32 + ctx _context.Context + ApiService *LabelApiService + datacenterId string + label *LabelResource + pretty *bool + depth *int32 xContractNumber *int32 } @@ -551,8 +551,8 @@ func (r ApiDatacentersLabelsPostRequest) Execute() (LabelResource, *APIResponse, */ func (a *LabelApiService) DatacentersLabelsPost(ctx _context.Context, datacenterId string) ApiDatacentersLabelsPostRequest { return ApiDatacentersLabelsPostRequest{ - ApiService: a, - ctx: ctx, + ApiService: a, + ctx: ctx, datacenterId: datacenterId, } } @@ -635,11 +635,11 @@ func (a *LabelApiService) DatacentersLabelsPostExecute(r ApiDatacentersLabelsPos localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "DatacentersLabelsPost", + Operation: "DatacentersLabelsPost", } if err != nil || localVarHTTPResponse == nil { @@ -658,13 +658,13 @@ func (a *LabelApiService) DatacentersLabelsPostExecute(r ApiDatacentersLabelsPos body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -681,13 +681,13 @@ func (a *LabelApiService) DatacentersLabelsPostExecute(r ApiDatacentersLabelsPos } type ApiDatacentersLabelsPutRequest struct { - ctx _context.Context - ApiService *LabelApiService - datacenterId string - key string - label *LabelResource - pretty *bool - depth *int32 + ctx _context.Context + ApiService *LabelApiService + datacenterId string + key string + label *LabelResource + pretty *bool + depth *int32 xContractNumber *int32 } @@ -722,10 +722,10 @@ func (r ApiDatacentersLabelsPutRequest) Execute() (LabelResource, *APIResponse, */ func (a *LabelApiService) DatacentersLabelsPut(ctx _context.Context, datacenterId string, key string) ApiDatacentersLabelsPutRequest { return ApiDatacentersLabelsPutRequest{ - ApiService: a, - ctx: ctx, + ApiService: a, + ctx: ctx, datacenterId: datacenterId, - key: key, + key: key, } } @@ -808,11 +808,11 @@ func (a *LabelApiService) DatacentersLabelsPutExecute(r ApiDatacentersLabelsPutR localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "DatacentersLabelsPut", + Operation: "DatacentersLabelsPut", } if err != nil || localVarHTTPResponse == nil { @@ -831,13 +831,13 @@ func (a *LabelApiService) DatacentersLabelsPutExecute(r ApiDatacentersLabelsPutR body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -854,13 +854,13 @@ func (a *LabelApiService) DatacentersLabelsPutExecute(r ApiDatacentersLabelsPutR } type ApiDatacentersServersLabelsDeleteRequest struct { - ctx _context.Context - ApiService *LabelApiService - datacenterId string - serverId string - key string - pretty *bool - depth *int32 + ctx _context.Context + ApiService *LabelApiService + datacenterId string + serverId string + key string + pretty *bool + depth *int32 xContractNumber *int32 } @@ -892,11 +892,11 @@ func (r ApiDatacentersServersLabelsDeleteRequest) Execute() (map[string]interfac */ func (a *LabelApiService) DatacentersServersLabelsDelete(ctx _context.Context, datacenterId string, serverId string, key string) ApiDatacentersServersLabelsDeleteRequest { return ApiDatacentersServersLabelsDeleteRequest{ - ApiService: a, - ctx: ctx, + ApiService: a, + ctx: ctx, datacenterId: datacenterId, - serverId: serverId, - key: key, + serverId: serverId, + key: key, } } @@ -975,11 +975,11 @@ func (a *LabelApiService) DatacentersServersLabelsDeleteExecute(r ApiDatacenters localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "DatacentersServersLabelsDelete", + Operation: "DatacentersServersLabelsDelete", } if err != nil || localVarHTTPResponse == nil { @@ -998,13 +998,13 @@ func (a *LabelApiService) DatacentersServersLabelsDeleteExecute(r ApiDatacenters body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -1021,13 +1021,13 @@ func (a *LabelApiService) DatacentersServersLabelsDeleteExecute(r ApiDatacenters } type ApiDatacentersServersLabelsFindByKeyRequest struct { - ctx _context.Context - ApiService *LabelApiService - datacenterId string - serverId string - key string - pretty *bool - depth *int32 + ctx _context.Context + ApiService *LabelApiService + datacenterId string + serverId string + key string + pretty *bool + depth *int32 xContractNumber *int32 } @@ -1059,11 +1059,11 @@ func (r ApiDatacentersServersLabelsFindByKeyRequest) Execute() (LabelResource, * */ func (a *LabelApiService) DatacentersServersLabelsFindByKey(ctx _context.Context, datacenterId string, serverId string, key string) ApiDatacentersServersLabelsFindByKeyRequest { return ApiDatacentersServersLabelsFindByKeyRequest{ - ApiService: a, - ctx: ctx, + ApiService: a, + ctx: ctx, datacenterId: datacenterId, - serverId: serverId, - key: key, + serverId: serverId, + key: key, } } @@ -1142,11 +1142,11 @@ func (a *LabelApiService) DatacentersServersLabelsFindByKeyExecute(r ApiDatacent localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "DatacentersServersLabelsFindByKey", + Operation: "DatacentersServersLabelsFindByKey", } if err != nil || localVarHTTPResponse == nil { @@ -1165,13 +1165,13 @@ func (a *LabelApiService) DatacentersServersLabelsFindByKeyExecute(r ApiDatacent body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -1188,12 +1188,12 @@ func (a *LabelApiService) DatacentersServersLabelsFindByKeyExecute(r ApiDatacent } type ApiDatacentersServersLabelsGetRequest struct { - ctx _context.Context - ApiService *LabelApiService - datacenterId string - serverId string - pretty *bool - depth *int32 + ctx _context.Context + ApiService *LabelApiService + datacenterId string + serverId string + pretty *bool + depth *int32 xContractNumber *int32 } @@ -1224,10 +1224,10 @@ func (r ApiDatacentersServersLabelsGetRequest) Execute() (LabelResources, *APIRe */ func (a *LabelApiService) DatacentersServersLabelsGet(ctx _context.Context, datacenterId string, serverId string) ApiDatacentersServersLabelsGetRequest { return ApiDatacentersServersLabelsGetRequest{ - ApiService: a, - ctx: ctx, + ApiService: a, + ctx: ctx, datacenterId: datacenterId, - serverId: serverId, + serverId: serverId, } } @@ -1305,11 +1305,11 @@ func (a *LabelApiService) DatacentersServersLabelsGetExecute(r ApiDatacentersSer localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "DatacentersServersLabelsGet", + Operation: "DatacentersServersLabelsGet", } if err != nil || localVarHTTPResponse == nil { @@ -1328,13 +1328,13 @@ func (a *LabelApiService) DatacentersServersLabelsGetExecute(r ApiDatacentersSer body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -1351,13 +1351,13 @@ func (a *LabelApiService) DatacentersServersLabelsGetExecute(r ApiDatacentersSer } type ApiDatacentersServersLabelsPostRequest struct { - ctx _context.Context - ApiService *LabelApiService - datacenterId string - serverId string - label *LabelResource - pretty *bool - depth *int32 + ctx _context.Context + ApiService *LabelApiService + datacenterId string + serverId string + label *LabelResource + pretty *bool + depth *int32 xContractNumber *int32 } @@ -1392,10 +1392,10 @@ func (r ApiDatacentersServersLabelsPostRequest) Execute() (LabelResource, *APIRe */ func (a *LabelApiService) DatacentersServersLabelsPost(ctx _context.Context, datacenterId string, serverId string) ApiDatacentersServersLabelsPostRequest { return ApiDatacentersServersLabelsPostRequest{ - ApiService: a, - ctx: ctx, + ApiService: a, + ctx: ctx, datacenterId: datacenterId, - serverId: serverId, + serverId: serverId, } } @@ -1478,11 +1478,11 @@ func (a *LabelApiService) DatacentersServersLabelsPostExecute(r ApiDatacentersSe localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "DatacentersServersLabelsPost", + Operation: "DatacentersServersLabelsPost", } if err != nil || localVarHTTPResponse == nil { @@ -1501,13 +1501,13 @@ func (a *LabelApiService) DatacentersServersLabelsPostExecute(r ApiDatacentersSe body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -1524,14 +1524,14 @@ func (a *LabelApiService) DatacentersServersLabelsPostExecute(r ApiDatacentersSe } type ApiDatacentersServersLabelsPutRequest struct { - ctx _context.Context - ApiService *LabelApiService - datacenterId string - serverId string - key string - label *LabelResource - pretty *bool - depth *int32 + ctx _context.Context + ApiService *LabelApiService + datacenterId string + serverId string + key string + label *LabelResource + pretty *bool + depth *int32 xContractNumber *int32 } @@ -1567,11 +1567,11 @@ func (r ApiDatacentersServersLabelsPutRequest) Execute() (LabelResource, *APIRes */ func (a *LabelApiService) DatacentersServersLabelsPut(ctx _context.Context, datacenterId string, serverId string, key string) ApiDatacentersServersLabelsPutRequest { return ApiDatacentersServersLabelsPutRequest{ - ApiService: a, - ctx: ctx, + ApiService: a, + ctx: ctx, datacenterId: datacenterId, - serverId: serverId, - key: key, + serverId: serverId, + key: key, } } @@ -1655,11 +1655,11 @@ func (a *LabelApiService) DatacentersServersLabelsPutExecute(r ApiDatacentersSer localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "DatacentersServersLabelsPut", + Operation: "DatacentersServersLabelsPut", } if err != nil || localVarHTTPResponse == nil { @@ -1678,13 +1678,13 @@ func (a *LabelApiService) DatacentersServersLabelsPutExecute(r ApiDatacentersSer body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -1701,13 +1701,13 @@ func (a *LabelApiService) DatacentersServersLabelsPutExecute(r ApiDatacentersSer } type ApiDatacentersVolumesLabelsDeleteRequest struct { - ctx _context.Context - ApiService *LabelApiService - datacenterId string - volumeId string - key string - pretty *bool - depth *int32 + ctx _context.Context + ApiService *LabelApiService + datacenterId string + volumeId string + key string + pretty *bool + depth *int32 xContractNumber *int32 } @@ -1739,11 +1739,11 @@ func (r ApiDatacentersVolumesLabelsDeleteRequest) Execute() (map[string]interfac */ func (a *LabelApiService) DatacentersVolumesLabelsDelete(ctx _context.Context, datacenterId string, volumeId string, key string) ApiDatacentersVolumesLabelsDeleteRequest { return ApiDatacentersVolumesLabelsDeleteRequest{ - ApiService: a, - ctx: ctx, + ApiService: a, + ctx: ctx, datacenterId: datacenterId, - volumeId: volumeId, - key: key, + volumeId: volumeId, + key: key, } } @@ -1822,11 +1822,11 @@ func (a *LabelApiService) DatacentersVolumesLabelsDeleteExecute(r ApiDatacenters localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "DatacentersVolumesLabelsDelete", + Operation: "DatacentersVolumesLabelsDelete", } if err != nil || localVarHTTPResponse == nil { @@ -1845,13 +1845,13 @@ func (a *LabelApiService) DatacentersVolumesLabelsDeleteExecute(r ApiDatacenters body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -1868,13 +1868,13 @@ func (a *LabelApiService) DatacentersVolumesLabelsDeleteExecute(r ApiDatacenters } type ApiDatacentersVolumesLabelsFindByKeyRequest struct { - ctx _context.Context - ApiService *LabelApiService - datacenterId string - volumeId string - key string - pretty *bool - depth *int32 + ctx _context.Context + ApiService *LabelApiService + datacenterId string + volumeId string + key string + pretty *bool + depth *int32 xContractNumber *int32 } @@ -1906,11 +1906,11 @@ func (r ApiDatacentersVolumesLabelsFindByKeyRequest) Execute() (LabelResource, * */ func (a *LabelApiService) DatacentersVolumesLabelsFindByKey(ctx _context.Context, datacenterId string, volumeId string, key string) ApiDatacentersVolumesLabelsFindByKeyRequest { return ApiDatacentersVolumesLabelsFindByKeyRequest{ - ApiService: a, - ctx: ctx, + ApiService: a, + ctx: ctx, datacenterId: datacenterId, - volumeId: volumeId, - key: key, + volumeId: volumeId, + key: key, } } @@ -1989,11 +1989,11 @@ func (a *LabelApiService) DatacentersVolumesLabelsFindByKeyExecute(r ApiDatacent localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "DatacentersVolumesLabelsFindByKey", + Operation: "DatacentersVolumesLabelsFindByKey", } if err != nil || localVarHTTPResponse == nil { @@ -2012,13 +2012,13 @@ func (a *LabelApiService) DatacentersVolumesLabelsFindByKeyExecute(r ApiDatacent body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -2035,12 +2035,12 @@ func (a *LabelApiService) DatacentersVolumesLabelsFindByKeyExecute(r ApiDatacent } type ApiDatacentersVolumesLabelsGetRequest struct { - ctx _context.Context - ApiService *LabelApiService - datacenterId string - volumeId string - pretty *bool - depth *int32 + ctx _context.Context + ApiService *LabelApiService + datacenterId string + volumeId string + pretty *bool + depth *int32 xContractNumber *int32 } @@ -2071,10 +2071,10 @@ func (r ApiDatacentersVolumesLabelsGetRequest) Execute() (LabelResources, *APIRe */ func (a *LabelApiService) DatacentersVolumesLabelsGet(ctx _context.Context, datacenterId string, volumeId string) ApiDatacentersVolumesLabelsGetRequest { return ApiDatacentersVolumesLabelsGetRequest{ - ApiService: a, - ctx: ctx, + ApiService: a, + ctx: ctx, datacenterId: datacenterId, - volumeId: volumeId, + volumeId: volumeId, } } @@ -2152,11 +2152,11 @@ func (a *LabelApiService) DatacentersVolumesLabelsGetExecute(r ApiDatacentersVol localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "DatacentersVolumesLabelsGet", + Operation: "DatacentersVolumesLabelsGet", } if err != nil || localVarHTTPResponse == nil { @@ -2175,13 +2175,13 @@ func (a *LabelApiService) DatacentersVolumesLabelsGetExecute(r ApiDatacentersVol body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -2198,13 +2198,13 @@ func (a *LabelApiService) DatacentersVolumesLabelsGetExecute(r ApiDatacentersVol } type ApiDatacentersVolumesLabelsPostRequest struct { - ctx _context.Context - ApiService *LabelApiService - datacenterId string - volumeId string - label *LabelResource - pretty *bool - depth *int32 + ctx _context.Context + ApiService *LabelApiService + datacenterId string + volumeId string + label *LabelResource + pretty *bool + depth *int32 xContractNumber *int32 } @@ -2239,10 +2239,10 @@ func (r ApiDatacentersVolumesLabelsPostRequest) Execute() (LabelResource, *APIRe */ func (a *LabelApiService) DatacentersVolumesLabelsPost(ctx _context.Context, datacenterId string, volumeId string) ApiDatacentersVolumesLabelsPostRequest { return ApiDatacentersVolumesLabelsPostRequest{ - ApiService: a, - ctx: ctx, + ApiService: a, + ctx: ctx, datacenterId: datacenterId, - volumeId: volumeId, + volumeId: volumeId, } } @@ -2325,11 +2325,11 @@ func (a *LabelApiService) DatacentersVolumesLabelsPostExecute(r ApiDatacentersVo localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "DatacentersVolumesLabelsPost", + Operation: "DatacentersVolumesLabelsPost", } if err != nil || localVarHTTPResponse == nil { @@ -2348,13 +2348,13 @@ func (a *LabelApiService) DatacentersVolumesLabelsPostExecute(r ApiDatacentersVo body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -2371,14 +2371,14 @@ func (a *LabelApiService) DatacentersVolumesLabelsPostExecute(r ApiDatacentersVo } type ApiDatacentersVolumesLabelsPutRequest struct { - ctx _context.Context - ApiService *LabelApiService - datacenterId string - volumeId string - key string - label *LabelResource - pretty *bool - depth *int32 + ctx _context.Context + ApiService *LabelApiService + datacenterId string + volumeId string + key string + label *LabelResource + pretty *bool + depth *int32 xContractNumber *int32 } @@ -2414,11 +2414,11 @@ func (r ApiDatacentersVolumesLabelsPutRequest) Execute() (LabelResource, *APIRes */ func (a *LabelApiService) DatacentersVolumesLabelsPut(ctx _context.Context, datacenterId string, volumeId string, key string) ApiDatacentersVolumesLabelsPutRequest { return ApiDatacentersVolumesLabelsPutRequest{ - ApiService: a, - ctx: ctx, + ApiService: a, + ctx: ctx, datacenterId: datacenterId, - volumeId: volumeId, - key: key, + volumeId: volumeId, + key: key, } } @@ -2502,11 +2502,11 @@ func (a *LabelApiService) DatacentersVolumesLabelsPutExecute(r ApiDatacentersVol localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "DatacentersVolumesLabelsPut", + Operation: "DatacentersVolumesLabelsPut", } if err != nil || localVarHTTPResponse == nil { @@ -2525,13 +2525,13 @@ func (a *LabelApiService) DatacentersVolumesLabelsPutExecute(r ApiDatacentersVol body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -2548,12 +2548,12 @@ func (a *LabelApiService) DatacentersVolumesLabelsPutExecute(r ApiDatacentersVol } type ApiIpblocksLabelsDeleteRequest struct { - ctx _context.Context - ApiService *LabelApiService - ipblockId string - key string - pretty *bool - depth *int32 + ctx _context.Context + ApiService *LabelApiService + ipblockId string + key string + pretty *bool + depth *int32 xContractNumber *int32 } @@ -2585,9 +2585,9 @@ func (r ApiIpblocksLabelsDeleteRequest) Execute() (map[string]interface{}, *APIR func (a *LabelApiService) IpblocksLabelsDelete(ctx _context.Context, ipblockId string, key string) ApiIpblocksLabelsDeleteRequest { return ApiIpblocksLabelsDeleteRequest{ ApiService: a, - ctx: ctx, - ipblockId: ipblockId, - key: key, + ctx: ctx, + ipblockId: ipblockId, + key: key, } } @@ -2665,11 +2665,11 @@ func (a *LabelApiService) IpblocksLabelsDeleteExecute(r ApiIpblocksLabelsDeleteR localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "IpblocksLabelsDelete", + Operation: "IpblocksLabelsDelete", } if err != nil || localVarHTTPResponse == nil { @@ -2688,13 +2688,13 @@ func (a *LabelApiService) IpblocksLabelsDeleteExecute(r ApiIpblocksLabelsDeleteR body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -2711,12 +2711,12 @@ func (a *LabelApiService) IpblocksLabelsDeleteExecute(r ApiIpblocksLabelsDeleteR } type ApiIpblocksLabelsFindByKeyRequest struct { - ctx _context.Context - ApiService *LabelApiService - ipblockId string - key string - pretty *bool - depth *int32 + ctx _context.Context + ApiService *LabelApiService + ipblockId string + key string + pretty *bool + depth *int32 xContractNumber *int32 } @@ -2748,9 +2748,9 @@ func (r ApiIpblocksLabelsFindByKeyRequest) Execute() (LabelResource, *APIRespons func (a *LabelApiService) IpblocksLabelsFindByKey(ctx _context.Context, ipblockId string, key string) ApiIpblocksLabelsFindByKeyRequest { return ApiIpblocksLabelsFindByKeyRequest{ ApiService: a, - ctx: ctx, - ipblockId: ipblockId, - key: key, + ctx: ctx, + ipblockId: ipblockId, + key: key, } } @@ -2828,11 +2828,11 @@ func (a *LabelApiService) IpblocksLabelsFindByKeyExecute(r ApiIpblocksLabelsFind localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "IpblocksLabelsFindByKey", + Operation: "IpblocksLabelsFindByKey", } if err != nil || localVarHTTPResponse == nil { @@ -2851,13 +2851,13 @@ func (a *LabelApiService) IpblocksLabelsFindByKeyExecute(r ApiIpblocksLabelsFind body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -2874,11 +2874,11 @@ func (a *LabelApiService) IpblocksLabelsFindByKeyExecute(r ApiIpblocksLabelsFind } type ApiIpblocksLabelsGetRequest struct { - ctx _context.Context - ApiService *LabelApiService - ipblockId string - pretty *bool - depth *int32 + ctx _context.Context + ApiService *LabelApiService + ipblockId string + pretty *bool + depth *int32 xContractNumber *int32 } @@ -2909,8 +2909,8 @@ func (r ApiIpblocksLabelsGetRequest) Execute() (LabelResources, *APIResponse, er func (a *LabelApiService) IpblocksLabelsGet(ctx _context.Context, ipblockId string) ApiIpblocksLabelsGetRequest { return ApiIpblocksLabelsGetRequest{ ApiService: a, - ctx: ctx, - ipblockId: ipblockId, + ctx: ctx, + ipblockId: ipblockId, } } @@ -2987,11 +2987,11 @@ func (a *LabelApiService) IpblocksLabelsGetExecute(r ApiIpblocksLabelsGetRequest localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "IpblocksLabelsGet", + Operation: "IpblocksLabelsGet", } if err != nil || localVarHTTPResponse == nil { @@ -3010,13 +3010,13 @@ func (a *LabelApiService) IpblocksLabelsGetExecute(r ApiIpblocksLabelsGetRequest body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -3033,12 +3033,12 @@ func (a *LabelApiService) IpblocksLabelsGetExecute(r ApiIpblocksLabelsGetRequest } type ApiIpblocksLabelsPostRequest struct { - ctx _context.Context - ApiService *LabelApiService - ipblockId string - label *LabelResource - pretty *bool - depth *int32 + ctx _context.Context + ApiService *LabelApiService + ipblockId string + label *LabelResource + pretty *bool + depth *int32 xContractNumber *int32 } @@ -3073,8 +3073,8 @@ func (r ApiIpblocksLabelsPostRequest) Execute() (LabelResource, *APIResponse, er func (a *LabelApiService) IpblocksLabelsPost(ctx _context.Context, ipblockId string) ApiIpblocksLabelsPostRequest { return ApiIpblocksLabelsPostRequest{ ApiService: a, - ctx: ctx, - ipblockId: ipblockId, + ctx: ctx, + ipblockId: ipblockId, } } @@ -3156,11 +3156,11 @@ func (a *LabelApiService) IpblocksLabelsPostExecute(r ApiIpblocksLabelsPostReque localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "IpblocksLabelsPost", + Operation: "IpblocksLabelsPost", } if err != nil || localVarHTTPResponse == nil { @@ -3179,13 +3179,13 @@ func (a *LabelApiService) IpblocksLabelsPostExecute(r ApiIpblocksLabelsPostReque body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -3202,13 +3202,13 @@ func (a *LabelApiService) IpblocksLabelsPostExecute(r ApiIpblocksLabelsPostReque } type ApiIpblocksLabelsPutRequest struct { - ctx _context.Context - ApiService *LabelApiService - ipblockId string - key string - label *LabelResource - pretty *bool - depth *int32 + ctx _context.Context + ApiService *LabelApiService + ipblockId string + key string + label *LabelResource + pretty *bool + depth *int32 xContractNumber *int32 } @@ -3244,9 +3244,9 @@ func (r ApiIpblocksLabelsPutRequest) Execute() (LabelResource, *APIResponse, err func (a *LabelApiService) IpblocksLabelsPut(ctx _context.Context, ipblockId string, key string) ApiIpblocksLabelsPutRequest { return ApiIpblocksLabelsPutRequest{ ApiService: a, - ctx: ctx, - ipblockId: ipblockId, - key: key, + ctx: ctx, + ipblockId: ipblockId, + key: key, } } @@ -3329,11 +3329,11 @@ func (a *LabelApiService) IpblocksLabelsPutExecute(r ApiIpblocksLabelsPutRequest localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "IpblocksLabelsPut", + Operation: "IpblocksLabelsPut", } if err != nil || localVarHTTPResponse == nil { @@ -3352,13 +3352,13 @@ func (a *LabelApiService) IpblocksLabelsPutExecute(r ApiIpblocksLabelsPutRequest body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -3375,11 +3375,11 @@ func (a *LabelApiService) IpblocksLabelsPutExecute(r ApiIpblocksLabelsPutRequest } type ApiLabelsFindByLabelurnRequest struct { - ctx _context.Context - ApiService *LabelApiService - labelurn string - pretty *bool - depth *int32 + ctx _context.Context + ApiService *LabelApiService + labelurn string + pretty *bool + depth *int32 xContractNumber *int32 } @@ -3410,8 +3410,8 @@ func (r ApiLabelsFindByLabelurnRequest) Execute() (Label, *APIResponse, error) { func (a *LabelApiService) LabelsFindByLabelurn(ctx _context.Context, labelurn string) ApiLabelsFindByLabelurnRequest { return ApiLabelsFindByLabelurnRequest{ ApiService: a, - ctx: ctx, - labelurn: labelurn, + ctx: ctx, + labelurn: labelurn, } } @@ -3488,11 +3488,11 @@ func (a *LabelApiService) LabelsFindByLabelurnExecute(r ApiLabelsFindByLabelurnR localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "LabelsFindByLabelurn", + Operation: "LabelsFindByLabelurn", } if err != nil || localVarHTTPResponse == nil { @@ -3511,13 +3511,13 @@ func (a *LabelApiService) LabelsFindByLabelurnExecute(r ApiLabelsFindByLabelurnR body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -3534,10 +3534,10 @@ func (a *LabelApiService) LabelsFindByLabelurnExecute(r ApiLabelsFindByLabelurnR } type ApiLabelsGetRequest struct { - ctx _context.Context - ApiService *LabelApiService - pretty *bool - depth *int32 + ctx _context.Context + ApiService *LabelApiService + pretty *bool + depth *int32 xContractNumber *int32 } @@ -3559,7 +3559,7 @@ func (r ApiLabelsGetRequest) Execute() (Labels, *APIResponse, error) { } /* - * LabelsGet List Labels + * LabelsGet List Labels * You can retrieve a complete list of labels that you have access to. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @return ApiLabelsGetRequest @@ -3567,7 +3567,7 @@ func (r ApiLabelsGetRequest) Execute() (Labels, *APIResponse, error) { func (a *LabelApiService) LabelsGet(ctx _context.Context) ApiLabelsGetRequest { return ApiLabelsGetRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -3643,11 +3643,11 @@ func (a *LabelApiService) LabelsGetExecute(r ApiLabelsGetRequest) (Labels, *APIR localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "LabelsGet", + Operation: "LabelsGet", } if err != nil || localVarHTTPResponse == nil { @@ -3666,13 +3666,13 @@ func (a *LabelApiService) LabelsGetExecute(r ApiLabelsGetRequest) (Labels, *APIR body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -3689,12 +3689,12 @@ func (a *LabelApiService) LabelsGetExecute(r ApiLabelsGetRequest) (Labels, *APIR } type ApiSnapshotsLabelsDeleteRequest struct { - ctx _context.Context - ApiService *LabelApiService - snapshotId string - key string - pretty *bool - depth *int32 + ctx _context.Context + ApiService *LabelApiService + snapshotId string + key string + pretty *bool + depth *int32 xContractNumber *int32 } @@ -3726,9 +3726,9 @@ func (r ApiSnapshotsLabelsDeleteRequest) Execute() (map[string]interface{}, *API func (a *LabelApiService) SnapshotsLabelsDelete(ctx _context.Context, snapshotId string, key string) ApiSnapshotsLabelsDeleteRequest { return ApiSnapshotsLabelsDeleteRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, snapshotId: snapshotId, - key: key, + key: key, } } @@ -3806,11 +3806,11 @@ func (a *LabelApiService) SnapshotsLabelsDeleteExecute(r ApiSnapshotsLabelsDelet localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "SnapshotsLabelsDelete", + Operation: "SnapshotsLabelsDelete", } if err != nil || localVarHTTPResponse == nil { @@ -3829,13 +3829,13 @@ func (a *LabelApiService) SnapshotsLabelsDeleteExecute(r ApiSnapshotsLabelsDelet body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -3852,12 +3852,12 @@ func (a *LabelApiService) SnapshotsLabelsDeleteExecute(r ApiSnapshotsLabelsDelet } type ApiSnapshotsLabelsFindByKeyRequest struct { - ctx _context.Context - ApiService *LabelApiService - snapshotId string - key string - pretty *bool - depth *int32 + ctx _context.Context + ApiService *LabelApiService + snapshotId string + key string + pretty *bool + depth *int32 xContractNumber *int32 } @@ -3889,9 +3889,9 @@ func (r ApiSnapshotsLabelsFindByKeyRequest) Execute() (LabelResource, *APIRespon func (a *LabelApiService) SnapshotsLabelsFindByKey(ctx _context.Context, snapshotId string, key string) ApiSnapshotsLabelsFindByKeyRequest { return ApiSnapshotsLabelsFindByKeyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, snapshotId: snapshotId, - key: key, + key: key, } } @@ -3969,11 +3969,11 @@ func (a *LabelApiService) SnapshotsLabelsFindByKeyExecute(r ApiSnapshotsLabelsFi localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "SnapshotsLabelsFindByKey", + Operation: "SnapshotsLabelsFindByKey", } if err != nil || localVarHTTPResponse == nil { @@ -3992,13 +3992,13 @@ func (a *LabelApiService) SnapshotsLabelsFindByKeyExecute(r ApiSnapshotsLabelsFi body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -4015,11 +4015,11 @@ func (a *LabelApiService) SnapshotsLabelsFindByKeyExecute(r ApiSnapshotsLabelsFi } type ApiSnapshotsLabelsGetRequest struct { - ctx _context.Context - ApiService *LabelApiService - snapshotId string - pretty *bool - depth *int32 + ctx _context.Context + ApiService *LabelApiService + snapshotId string + pretty *bool + depth *int32 xContractNumber *int32 } @@ -4050,7 +4050,7 @@ func (r ApiSnapshotsLabelsGetRequest) Execute() (LabelResources, *APIResponse, e func (a *LabelApiService) SnapshotsLabelsGet(ctx _context.Context, snapshotId string) ApiSnapshotsLabelsGetRequest { return ApiSnapshotsLabelsGetRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, snapshotId: snapshotId, } } @@ -4128,11 +4128,11 @@ func (a *LabelApiService) SnapshotsLabelsGetExecute(r ApiSnapshotsLabelsGetReque localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "SnapshotsLabelsGet", + Operation: "SnapshotsLabelsGet", } if err != nil || localVarHTTPResponse == nil { @@ -4151,13 +4151,13 @@ func (a *LabelApiService) SnapshotsLabelsGetExecute(r ApiSnapshotsLabelsGetReque body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -4174,12 +4174,12 @@ func (a *LabelApiService) SnapshotsLabelsGetExecute(r ApiSnapshotsLabelsGetReque } type ApiSnapshotsLabelsPostRequest struct { - ctx _context.Context - ApiService *LabelApiService - snapshotId string - label *LabelResource - pretty *bool - depth *int32 + ctx _context.Context + ApiService *LabelApiService + snapshotId string + label *LabelResource + pretty *bool + depth *int32 xContractNumber *int32 } @@ -4214,7 +4214,7 @@ func (r ApiSnapshotsLabelsPostRequest) Execute() (LabelResource, *APIResponse, e func (a *LabelApiService) SnapshotsLabelsPost(ctx _context.Context, snapshotId string) ApiSnapshotsLabelsPostRequest { return ApiSnapshotsLabelsPostRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, snapshotId: snapshotId, } } @@ -4297,11 +4297,11 @@ func (a *LabelApiService) SnapshotsLabelsPostExecute(r ApiSnapshotsLabelsPostReq localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "SnapshotsLabelsPost", + Operation: "SnapshotsLabelsPost", } if err != nil || localVarHTTPResponse == nil { @@ -4320,13 +4320,13 @@ func (a *LabelApiService) SnapshotsLabelsPostExecute(r ApiSnapshotsLabelsPostReq body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -4343,13 +4343,13 @@ func (a *LabelApiService) SnapshotsLabelsPostExecute(r ApiSnapshotsLabelsPostReq } type ApiSnapshotsLabelsPutRequest struct { - ctx _context.Context - ApiService *LabelApiService - snapshotId string - key string - label *LabelResource - pretty *bool - depth *int32 + ctx _context.Context + ApiService *LabelApiService + snapshotId string + key string + label *LabelResource + pretty *bool + depth *int32 xContractNumber *int32 } @@ -4385,9 +4385,9 @@ func (r ApiSnapshotsLabelsPutRequest) Execute() (LabelResource, *APIResponse, er func (a *LabelApiService) SnapshotsLabelsPut(ctx _context.Context, snapshotId string, key string) ApiSnapshotsLabelsPutRequest { return ApiSnapshotsLabelsPutRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, snapshotId: snapshotId, - key: key, + key: key, } } @@ -4470,11 +4470,11 @@ func (a *LabelApiService) SnapshotsLabelsPutExecute(r ApiSnapshotsLabelsPutReque localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "SnapshotsLabelsPut", + Operation: "SnapshotsLabelsPut", } if err != nil || localVarHTTPResponse == nil { @@ -4493,13 +4493,13 @@ func (a *LabelApiService) SnapshotsLabelsPutExecute(r ApiSnapshotsLabelsPutReque body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/api_lan.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/api_lan.go index 98d93bbf9212..c7d4a4a54ab8 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/api_lan.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/api_lan.go @@ -27,12 +27,12 @@ var ( type LanApiService service type ApiDatacentersLansDeleteRequest struct { - ctx _context.Context - ApiService *LanApiService - datacenterId string - lanId string - pretty *bool - depth *int32 + ctx _context.Context + ApiService *LanApiService + datacenterId string + lanId string + pretty *bool + depth *int32 xContractNumber *int32 } @@ -63,10 +63,10 @@ func (r ApiDatacentersLansDeleteRequest) Execute() (map[string]interface{}, *API */ func (a *LanApiService) DatacentersLansDelete(ctx _context.Context, datacenterId string, lanId string) ApiDatacentersLansDeleteRequest { return ApiDatacentersLansDeleteRequest{ - ApiService: a, - ctx: ctx, + ApiService: a, + ctx: ctx, datacenterId: datacenterId, - lanId: lanId, + lanId: lanId, } } @@ -144,11 +144,11 @@ func (a *LanApiService) DatacentersLansDeleteExecute(r ApiDatacentersLansDeleteR localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "DatacentersLansDelete", + Operation: "DatacentersLansDelete", } if err != nil || localVarHTTPResponse == nil { @@ -167,13 +167,13 @@ func (a *LanApiService) DatacentersLansDeleteExecute(r ApiDatacentersLansDeleteR body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -190,12 +190,12 @@ func (a *LanApiService) DatacentersLansDeleteExecute(r ApiDatacentersLansDeleteR } type ApiDatacentersLansFindByIdRequest struct { - ctx _context.Context - ApiService *LanApiService - datacenterId string - lanId string - pretty *bool - depth *int32 + ctx _context.Context + ApiService *LanApiService + datacenterId string + lanId string + pretty *bool + depth *int32 xContractNumber *int32 } @@ -226,10 +226,10 @@ func (r ApiDatacentersLansFindByIdRequest) Execute() (Lan, *APIResponse, error) */ func (a *LanApiService) DatacentersLansFindById(ctx _context.Context, datacenterId string, lanId string) ApiDatacentersLansFindByIdRequest { return ApiDatacentersLansFindByIdRequest{ - ApiService: a, - ctx: ctx, + ApiService: a, + ctx: ctx, datacenterId: datacenterId, - lanId: lanId, + lanId: lanId, } } @@ -307,11 +307,11 @@ func (a *LanApiService) DatacentersLansFindByIdExecute(r ApiDatacentersLansFindB localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "DatacentersLansFindById", + Operation: "DatacentersLansFindById", } if err != nil || localVarHTTPResponse == nil { @@ -330,13 +330,13 @@ func (a *LanApiService) DatacentersLansFindByIdExecute(r ApiDatacentersLansFindB body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -353,11 +353,11 @@ func (a *LanApiService) DatacentersLansFindByIdExecute(r ApiDatacentersLansFindB } type ApiDatacentersLansGetRequest struct { - ctx _context.Context - ApiService *LanApiService - datacenterId string - pretty *bool - depth *int32 + ctx _context.Context + ApiService *LanApiService + datacenterId string + pretty *bool + depth *int32 xContractNumber *int32 } @@ -387,8 +387,8 @@ func (r ApiDatacentersLansGetRequest) Execute() (Lans, *APIResponse, error) { */ func (a *LanApiService) DatacentersLansGet(ctx _context.Context, datacenterId string) ApiDatacentersLansGetRequest { return ApiDatacentersLansGetRequest{ - ApiService: a, - ctx: ctx, + ApiService: a, + ctx: ctx, datacenterId: datacenterId, } } @@ -466,11 +466,11 @@ func (a *LanApiService) DatacentersLansGetExecute(r ApiDatacentersLansGetRequest localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "DatacentersLansGet", + Operation: "DatacentersLansGet", } if err != nil || localVarHTTPResponse == nil { @@ -489,13 +489,13 @@ func (a *LanApiService) DatacentersLansGetExecute(r ApiDatacentersLansGetRequest body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -512,13 +512,13 @@ func (a *LanApiService) DatacentersLansGetExecute(r ApiDatacentersLansGetRequest } type ApiDatacentersLansNicsFindByIdRequest struct { - ctx _context.Context - ApiService *LanApiService - datacenterId string - lanId string - nicId string - pretty *bool - depth *int32 + ctx _context.Context + ApiService *LanApiService + datacenterId string + lanId string + nicId string + pretty *bool + depth *int32 xContractNumber *int32 } @@ -550,11 +550,11 @@ func (r ApiDatacentersLansNicsFindByIdRequest) Execute() (Nic, *APIResponse, err */ func (a *LanApiService) DatacentersLansNicsFindById(ctx _context.Context, datacenterId string, lanId string, nicId string) ApiDatacentersLansNicsFindByIdRequest { return ApiDatacentersLansNicsFindByIdRequest{ - ApiService: a, - ctx: ctx, + ApiService: a, + ctx: ctx, datacenterId: datacenterId, - lanId: lanId, - nicId: nicId, + lanId: lanId, + nicId: nicId, } } @@ -633,11 +633,11 @@ func (a *LanApiService) DatacentersLansNicsFindByIdExecute(r ApiDatacentersLansN localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "DatacentersLansNicsFindById", + Operation: "DatacentersLansNicsFindById", } if err != nil || localVarHTTPResponse == nil { @@ -656,13 +656,13 @@ func (a *LanApiService) DatacentersLansNicsFindByIdExecute(r ApiDatacentersLansN body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -679,12 +679,12 @@ func (a *LanApiService) DatacentersLansNicsFindByIdExecute(r ApiDatacentersLansN } type ApiDatacentersLansNicsGetRequest struct { - ctx _context.Context - ApiService *LanApiService - datacenterId string - lanId string - pretty *bool - depth *int32 + ctx _context.Context + ApiService *LanApiService + datacenterId string + lanId string + pretty *bool + depth *int32 xContractNumber *int32 } @@ -706,7 +706,7 @@ func (r ApiDatacentersLansNicsGetRequest) Execute() (LanNics, *APIResponse, erro } /* - * DatacentersLansNicsGet List Lan Members + * DatacentersLansNicsGet List Lan Members * You can retrieve a list of nics attached to a lan * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param datacenterId The unique ID of the datacenter @@ -715,10 +715,10 @@ func (r ApiDatacentersLansNicsGetRequest) Execute() (LanNics, *APIResponse, erro */ func (a *LanApiService) DatacentersLansNicsGet(ctx _context.Context, datacenterId string, lanId string) ApiDatacentersLansNicsGetRequest { return ApiDatacentersLansNicsGetRequest{ - ApiService: a, - ctx: ctx, + ApiService: a, + ctx: ctx, datacenterId: datacenterId, - lanId: lanId, + lanId: lanId, } } @@ -796,11 +796,11 @@ func (a *LanApiService) DatacentersLansNicsGetExecute(r ApiDatacentersLansNicsGe localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "DatacentersLansNicsGet", + Operation: "DatacentersLansNicsGet", } if err != nil || localVarHTTPResponse == nil { @@ -819,13 +819,13 @@ func (a *LanApiService) DatacentersLansNicsGetExecute(r ApiDatacentersLansNicsGe body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -842,13 +842,13 @@ func (a *LanApiService) DatacentersLansNicsGetExecute(r ApiDatacentersLansNicsGe } type ApiDatacentersLansNicsPostRequest struct { - ctx _context.Context - ApiService *LanApiService - datacenterId string - lanId string - nic *Nic - pretty *bool - depth *int32 + ctx _context.Context + ApiService *LanApiService + datacenterId string + lanId string + nic *Nic + pretty *bool + depth *int32 xContractNumber *int32 } @@ -875,7 +875,7 @@ func (r ApiDatacentersLansNicsPostRequest) Execute() (Nic, *APIResponse, error) /* * DatacentersLansNicsPost Attach a nic - * This will attach a pre-existing nic to a lan. + * This will attach a pre-existing nic to a lan. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param datacenterId The unique ID of the datacenter * @param lanId The unique ID of the LAN @@ -883,10 +883,10 @@ func (r ApiDatacentersLansNicsPostRequest) Execute() (Nic, *APIResponse, error) */ func (a *LanApiService) DatacentersLansNicsPost(ctx _context.Context, datacenterId string, lanId string) ApiDatacentersLansNicsPostRequest { return ApiDatacentersLansNicsPostRequest{ - ApiService: a, - ctx: ctx, + ApiService: a, + ctx: ctx, datacenterId: datacenterId, - lanId: lanId, + lanId: lanId, } } @@ -969,11 +969,11 @@ func (a *LanApiService) DatacentersLansNicsPostExecute(r ApiDatacentersLansNicsP localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "DatacentersLansNicsPost", + Operation: "DatacentersLansNicsPost", } if err != nil || localVarHTTPResponse == nil { @@ -992,13 +992,13 @@ func (a *LanApiService) DatacentersLansNicsPostExecute(r ApiDatacentersLansNicsP body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -1015,13 +1015,13 @@ func (a *LanApiService) DatacentersLansNicsPostExecute(r ApiDatacentersLansNicsP } type ApiDatacentersLansPatchRequest struct { - ctx _context.Context - ApiService *LanApiService - datacenterId string - lanId string - lan *LanProperties - pretty *bool - depth *int32 + ctx _context.Context + ApiService *LanApiService + datacenterId string + lanId string + lan *LanProperties + pretty *bool + depth *int32 xContractNumber *int32 } @@ -1056,10 +1056,10 @@ func (r ApiDatacentersLansPatchRequest) Execute() (Lan, *APIResponse, error) { */ func (a *LanApiService) DatacentersLansPatch(ctx _context.Context, datacenterId string, lanId string) ApiDatacentersLansPatchRequest { return ApiDatacentersLansPatchRequest{ - ApiService: a, - ctx: ctx, + ApiService: a, + ctx: ctx, datacenterId: datacenterId, - lanId: lanId, + lanId: lanId, } } @@ -1142,11 +1142,11 @@ func (a *LanApiService) DatacentersLansPatchExecute(r ApiDatacentersLansPatchReq localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "DatacentersLansPatch", + Operation: "DatacentersLansPatch", } if err != nil || localVarHTTPResponse == nil { @@ -1165,13 +1165,13 @@ func (a *LanApiService) DatacentersLansPatchExecute(r ApiDatacentersLansPatchReq body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -1188,12 +1188,12 @@ func (a *LanApiService) DatacentersLansPatchExecute(r ApiDatacentersLansPatchReq } type ApiDatacentersLansPostRequest struct { - ctx _context.Context - ApiService *LanApiService - datacenterId string - lan *LanPost - pretty *bool - depth *int32 + ctx _context.Context + ApiService *LanApiService + datacenterId string + lan *LanPost + pretty *bool + depth *int32 xContractNumber *int32 } @@ -1227,8 +1227,8 @@ func (r ApiDatacentersLansPostRequest) Execute() (LanPost, *APIResponse, error) */ func (a *LanApiService) DatacentersLansPost(ctx _context.Context, datacenterId string) ApiDatacentersLansPostRequest { return ApiDatacentersLansPostRequest{ - ApiService: a, - ctx: ctx, + ApiService: a, + ctx: ctx, datacenterId: datacenterId, } } @@ -1311,11 +1311,11 @@ func (a *LanApiService) DatacentersLansPostExecute(r ApiDatacentersLansPostReque localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "DatacentersLansPost", + Operation: "DatacentersLansPost", } if err != nil || localVarHTTPResponse == nil { @@ -1334,13 +1334,13 @@ func (a *LanApiService) DatacentersLansPostExecute(r ApiDatacentersLansPostReque body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -1357,13 +1357,13 @@ func (a *LanApiService) DatacentersLansPostExecute(r ApiDatacentersLansPostReque } type ApiDatacentersLansPutRequest struct { - ctx _context.Context - ApiService *LanApiService - datacenterId string - lanId string - lan *Lan - pretty *bool - depth *int32 + ctx _context.Context + ApiService *LanApiService + datacenterId string + lanId string + lan *Lan + pretty *bool + depth *int32 xContractNumber *int32 } @@ -1398,10 +1398,10 @@ func (r ApiDatacentersLansPutRequest) Execute() (Lan, *APIResponse, error) { */ func (a *LanApiService) DatacentersLansPut(ctx _context.Context, datacenterId string, lanId string) ApiDatacentersLansPutRequest { return ApiDatacentersLansPutRequest{ - ApiService: a, - ctx: ctx, + ApiService: a, + ctx: ctx, datacenterId: datacenterId, - lanId: lanId, + lanId: lanId, } } @@ -1484,11 +1484,11 @@ func (a *LanApiService) DatacentersLansPutExecute(r ApiDatacentersLansPutRequest localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "DatacentersLansPut", + Operation: "DatacentersLansPut", } if err != nil || localVarHTTPResponse == nil { @@ -1507,13 +1507,13 @@ func (a *LanApiService) DatacentersLansPutExecute(r ApiDatacentersLansPutRequest body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/api_load_balancer.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/api_load_balancer.go index 6a8ca7e50a43..2117eb34bf1b 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/api_load_balancer.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/api_load_balancer.go @@ -27,13 +27,13 @@ var ( type LoadBalancerApiService service type ApiDatacentersLoadbalancersBalancednicsDeleteRequest struct { - ctx _context.Context - ApiService *LoadBalancerApiService - datacenterId string - loadbalancerId string - nicId string - pretty *bool - depth *int32 + ctx _context.Context + ApiService *LoadBalancerApiService + datacenterId string + loadbalancerId string + nicId string + pretty *bool + depth *int32 xContractNumber *int32 } @@ -65,11 +65,11 @@ func (r ApiDatacentersLoadbalancersBalancednicsDeleteRequest) Execute() (map[str */ func (a *LoadBalancerApiService) DatacentersLoadbalancersBalancednicsDelete(ctx _context.Context, datacenterId string, loadbalancerId string, nicId string) ApiDatacentersLoadbalancersBalancednicsDeleteRequest { return ApiDatacentersLoadbalancersBalancednicsDeleteRequest{ - ApiService: a, - ctx: ctx, - datacenterId: datacenterId, + ApiService: a, + ctx: ctx, + datacenterId: datacenterId, loadbalancerId: loadbalancerId, - nicId: nicId, + nicId: nicId, } } @@ -148,11 +148,11 @@ func (a *LoadBalancerApiService) DatacentersLoadbalancersBalancednicsDeleteExecu localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "DatacentersLoadbalancersBalancednicsDelete", + Operation: "DatacentersLoadbalancersBalancednicsDelete", } if err != nil || localVarHTTPResponse == nil { @@ -171,13 +171,13 @@ func (a *LoadBalancerApiService) DatacentersLoadbalancersBalancednicsDeleteExecu body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -194,13 +194,13 @@ func (a *LoadBalancerApiService) DatacentersLoadbalancersBalancednicsDeleteExecu } type ApiDatacentersLoadbalancersBalancednicsFindByNicRequest struct { - ctx _context.Context - ApiService *LoadBalancerApiService - datacenterId string - loadbalancerId string - nicId string - pretty *bool - depth *int32 + ctx _context.Context + ApiService *LoadBalancerApiService + datacenterId string + loadbalancerId string + nicId string + pretty *bool + depth *int32 xContractNumber *int32 } @@ -232,11 +232,11 @@ func (r ApiDatacentersLoadbalancersBalancednicsFindByNicRequest) Execute() (Nic, */ func (a *LoadBalancerApiService) DatacentersLoadbalancersBalancednicsFindByNic(ctx _context.Context, datacenterId string, loadbalancerId string, nicId string) ApiDatacentersLoadbalancersBalancednicsFindByNicRequest { return ApiDatacentersLoadbalancersBalancednicsFindByNicRequest{ - ApiService: a, - ctx: ctx, - datacenterId: datacenterId, + ApiService: a, + ctx: ctx, + datacenterId: datacenterId, loadbalancerId: loadbalancerId, - nicId: nicId, + nicId: nicId, } } @@ -315,11 +315,11 @@ func (a *LoadBalancerApiService) DatacentersLoadbalancersBalancednicsFindByNicEx localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "DatacentersLoadbalancersBalancednicsFindByNic", + Operation: "DatacentersLoadbalancersBalancednicsFindByNic", } if err != nil || localVarHTTPResponse == nil { @@ -338,13 +338,13 @@ func (a *LoadBalancerApiService) DatacentersLoadbalancersBalancednicsFindByNicEx body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -361,12 +361,12 @@ func (a *LoadBalancerApiService) DatacentersLoadbalancersBalancednicsFindByNicEx } type ApiDatacentersLoadbalancersBalancednicsGetRequest struct { - ctx _context.Context - ApiService *LoadBalancerApiService - datacenterId string - loadbalancerId string - pretty *bool - depth *int32 + ctx _context.Context + ApiService *LoadBalancerApiService + datacenterId string + loadbalancerId string + pretty *bool + depth *int32 xContractNumber *int32 } @@ -388,7 +388,7 @@ func (r ApiDatacentersLoadbalancersBalancednicsGetRequest) Execute() (BalancedNi } /* - * DatacentersLoadbalancersBalancednicsGet List Load Balancer Members + * DatacentersLoadbalancersBalancednicsGet List Load Balancer Members * You can retrieve a list of nics attached to a Load Balancer * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param datacenterId The unique ID of the datacenter @@ -397,9 +397,9 @@ func (r ApiDatacentersLoadbalancersBalancednicsGetRequest) Execute() (BalancedNi */ func (a *LoadBalancerApiService) DatacentersLoadbalancersBalancednicsGet(ctx _context.Context, datacenterId string, loadbalancerId string) ApiDatacentersLoadbalancersBalancednicsGetRequest { return ApiDatacentersLoadbalancersBalancednicsGetRequest{ - ApiService: a, - ctx: ctx, - datacenterId: datacenterId, + ApiService: a, + ctx: ctx, + datacenterId: datacenterId, loadbalancerId: loadbalancerId, } } @@ -478,11 +478,11 @@ func (a *LoadBalancerApiService) DatacentersLoadbalancersBalancednicsGetExecute( localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "DatacentersLoadbalancersBalancednicsGet", + Operation: "DatacentersLoadbalancersBalancednicsGet", } if err != nil || localVarHTTPResponse == nil { @@ -501,13 +501,13 @@ func (a *LoadBalancerApiService) DatacentersLoadbalancersBalancednicsGetExecute( body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -524,13 +524,13 @@ func (a *LoadBalancerApiService) DatacentersLoadbalancersBalancednicsGetExecute( } type ApiDatacentersLoadbalancersBalancednicsPostRequest struct { - ctx _context.Context - ApiService *LoadBalancerApiService - datacenterId string - loadbalancerId string - nic *Nic - pretty *bool - depth *int32 + ctx _context.Context + ApiService *LoadBalancerApiService + datacenterId string + loadbalancerId string + nic *Nic + pretty *bool + depth *int32 xContractNumber *int32 } @@ -557,7 +557,7 @@ func (r ApiDatacentersLoadbalancersBalancednicsPostRequest) Execute() (Nic, *API /* * DatacentersLoadbalancersBalancednicsPost Attach a nic to Load Balancer - * This will attach a pre-existing nic to a Load Balancer. + * This will attach a pre-existing nic to a Load Balancer. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param datacenterId The unique ID of the datacenter * @param loadbalancerId The unique ID of the Load Balancer @@ -565,9 +565,9 @@ func (r ApiDatacentersLoadbalancersBalancednicsPostRequest) Execute() (Nic, *API */ func (a *LoadBalancerApiService) DatacentersLoadbalancersBalancednicsPost(ctx _context.Context, datacenterId string, loadbalancerId string) ApiDatacentersLoadbalancersBalancednicsPostRequest { return ApiDatacentersLoadbalancersBalancednicsPostRequest{ - ApiService: a, - ctx: ctx, - datacenterId: datacenterId, + ApiService: a, + ctx: ctx, + datacenterId: datacenterId, loadbalancerId: loadbalancerId, } } @@ -651,11 +651,11 @@ func (a *LoadBalancerApiService) DatacentersLoadbalancersBalancednicsPostExecute localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "DatacentersLoadbalancersBalancednicsPost", + Operation: "DatacentersLoadbalancersBalancednicsPost", } if err != nil || localVarHTTPResponse == nil { @@ -674,13 +674,13 @@ func (a *LoadBalancerApiService) DatacentersLoadbalancersBalancednicsPostExecute body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -697,12 +697,12 @@ func (a *LoadBalancerApiService) DatacentersLoadbalancersBalancednicsPostExecute } type ApiDatacentersLoadbalancersDeleteRequest struct { - ctx _context.Context - ApiService *LoadBalancerApiService - datacenterId string - loadbalancerId string - pretty *bool - depth *int32 + ctx _context.Context + ApiService *LoadBalancerApiService + datacenterId string + loadbalancerId string + pretty *bool + depth *int32 xContractNumber *int32 } @@ -733,9 +733,9 @@ func (r ApiDatacentersLoadbalancersDeleteRequest) Execute() (map[string]interfac */ func (a *LoadBalancerApiService) DatacentersLoadbalancersDelete(ctx _context.Context, datacenterId string, loadbalancerId string) ApiDatacentersLoadbalancersDeleteRequest { return ApiDatacentersLoadbalancersDeleteRequest{ - ApiService: a, - ctx: ctx, - datacenterId: datacenterId, + ApiService: a, + ctx: ctx, + datacenterId: datacenterId, loadbalancerId: loadbalancerId, } } @@ -814,11 +814,11 @@ func (a *LoadBalancerApiService) DatacentersLoadbalancersDeleteExecute(r ApiData localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "DatacentersLoadbalancersDelete", + Operation: "DatacentersLoadbalancersDelete", } if err != nil || localVarHTTPResponse == nil { @@ -837,13 +837,13 @@ func (a *LoadBalancerApiService) DatacentersLoadbalancersDeleteExecute(r ApiData body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -860,12 +860,12 @@ func (a *LoadBalancerApiService) DatacentersLoadbalancersDeleteExecute(r ApiData } type ApiDatacentersLoadbalancersFindByIdRequest struct { - ctx _context.Context - ApiService *LoadBalancerApiService - datacenterId string - loadbalancerId string - pretty *bool - depth *int32 + ctx _context.Context + ApiService *LoadBalancerApiService + datacenterId string + loadbalancerId string + pretty *bool + depth *int32 xContractNumber *int32 } @@ -896,9 +896,9 @@ func (r ApiDatacentersLoadbalancersFindByIdRequest) Execute() (Loadbalancer, *AP */ func (a *LoadBalancerApiService) DatacentersLoadbalancersFindById(ctx _context.Context, datacenterId string, loadbalancerId string) ApiDatacentersLoadbalancersFindByIdRequest { return ApiDatacentersLoadbalancersFindByIdRequest{ - ApiService: a, - ctx: ctx, - datacenterId: datacenterId, + ApiService: a, + ctx: ctx, + datacenterId: datacenterId, loadbalancerId: loadbalancerId, } } @@ -977,11 +977,11 @@ func (a *LoadBalancerApiService) DatacentersLoadbalancersFindByIdExecute(r ApiDa localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "DatacentersLoadbalancersFindById", + Operation: "DatacentersLoadbalancersFindById", } if err != nil || localVarHTTPResponse == nil { @@ -1000,13 +1000,13 @@ func (a *LoadBalancerApiService) DatacentersLoadbalancersFindByIdExecute(r ApiDa body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -1023,11 +1023,11 @@ func (a *LoadBalancerApiService) DatacentersLoadbalancersFindByIdExecute(r ApiDa } type ApiDatacentersLoadbalancersGetRequest struct { - ctx _context.Context - ApiService *LoadBalancerApiService - datacenterId string - pretty *bool - depth *int32 + ctx _context.Context + ApiService *LoadBalancerApiService + datacenterId string + pretty *bool + depth *int32 xContractNumber *int32 } @@ -1057,8 +1057,8 @@ func (r ApiDatacentersLoadbalancersGetRequest) Execute() (Loadbalancers, *APIRes */ func (a *LoadBalancerApiService) DatacentersLoadbalancersGet(ctx _context.Context, datacenterId string) ApiDatacentersLoadbalancersGetRequest { return ApiDatacentersLoadbalancersGetRequest{ - ApiService: a, - ctx: ctx, + ApiService: a, + ctx: ctx, datacenterId: datacenterId, } } @@ -1136,11 +1136,11 @@ func (a *LoadBalancerApiService) DatacentersLoadbalancersGetExecute(r ApiDatacen localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "DatacentersLoadbalancersGet", + Operation: "DatacentersLoadbalancersGet", } if err != nil || localVarHTTPResponse == nil { @@ -1159,13 +1159,13 @@ func (a *LoadBalancerApiService) DatacentersLoadbalancersGetExecute(r ApiDatacen body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -1182,13 +1182,13 @@ func (a *LoadBalancerApiService) DatacentersLoadbalancersGetExecute(r ApiDatacen } type ApiDatacentersLoadbalancersPatchRequest struct { - ctx _context.Context - ApiService *LoadBalancerApiService - datacenterId string - loadbalancerId string - loadbalancer *LoadbalancerProperties - pretty *bool - depth *int32 + ctx _context.Context + ApiService *LoadBalancerApiService + datacenterId string + loadbalancerId string + loadbalancer *LoadbalancerProperties + pretty *bool + depth *int32 xContractNumber *int32 } @@ -1223,9 +1223,9 @@ func (r ApiDatacentersLoadbalancersPatchRequest) Execute() (Loadbalancer, *APIRe */ func (a *LoadBalancerApiService) DatacentersLoadbalancersPatch(ctx _context.Context, datacenterId string, loadbalancerId string) ApiDatacentersLoadbalancersPatchRequest { return ApiDatacentersLoadbalancersPatchRequest{ - ApiService: a, - ctx: ctx, - datacenterId: datacenterId, + ApiService: a, + ctx: ctx, + datacenterId: datacenterId, loadbalancerId: loadbalancerId, } } @@ -1309,11 +1309,11 @@ func (a *LoadBalancerApiService) DatacentersLoadbalancersPatchExecute(r ApiDatac localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "DatacentersLoadbalancersPatch", + Operation: "DatacentersLoadbalancersPatch", } if err != nil || localVarHTTPResponse == nil { @@ -1332,13 +1332,13 @@ func (a *LoadBalancerApiService) DatacentersLoadbalancersPatchExecute(r ApiDatac body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -1355,12 +1355,12 @@ func (a *LoadBalancerApiService) DatacentersLoadbalancersPatchExecute(r ApiDatac } type ApiDatacentersLoadbalancersPostRequest struct { - ctx _context.Context - ApiService *LoadBalancerApiService - datacenterId string - loadbalancer *Loadbalancer - pretty *bool - depth *int32 + ctx _context.Context + ApiService *LoadBalancerApiService + datacenterId string + loadbalancer *Loadbalancer + pretty *bool + depth *int32 xContractNumber *int32 } @@ -1394,8 +1394,8 @@ func (r ApiDatacentersLoadbalancersPostRequest) Execute() (Loadbalancer, *APIRes */ func (a *LoadBalancerApiService) DatacentersLoadbalancersPost(ctx _context.Context, datacenterId string) ApiDatacentersLoadbalancersPostRequest { return ApiDatacentersLoadbalancersPostRequest{ - ApiService: a, - ctx: ctx, + ApiService: a, + ctx: ctx, datacenterId: datacenterId, } } @@ -1478,11 +1478,11 @@ func (a *LoadBalancerApiService) DatacentersLoadbalancersPostExecute(r ApiDatace localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "DatacentersLoadbalancersPost", + Operation: "DatacentersLoadbalancersPost", } if err != nil || localVarHTTPResponse == nil { @@ -1501,13 +1501,13 @@ func (a *LoadBalancerApiService) DatacentersLoadbalancersPostExecute(r ApiDatace body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -1524,13 +1524,13 @@ func (a *LoadBalancerApiService) DatacentersLoadbalancersPostExecute(r ApiDatace } type ApiDatacentersLoadbalancersPutRequest struct { - ctx _context.Context - ApiService *LoadBalancerApiService - datacenterId string - loadbalancerId string - loadbalancer *Loadbalancer - pretty *bool - depth *int32 + ctx _context.Context + ApiService *LoadBalancerApiService + datacenterId string + loadbalancerId string + loadbalancer *Loadbalancer + pretty *bool + depth *int32 xContractNumber *int32 } @@ -1565,9 +1565,9 @@ func (r ApiDatacentersLoadbalancersPutRequest) Execute() (Loadbalancer, *APIResp */ func (a *LoadBalancerApiService) DatacentersLoadbalancersPut(ctx _context.Context, datacenterId string, loadbalancerId string) ApiDatacentersLoadbalancersPutRequest { return ApiDatacentersLoadbalancersPutRequest{ - ApiService: a, - ctx: ctx, - datacenterId: datacenterId, + ApiService: a, + ctx: ctx, + datacenterId: datacenterId, loadbalancerId: loadbalancerId, } } @@ -1651,11 +1651,11 @@ func (a *LoadBalancerApiService) DatacentersLoadbalancersPutExecute(r ApiDatacen localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "DatacentersLoadbalancersPut", + Operation: "DatacentersLoadbalancersPut", } if err != nil || localVarHTTPResponse == nil { @@ -1674,13 +1674,13 @@ func (a *LoadBalancerApiService) DatacentersLoadbalancersPutExecute(r ApiDatacen body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/api_location.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/api_location.go index 138ac64c4a68..865deb0a9028 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/api_location.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/api_location.go @@ -27,11 +27,11 @@ var ( type LocationApiService service type ApiLocationsFindByRegionRequest struct { - ctx _context.Context - ApiService *LocationApiService - regionId string - pretty *bool - depth *int32 + ctx _context.Context + ApiService *LocationApiService + regionId string + pretty *bool + depth *int32 xContractNumber *int32 } @@ -62,8 +62,8 @@ func (r ApiLocationsFindByRegionRequest) Execute() (Locations, *APIResponse, err func (a *LocationApiService) LocationsFindByRegion(ctx _context.Context, regionId string) ApiLocationsFindByRegionRequest { return ApiLocationsFindByRegionRequest{ ApiService: a, - ctx: ctx, - regionId: regionId, + ctx: ctx, + regionId: regionId, } } @@ -140,11 +140,11 @@ func (a *LocationApiService) LocationsFindByRegionExecute(r ApiLocationsFindByRe localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "LocationsFindByRegion", + Operation: "LocationsFindByRegion", } if err != nil || localVarHTTPResponse == nil { @@ -163,13 +163,13 @@ func (a *LocationApiService) LocationsFindByRegionExecute(r ApiLocationsFindByRe body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -186,12 +186,12 @@ func (a *LocationApiService) LocationsFindByRegionExecute(r ApiLocationsFindByRe } type ApiLocationsFindByRegionAndIdRequest struct { - ctx _context.Context - ApiService *LocationApiService - regionId string - locationId string - pretty *bool - depth *int32 + ctx _context.Context + ApiService *LocationApiService + regionId string + locationId string + pretty *bool + depth *int32 xContractNumber *int32 } @@ -223,8 +223,8 @@ func (r ApiLocationsFindByRegionAndIdRequest) Execute() (Location, *APIResponse, func (a *LocationApiService) LocationsFindByRegionAndId(ctx _context.Context, regionId string, locationId string) ApiLocationsFindByRegionAndIdRequest { return ApiLocationsFindByRegionAndIdRequest{ ApiService: a, - ctx: ctx, - regionId: regionId, + ctx: ctx, + regionId: regionId, locationId: locationId, } } @@ -303,11 +303,11 @@ func (a *LocationApiService) LocationsFindByRegionAndIdExecute(r ApiLocationsFin localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "LocationsFindByRegionAndId", + Operation: "LocationsFindByRegionAndId", } if err != nil || localVarHTTPResponse == nil { @@ -326,13 +326,13 @@ func (a *LocationApiService) LocationsFindByRegionAndIdExecute(r ApiLocationsFin body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -349,10 +349,10 @@ func (a *LocationApiService) LocationsFindByRegionAndIdExecute(r ApiLocationsFin } type ApiLocationsGetRequest struct { - ctx _context.Context - ApiService *LocationApiService - pretty *bool - depth *int32 + ctx _context.Context + ApiService *LocationApiService + pretty *bool + depth *int32 xContractNumber *int32 } @@ -382,7 +382,7 @@ func (r ApiLocationsGetRequest) Execute() (Locations, *APIResponse, error) { func (a *LocationApiService) LocationsGet(ctx _context.Context) ApiLocationsGetRequest { return ApiLocationsGetRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -458,11 +458,11 @@ func (a *LocationApiService) LocationsGetExecute(r ApiLocationsGetRequest) (Loca localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "LocationsGet", + Operation: "LocationsGet", } if err != nil || localVarHTTPResponse == nil { @@ -481,13 +481,13 @@ func (a *LocationApiService) LocationsGetExecute(r ApiLocationsGetRequest) (Loca body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/api_nic.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/api_nic.go index b82c51cadad1..069ec2e1a093 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/api_nic.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/api_nic.go @@ -27,13 +27,13 @@ var ( type NicApiService service type ApiDatacentersServersNicsDeleteRequest struct { - ctx _context.Context - ApiService *NicApiService - datacenterId string - serverId string - nicId string - pretty *bool - depth *int32 + ctx _context.Context + ApiService *NicApiService + datacenterId string + serverId string + nicId string + pretty *bool + depth *int32 xContractNumber *int32 } @@ -65,11 +65,11 @@ func (r ApiDatacentersServersNicsDeleteRequest) Execute() (map[string]interface{ */ func (a *NicApiService) DatacentersServersNicsDelete(ctx _context.Context, datacenterId string, serverId string, nicId string) ApiDatacentersServersNicsDeleteRequest { return ApiDatacentersServersNicsDeleteRequest{ - ApiService: a, - ctx: ctx, + ApiService: a, + ctx: ctx, datacenterId: datacenterId, - serverId: serverId, - nicId: nicId, + serverId: serverId, + nicId: nicId, } } @@ -148,11 +148,11 @@ func (a *NicApiService) DatacentersServersNicsDeleteExecute(r ApiDatacentersServ localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "DatacentersServersNicsDelete", + Operation: "DatacentersServersNicsDelete", } if err != nil || localVarHTTPResponse == nil { @@ -171,13 +171,13 @@ func (a *NicApiService) DatacentersServersNicsDeleteExecute(r ApiDatacentersServ body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -194,13 +194,13 @@ func (a *NicApiService) DatacentersServersNicsDeleteExecute(r ApiDatacentersServ } type ApiDatacentersServersNicsFindByIdRequest struct { - ctx _context.Context - ApiService *NicApiService - datacenterId string - serverId string - nicId string - pretty *bool - depth *int32 + ctx _context.Context + ApiService *NicApiService + datacenterId string + serverId string + nicId string + pretty *bool + depth *int32 xContractNumber *int32 } @@ -232,11 +232,11 @@ func (r ApiDatacentersServersNicsFindByIdRequest) Execute() (Nic, *APIResponse, */ func (a *NicApiService) DatacentersServersNicsFindById(ctx _context.Context, datacenterId string, serverId string, nicId string) ApiDatacentersServersNicsFindByIdRequest { return ApiDatacentersServersNicsFindByIdRequest{ - ApiService: a, - ctx: ctx, + ApiService: a, + ctx: ctx, datacenterId: datacenterId, - serverId: serverId, - nicId: nicId, + serverId: serverId, + nicId: nicId, } } @@ -315,11 +315,11 @@ func (a *NicApiService) DatacentersServersNicsFindByIdExecute(r ApiDatacentersSe localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "DatacentersServersNicsFindById", + Operation: "DatacentersServersNicsFindById", } if err != nil || localVarHTTPResponse == nil { @@ -338,13 +338,13 @@ func (a *NicApiService) DatacentersServersNicsFindByIdExecute(r ApiDatacentersSe body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -361,14 +361,14 @@ func (a *NicApiService) DatacentersServersNicsFindByIdExecute(r ApiDatacentersSe } type ApiDatacentersServersNicsFirewallrulesDeleteRequest struct { - ctx _context.Context - ApiService *NicApiService - datacenterId string - serverId string - nicId string - firewallruleId string - pretty *bool - depth *int32 + ctx _context.Context + ApiService *NicApiService + datacenterId string + serverId string + nicId string + firewallruleId string + pretty *bool + depth *int32 xContractNumber *int32 } @@ -401,11 +401,11 @@ func (r ApiDatacentersServersNicsFirewallrulesDeleteRequest) Execute() (map[stri */ func (a *NicApiService) DatacentersServersNicsFirewallrulesDelete(ctx _context.Context, datacenterId string, serverId string, nicId string, firewallruleId string) ApiDatacentersServersNicsFirewallrulesDeleteRequest { return ApiDatacentersServersNicsFirewallrulesDeleteRequest{ - ApiService: a, - ctx: ctx, - datacenterId: datacenterId, - serverId: serverId, - nicId: nicId, + ApiService: a, + ctx: ctx, + datacenterId: datacenterId, + serverId: serverId, + nicId: nicId, firewallruleId: firewallruleId, } } @@ -486,11 +486,11 @@ func (a *NicApiService) DatacentersServersNicsFirewallrulesDeleteExecute(r ApiDa localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "DatacentersServersNicsFirewallrulesDelete", + Operation: "DatacentersServersNicsFirewallrulesDelete", } if err != nil || localVarHTTPResponse == nil { @@ -509,13 +509,13 @@ func (a *NicApiService) DatacentersServersNicsFirewallrulesDeleteExecute(r ApiDa body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -532,14 +532,14 @@ func (a *NicApiService) DatacentersServersNicsFirewallrulesDeleteExecute(r ApiDa } type ApiDatacentersServersNicsFirewallrulesFindByIdRequest struct { - ctx _context.Context - ApiService *NicApiService - datacenterId string - serverId string - nicId string - firewallruleId string - pretty *bool - depth *int32 + ctx _context.Context + ApiService *NicApiService + datacenterId string + serverId string + nicId string + firewallruleId string + pretty *bool + depth *int32 xContractNumber *int32 } @@ -572,11 +572,11 @@ func (r ApiDatacentersServersNicsFirewallrulesFindByIdRequest) Execute() (Firewa */ func (a *NicApiService) DatacentersServersNicsFirewallrulesFindById(ctx _context.Context, datacenterId string, serverId string, nicId string, firewallruleId string) ApiDatacentersServersNicsFirewallrulesFindByIdRequest { return ApiDatacentersServersNicsFirewallrulesFindByIdRequest{ - ApiService: a, - ctx: ctx, - datacenterId: datacenterId, - serverId: serverId, - nicId: nicId, + ApiService: a, + ctx: ctx, + datacenterId: datacenterId, + serverId: serverId, + nicId: nicId, firewallruleId: firewallruleId, } } @@ -657,11 +657,11 @@ func (a *NicApiService) DatacentersServersNicsFirewallrulesFindByIdExecute(r Api localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "DatacentersServersNicsFirewallrulesFindById", + Operation: "DatacentersServersNicsFirewallrulesFindById", } if err != nil || localVarHTTPResponse == nil { @@ -680,13 +680,13 @@ func (a *NicApiService) DatacentersServersNicsFirewallrulesFindByIdExecute(r Api body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -703,13 +703,13 @@ func (a *NicApiService) DatacentersServersNicsFirewallrulesFindByIdExecute(r Api } type ApiDatacentersServersNicsFirewallrulesGetRequest struct { - ctx _context.Context - ApiService *NicApiService - datacenterId string - serverId string - nicId string - pretty *bool - depth *int32 + ctx _context.Context + ApiService *NicApiService + datacenterId string + serverId string + nicId string + pretty *bool + depth *int32 xContractNumber *int32 } @@ -731,7 +731,7 @@ func (r ApiDatacentersServersNicsFirewallrulesGetRequest) Execute() (FirewallRul } /* - * DatacentersServersNicsFirewallrulesGet List Firewall Rules + * DatacentersServersNicsFirewallrulesGet List Firewall Rules * Retrieves a list of firewall rules associated with a particular NIC * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param datacenterId The unique ID of the datacenter @@ -741,11 +741,11 @@ func (r ApiDatacentersServersNicsFirewallrulesGetRequest) Execute() (FirewallRul */ func (a *NicApiService) DatacentersServersNicsFirewallrulesGet(ctx _context.Context, datacenterId string, serverId string, nicId string) ApiDatacentersServersNicsFirewallrulesGetRequest { return ApiDatacentersServersNicsFirewallrulesGetRequest{ - ApiService: a, - ctx: ctx, + ApiService: a, + ctx: ctx, datacenterId: datacenterId, - serverId: serverId, - nicId: nicId, + serverId: serverId, + nicId: nicId, } } @@ -824,11 +824,11 @@ func (a *NicApiService) DatacentersServersNicsFirewallrulesGetExecute(r ApiDatac localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "DatacentersServersNicsFirewallrulesGet", + Operation: "DatacentersServersNicsFirewallrulesGet", } if err != nil || localVarHTTPResponse == nil { @@ -847,13 +847,13 @@ func (a *NicApiService) DatacentersServersNicsFirewallrulesGetExecute(r ApiDatac body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -870,15 +870,15 @@ func (a *NicApiService) DatacentersServersNicsFirewallrulesGetExecute(r ApiDatac } type ApiDatacentersServersNicsFirewallrulesPatchRequest struct { - ctx _context.Context - ApiService *NicApiService - datacenterId string - serverId string - nicId string - firewallruleId string - firewallrule *FirewallruleProperties - pretty *bool - depth *int32 + ctx _context.Context + ApiService *NicApiService + datacenterId string + serverId string + nicId string + firewallruleId string + firewallrule *FirewallruleProperties + pretty *bool + depth *int32 xContractNumber *int32 } @@ -915,11 +915,11 @@ func (r ApiDatacentersServersNicsFirewallrulesPatchRequest) Execute() (FirewallR */ func (a *NicApiService) DatacentersServersNicsFirewallrulesPatch(ctx _context.Context, datacenterId string, serverId string, nicId string, firewallruleId string) ApiDatacentersServersNicsFirewallrulesPatchRequest { return ApiDatacentersServersNicsFirewallrulesPatchRequest{ - ApiService: a, - ctx: ctx, - datacenterId: datacenterId, - serverId: serverId, - nicId: nicId, + ApiService: a, + ctx: ctx, + datacenterId: datacenterId, + serverId: serverId, + nicId: nicId, firewallruleId: firewallruleId, } } @@ -1005,11 +1005,11 @@ func (a *NicApiService) DatacentersServersNicsFirewallrulesPatchExecute(r ApiDat localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "DatacentersServersNicsFirewallrulesPatch", + Operation: "DatacentersServersNicsFirewallrulesPatch", } if err != nil || localVarHTTPResponse == nil { @@ -1028,13 +1028,13 @@ func (a *NicApiService) DatacentersServersNicsFirewallrulesPatchExecute(r ApiDat body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -1051,14 +1051,14 @@ func (a *NicApiService) DatacentersServersNicsFirewallrulesPatchExecute(r ApiDat } type ApiDatacentersServersNicsFirewallrulesPostRequest struct { - ctx _context.Context - ApiService *NicApiService - datacenterId string - serverId string - nicId string - firewallrule *FirewallRule - pretty *bool - depth *int32 + ctx _context.Context + ApiService *NicApiService + datacenterId string + serverId string + nicId string + firewallrule *FirewallRule + pretty *bool + depth *int32 xContractNumber *int32 } @@ -1094,11 +1094,11 @@ func (r ApiDatacentersServersNicsFirewallrulesPostRequest) Execute() (FirewallRu */ func (a *NicApiService) DatacentersServersNicsFirewallrulesPost(ctx _context.Context, datacenterId string, serverId string, nicId string) ApiDatacentersServersNicsFirewallrulesPostRequest { return ApiDatacentersServersNicsFirewallrulesPostRequest{ - ApiService: a, - ctx: ctx, + ApiService: a, + ctx: ctx, datacenterId: datacenterId, - serverId: serverId, - nicId: nicId, + serverId: serverId, + nicId: nicId, } } @@ -1182,11 +1182,11 @@ func (a *NicApiService) DatacentersServersNicsFirewallrulesPostExecute(r ApiData localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "DatacentersServersNicsFirewallrulesPost", + Operation: "DatacentersServersNicsFirewallrulesPost", } if err != nil || localVarHTTPResponse == nil { @@ -1205,13 +1205,13 @@ func (a *NicApiService) DatacentersServersNicsFirewallrulesPostExecute(r ApiData body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -1228,15 +1228,15 @@ func (a *NicApiService) DatacentersServersNicsFirewallrulesPostExecute(r ApiData } type ApiDatacentersServersNicsFirewallrulesPutRequest struct { - ctx _context.Context - ApiService *NicApiService - datacenterId string - serverId string - nicId string - firewallruleId string - firewallrule *FirewallRule - pretty *bool - depth *int32 + ctx _context.Context + ApiService *NicApiService + datacenterId string + serverId string + nicId string + firewallruleId string + firewallrule *FirewallRule + pretty *bool + depth *int32 xContractNumber *int32 } @@ -1273,11 +1273,11 @@ func (r ApiDatacentersServersNicsFirewallrulesPutRequest) Execute() (FirewallRul */ func (a *NicApiService) DatacentersServersNicsFirewallrulesPut(ctx _context.Context, datacenterId string, serverId string, nicId string, firewallruleId string) ApiDatacentersServersNicsFirewallrulesPutRequest { return ApiDatacentersServersNicsFirewallrulesPutRequest{ - ApiService: a, - ctx: ctx, - datacenterId: datacenterId, - serverId: serverId, - nicId: nicId, + ApiService: a, + ctx: ctx, + datacenterId: datacenterId, + serverId: serverId, + nicId: nicId, firewallruleId: firewallruleId, } } @@ -1363,11 +1363,11 @@ func (a *NicApiService) DatacentersServersNicsFirewallrulesPutExecute(r ApiDatac localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "DatacentersServersNicsFirewallrulesPut", + Operation: "DatacentersServersNicsFirewallrulesPut", } if err != nil || localVarHTTPResponse == nil { @@ -1386,13 +1386,13 @@ func (a *NicApiService) DatacentersServersNicsFirewallrulesPutExecute(r ApiDatac body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -1409,12 +1409,12 @@ func (a *NicApiService) DatacentersServersNicsFirewallrulesPutExecute(r ApiDatac } type ApiDatacentersServersNicsGetRequest struct { - ctx _context.Context - ApiService *NicApiService - datacenterId string - serverId string - pretty *bool - depth *int32 + ctx _context.Context + ApiService *NicApiService + datacenterId string + serverId string + pretty *bool + depth *int32 xContractNumber *int32 } @@ -1436,7 +1436,7 @@ func (r ApiDatacentersServersNicsGetRequest) Execute() (Nics, *APIResponse, erro } /* - * DatacentersServersNicsGet List Nics + * DatacentersServersNicsGet List Nics * Retrieves a list of NICs. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param datacenterId The unique ID of the datacenter @@ -1445,10 +1445,10 @@ func (r ApiDatacentersServersNicsGetRequest) Execute() (Nics, *APIResponse, erro */ func (a *NicApiService) DatacentersServersNicsGet(ctx _context.Context, datacenterId string, serverId string) ApiDatacentersServersNicsGetRequest { return ApiDatacentersServersNicsGetRequest{ - ApiService: a, - ctx: ctx, + ApiService: a, + ctx: ctx, datacenterId: datacenterId, - serverId: serverId, + serverId: serverId, } } @@ -1526,11 +1526,11 @@ func (a *NicApiService) DatacentersServersNicsGetExecute(r ApiDatacentersServers localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "DatacentersServersNicsGet", + Operation: "DatacentersServersNicsGet", } if err != nil || localVarHTTPResponse == nil { @@ -1549,13 +1549,13 @@ func (a *NicApiService) DatacentersServersNicsGetExecute(r ApiDatacentersServers body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -1572,14 +1572,14 @@ func (a *NicApiService) DatacentersServersNicsGetExecute(r ApiDatacentersServers } type ApiDatacentersServersNicsPatchRequest struct { - ctx _context.Context - ApiService *NicApiService - datacenterId string - serverId string - nicId string - nic *NicProperties - pretty *bool - depth *int32 + ctx _context.Context + ApiService *NicApiService + datacenterId string + serverId string + nicId string + nic *NicProperties + pretty *bool + depth *int32 xContractNumber *int32 } @@ -1615,11 +1615,11 @@ func (r ApiDatacentersServersNicsPatchRequest) Execute() (Nic, *APIResponse, err */ func (a *NicApiService) DatacentersServersNicsPatch(ctx _context.Context, datacenterId string, serverId string, nicId string) ApiDatacentersServersNicsPatchRequest { return ApiDatacentersServersNicsPatchRequest{ - ApiService: a, - ctx: ctx, + ApiService: a, + ctx: ctx, datacenterId: datacenterId, - serverId: serverId, - nicId: nicId, + serverId: serverId, + nicId: nicId, } } @@ -1703,11 +1703,11 @@ func (a *NicApiService) DatacentersServersNicsPatchExecute(r ApiDatacentersServe localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "DatacentersServersNicsPatch", + Operation: "DatacentersServersNicsPatch", } if err != nil || localVarHTTPResponse == nil { @@ -1726,13 +1726,13 @@ func (a *NicApiService) DatacentersServersNicsPatchExecute(r ApiDatacentersServe body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -1749,13 +1749,13 @@ func (a *NicApiService) DatacentersServersNicsPatchExecute(r ApiDatacentersServe } type ApiDatacentersServersNicsPostRequest struct { - ctx _context.Context - ApiService *NicApiService - datacenterId string - serverId string - nic *Nic - pretty *bool - depth *int32 + ctx _context.Context + ApiService *NicApiService + datacenterId string + serverId string + nic *Nic + pretty *bool + depth *int32 xContractNumber *int32 } @@ -1790,10 +1790,10 @@ func (r ApiDatacentersServersNicsPostRequest) Execute() (Nic, *APIResponse, erro */ func (a *NicApiService) DatacentersServersNicsPost(ctx _context.Context, datacenterId string, serverId string) ApiDatacentersServersNicsPostRequest { return ApiDatacentersServersNicsPostRequest{ - ApiService: a, - ctx: ctx, + ApiService: a, + ctx: ctx, datacenterId: datacenterId, - serverId: serverId, + serverId: serverId, } } @@ -1876,11 +1876,11 @@ func (a *NicApiService) DatacentersServersNicsPostExecute(r ApiDatacentersServer localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "DatacentersServersNicsPost", + Operation: "DatacentersServersNicsPost", } if err != nil || localVarHTTPResponse == nil { @@ -1899,13 +1899,13 @@ func (a *NicApiService) DatacentersServersNicsPostExecute(r ApiDatacentersServer body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -1922,14 +1922,14 @@ func (a *NicApiService) DatacentersServersNicsPostExecute(r ApiDatacentersServer } type ApiDatacentersServersNicsPutRequest struct { - ctx _context.Context - ApiService *NicApiService - datacenterId string - serverId string - nicId string - nic *Nic - pretty *bool - depth *int32 + ctx _context.Context + ApiService *NicApiService + datacenterId string + serverId string + nicId string + nic *Nic + pretty *bool + depth *int32 xContractNumber *int32 } @@ -1965,11 +1965,11 @@ func (r ApiDatacentersServersNicsPutRequest) Execute() (Nic, *APIResponse, error */ func (a *NicApiService) DatacentersServersNicsPut(ctx _context.Context, datacenterId string, serverId string, nicId string) ApiDatacentersServersNicsPutRequest { return ApiDatacentersServersNicsPutRequest{ - ApiService: a, - ctx: ctx, + ApiService: a, + ctx: ctx, datacenterId: datacenterId, - serverId: serverId, - nicId: nicId, + serverId: serverId, + nicId: nicId, } } @@ -2053,11 +2053,11 @@ func (a *NicApiService) DatacentersServersNicsPutExecute(r ApiDatacentersServers localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "DatacentersServersNicsPut", + Operation: "DatacentersServersNicsPut", } if err != nil || localVarHTTPResponse == nil { @@ -2076,13 +2076,13 @@ func (a *NicApiService) DatacentersServersNicsPutExecute(r ApiDatacentersServers body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/api_private_cross_connect.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/api_private_cross_connect.go index bb74acd11509..355261792dd9 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/api_private_cross_connect.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/api_private_cross_connect.go @@ -27,11 +27,11 @@ var ( type PrivateCrossConnectApiService service type ApiPccsDeleteRequest struct { - ctx _context.Context - ApiService *PrivateCrossConnectApiService - pccId string - pretty *bool - depth *int32 + ctx _context.Context + ApiService *PrivateCrossConnectApiService + pccId string + pretty *bool + depth *int32 xContractNumber *int32 } @@ -62,8 +62,8 @@ func (r ApiPccsDeleteRequest) Execute() (map[string]interface{}, *APIResponse, e func (a *PrivateCrossConnectApiService) PccsDelete(ctx _context.Context, pccId string) ApiPccsDeleteRequest { return ApiPccsDeleteRequest{ ApiService: a, - ctx: ctx, - pccId: pccId, + ctx: ctx, + pccId: pccId, } } @@ -140,11 +140,11 @@ func (a *PrivateCrossConnectApiService) PccsDeleteExecute(r ApiPccsDeleteRequest localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "PccsDelete", + Operation: "PccsDelete", } if err != nil || localVarHTTPResponse == nil { @@ -163,13 +163,13 @@ func (a *PrivateCrossConnectApiService) PccsDeleteExecute(r ApiPccsDeleteRequest body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -186,11 +186,11 @@ func (a *PrivateCrossConnectApiService) PccsDeleteExecute(r ApiPccsDeleteRequest } type ApiPccsFindByIdRequest struct { - ctx _context.Context - ApiService *PrivateCrossConnectApiService - pccId string - pretty *bool - depth *int32 + ctx _context.Context + ApiService *PrivateCrossConnectApiService + pccId string + pretty *bool + depth *int32 xContractNumber *int32 } @@ -221,8 +221,8 @@ func (r ApiPccsFindByIdRequest) Execute() (PrivateCrossConnect, *APIResponse, er func (a *PrivateCrossConnectApiService) PccsFindById(ctx _context.Context, pccId string) ApiPccsFindByIdRequest { return ApiPccsFindByIdRequest{ ApiService: a, - ctx: ctx, - pccId: pccId, + ctx: ctx, + pccId: pccId, } } @@ -299,11 +299,11 @@ func (a *PrivateCrossConnectApiService) PccsFindByIdExecute(r ApiPccsFindByIdReq localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "PccsFindById", + Operation: "PccsFindById", } if err != nil || localVarHTTPResponse == nil { @@ -322,13 +322,13 @@ func (a *PrivateCrossConnectApiService) PccsFindByIdExecute(r ApiPccsFindByIdReq body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -345,10 +345,10 @@ func (a *PrivateCrossConnectApiService) PccsFindByIdExecute(r ApiPccsFindByIdReq } type ApiPccsGetRequest struct { - ctx _context.Context - ApiService *PrivateCrossConnectApiService - pretty *bool - depth *int32 + ctx _context.Context + ApiService *PrivateCrossConnectApiService + pretty *bool + depth *int32 xContractNumber *int32 } @@ -370,7 +370,7 @@ func (r ApiPccsGetRequest) Execute() (PrivateCrossConnects, *APIResponse, error) } /* - * PccsGet List Private Cross-Connects + * PccsGet List Private Cross-Connects * You can retrieve a complete list of private cross-connects provisioned under your account * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @return ApiPccsGetRequest @@ -378,7 +378,7 @@ func (r ApiPccsGetRequest) Execute() (PrivateCrossConnects, *APIResponse, error) func (a *PrivateCrossConnectApiService) PccsGet(ctx _context.Context) ApiPccsGetRequest { return ApiPccsGetRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -454,11 +454,11 @@ func (a *PrivateCrossConnectApiService) PccsGetExecute(r ApiPccsGetRequest) (Pri localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "PccsGet", + Operation: "PccsGet", } if err != nil || localVarHTTPResponse == nil { @@ -477,13 +477,13 @@ func (a *PrivateCrossConnectApiService) PccsGetExecute(r ApiPccsGetRequest) (Pri body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -500,12 +500,12 @@ func (a *PrivateCrossConnectApiService) PccsGetExecute(r ApiPccsGetRequest) (Pri } type ApiPccsPatchRequest struct { - ctx _context.Context - ApiService *PrivateCrossConnectApiService - pccId string - pcc *PrivateCrossConnectProperties - pretty *bool - depth *int32 + ctx _context.Context + ApiService *PrivateCrossConnectApiService + pccId string + pcc *PrivateCrossConnectProperties + pretty *bool + depth *int32 xContractNumber *int32 } @@ -540,8 +540,8 @@ func (r ApiPccsPatchRequest) Execute() (PrivateCrossConnect, *APIResponse, error func (a *PrivateCrossConnectApiService) PccsPatch(ctx _context.Context, pccId string) ApiPccsPatchRequest { return ApiPccsPatchRequest{ ApiService: a, - ctx: ctx, - pccId: pccId, + ctx: ctx, + pccId: pccId, } } @@ -623,11 +623,11 @@ func (a *PrivateCrossConnectApiService) PccsPatchExecute(r ApiPccsPatchRequest) localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "PccsPatch", + Operation: "PccsPatch", } if err != nil || localVarHTTPResponse == nil { @@ -646,13 +646,13 @@ func (a *PrivateCrossConnectApiService) PccsPatchExecute(r ApiPccsPatchRequest) body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -669,11 +669,11 @@ func (a *PrivateCrossConnectApiService) PccsPatchExecute(r ApiPccsPatchRequest) } type ApiPccsPostRequest struct { - ctx _context.Context - ApiService *PrivateCrossConnectApiService - pcc *PrivateCrossConnect - pretty *bool - depth *int32 + ctx _context.Context + ApiService *PrivateCrossConnectApiService + pcc *PrivateCrossConnect + pretty *bool + depth *int32 xContractNumber *int32 } @@ -707,7 +707,7 @@ func (r ApiPccsPostRequest) Execute() (PrivateCrossConnect, *APIResponse, error) func (a *PrivateCrossConnectApiService) PccsPost(ctx _context.Context) ApiPccsPostRequest { return ApiPccsPostRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -788,11 +788,11 @@ func (a *PrivateCrossConnectApiService) PccsPostExecute(r ApiPccsPostRequest) (P localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "PccsPost", + Operation: "PccsPost", } if err != nil || localVarHTTPResponse == nil { @@ -811,13 +811,13 @@ func (a *PrivateCrossConnectApiService) PccsPostExecute(r ApiPccsPostRequest) (P body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/api_request.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/api_request.go index f9cab7010ca6..0cdba95a7c92 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/api_request.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/api_request.go @@ -27,11 +27,11 @@ var ( type RequestApiService service type ApiRequestsFindByIdRequest struct { - ctx _context.Context - ApiService *RequestApiService - requestId string - pretty *bool - depth *int32 + ctx _context.Context + ApiService *RequestApiService + requestId string + pretty *bool + depth *int32 xContractNumber *int32 } @@ -62,8 +62,8 @@ func (r ApiRequestsFindByIdRequest) Execute() (Request, *APIResponse, error) { func (a *RequestApiService) RequestsFindById(ctx _context.Context, requestId string) ApiRequestsFindByIdRequest { return ApiRequestsFindByIdRequest{ ApiService: a, - ctx: ctx, - requestId: requestId, + ctx: ctx, + requestId: requestId, } } @@ -140,11 +140,11 @@ func (a *RequestApiService) RequestsFindByIdExecute(r ApiRequestsFindByIdRequest localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "RequestsFindById", + Operation: "RequestsFindById", } if err != nil || localVarHTTPResponse == nil { @@ -163,13 +163,13 @@ func (a *RequestApiService) RequestsFindByIdExecute(r ApiRequestsFindByIdRequest body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -186,18 +186,18 @@ func (a *RequestApiService) RequestsFindByIdExecute(r ApiRequestsFindByIdRequest } type ApiRequestsGetRequest struct { - ctx _context.Context - ApiService *RequestApiService - pretty *bool - depth *int32 - xContractNumber *int32 - filterStatus *string - filterCreatedAfter *string + ctx _context.Context + ApiService *RequestApiService + pretty *bool + depth *int32 + xContractNumber *int32 + filterStatus *string + filterCreatedAfter *string filterCreatedBefore *string - filterUrl *string - filterCreatedDate *string - filterMethod *string - filterBody *string + filterUrl *string + filterCreatedDate *string + filterMethod *string + filterBody *string } func (r ApiRequestsGetRequest) Pretty(pretty bool) ApiRequestsGetRequest { @@ -254,7 +254,7 @@ func (r ApiRequestsGetRequest) Execute() (Requests, *APIResponse, error) { func (a *RequestApiService) RequestsGet(ctx _context.Context) ApiRequestsGetRequest { return ApiRequestsGetRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -351,11 +351,11 @@ func (a *RequestApiService) RequestsGetExecute(r ApiRequestsGetRequest) (Request localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "RequestsGet", + Operation: "RequestsGet", } if err != nil || localVarHTTPResponse == nil { @@ -374,13 +374,13 @@ func (a *RequestApiService) RequestsGetExecute(r ApiRequestsGetRequest) (Request body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -397,11 +397,11 @@ func (a *RequestApiService) RequestsGetExecute(r ApiRequestsGetRequest) (Request } type ApiRequestsStatusGetRequest struct { - ctx _context.Context - ApiService *RequestApiService - requestId string - pretty *bool - depth *int32 + ctx _context.Context + ApiService *RequestApiService + requestId string + pretty *bool + depth *int32 xContractNumber *int32 } @@ -432,8 +432,8 @@ func (r ApiRequestsStatusGetRequest) Execute() (RequestStatus, *APIResponse, err func (a *RequestApiService) RequestsStatusGet(ctx _context.Context, requestId string) ApiRequestsStatusGetRequest { return ApiRequestsStatusGetRequest{ ApiService: a, - ctx: ctx, - requestId: requestId, + ctx: ctx, + requestId: requestId, } } @@ -510,11 +510,11 @@ func (a *RequestApiService) RequestsStatusGetExecute(r ApiRequestsStatusGetReque localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "RequestsStatusGet", + Operation: "RequestsStatusGet", } if err != nil || localVarHTTPResponse == nil { @@ -533,13 +533,13 @@ func (a *RequestApiService) RequestsStatusGetExecute(r ApiRequestsStatusGetReque body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/api_server.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/api_server.go index 232be2662004..09d62e4a2148 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/api_server.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/api_server.go @@ -27,13 +27,13 @@ var ( type ServerApiService service type ApiDatacentersServersCdromsDeleteRequest struct { - ctx _context.Context - ApiService *ServerApiService - datacenterId string - serverId string - cdromId string - pretty *bool - depth *int32 + ctx _context.Context + ApiService *ServerApiService + datacenterId string + serverId string + cdromId string + pretty *bool + depth *int32 xContractNumber *int32 } @@ -65,11 +65,11 @@ func (r ApiDatacentersServersCdromsDeleteRequest) Execute() (map[string]interfac */ func (a *ServerApiService) DatacentersServersCdromsDelete(ctx _context.Context, datacenterId string, serverId string, cdromId string) ApiDatacentersServersCdromsDeleteRequest { return ApiDatacentersServersCdromsDeleteRequest{ - ApiService: a, - ctx: ctx, + ApiService: a, + ctx: ctx, datacenterId: datacenterId, - serverId: serverId, - cdromId: cdromId, + serverId: serverId, + cdromId: cdromId, } } @@ -148,11 +148,11 @@ func (a *ServerApiService) DatacentersServersCdromsDeleteExecute(r ApiDatacenter localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "DatacentersServersCdromsDelete", + Operation: "DatacentersServersCdromsDelete", } if err != nil || localVarHTTPResponse == nil { @@ -171,13 +171,13 @@ func (a *ServerApiService) DatacentersServersCdromsDeleteExecute(r ApiDatacenter body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -194,13 +194,13 @@ func (a *ServerApiService) DatacentersServersCdromsDeleteExecute(r ApiDatacenter } type ApiDatacentersServersCdromsFindByIdRequest struct { - ctx _context.Context - ApiService *ServerApiService - datacenterId string - serverId string - cdromId string - pretty *bool - depth *int32 + ctx _context.Context + ApiService *ServerApiService + datacenterId string + serverId string + cdromId string + pretty *bool + depth *int32 xContractNumber *int32 } @@ -232,11 +232,11 @@ func (r ApiDatacentersServersCdromsFindByIdRequest) Execute() (Image, *APIRespon */ func (a *ServerApiService) DatacentersServersCdromsFindById(ctx _context.Context, datacenterId string, serverId string, cdromId string) ApiDatacentersServersCdromsFindByIdRequest { return ApiDatacentersServersCdromsFindByIdRequest{ - ApiService: a, - ctx: ctx, + ApiService: a, + ctx: ctx, datacenterId: datacenterId, - serverId: serverId, - cdromId: cdromId, + serverId: serverId, + cdromId: cdromId, } } @@ -315,11 +315,11 @@ func (a *ServerApiService) DatacentersServersCdromsFindByIdExecute(r ApiDatacent localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "DatacentersServersCdromsFindById", + Operation: "DatacentersServersCdromsFindById", } if err != nil || localVarHTTPResponse == nil { @@ -338,13 +338,13 @@ func (a *ServerApiService) DatacentersServersCdromsFindByIdExecute(r ApiDatacent body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -361,12 +361,12 @@ func (a *ServerApiService) DatacentersServersCdromsFindByIdExecute(r ApiDatacent } type ApiDatacentersServersCdromsGetRequest struct { - ctx _context.Context - ApiService *ServerApiService - datacenterId string - serverId string - pretty *bool - depth *int32 + ctx _context.Context + ApiService *ServerApiService + datacenterId string + serverId string + pretty *bool + depth *int32 xContractNumber *int32 } @@ -388,7 +388,7 @@ func (r ApiDatacentersServersCdromsGetRequest) Execute() (Cdroms, *APIResponse, } /* - * DatacentersServersCdromsGet List attached CD-ROMs + * DatacentersServersCdromsGet List attached CD-ROMs * You can retrieve a list of CD-ROMs attached to the server. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param datacenterId The unique ID of the Datacenter @@ -397,10 +397,10 @@ func (r ApiDatacentersServersCdromsGetRequest) Execute() (Cdroms, *APIResponse, */ func (a *ServerApiService) DatacentersServersCdromsGet(ctx _context.Context, datacenterId string, serverId string) ApiDatacentersServersCdromsGetRequest { return ApiDatacentersServersCdromsGetRequest{ - ApiService: a, - ctx: ctx, + ApiService: a, + ctx: ctx, datacenterId: datacenterId, - serverId: serverId, + serverId: serverId, } } @@ -478,11 +478,11 @@ func (a *ServerApiService) DatacentersServersCdromsGetExecute(r ApiDatacentersSe localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "DatacentersServersCdromsGet", + Operation: "DatacentersServersCdromsGet", } if err != nil || localVarHTTPResponse == nil { @@ -501,13 +501,13 @@ func (a *ServerApiService) DatacentersServersCdromsGetExecute(r ApiDatacentersSe body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -524,13 +524,13 @@ func (a *ServerApiService) DatacentersServersCdromsGetExecute(r ApiDatacentersSe } type ApiDatacentersServersCdromsPostRequest struct { - ctx _context.Context - ApiService *ServerApiService - datacenterId string - serverId string - cdrom *Image - pretty *bool - depth *int32 + ctx _context.Context + ApiService *ServerApiService + datacenterId string + serverId string + cdrom *Image + pretty *bool + depth *int32 xContractNumber *int32 } @@ -557,7 +557,7 @@ func (r ApiDatacentersServersCdromsPostRequest) Execute() (Image, *APIResponse, /* * DatacentersServersCdromsPost Attach a CD-ROM - * You can attach a CD-ROM to an existing server. You can attach up to 2 CD-ROMs to one server. + * You can attach a CD-ROM to an existing server. You can attach up to 2 CD-ROMs to one server. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param datacenterId The unique ID of the Datacenter * @param serverId The unique ID of the Server @@ -565,10 +565,10 @@ func (r ApiDatacentersServersCdromsPostRequest) Execute() (Image, *APIResponse, */ func (a *ServerApiService) DatacentersServersCdromsPost(ctx _context.Context, datacenterId string, serverId string) ApiDatacentersServersCdromsPostRequest { return ApiDatacentersServersCdromsPostRequest{ - ApiService: a, - ctx: ctx, + ApiService: a, + ctx: ctx, datacenterId: datacenterId, - serverId: serverId, + serverId: serverId, } } @@ -651,11 +651,11 @@ func (a *ServerApiService) DatacentersServersCdromsPostExecute(r ApiDatacentersS localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "DatacentersServersCdromsPost", + Operation: "DatacentersServersCdromsPost", } if err != nil || localVarHTTPResponse == nil { @@ -674,13 +674,13 @@ func (a *ServerApiService) DatacentersServersCdromsPostExecute(r ApiDatacentersS body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -697,12 +697,12 @@ func (a *ServerApiService) DatacentersServersCdromsPostExecute(r ApiDatacentersS } type ApiDatacentersServersDeleteRequest struct { - ctx _context.Context - ApiService *ServerApiService - datacenterId string - serverId string - pretty *bool - depth *int32 + ctx _context.Context + ApiService *ServerApiService + datacenterId string + serverId string + pretty *bool + depth *int32 xContractNumber *int32 } @@ -733,10 +733,10 @@ func (r ApiDatacentersServersDeleteRequest) Execute() (map[string]interface{}, * */ func (a *ServerApiService) DatacentersServersDelete(ctx _context.Context, datacenterId string, serverId string) ApiDatacentersServersDeleteRequest { return ApiDatacentersServersDeleteRequest{ - ApiService: a, - ctx: ctx, + ApiService: a, + ctx: ctx, datacenterId: datacenterId, - serverId: serverId, + serverId: serverId, } } @@ -814,11 +814,11 @@ func (a *ServerApiService) DatacentersServersDeleteExecute(r ApiDatacentersServe localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "DatacentersServersDelete", + Operation: "DatacentersServersDelete", } if err != nil || localVarHTTPResponse == nil { @@ -837,13 +837,13 @@ func (a *ServerApiService) DatacentersServersDeleteExecute(r ApiDatacentersServe body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -860,12 +860,12 @@ func (a *ServerApiService) DatacentersServersDeleteExecute(r ApiDatacentersServe } type ApiDatacentersServersFindByIdRequest struct { - ctx _context.Context - ApiService *ServerApiService - datacenterId string - serverId string - pretty *bool - depth *int32 + ctx _context.Context + ApiService *ServerApiService + datacenterId string + serverId string + pretty *bool + depth *int32 xContractNumber *int32 } @@ -896,10 +896,10 @@ func (r ApiDatacentersServersFindByIdRequest) Execute() (Server, *APIResponse, e */ func (a *ServerApiService) DatacentersServersFindById(ctx _context.Context, datacenterId string, serverId string) ApiDatacentersServersFindByIdRequest { return ApiDatacentersServersFindByIdRequest{ - ApiService: a, - ctx: ctx, + ApiService: a, + ctx: ctx, datacenterId: datacenterId, - serverId: serverId, + serverId: serverId, } } @@ -977,11 +977,11 @@ func (a *ServerApiService) DatacentersServersFindByIdExecute(r ApiDatacentersSer localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "DatacentersServersFindById", + Operation: "DatacentersServersFindById", } if err != nil || localVarHTTPResponse == nil { @@ -1000,13 +1000,13 @@ func (a *ServerApiService) DatacentersServersFindByIdExecute(r ApiDatacentersSer body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -1023,12 +1023,12 @@ func (a *ServerApiService) DatacentersServersFindByIdExecute(r ApiDatacentersSer } type ApiDatacentersServersGetRequest struct { - ctx _context.Context - ApiService *ServerApiService - datacenterId string - pretty *bool - depth *int32 - upgradeNeeded *bool + ctx _context.Context + ApiService *ServerApiService + datacenterId string + pretty *bool + depth *int32 + upgradeNeeded *bool xContractNumber *int32 } @@ -1054,7 +1054,7 @@ func (r ApiDatacentersServersGetRequest) Execute() (Servers, *APIResponse, error } /* - * DatacentersServersGet List Servers + * DatacentersServersGet List Servers * You can retrieve a list of servers within a datacenter * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param datacenterId The unique ID of the datacenter @@ -1062,8 +1062,8 @@ func (r ApiDatacentersServersGetRequest) Execute() (Servers, *APIResponse, error */ func (a *ServerApiService) DatacentersServersGet(ctx _context.Context, datacenterId string) ApiDatacentersServersGetRequest { return ApiDatacentersServersGetRequest{ - ApiService: a, - ctx: ctx, + ApiService: a, + ctx: ctx, datacenterId: datacenterId, } } @@ -1144,11 +1144,11 @@ func (a *ServerApiService) DatacentersServersGetExecute(r ApiDatacentersServersG localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "DatacentersServersGet", + Operation: "DatacentersServersGet", } if err != nil || localVarHTTPResponse == nil { @@ -1167,13 +1167,13 @@ func (a *ServerApiService) DatacentersServersGetExecute(r ApiDatacentersServersG body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -1190,13 +1190,13 @@ func (a *ServerApiService) DatacentersServersGetExecute(r ApiDatacentersServersG } type ApiDatacentersServersPatchRequest struct { - ctx _context.Context - ApiService *ServerApiService - datacenterId string - serverId string - server *ServerProperties - pretty *bool - depth *int32 + ctx _context.Context + ApiService *ServerApiService + datacenterId string + serverId string + server *ServerProperties + pretty *bool + depth *int32 xContractNumber *int32 } @@ -1231,10 +1231,10 @@ func (r ApiDatacentersServersPatchRequest) Execute() (Server, *APIResponse, erro */ func (a *ServerApiService) DatacentersServersPatch(ctx _context.Context, datacenterId string, serverId string) ApiDatacentersServersPatchRequest { return ApiDatacentersServersPatchRequest{ - ApiService: a, - ctx: ctx, + ApiService: a, + ctx: ctx, datacenterId: datacenterId, - serverId: serverId, + serverId: serverId, } } @@ -1317,11 +1317,11 @@ func (a *ServerApiService) DatacentersServersPatchExecute(r ApiDatacentersServer localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "DatacentersServersPatch", + Operation: "DatacentersServersPatch", } if err != nil || localVarHTTPResponse == nil { @@ -1340,13 +1340,13 @@ func (a *ServerApiService) DatacentersServersPatchExecute(r ApiDatacentersServer body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -1363,12 +1363,12 @@ func (a *ServerApiService) DatacentersServersPatchExecute(r ApiDatacentersServer } type ApiDatacentersServersPostRequest struct { - ctx _context.Context - ApiService *ServerApiService - datacenterId string - server *Server - pretty *bool - depth *int32 + ctx _context.Context + ApiService *ServerApiService + datacenterId string + server *Server + pretty *bool + depth *int32 xContractNumber *int32 } @@ -1402,8 +1402,8 @@ func (r ApiDatacentersServersPostRequest) Execute() (Server, *APIResponse, error */ func (a *ServerApiService) DatacentersServersPost(ctx _context.Context, datacenterId string) ApiDatacentersServersPostRequest { return ApiDatacentersServersPostRequest{ - ApiService: a, - ctx: ctx, + ApiService: a, + ctx: ctx, datacenterId: datacenterId, } } @@ -1486,11 +1486,11 @@ func (a *ServerApiService) DatacentersServersPostExecute(r ApiDatacentersServers localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "DatacentersServersPost", + Operation: "DatacentersServersPost", } if err != nil || localVarHTTPResponse == nil { @@ -1509,13 +1509,13 @@ func (a *ServerApiService) DatacentersServersPostExecute(r ApiDatacentersServers body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -1532,13 +1532,13 @@ func (a *ServerApiService) DatacentersServersPostExecute(r ApiDatacentersServers } type ApiDatacentersServersPutRequest struct { - ctx _context.Context - ApiService *ServerApiService - datacenterId string - serverId string - server *Server - pretty *bool - depth *int32 + ctx _context.Context + ApiService *ServerApiService + datacenterId string + serverId string + server *Server + pretty *bool + depth *int32 xContractNumber *int32 } @@ -1573,10 +1573,10 @@ func (r ApiDatacentersServersPutRequest) Execute() (Server, *APIResponse, error) */ func (a *ServerApiService) DatacentersServersPut(ctx _context.Context, datacenterId string, serverId string) ApiDatacentersServersPutRequest { return ApiDatacentersServersPutRequest{ - ApiService: a, - ctx: ctx, + ApiService: a, + ctx: ctx, datacenterId: datacenterId, - serverId: serverId, + serverId: serverId, } } @@ -1659,11 +1659,11 @@ func (a *ServerApiService) DatacentersServersPutExecute(r ApiDatacentersServersP localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "DatacentersServersPut", + Operation: "DatacentersServersPut", } if err != nil || localVarHTTPResponse == nil { @@ -1682,13 +1682,13 @@ func (a *ServerApiService) DatacentersServersPutExecute(r ApiDatacentersServersP body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -1705,12 +1705,12 @@ func (a *ServerApiService) DatacentersServersPutExecute(r ApiDatacentersServersP } type ApiDatacentersServersRebootPostRequest struct { - ctx _context.Context - ApiService *ServerApiService - datacenterId string - serverId string - pretty *bool - depth *int32 + ctx _context.Context + ApiService *ServerApiService + datacenterId string + serverId string + pretty *bool + depth *int32 xContractNumber *int32 } @@ -1741,10 +1741,10 @@ func (r ApiDatacentersServersRebootPostRequest) Execute() (map[string]interface{ */ func (a *ServerApiService) DatacentersServersRebootPost(ctx _context.Context, datacenterId string, serverId string) ApiDatacentersServersRebootPostRequest { return ApiDatacentersServersRebootPostRequest{ - ApiService: a, - ctx: ctx, + ApiService: a, + ctx: ctx, datacenterId: datacenterId, - serverId: serverId, + serverId: serverId, } } @@ -1822,11 +1822,11 @@ func (a *ServerApiService) DatacentersServersRebootPostExecute(r ApiDatacentersS localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "DatacentersServersRebootPost", + Operation: "DatacentersServersRebootPost", } if err != nil || localVarHTTPResponse == nil { @@ -1845,13 +1845,13 @@ func (a *ServerApiService) DatacentersServersRebootPostExecute(r ApiDatacentersS body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -1868,12 +1868,12 @@ func (a *ServerApiService) DatacentersServersRebootPostExecute(r ApiDatacentersS } type ApiDatacentersServersStartPostRequest struct { - ctx _context.Context - ApiService *ServerApiService - datacenterId string - serverId string - pretty *bool - depth *int32 + ctx _context.Context + ApiService *ServerApiService + datacenterId string + serverId string + pretty *bool + depth *int32 xContractNumber *int32 } @@ -1904,10 +1904,10 @@ func (r ApiDatacentersServersStartPostRequest) Execute() (map[string]interface{} */ func (a *ServerApiService) DatacentersServersStartPost(ctx _context.Context, datacenterId string, serverId string) ApiDatacentersServersStartPostRequest { return ApiDatacentersServersStartPostRequest{ - ApiService: a, - ctx: ctx, + ApiService: a, + ctx: ctx, datacenterId: datacenterId, - serverId: serverId, + serverId: serverId, } } @@ -1985,11 +1985,11 @@ func (a *ServerApiService) DatacentersServersStartPostExecute(r ApiDatacentersSe localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "DatacentersServersStartPost", + Operation: "DatacentersServersStartPost", } if err != nil || localVarHTTPResponse == nil { @@ -2008,13 +2008,13 @@ func (a *ServerApiService) DatacentersServersStartPostExecute(r ApiDatacentersSe body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -2031,12 +2031,12 @@ func (a *ServerApiService) DatacentersServersStartPostExecute(r ApiDatacentersSe } type ApiDatacentersServersStopPostRequest struct { - ctx _context.Context - ApiService *ServerApiService - datacenterId string - serverId string - pretty *bool - depth *int32 + ctx _context.Context + ApiService *ServerApiService + datacenterId string + serverId string + pretty *bool + depth *int32 xContractNumber *int32 } @@ -2067,10 +2067,10 @@ func (r ApiDatacentersServersStopPostRequest) Execute() (map[string]interface{}, */ func (a *ServerApiService) DatacentersServersStopPost(ctx _context.Context, datacenterId string, serverId string) ApiDatacentersServersStopPostRequest { return ApiDatacentersServersStopPostRequest{ - ApiService: a, - ctx: ctx, + ApiService: a, + ctx: ctx, datacenterId: datacenterId, - serverId: serverId, + serverId: serverId, } } @@ -2148,11 +2148,11 @@ func (a *ServerApiService) DatacentersServersStopPostExecute(r ApiDatacentersSer localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "DatacentersServersStopPost", + Operation: "DatacentersServersStopPost", } if err != nil || localVarHTTPResponse == nil { @@ -2171,13 +2171,13 @@ func (a *ServerApiService) DatacentersServersStopPostExecute(r ApiDatacentersSer body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -2194,12 +2194,12 @@ func (a *ServerApiService) DatacentersServersStopPostExecute(r ApiDatacentersSer } type ApiDatacentersServersUpgradePostRequest struct { - ctx _context.Context - ApiService *ServerApiService - datacenterId string - serverId string - pretty *bool - depth *int32 + ctx _context.Context + ApiService *ServerApiService + datacenterId string + serverId string + pretty *bool + depth *int32 xContractNumber *int32 } @@ -2230,10 +2230,10 @@ func (r ApiDatacentersServersUpgradePostRequest) Execute() (map[string]interface */ func (a *ServerApiService) DatacentersServersUpgradePost(ctx _context.Context, datacenterId string, serverId string) ApiDatacentersServersUpgradePostRequest { return ApiDatacentersServersUpgradePostRequest{ - ApiService: a, - ctx: ctx, + ApiService: a, + ctx: ctx, datacenterId: datacenterId, - serverId: serverId, + serverId: serverId, } } @@ -2311,11 +2311,11 @@ func (a *ServerApiService) DatacentersServersUpgradePostExecute(r ApiDatacenters localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "DatacentersServersUpgradePost", + Operation: "DatacentersServersUpgradePost", } if err != nil || localVarHTTPResponse == nil { @@ -2334,13 +2334,13 @@ func (a *ServerApiService) DatacentersServersUpgradePostExecute(r ApiDatacenters body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -2357,13 +2357,13 @@ func (a *ServerApiService) DatacentersServersUpgradePostExecute(r ApiDatacenters } type ApiDatacentersServersVolumesDeleteRequest struct { - ctx _context.Context - ApiService *ServerApiService - datacenterId string - serverId string - volumeId string - pretty *bool - depth *int32 + ctx _context.Context + ApiService *ServerApiService + datacenterId string + serverId string + volumeId string + pretty *bool + depth *int32 xContractNumber *int32 } @@ -2395,11 +2395,11 @@ func (r ApiDatacentersServersVolumesDeleteRequest) Execute() (map[string]interfa */ func (a *ServerApiService) DatacentersServersVolumesDelete(ctx _context.Context, datacenterId string, serverId string, volumeId string) ApiDatacentersServersVolumesDeleteRequest { return ApiDatacentersServersVolumesDeleteRequest{ - ApiService: a, - ctx: ctx, + ApiService: a, + ctx: ctx, datacenterId: datacenterId, - serverId: serverId, - volumeId: volumeId, + serverId: serverId, + volumeId: volumeId, } } @@ -2478,11 +2478,11 @@ func (a *ServerApiService) DatacentersServersVolumesDeleteExecute(r ApiDatacente localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "DatacentersServersVolumesDelete", + Operation: "DatacentersServersVolumesDelete", } if err != nil || localVarHTTPResponse == nil { @@ -2501,13 +2501,13 @@ func (a *ServerApiService) DatacentersServersVolumesDeleteExecute(r ApiDatacente body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -2524,13 +2524,13 @@ func (a *ServerApiService) DatacentersServersVolumesDeleteExecute(r ApiDatacente } type ApiDatacentersServersVolumesFindByIdRequest struct { - ctx _context.Context - ApiService *ServerApiService - datacenterId string - serverId string - volumeId string - pretty *bool - depth *int32 + ctx _context.Context + ApiService *ServerApiService + datacenterId string + serverId string + volumeId string + pretty *bool + depth *int32 xContractNumber *int32 } @@ -2562,11 +2562,11 @@ func (r ApiDatacentersServersVolumesFindByIdRequest) Execute() (Volume, *APIResp */ func (a *ServerApiService) DatacentersServersVolumesFindById(ctx _context.Context, datacenterId string, serverId string, volumeId string) ApiDatacentersServersVolumesFindByIdRequest { return ApiDatacentersServersVolumesFindByIdRequest{ - ApiService: a, - ctx: ctx, + ApiService: a, + ctx: ctx, datacenterId: datacenterId, - serverId: serverId, - volumeId: volumeId, + serverId: serverId, + volumeId: volumeId, } } @@ -2645,11 +2645,11 @@ func (a *ServerApiService) DatacentersServersVolumesFindByIdExecute(r ApiDatacen localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "DatacentersServersVolumesFindById", + Operation: "DatacentersServersVolumesFindById", } if err != nil || localVarHTTPResponse == nil { @@ -2668,13 +2668,13 @@ func (a *ServerApiService) DatacentersServersVolumesFindByIdExecute(r ApiDatacen body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -2691,12 +2691,12 @@ func (a *ServerApiService) DatacentersServersVolumesFindByIdExecute(r ApiDatacen } type ApiDatacentersServersVolumesGetRequest struct { - ctx _context.Context - ApiService *ServerApiService - datacenterId string - serverId string - pretty *bool - depth *int32 + ctx _context.Context + ApiService *ServerApiService + datacenterId string + serverId string + pretty *bool + depth *int32 xContractNumber *int32 } @@ -2727,10 +2727,10 @@ func (r ApiDatacentersServersVolumesGetRequest) Execute() (AttachedVolumes, *API */ func (a *ServerApiService) DatacentersServersVolumesGet(ctx _context.Context, datacenterId string, serverId string) ApiDatacentersServersVolumesGetRequest { return ApiDatacentersServersVolumesGetRequest{ - ApiService: a, - ctx: ctx, + ApiService: a, + ctx: ctx, datacenterId: datacenterId, - serverId: serverId, + serverId: serverId, } } @@ -2794,11 +2794,11 @@ func (a *ServerApiService) DatacentersServersVolumesGetExecute(r ApiDatacentersS localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "DatacentersServersVolumesGet", + Operation: "DatacentersServersVolumesGet", } if err != nil || localVarHTTPResponse == nil { @@ -2817,13 +2817,13 @@ func (a *ServerApiService) DatacentersServersVolumesGetExecute(r ApiDatacentersS body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -2840,13 +2840,13 @@ func (a *ServerApiService) DatacentersServersVolumesGetExecute(r ApiDatacentersS } type ApiDatacentersServersVolumesPostRequest struct { - ctx _context.Context - ApiService *ServerApiService - datacenterId string - serverId string - volume *Volume - pretty *bool - depth *int32 + ctx _context.Context + ApiService *ServerApiService + datacenterId string + serverId string + volume *Volume + pretty *bool + depth *int32 xContractNumber *int32 } @@ -2881,10 +2881,10 @@ func (r ApiDatacentersServersVolumesPostRequest) Execute() (Volume, *APIResponse */ func (a *ServerApiService) DatacentersServersVolumesPost(ctx _context.Context, datacenterId string, serverId string) ApiDatacentersServersVolumesPostRequest { return ApiDatacentersServersVolumesPostRequest{ - ApiService: a, - ctx: ctx, + ApiService: a, + ctx: ctx, datacenterId: datacenterId, - serverId: serverId, + serverId: serverId, } } @@ -2953,11 +2953,11 @@ func (a *ServerApiService) DatacentersServersVolumesPostExecute(r ApiDatacenters localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "DatacentersServersVolumesPost", + Operation: "DatacentersServersVolumesPost", } if err != nil || localVarHTTPResponse == nil { @@ -2976,13 +2976,13 @@ func (a *ServerApiService) DatacentersServersVolumesPostExecute(r ApiDatacenters body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/api_snapshot.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/api_snapshot.go index de54e17f14eb..7370aefaa40d 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/api_snapshot.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/api_snapshot.go @@ -27,11 +27,11 @@ var ( type SnapshotApiService service type ApiSnapshotsDeleteRequest struct { - ctx _context.Context - ApiService *SnapshotApiService - snapshotId string - pretty *bool - depth *int32 + ctx _context.Context + ApiService *SnapshotApiService + snapshotId string + pretty *bool + depth *int32 xContractNumber *int32 } @@ -62,7 +62,7 @@ func (r ApiSnapshotsDeleteRequest) Execute() (map[string]interface{}, *APIRespon func (a *SnapshotApiService) SnapshotsDelete(ctx _context.Context, snapshotId string) ApiSnapshotsDeleteRequest { return ApiSnapshotsDeleteRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, snapshotId: snapshotId, } } @@ -140,11 +140,11 @@ func (a *SnapshotApiService) SnapshotsDeleteExecute(r ApiSnapshotsDeleteRequest) localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "SnapshotsDelete", + Operation: "SnapshotsDelete", } if err != nil || localVarHTTPResponse == nil { @@ -163,13 +163,13 @@ func (a *SnapshotApiService) SnapshotsDeleteExecute(r ApiSnapshotsDeleteRequest) body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -186,11 +186,11 @@ func (a *SnapshotApiService) SnapshotsDeleteExecute(r ApiSnapshotsDeleteRequest) } type ApiSnapshotsFindByIdRequest struct { - ctx _context.Context - ApiService *SnapshotApiService - snapshotId string - pretty *bool - depth *int32 + ctx _context.Context + ApiService *SnapshotApiService + snapshotId string + pretty *bool + depth *int32 xContractNumber *int32 } @@ -221,7 +221,7 @@ func (r ApiSnapshotsFindByIdRequest) Execute() (Snapshot, *APIResponse, error) { func (a *SnapshotApiService) SnapshotsFindById(ctx _context.Context, snapshotId string) ApiSnapshotsFindByIdRequest { return ApiSnapshotsFindByIdRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, snapshotId: snapshotId, } } @@ -299,11 +299,11 @@ func (a *SnapshotApiService) SnapshotsFindByIdExecute(r ApiSnapshotsFindByIdRequ localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "SnapshotsFindById", + Operation: "SnapshotsFindById", } if err != nil || localVarHTTPResponse == nil { @@ -322,13 +322,13 @@ func (a *SnapshotApiService) SnapshotsFindByIdExecute(r ApiSnapshotsFindByIdRequ body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -345,10 +345,10 @@ func (a *SnapshotApiService) SnapshotsFindByIdExecute(r ApiSnapshotsFindByIdRequ } type ApiSnapshotsGetRequest struct { - ctx _context.Context - ApiService *SnapshotApiService - pretty *bool - depth *int32 + ctx _context.Context + ApiService *SnapshotApiService + pretty *bool + depth *int32 xContractNumber *int32 } @@ -370,7 +370,7 @@ func (r ApiSnapshotsGetRequest) Execute() (Snapshots, *APIResponse, error) { } /* - * SnapshotsGet List Snapshots + * SnapshotsGet List Snapshots * Retrieve a list of available snapshots. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @return ApiSnapshotsGetRequest @@ -378,7 +378,7 @@ func (r ApiSnapshotsGetRequest) Execute() (Snapshots, *APIResponse, error) { func (a *SnapshotApiService) SnapshotsGet(ctx _context.Context) ApiSnapshotsGetRequest { return ApiSnapshotsGetRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -454,11 +454,11 @@ func (a *SnapshotApiService) SnapshotsGetExecute(r ApiSnapshotsGetRequest) (Snap localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "SnapshotsGet", + Operation: "SnapshotsGet", } if err != nil || localVarHTTPResponse == nil { @@ -477,13 +477,13 @@ func (a *SnapshotApiService) SnapshotsGetExecute(r ApiSnapshotsGetRequest) (Snap body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -500,12 +500,12 @@ func (a *SnapshotApiService) SnapshotsGetExecute(r ApiSnapshotsGetRequest) (Snap } type ApiSnapshotsPatchRequest struct { - ctx _context.Context - ApiService *SnapshotApiService - snapshotId string - snapshot *SnapshotProperties - pretty *bool - depth *int32 + ctx _context.Context + ApiService *SnapshotApiService + snapshotId string + snapshot *SnapshotProperties + pretty *bool + depth *int32 xContractNumber *int32 } @@ -540,7 +540,7 @@ func (r ApiSnapshotsPatchRequest) Execute() (Snapshot, *APIResponse, error) { func (a *SnapshotApiService) SnapshotsPatch(ctx _context.Context, snapshotId string) ApiSnapshotsPatchRequest { return ApiSnapshotsPatchRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, snapshotId: snapshotId, } } @@ -623,11 +623,11 @@ func (a *SnapshotApiService) SnapshotsPatchExecute(r ApiSnapshotsPatchRequest) ( localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "SnapshotsPatch", + Operation: "SnapshotsPatch", } if err != nil || localVarHTTPResponse == nil { @@ -646,13 +646,13 @@ func (a *SnapshotApiService) SnapshotsPatchExecute(r ApiSnapshotsPatchRequest) ( body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -669,12 +669,12 @@ func (a *SnapshotApiService) SnapshotsPatchExecute(r ApiSnapshotsPatchRequest) ( } type ApiSnapshotsPutRequest struct { - ctx _context.Context - ApiService *SnapshotApiService - snapshotId string - snapshot *Snapshot - pretty *bool - depth *int32 + ctx _context.Context + ApiService *SnapshotApiService + snapshotId string + snapshot *Snapshot + pretty *bool + depth *int32 xContractNumber *int32 } @@ -709,7 +709,7 @@ func (r ApiSnapshotsPutRequest) Execute() (Snapshot, *APIResponse, error) { func (a *SnapshotApiService) SnapshotsPut(ctx _context.Context, snapshotId string) ApiSnapshotsPutRequest { return ApiSnapshotsPutRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, snapshotId: snapshotId, } } @@ -792,11 +792,11 @@ func (a *SnapshotApiService) SnapshotsPutExecute(r ApiSnapshotsPutRequest) (Snap localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "SnapshotsPut", + Operation: "SnapshotsPut", } if err != nil || localVarHTTPResponse == nil { @@ -815,13 +815,13 @@ func (a *SnapshotApiService) SnapshotsPutExecute(r ApiSnapshotsPutRequest) (Snap body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/api_user_management.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/api_user_management.go index 0d8fd27bfbdf..a31ad63c6dd1 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/api_user_management.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/api_user_management.go @@ -27,11 +27,11 @@ var ( type UserManagementApiService service type ApiUmGroupsDeleteRequest struct { - ctx _context.Context - ApiService *UserManagementApiService - groupId string - pretty *bool - depth *int32 + ctx _context.Context + ApiService *UserManagementApiService + groupId string + pretty *bool + depth *int32 xContractNumber *int32 } @@ -62,8 +62,8 @@ func (r ApiUmGroupsDeleteRequest) Execute() (map[string]interface{}, *APIRespons func (a *UserManagementApiService) UmGroupsDelete(ctx _context.Context, groupId string) ApiUmGroupsDeleteRequest { return ApiUmGroupsDeleteRequest{ ApiService: a, - ctx: ctx, - groupId: groupId, + ctx: ctx, + groupId: groupId, } } @@ -140,11 +140,11 @@ func (a *UserManagementApiService) UmGroupsDeleteExecute(r ApiUmGroupsDeleteRequ localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "UmGroupsDelete", + Operation: "UmGroupsDelete", } if err != nil || localVarHTTPResponse == nil { @@ -163,13 +163,13 @@ func (a *UserManagementApiService) UmGroupsDeleteExecute(r ApiUmGroupsDeleteRequ body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -186,11 +186,11 @@ func (a *UserManagementApiService) UmGroupsDeleteExecute(r ApiUmGroupsDeleteRequ } type ApiUmGroupsFindByIdRequest struct { - ctx _context.Context - ApiService *UserManagementApiService - groupId string - pretty *bool - depth *int32 + ctx _context.Context + ApiService *UserManagementApiService + groupId string + pretty *bool + depth *int32 xContractNumber *int32 } @@ -221,8 +221,8 @@ func (r ApiUmGroupsFindByIdRequest) Execute() (Group, *APIResponse, error) { func (a *UserManagementApiService) UmGroupsFindById(ctx _context.Context, groupId string) ApiUmGroupsFindByIdRequest { return ApiUmGroupsFindByIdRequest{ ApiService: a, - ctx: ctx, - groupId: groupId, + ctx: ctx, + groupId: groupId, } } @@ -299,11 +299,11 @@ func (a *UserManagementApiService) UmGroupsFindByIdExecute(r ApiUmGroupsFindById localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "UmGroupsFindById", + Operation: "UmGroupsFindById", } if err != nil || localVarHTTPResponse == nil { @@ -322,13 +322,13 @@ func (a *UserManagementApiService) UmGroupsFindByIdExecute(r ApiUmGroupsFindById body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -345,10 +345,10 @@ func (a *UserManagementApiService) UmGroupsFindByIdExecute(r ApiUmGroupsFindById } type ApiUmGroupsGetRequest struct { - ctx _context.Context - ApiService *UserManagementApiService - pretty *bool - depth *int32 + ctx _context.Context + ApiService *UserManagementApiService + pretty *bool + depth *int32 xContractNumber *int32 } @@ -378,7 +378,7 @@ func (r ApiUmGroupsGetRequest) Execute() (Groups, *APIResponse, error) { func (a *UserManagementApiService) UmGroupsGet(ctx _context.Context) ApiUmGroupsGetRequest { return ApiUmGroupsGetRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -454,11 +454,11 @@ func (a *UserManagementApiService) UmGroupsGetExecute(r ApiUmGroupsGetRequest) ( localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "UmGroupsGet", + Operation: "UmGroupsGet", } if err != nil || localVarHTTPResponse == nil { @@ -477,13 +477,13 @@ func (a *UserManagementApiService) UmGroupsGetExecute(r ApiUmGroupsGetRequest) ( body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -500,11 +500,11 @@ func (a *UserManagementApiService) UmGroupsGetExecute(r ApiUmGroupsGetRequest) ( } type ApiUmGroupsPostRequest struct { - ctx _context.Context - ApiService *UserManagementApiService - group *Group - pretty *bool - depth *int32 + ctx _context.Context + ApiService *UserManagementApiService + group *Group + pretty *bool + depth *int32 xContractNumber *int32 } @@ -538,7 +538,7 @@ func (r ApiUmGroupsPostRequest) Execute() (Group, *APIResponse, error) { func (a *UserManagementApiService) UmGroupsPost(ctx _context.Context) ApiUmGroupsPostRequest { return ApiUmGroupsPostRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -619,11 +619,11 @@ func (a *UserManagementApiService) UmGroupsPostExecute(r ApiUmGroupsPostRequest) localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "UmGroupsPost", + Operation: "UmGroupsPost", } if err != nil || localVarHTTPResponse == nil { @@ -642,13 +642,13 @@ func (a *UserManagementApiService) UmGroupsPostExecute(r ApiUmGroupsPostRequest) body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -665,12 +665,12 @@ func (a *UserManagementApiService) UmGroupsPostExecute(r ApiUmGroupsPostRequest) } type ApiUmGroupsPutRequest struct { - ctx _context.Context - ApiService *UserManagementApiService - groupId string - group *Group - pretty *bool - depth *int32 + ctx _context.Context + ApiService *UserManagementApiService + groupId string + group *Group + pretty *bool + depth *int32 xContractNumber *int32 } @@ -705,8 +705,8 @@ func (r ApiUmGroupsPutRequest) Execute() (Group, *APIResponse, error) { func (a *UserManagementApiService) UmGroupsPut(ctx _context.Context, groupId string) ApiUmGroupsPutRequest { return ApiUmGroupsPutRequest{ ApiService: a, - ctx: ctx, - groupId: groupId, + ctx: ctx, + groupId: groupId, } } @@ -788,11 +788,11 @@ func (a *UserManagementApiService) UmGroupsPutExecute(r ApiUmGroupsPutRequest) ( localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "UmGroupsPut", + Operation: "UmGroupsPut", } if err != nil || localVarHTTPResponse == nil { @@ -811,13 +811,13 @@ func (a *UserManagementApiService) UmGroupsPutExecute(r ApiUmGroupsPutRequest) ( body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -834,11 +834,11 @@ func (a *UserManagementApiService) UmGroupsPutExecute(r ApiUmGroupsPutRequest) ( } type ApiUmGroupsResourcesGetRequest struct { - ctx _context.Context - ApiService *UserManagementApiService - groupId string - pretty *bool - depth *int32 + ctx _context.Context + ApiService *UserManagementApiService + groupId string + pretty *bool + depth *int32 xContractNumber *int32 } @@ -868,8 +868,8 @@ func (r ApiUmGroupsResourcesGetRequest) Execute() (ResourceGroups, *APIResponse, func (a *UserManagementApiService) UmGroupsResourcesGet(ctx _context.Context, groupId string) ApiUmGroupsResourcesGetRequest { return ApiUmGroupsResourcesGetRequest{ ApiService: a, - ctx: ctx, - groupId: groupId, + ctx: ctx, + groupId: groupId, } } @@ -946,11 +946,11 @@ func (a *UserManagementApiService) UmGroupsResourcesGetExecute(r ApiUmGroupsReso localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "UmGroupsResourcesGet", + Operation: "UmGroupsResourcesGet", } if err != nil || localVarHTTPResponse == nil { @@ -969,13 +969,13 @@ func (a *UserManagementApiService) UmGroupsResourcesGetExecute(r ApiUmGroupsReso body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -992,12 +992,12 @@ func (a *UserManagementApiService) UmGroupsResourcesGetExecute(r ApiUmGroupsReso } type ApiUmGroupsSharesDeleteRequest struct { - ctx _context.Context - ApiService *UserManagementApiService - groupId string - resourceId string - pretty *bool - depth *int32 + ctx _context.Context + ApiService *UserManagementApiService + groupId string + resourceId string + pretty *bool + depth *int32 xContractNumber *int32 } @@ -1029,8 +1029,8 @@ func (r ApiUmGroupsSharesDeleteRequest) Execute() (map[string]interface{}, *APIR func (a *UserManagementApiService) UmGroupsSharesDelete(ctx _context.Context, groupId string, resourceId string) ApiUmGroupsSharesDeleteRequest { return ApiUmGroupsSharesDeleteRequest{ ApiService: a, - ctx: ctx, - groupId: groupId, + ctx: ctx, + groupId: groupId, resourceId: resourceId, } } @@ -1109,11 +1109,11 @@ func (a *UserManagementApiService) UmGroupsSharesDeleteExecute(r ApiUmGroupsShar localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "UmGroupsSharesDelete", + Operation: "UmGroupsSharesDelete", } if err != nil || localVarHTTPResponse == nil { @@ -1132,13 +1132,13 @@ func (a *UserManagementApiService) UmGroupsSharesDeleteExecute(r ApiUmGroupsShar body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -1155,12 +1155,12 @@ func (a *UserManagementApiService) UmGroupsSharesDeleteExecute(r ApiUmGroupsShar } type ApiUmGroupsSharesFindByResourceRequest struct { - ctx _context.Context - ApiService *UserManagementApiService - groupId string - resourceId string - pretty *bool - depth *int32 + ctx _context.Context + ApiService *UserManagementApiService + groupId string + resourceId string + pretty *bool + depth *int32 xContractNumber *int32 } @@ -1192,8 +1192,8 @@ func (r ApiUmGroupsSharesFindByResourceRequest) Execute() (GroupShare, *APIRespo func (a *UserManagementApiService) UmGroupsSharesFindByResource(ctx _context.Context, groupId string, resourceId string) ApiUmGroupsSharesFindByResourceRequest { return ApiUmGroupsSharesFindByResourceRequest{ ApiService: a, - ctx: ctx, - groupId: groupId, + ctx: ctx, + groupId: groupId, resourceId: resourceId, } } @@ -1272,11 +1272,11 @@ func (a *UserManagementApiService) UmGroupsSharesFindByResourceExecute(r ApiUmGr localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "UmGroupsSharesFindByResource", + Operation: "UmGroupsSharesFindByResource", } if err != nil || localVarHTTPResponse == nil { @@ -1295,13 +1295,13 @@ func (a *UserManagementApiService) UmGroupsSharesFindByResourceExecute(r ApiUmGr body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -1318,11 +1318,11 @@ func (a *UserManagementApiService) UmGroupsSharesFindByResourceExecute(r ApiUmGr } type ApiUmGroupsSharesGetRequest struct { - ctx _context.Context - ApiService *UserManagementApiService - groupId string - pretty *bool - depth *int32 + ctx _context.Context + ApiService *UserManagementApiService + groupId string + pretty *bool + depth *int32 xContractNumber *int32 } @@ -1344,7 +1344,7 @@ func (r ApiUmGroupsSharesGetRequest) Execute() (GroupShares, *APIResponse, error } /* - * UmGroupsSharesGet List Group Shares + * UmGroupsSharesGet List Group Shares * You can retrieve a list of all resources along with their permissions of the group * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param groupId @@ -1353,8 +1353,8 @@ func (r ApiUmGroupsSharesGetRequest) Execute() (GroupShares, *APIResponse, error func (a *UserManagementApiService) UmGroupsSharesGet(ctx _context.Context, groupId string) ApiUmGroupsSharesGetRequest { return ApiUmGroupsSharesGetRequest{ ApiService: a, - ctx: ctx, - groupId: groupId, + ctx: ctx, + groupId: groupId, } } @@ -1431,11 +1431,11 @@ func (a *UserManagementApiService) UmGroupsSharesGetExecute(r ApiUmGroupsSharesG localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "UmGroupsSharesGet", + Operation: "UmGroupsSharesGet", } if err != nil || localVarHTTPResponse == nil { @@ -1454,13 +1454,13 @@ func (a *UserManagementApiService) UmGroupsSharesGetExecute(r ApiUmGroupsSharesG body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -1477,13 +1477,13 @@ func (a *UserManagementApiService) UmGroupsSharesGetExecute(r ApiUmGroupsSharesG } type ApiUmGroupsSharesPostRequest struct { - ctx _context.Context - ApiService *UserManagementApiService - groupId string - resourceId string - resource *GroupShare - pretty *bool - depth *int32 + ctx _context.Context + ApiService *UserManagementApiService + groupId string + resourceId string + resource *GroupShare + pretty *bool + depth *int32 xContractNumber *int32 } @@ -1510,7 +1510,7 @@ func (r ApiUmGroupsSharesPostRequest) Execute() (GroupShare, *APIResponse, error /* * UmGroupsSharesPost Add a resource to a group - * This will add a resource to the group. + * This will add a resource to the group. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param groupId * @param resourceId @@ -1519,8 +1519,8 @@ func (r ApiUmGroupsSharesPostRequest) Execute() (GroupShare, *APIResponse, error func (a *UserManagementApiService) UmGroupsSharesPost(ctx _context.Context, groupId string, resourceId string) ApiUmGroupsSharesPostRequest { return ApiUmGroupsSharesPostRequest{ ApiService: a, - ctx: ctx, - groupId: groupId, + ctx: ctx, + groupId: groupId, resourceId: resourceId, } } @@ -1604,11 +1604,11 @@ func (a *UserManagementApiService) UmGroupsSharesPostExecute(r ApiUmGroupsShares localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "UmGroupsSharesPost", + Operation: "UmGroupsSharesPost", } if err != nil || localVarHTTPResponse == nil { @@ -1627,13 +1627,13 @@ func (a *UserManagementApiService) UmGroupsSharesPostExecute(r ApiUmGroupsShares body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -1650,13 +1650,13 @@ func (a *UserManagementApiService) UmGroupsSharesPostExecute(r ApiUmGroupsShares } type ApiUmGroupsSharesPutRequest struct { - ctx _context.Context - ApiService *UserManagementApiService - groupId string - resourceId string - resource *GroupShare - pretty *bool - depth *int32 + ctx _context.Context + ApiService *UserManagementApiService + groupId string + resourceId string + resource *GroupShare + pretty *bool + depth *int32 xContractNumber *int32 } @@ -1692,8 +1692,8 @@ func (r ApiUmGroupsSharesPutRequest) Execute() (GroupShare, *APIResponse, error) func (a *UserManagementApiService) UmGroupsSharesPut(ctx _context.Context, groupId string, resourceId string) ApiUmGroupsSharesPutRequest { return ApiUmGroupsSharesPutRequest{ ApiService: a, - ctx: ctx, - groupId: groupId, + ctx: ctx, + groupId: groupId, resourceId: resourceId, } } @@ -1777,11 +1777,11 @@ func (a *UserManagementApiService) UmGroupsSharesPutExecute(r ApiUmGroupsSharesP localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "UmGroupsSharesPut", + Operation: "UmGroupsSharesPut", } if err != nil || localVarHTTPResponse == nil { @@ -1800,13 +1800,13 @@ func (a *UserManagementApiService) UmGroupsSharesPutExecute(r ApiUmGroupsSharesP body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -1823,12 +1823,12 @@ func (a *UserManagementApiService) UmGroupsSharesPutExecute(r ApiUmGroupsSharesP } type ApiUmGroupsUsersDeleteRequest struct { - ctx _context.Context - ApiService *UserManagementApiService - groupId string - userId string - pretty *bool - depth *int32 + ctx _context.Context + ApiService *UserManagementApiService + groupId string + userId string + pretty *bool + depth *int32 xContractNumber *int32 } @@ -1860,9 +1860,9 @@ func (r ApiUmGroupsUsersDeleteRequest) Execute() (map[string]interface{}, *APIRe func (a *UserManagementApiService) UmGroupsUsersDelete(ctx _context.Context, groupId string, userId string) ApiUmGroupsUsersDeleteRequest { return ApiUmGroupsUsersDeleteRequest{ ApiService: a, - ctx: ctx, - groupId: groupId, - userId: userId, + ctx: ctx, + groupId: groupId, + userId: userId, } } @@ -1940,11 +1940,11 @@ func (a *UserManagementApiService) UmGroupsUsersDeleteExecute(r ApiUmGroupsUsers localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "UmGroupsUsersDelete", + Operation: "UmGroupsUsersDelete", } if err != nil || localVarHTTPResponse == nil { @@ -1963,13 +1963,13 @@ func (a *UserManagementApiService) UmGroupsUsersDeleteExecute(r ApiUmGroupsUsers body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -1986,11 +1986,11 @@ func (a *UserManagementApiService) UmGroupsUsersDeleteExecute(r ApiUmGroupsUsers } type ApiUmGroupsUsersGetRequest struct { - ctx _context.Context - ApiService *UserManagementApiService - groupId string - pretty *bool - depth *int32 + ctx _context.Context + ApiService *UserManagementApiService + groupId string + pretty *bool + depth *int32 xContractNumber *int32 } @@ -2012,7 +2012,7 @@ func (r ApiUmGroupsUsersGetRequest) Execute() (GroupMembers, *APIResponse, error } /* - * UmGroupsUsersGet List Group Members + * UmGroupsUsersGet List Group Members * You can retrieve a list of users who are members of the group * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param groupId @@ -2021,8 +2021,8 @@ func (r ApiUmGroupsUsersGetRequest) Execute() (GroupMembers, *APIResponse, error func (a *UserManagementApiService) UmGroupsUsersGet(ctx _context.Context, groupId string) ApiUmGroupsUsersGetRequest { return ApiUmGroupsUsersGetRequest{ ApiService: a, - ctx: ctx, - groupId: groupId, + ctx: ctx, + groupId: groupId, } } @@ -2099,11 +2099,11 @@ func (a *UserManagementApiService) UmGroupsUsersGetExecute(r ApiUmGroupsUsersGet localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "UmGroupsUsersGet", + Operation: "UmGroupsUsersGet", } if err != nil || localVarHTTPResponse == nil { @@ -2122,13 +2122,13 @@ func (a *UserManagementApiService) UmGroupsUsersGetExecute(r ApiUmGroupsUsersGet body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -2145,12 +2145,12 @@ func (a *UserManagementApiService) UmGroupsUsersGetExecute(r ApiUmGroupsUsersGet } type ApiUmGroupsUsersPostRequest struct { - ctx _context.Context - ApiService *UserManagementApiService - groupId string - user *User - pretty *bool - depth *int32 + ctx _context.Context + ApiService *UserManagementApiService + groupId string + user *User + pretty *bool + depth *int32 xContractNumber *int32 } @@ -2177,7 +2177,7 @@ func (r ApiUmGroupsUsersPostRequest) Execute() (User, *APIResponse, error) { /* * UmGroupsUsersPost Add a user to a group - * This will attach a pre-existing user to a group. + * This will attach a pre-existing user to a group. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param groupId * @return ApiUmGroupsUsersPostRequest @@ -2185,8 +2185,8 @@ func (r ApiUmGroupsUsersPostRequest) Execute() (User, *APIResponse, error) { func (a *UserManagementApiService) UmGroupsUsersPost(ctx _context.Context, groupId string) ApiUmGroupsUsersPostRequest { return ApiUmGroupsUsersPostRequest{ ApiService: a, - ctx: ctx, - groupId: groupId, + ctx: ctx, + groupId: groupId, } } @@ -2268,11 +2268,11 @@ func (a *UserManagementApiService) UmGroupsUsersPostExecute(r ApiUmGroupsUsersPo localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "UmGroupsUsersPost", + Operation: "UmGroupsUsersPost", } if err != nil || localVarHTTPResponse == nil { @@ -2291,13 +2291,13 @@ func (a *UserManagementApiService) UmGroupsUsersPostExecute(r ApiUmGroupsUsersPo body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -2314,11 +2314,11 @@ func (a *UserManagementApiService) UmGroupsUsersPostExecute(r ApiUmGroupsUsersPo } type ApiUmResourcesFindByTypeRequest struct { - ctx _context.Context - ApiService *UserManagementApiService - resourceType string - pretty *bool - depth *int32 + ctx _context.Context + ApiService *UserManagementApiService + resourceType string + pretty *bool + depth *int32 xContractNumber *int32 } @@ -2348,8 +2348,8 @@ func (r ApiUmResourcesFindByTypeRequest) Execute() (Resources, *APIResponse, err */ func (a *UserManagementApiService) UmResourcesFindByType(ctx _context.Context, resourceType string) ApiUmResourcesFindByTypeRequest { return ApiUmResourcesFindByTypeRequest{ - ApiService: a, - ctx: ctx, + ApiService: a, + ctx: ctx, resourceType: resourceType, } } @@ -2427,11 +2427,11 @@ func (a *UserManagementApiService) UmResourcesFindByTypeExecute(r ApiUmResources localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "UmResourcesFindByType", + Operation: "UmResourcesFindByType", } if err != nil || localVarHTTPResponse == nil { @@ -2450,13 +2450,13 @@ func (a *UserManagementApiService) UmResourcesFindByTypeExecute(r ApiUmResources body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -2473,12 +2473,12 @@ func (a *UserManagementApiService) UmResourcesFindByTypeExecute(r ApiUmResources } type ApiUmResourcesFindByTypeAndIdRequest struct { - ctx _context.Context - ApiService *UserManagementApiService - resourceType string - resourceId string - pretty *bool - depth *int32 + ctx _context.Context + ApiService *UserManagementApiService + resourceType string + resourceId string + pretty *bool + depth *int32 xContractNumber *int32 } @@ -2509,10 +2509,10 @@ func (r ApiUmResourcesFindByTypeAndIdRequest) Execute() (Resource, *APIResponse, */ func (a *UserManagementApiService) UmResourcesFindByTypeAndId(ctx _context.Context, resourceType string, resourceId string) ApiUmResourcesFindByTypeAndIdRequest { return ApiUmResourcesFindByTypeAndIdRequest{ - ApiService: a, - ctx: ctx, + ApiService: a, + ctx: ctx, resourceType: resourceType, - resourceId: resourceId, + resourceId: resourceId, } } @@ -2590,11 +2590,11 @@ func (a *UserManagementApiService) UmResourcesFindByTypeAndIdExecute(r ApiUmReso localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "UmResourcesFindByTypeAndId", + Operation: "UmResourcesFindByTypeAndId", } if err != nil || localVarHTTPResponse == nil { @@ -2613,13 +2613,13 @@ func (a *UserManagementApiService) UmResourcesFindByTypeAndIdExecute(r ApiUmReso body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -2636,10 +2636,10 @@ func (a *UserManagementApiService) UmResourcesFindByTypeAndIdExecute(r ApiUmReso } type ApiUmResourcesGetRequest struct { - ctx _context.Context - ApiService *UserManagementApiService - pretty *bool - depth *int32 + ctx _context.Context + ApiService *UserManagementApiService + pretty *bool + depth *int32 xContractNumber *int32 } @@ -2669,7 +2669,7 @@ func (r ApiUmResourcesGetRequest) Execute() (Resources, *APIResponse, error) { func (a *UserManagementApiService) UmResourcesGet(ctx _context.Context) ApiUmResourcesGetRequest { return ApiUmResourcesGetRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -2745,11 +2745,11 @@ func (a *UserManagementApiService) UmResourcesGetExecute(r ApiUmResourcesGetRequ localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "UmResourcesGet", + Operation: "UmResourcesGet", } if err != nil || localVarHTTPResponse == nil { @@ -2768,13 +2768,13 @@ func (a *UserManagementApiService) UmResourcesGetExecute(r ApiUmResourcesGetRequ body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -2791,11 +2791,11 @@ func (a *UserManagementApiService) UmResourcesGetExecute(r ApiUmResourcesGetRequ } type ApiUmUsersDeleteRequest struct { - ctx _context.Context - ApiService *UserManagementApiService - userId string - pretty *bool - depth *int32 + ctx _context.Context + ApiService *UserManagementApiService + userId string + pretty *bool + depth *int32 xContractNumber *int32 } @@ -2826,8 +2826,8 @@ func (r ApiUmUsersDeleteRequest) Execute() (map[string]interface{}, *APIResponse func (a *UserManagementApiService) UmUsersDelete(ctx _context.Context, userId string) ApiUmUsersDeleteRequest { return ApiUmUsersDeleteRequest{ ApiService: a, - ctx: ctx, - userId: userId, + ctx: ctx, + userId: userId, } } @@ -2904,11 +2904,11 @@ func (a *UserManagementApiService) UmUsersDeleteExecute(r ApiUmUsersDeleteReques localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "UmUsersDelete", + Operation: "UmUsersDelete", } if err != nil || localVarHTTPResponse == nil { @@ -2927,13 +2927,13 @@ func (a *UserManagementApiService) UmUsersDeleteExecute(r ApiUmUsersDeleteReques body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -2950,11 +2950,11 @@ func (a *UserManagementApiService) UmUsersDeleteExecute(r ApiUmUsersDeleteReques } type ApiUmUsersFindByIdRequest struct { - ctx _context.Context - ApiService *UserManagementApiService - userId string - pretty *bool - depth *int32 + ctx _context.Context + ApiService *UserManagementApiService + userId string + pretty *bool + depth *int32 xContractNumber *int32 } @@ -2985,8 +2985,8 @@ func (r ApiUmUsersFindByIdRequest) Execute() (User, *APIResponse, error) { func (a *UserManagementApiService) UmUsersFindById(ctx _context.Context, userId string) ApiUmUsersFindByIdRequest { return ApiUmUsersFindByIdRequest{ ApiService: a, - ctx: ctx, - userId: userId, + ctx: ctx, + userId: userId, } } @@ -3063,11 +3063,11 @@ func (a *UserManagementApiService) UmUsersFindByIdExecute(r ApiUmUsersFindByIdRe localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "UmUsersFindById", + Operation: "UmUsersFindById", } if err != nil || localVarHTTPResponse == nil { @@ -3086,13 +3086,13 @@ func (a *UserManagementApiService) UmUsersFindByIdExecute(r ApiUmUsersFindByIdRe body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -3109,10 +3109,10 @@ func (a *UserManagementApiService) UmUsersFindByIdExecute(r ApiUmUsersFindByIdRe } type ApiUmUsersGetRequest struct { - ctx _context.Context - ApiService *UserManagementApiService - pretty *bool - depth *int32 + ctx _context.Context + ApiService *UserManagementApiService + pretty *bool + depth *int32 xContractNumber *int32 } @@ -3134,7 +3134,7 @@ func (r ApiUmUsersGetRequest) Execute() (Users, *APIResponse, error) { } /* - * UmUsersGet List all Users + * UmUsersGet List all Users * You can retrieve a complete list of users under your account * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @return ApiUmUsersGetRequest @@ -3142,7 +3142,7 @@ func (r ApiUmUsersGetRequest) Execute() (Users, *APIResponse, error) { func (a *UserManagementApiService) UmUsersGet(ctx _context.Context) ApiUmUsersGetRequest { return ApiUmUsersGetRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -3218,11 +3218,11 @@ func (a *UserManagementApiService) UmUsersGetExecute(r ApiUmUsersGetRequest) (Us localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "UmUsersGet", + Operation: "UmUsersGet", } if err != nil || localVarHTTPResponse == nil { @@ -3241,13 +3241,13 @@ func (a *UserManagementApiService) UmUsersGetExecute(r ApiUmUsersGetRequest) (Us body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -3264,11 +3264,11 @@ func (a *UserManagementApiService) UmUsersGetExecute(r ApiUmUsersGetRequest) (Us } type ApiUmUsersGroupsGetRequest struct { - ctx _context.Context - ApiService *UserManagementApiService - userId string - pretty *bool - depth *int32 + ctx _context.Context + ApiService *UserManagementApiService + userId string + pretty *bool + depth *int32 xContractNumber *int32 } @@ -3299,8 +3299,8 @@ func (r ApiUmUsersGroupsGetRequest) Execute() (ResourceGroups, *APIResponse, err func (a *UserManagementApiService) UmUsersGroupsGet(ctx _context.Context, userId string) ApiUmUsersGroupsGetRequest { return ApiUmUsersGroupsGetRequest{ ApiService: a, - ctx: ctx, - userId: userId, + ctx: ctx, + userId: userId, } } @@ -3377,11 +3377,11 @@ func (a *UserManagementApiService) UmUsersGroupsGetExecute(r ApiUmUsersGroupsGet localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "UmUsersGroupsGet", + Operation: "UmUsersGroupsGet", } if err != nil || localVarHTTPResponse == nil { @@ -3400,13 +3400,13 @@ func (a *UserManagementApiService) UmUsersGroupsGetExecute(r ApiUmUsersGroupsGet body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -3423,11 +3423,11 @@ func (a *UserManagementApiService) UmUsersGroupsGetExecute(r ApiUmUsersGroupsGet } type ApiUmUsersOwnsGetRequest struct { - ctx _context.Context - ApiService *UserManagementApiService - userId string - pretty *bool - depth *int32 + ctx _context.Context + ApiService *UserManagementApiService + userId string + pretty *bool + depth *int32 xContractNumber *int32 } @@ -3458,8 +3458,8 @@ func (r ApiUmUsersOwnsGetRequest) Execute() (ResourcesUsers, *APIResponse, error func (a *UserManagementApiService) UmUsersOwnsGet(ctx _context.Context, userId string) ApiUmUsersOwnsGetRequest { return ApiUmUsersOwnsGetRequest{ ApiService: a, - ctx: ctx, - userId: userId, + ctx: ctx, + userId: userId, } } @@ -3536,11 +3536,11 @@ func (a *UserManagementApiService) UmUsersOwnsGetExecute(r ApiUmUsersOwnsGetRequ localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "UmUsersOwnsGet", + Operation: "UmUsersOwnsGet", } if err != nil || localVarHTTPResponse == nil { @@ -3559,13 +3559,13 @@ func (a *UserManagementApiService) UmUsersOwnsGetExecute(r ApiUmUsersOwnsGetRequ body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -3582,11 +3582,11 @@ func (a *UserManagementApiService) UmUsersOwnsGetExecute(r ApiUmUsersOwnsGetRequ } type ApiUmUsersPostRequest struct { - ctx _context.Context - ApiService *UserManagementApiService - user *User - pretty *bool - depth *int32 + ctx _context.Context + ApiService *UserManagementApiService + user *User + pretty *bool + depth *int32 xContractNumber *int32 } @@ -3620,7 +3620,7 @@ func (r ApiUmUsersPostRequest) Execute() (User, *APIResponse, error) { func (a *UserManagementApiService) UmUsersPost(ctx _context.Context) ApiUmUsersPostRequest { return ApiUmUsersPostRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } @@ -3701,11 +3701,11 @@ func (a *UserManagementApiService) UmUsersPostExecute(r ApiUmUsersPostRequest) ( localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "UmUsersPost", + Operation: "UmUsersPost", } if err != nil || localVarHTTPResponse == nil { @@ -3724,13 +3724,13 @@ func (a *UserManagementApiService) UmUsersPostExecute(r ApiUmUsersPostRequest) ( body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -3747,12 +3747,12 @@ func (a *UserManagementApiService) UmUsersPostExecute(r ApiUmUsersPostRequest) ( } type ApiUmUsersPutRequest struct { - ctx _context.Context - ApiService *UserManagementApiService - userId string - user *User - pretty *bool - depth *int32 + ctx _context.Context + ApiService *UserManagementApiService + userId string + user *User + pretty *bool + depth *int32 xContractNumber *int32 } @@ -3787,8 +3787,8 @@ func (r ApiUmUsersPutRequest) Execute() (User, *APIResponse, error) { func (a *UserManagementApiService) UmUsersPut(ctx _context.Context, userId string) ApiUmUsersPutRequest { return ApiUmUsersPutRequest{ ApiService: a, - ctx: ctx, - userId: userId, + ctx: ctx, + userId: userId, } } @@ -3870,11 +3870,11 @@ func (a *UserManagementApiService) UmUsersPutExecute(r ApiUmUsersPutRequest) (Us localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "UmUsersPut", + Operation: "UmUsersPut", } if err != nil || localVarHTTPResponse == nil { @@ -3893,13 +3893,13 @@ func (a *UserManagementApiService) UmUsersPutExecute(r ApiUmUsersPutRequest) (Us body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -3916,12 +3916,12 @@ func (a *UserManagementApiService) UmUsersPutExecute(r ApiUmUsersPutRequest) (Us } type ApiUmUsersS3keysDeleteRequest struct { - ctx _context.Context - ApiService *UserManagementApiService - userId string - keyId string - pretty *bool - depth *int32 + ctx _context.Context + ApiService *UserManagementApiService + userId string + keyId string + pretty *bool + depth *int32 xContractNumber *int32 } @@ -3953,9 +3953,9 @@ func (r ApiUmUsersS3keysDeleteRequest) Execute() (map[string]interface{}, *APIRe func (a *UserManagementApiService) UmUsersS3keysDelete(ctx _context.Context, userId string, keyId string) ApiUmUsersS3keysDeleteRequest { return ApiUmUsersS3keysDeleteRequest{ ApiService: a, - ctx: ctx, - userId: userId, - keyId: keyId, + ctx: ctx, + userId: userId, + keyId: keyId, } } @@ -4033,11 +4033,11 @@ func (a *UserManagementApiService) UmUsersS3keysDeleteExecute(r ApiUmUsersS3keys localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "UmUsersS3keysDelete", + Operation: "UmUsersS3keysDelete", } if err != nil || localVarHTTPResponse == nil { @@ -4056,13 +4056,13 @@ func (a *UserManagementApiService) UmUsersS3keysDeleteExecute(r ApiUmUsersS3keys body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -4079,12 +4079,12 @@ func (a *UserManagementApiService) UmUsersS3keysDeleteExecute(r ApiUmUsersS3keys } type ApiUmUsersS3keysFindByKeyRequest struct { - ctx _context.Context - ApiService *UserManagementApiService - userId string - keyId string - pretty *bool - depth *int32 + ctx _context.Context + ApiService *UserManagementApiService + userId string + keyId string + pretty *bool + depth *int32 xContractNumber *int32 } @@ -4116,9 +4116,9 @@ func (r ApiUmUsersS3keysFindByKeyRequest) Execute() (S3Key, *APIResponse, error) func (a *UserManagementApiService) UmUsersS3keysFindByKey(ctx _context.Context, userId string, keyId string) ApiUmUsersS3keysFindByKeyRequest { return ApiUmUsersS3keysFindByKeyRequest{ ApiService: a, - ctx: ctx, - userId: userId, - keyId: keyId, + ctx: ctx, + userId: userId, + keyId: keyId, } } @@ -4196,11 +4196,11 @@ func (a *UserManagementApiService) UmUsersS3keysFindByKeyExecute(r ApiUmUsersS3k localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "UmUsersS3keysFindByKey", + Operation: "UmUsersS3keysFindByKey", } if err != nil || localVarHTTPResponse == nil { @@ -4219,13 +4219,13 @@ func (a *UserManagementApiService) UmUsersS3keysFindByKeyExecute(r ApiUmUsersS3k body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -4242,11 +4242,11 @@ func (a *UserManagementApiService) UmUsersS3keysFindByKeyExecute(r ApiUmUsersS3k } type ApiUmUsersS3keysGetRequest struct { - ctx _context.Context - ApiService *UserManagementApiService - userId string - pretty *bool - depth *int32 + ctx _context.Context + ApiService *UserManagementApiService + userId string + pretty *bool + depth *int32 xContractNumber *int32 } @@ -4277,8 +4277,8 @@ func (r ApiUmUsersS3keysGetRequest) Execute() (S3Keys, *APIResponse, error) { func (a *UserManagementApiService) UmUsersS3keysGet(ctx _context.Context, userId string) ApiUmUsersS3keysGetRequest { return ApiUmUsersS3keysGetRequest{ ApiService: a, - ctx: ctx, - userId: userId, + ctx: ctx, + userId: userId, } } @@ -4355,11 +4355,11 @@ func (a *UserManagementApiService) UmUsersS3keysGetExecute(r ApiUmUsersS3keysGet localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "UmUsersS3keysGet", + Operation: "UmUsersS3keysGet", } if err != nil || localVarHTTPResponse == nil { @@ -4378,13 +4378,13 @@ func (a *UserManagementApiService) UmUsersS3keysGetExecute(r ApiUmUsersS3keysGet body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -4401,11 +4401,11 @@ func (a *UserManagementApiService) UmUsersS3keysGetExecute(r ApiUmUsersS3keysGet } type ApiUmUsersS3keysPostRequest struct { - ctx _context.Context - ApiService *UserManagementApiService - userId string - pretty *bool - depth *int32 + ctx _context.Context + ApiService *UserManagementApiService + userId string + pretty *bool + depth *int32 xContractNumber *int32 } @@ -4436,8 +4436,8 @@ func (r ApiUmUsersS3keysPostRequest) Execute() (S3Key, *APIResponse, error) { func (a *UserManagementApiService) UmUsersS3keysPost(ctx _context.Context, userId string) ApiUmUsersS3keysPostRequest { return ApiUmUsersS3keysPostRequest{ ApiService: a, - ctx: ctx, - userId: userId, + ctx: ctx, + userId: userId, } } @@ -4514,11 +4514,11 @@ func (a *UserManagementApiService) UmUsersS3keysPostExecute(r ApiUmUsersS3keysPo localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "UmUsersS3keysPost", + Operation: "UmUsersS3keysPost", } if err != nil || localVarHTTPResponse == nil { @@ -4537,13 +4537,13 @@ func (a *UserManagementApiService) UmUsersS3keysPostExecute(r ApiUmUsersS3keysPo body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -4560,13 +4560,13 @@ func (a *UserManagementApiService) UmUsersS3keysPostExecute(r ApiUmUsersS3keysPo } type ApiUmUsersS3keysPutRequest struct { - ctx _context.Context - ApiService *UserManagementApiService - userId string - keyId string - s3Key *S3Key - pretty *bool - depth *int32 + ctx _context.Context + ApiService *UserManagementApiService + userId string + keyId string + s3Key *S3Key + pretty *bool + depth *int32 xContractNumber *int32 } @@ -4602,9 +4602,9 @@ func (r ApiUmUsersS3keysPutRequest) Execute() (S3Key, *APIResponse, error) { func (a *UserManagementApiService) UmUsersS3keysPut(ctx _context.Context, userId string, keyId string) ApiUmUsersS3keysPutRequest { return ApiUmUsersS3keysPutRequest{ ApiService: a, - ctx: ctx, - userId: userId, - keyId: keyId, + ctx: ctx, + userId: userId, + keyId: keyId, } } @@ -4687,11 +4687,11 @@ func (a *UserManagementApiService) UmUsersS3keysPutExecute(r ApiUmUsersS3keysPut localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "UmUsersS3keysPut", + Operation: "UmUsersS3keysPut", } if err != nil || localVarHTTPResponse == nil { @@ -4710,13 +4710,13 @@ func (a *UserManagementApiService) UmUsersS3keysPutExecute(r ApiUmUsersS3keysPut body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -4733,10 +4733,10 @@ func (a *UserManagementApiService) UmUsersS3keysPutExecute(r ApiUmUsersS3keysPut } type ApiUmUsersS3ssourlGetRequest struct { - ctx _context.Context - ApiService *UserManagementApiService - userId string - pretty *bool + ctx _context.Context + ApiService *UserManagementApiService + userId string + pretty *bool xContractNumber *int32 } @@ -4763,8 +4763,8 @@ func (r ApiUmUsersS3ssourlGetRequest) Execute() (S3ObjectStorageSSO, *APIRespons func (a *UserManagementApiService) UmUsersS3ssourlGet(ctx _context.Context, userId string) ApiUmUsersS3ssourlGetRequest { return ApiUmUsersS3ssourlGetRequest{ ApiService: a, - ctx: ctx, - userId: userId, + ctx: ctx, + userId: userId, } } @@ -4838,11 +4838,11 @@ func (a *UserManagementApiService) UmUsersS3ssourlGetExecute(r ApiUmUsersS3ssour localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "UmUsersS3ssourlGet", + Operation: "UmUsersS3ssourlGet", } if err != nil || localVarHTTPResponse == nil { @@ -4861,13 +4861,13 @@ func (a *UserManagementApiService) UmUsersS3ssourlGetExecute(r ApiUmUsersS3ssour body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/api_volume.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/api_volume.go index 5a243ff58359..e8dfc18f6a7c 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/api_volume.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/api_volume.go @@ -27,17 +27,17 @@ var ( type VolumeApiService service type ApiDatacentersVolumesCreateSnapshotPostRequest struct { - ctx _context.Context - ApiService *VolumeApiService - datacenterId string - volumeId string - pretty *bool - depth *int32 - xContractNumber *int32 - name *string - description *string + ctx _context.Context + ApiService *VolumeApiService + datacenterId string + volumeId string + pretty *bool + depth *int32 + xContractNumber *int32 + name *string + description *string secAuthProtection *bool - licenceType *string + licenceType *string } func (r ApiDatacentersVolumesCreateSnapshotPostRequest) Pretty(pretty bool) ApiDatacentersVolumesCreateSnapshotPostRequest { @@ -83,10 +83,10 @@ func (r ApiDatacentersVolumesCreateSnapshotPostRequest) Execute() (Snapshot, *AP */ func (a *VolumeApiService) DatacentersVolumesCreateSnapshotPost(ctx _context.Context, datacenterId string, volumeId string) ApiDatacentersVolumesCreateSnapshotPostRequest { return ApiDatacentersVolumesCreateSnapshotPostRequest{ - ApiService: a, - ctx: ctx, + ApiService: a, + ctx: ctx, datacenterId: datacenterId, - volumeId: volumeId, + volumeId: volumeId, } } @@ -176,11 +176,11 @@ func (a *VolumeApiService) DatacentersVolumesCreateSnapshotPostExecute(r ApiData localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "DatacentersVolumesCreateSnapshotPost", + Operation: "DatacentersVolumesCreateSnapshotPost", } if err != nil || localVarHTTPResponse == nil { @@ -199,13 +199,13 @@ func (a *VolumeApiService) DatacentersVolumesCreateSnapshotPostExecute(r ApiData body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -222,12 +222,12 @@ func (a *VolumeApiService) DatacentersVolumesCreateSnapshotPostExecute(r ApiData } type ApiDatacentersVolumesDeleteRequest struct { - ctx _context.Context - ApiService *VolumeApiService - datacenterId string - volumeId string - pretty *bool - depth *int32 + ctx _context.Context + ApiService *VolumeApiService + datacenterId string + volumeId string + pretty *bool + depth *int32 xContractNumber *int32 } @@ -258,10 +258,10 @@ func (r ApiDatacentersVolumesDeleteRequest) Execute() (map[string]interface{}, * */ func (a *VolumeApiService) DatacentersVolumesDelete(ctx _context.Context, datacenterId string, volumeId string) ApiDatacentersVolumesDeleteRequest { return ApiDatacentersVolumesDeleteRequest{ - ApiService: a, - ctx: ctx, + ApiService: a, + ctx: ctx, datacenterId: datacenterId, - volumeId: volumeId, + volumeId: volumeId, } } @@ -339,11 +339,11 @@ func (a *VolumeApiService) DatacentersVolumesDeleteExecute(r ApiDatacentersVolum localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "DatacentersVolumesDelete", + Operation: "DatacentersVolumesDelete", } if err != nil || localVarHTTPResponse == nil { @@ -362,13 +362,13 @@ func (a *VolumeApiService) DatacentersVolumesDeleteExecute(r ApiDatacentersVolum body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -385,12 +385,12 @@ func (a *VolumeApiService) DatacentersVolumesDeleteExecute(r ApiDatacentersVolum } type ApiDatacentersVolumesFindByIdRequest struct { - ctx _context.Context - ApiService *VolumeApiService - datacenterId string - volumeId string - pretty *bool - depth *int32 + ctx _context.Context + ApiService *VolumeApiService + datacenterId string + volumeId string + pretty *bool + depth *int32 xContractNumber *int32 } @@ -421,10 +421,10 @@ func (r ApiDatacentersVolumesFindByIdRequest) Execute() (Volume, *APIResponse, e */ func (a *VolumeApiService) DatacentersVolumesFindById(ctx _context.Context, datacenterId string, volumeId string) ApiDatacentersVolumesFindByIdRequest { return ApiDatacentersVolumesFindByIdRequest{ - ApiService: a, - ctx: ctx, + ApiService: a, + ctx: ctx, datacenterId: datacenterId, - volumeId: volumeId, + volumeId: volumeId, } } @@ -502,11 +502,11 @@ func (a *VolumeApiService) DatacentersVolumesFindByIdExecute(r ApiDatacentersVol localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "DatacentersVolumesFindById", + Operation: "DatacentersVolumesFindById", } if err != nil || localVarHTTPResponse == nil { @@ -525,13 +525,13 @@ func (a *VolumeApiService) DatacentersVolumesFindByIdExecute(r ApiDatacentersVol body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -548,11 +548,11 @@ func (a *VolumeApiService) DatacentersVolumesFindByIdExecute(r ApiDatacentersVol } type ApiDatacentersVolumesGetRequest struct { - ctx _context.Context - ApiService *VolumeApiService - datacenterId string - pretty *bool - depth *int32 + ctx _context.Context + ApiService *VolumeApiService + datacenterId string + pretty *bool + depth *int32 xContractNumber *int32 } @@ -574,7 +574,7 @@ func (r ApiDatacentersVolumesGetRequest) Execute() (Volumes, *APIResponse, error } /* - * DatacentersVolumesGet List Volumes + * DatacentersVolumesGet List Volumes * Retrieves a list of Volumes. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param datacenterId The unique ID of the datacenter @@ -582,8 +582,8 @@ func (r ApiDatacentersVolumesGetRequest) Execute() (Volumes, *APIResponse, error */ func (a *VolumeApiService) DatacentersVolumesGet(ctx _context.Context, datacenterId string) ApiDatacentersVolumesGetRequest { return ApiDatacentersVolumesGetRequest{ - ApiService: a, - ctx: ctx, + ApiService: a, + ctx: ctx, datacenterId: datacenterId, } } @@ -661,11 +661,11 @@ func (a *VolumeApiService) DatacentersVolumesGetExecute(r ApiDatacentersVolumesG localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "DatacentersVolumesGet", + Operation: "DatacentersVolumesGet", } if err != nil || localVarHTTPResponse == nil { @@ -684,13 +684,13 @@ func (a *VolumeApiService) DatacentersVolumesGetExecute(r ApiDatacentersVolumesG body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -707,13 +707,13 @@ func (a *VolumeApiService) DatacentersVolumesGetExecute(r ApiDatacentersVolumesG } type ApiDatacentersVolumesPatchRequest struct { - ctx _context.Context - ApiService *VolumeApiService - datacenterId string - volumeId string - volume *VolumeProperties - pretty *bool - depth *int32 + ctx _context.Context + ApiService *VolumeApiService + datacenterId string + volumeId string + volume *VolumeProperties + pretty *bool + depth *int32 xContractNumber *int32 } @@ -748,10 +748,10 @@ func (r ApiDatacentersVolumesPatchRequest) Execute() (Volume, *APIResponse, erro */ func (a *VolumeApiService) DatacentersVolumesPatch(ctx _context.Context, datacenterId string, volumeId string) ApiDatacentersVolumesPatchRequest { return ApiDatacentersVolumesPatchRequest{ - ApiService: a, - ctx: ctx, + ApiService: a, + ctx: ctx, datacenterId: datacenterId, - volumeId: volumeId, + volumeId: volumeId, } } @@ -834,11 +834,11 @@ func (a *VolumeApiService) DatacentersVolumesPatchExecute(r ApiDatacentersVolume localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "DatacentersVolumesPatch", + Operation: "DatacentersVolumesPatch", } if err != nil || localVarHTTPResponse == nil { @@ -857,13 +857,13 @@ func (a *VolumeApiService) DatacentersVolumesPatchExecute(r ApiDatacentersVolume body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -880,12 +880,12 @@ func (a *VolumeApiService) DatacentersVolumesPatchExecute(r ApiDatacentersVolume } type ApiDatacentersVolumesPostRequest struct { - ctx _context.Context - ApiService *VolumeApiService - datacenterId string - volume *Volume - pretty *bool - depth *int32 + ctx _context.Context + ApiService *VolumeApiService + datacenterId string + volume *Volume + pretty *bool + depth *int32 xContractNumber *int32 } @@ -919,8 +919,8 @@ func (r ApiDatacentersVolumesPostRequest) Execute() (Volume, *APIResponse, error */ func (a *VolumeApiService) DatacentersVolumesPost(ctx _context.Context, datacenterId string) ApiDatacentersVolumesPostRequest { return ApiDatacentersVolumesPostRequest{ - ApiService: a, - ctx: ctx, + ApiService: a, + ctx: ctx, datacenterId: datacenterId, } } @@ -1003,11 +1003,11 @@ func (a *VolumeApiService) DatacentersVolumesPostExecute(r ApiDatacentersVolumes localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "DatacentersVolumesPost", + Operation: "DatacentersVolumesPost", } if err != nil || localVarHTTPResponse == nil { @@ -1026,13 +1026,13 @@ func (a *VolumeApiService) DatacentersVolumesPostExecute(r ApiDatacentersVolumes body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -1049,13 +1049,13 @@ func (a *VolumeApiService) DatacentersVolumesPostExecute(r ApiDatacentersVolumes } type ApiDatacentersVolumesPutRequest struct { - ctx _context.Context - ApiService *VolumeApiService - datacenterId string - volumeId string - volume *Volume - pretty *bool - depth *int32 + ctx _context.Context + ApiService *VolumeApiService + datacenterId string + volumeId string + volume *Volume + pretty *bool + depth *int32 xContractNumber *int32 } @@ -1090,10 +1090,10 @@ func (r ApiDatacentersVolumesPutRequest) Execute() (Volume, *APIResponse, error) */ func (a *VolumeApiService) DatacentersVolumesPut(ctx _context.Context, datacenterId string, volumeId string) ApiDatacentersVolumesPutRequest { return ApiDatacentersVolumesPutRequest{ - ApiService: a, - ctx: ctx, + ApiService: a, + ctx: ctx, datacenterId: datacenterId, - volumeId: volumeId, + volumeId: volumeId, } } @@ -1176,11 +1176,11 @@ func (a *VolumeApiService) DatacentersVolumesPutExecute(r ApiDatacentersVolumesP localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "DatacentersVolumesPut", + Operation: "DatacentersVolumesPut", } if err != nil || localVarHTTPResponse == nil { @@ -1199,13 +1199,13 @@ func (a *VolumeApiService) DatacentersVolumesPutExecute(r ApiDatacentersVolumesP body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } @@ -1222,14 +1222,14 @@ func (a *VolumeApiService) DatacentersVolumesPutExecute(r ApiDatacentersVolumesP } type ApiDatacentersVolumesRestoreSnapshotPostRequest struct { - ctx _context.Context - ApiService *VolumeApiService - datacenterId string - volumeId string - pretty *bool - depth *int32 + ctx _context.Context + ApiService *VolumeApiService + datacenterId string + volumeId string + pretty *bool + depth *int32 xContractNumber *int32 - snapshotId *string + snapshotId *string } func (r ApiDatacentersVolumesRestoreSnapshotPostRequest) Pretty(pretty bool) ApiDatacentersVolumesRestoreSnapshotPostRequest { @@ -1263,10 +1263,10 @@ func (r ApiDatacentersVolumesRestoreSnapshotPostRequest) Execute() (map[string]i */ func (a *VolumeApiService) DatacentersVolumesRestoreSnapshotPost(ctx _context.Context, datacenterId string, volumeId string) ApiDatacentersVolumesRestoreSnapshotPostRequest { return ApiDatacentersVolumesRestoreSnapshotPostRequest{ - ApiService: a, - ctx: ctx, + ApiService: a, + ctx: ctx, datacenterId: datacenterId, - volumeId: volumeId, + volumeId: volumeId, } } @@ -1347,11 +1347,11 @@ func (a *VolumeApiService) DatacentersVolumesRestoreSnapshotPostExecute(r ApiDat localVarHTTPResponse, err := a.client.callAPI(req) - localVarAPIResponse := &APIResponse { - Response: localVarHTTPResponse, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: localVarHTTPResponse, + Method: localVarHTTPMethod, RequestURL: localVarPath, - Operation: "DatacentersVolumesRestoreSnapshotPost", + Operation: "DatacentersVolumesRestoreSnapshotPost", } if err != nil || localVarHTTPResponse == nil { @@ -1370,13 +1370,13 @@ func (a *VolumeApiService) DatacentersVolumesRestoreSnapshotPostExecute(r ApiDat body: localVarBody, error: localVarHTTPResponse.Status, } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarAPIResponse, newErr - } - newErr.model = v + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarAPIResponse, newErr + } + newErr.model = v return localVarReturnValue, localVarAPIResponse, newErr } diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/client.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/client.go index e00f5a227a61..eba28c32cd26 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/client.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/client.go @@ -45,10 +45,10 @@ const DepthParam = "depth" const DefaultDepth = "10" const ( - RequestStatusQueued = "QUEUED" - RequestStatusRunning = "RUNNING" - RequestStatusFailed = "FAILED" - RequestStatusDone = "DONE" + RequestStatusQueued = "QUEUED" + RequestStatusRunning = "RUNNING" + RequestStatusFailed = "FAILED" + RequestStatusDone = "DONE" ) // APIClient manages communication with the CLOUD API API v5.0 @@ -216,7 +216,6 @@ func parameterToJson(obj interface{}) (string, error) { return string(jsonBuf), err } - // callAPI do the request. func (c *APIClient) callAPI(request *http.Request) (*http.Response, error) { retryCount := 0 @@ -226,7 +225,7 @@ func (c *APIClient) callAPI(request *http.Request) (*http.Response, error) { for { - retryCount ++ + retryCount++ /* we need to clone the request with every retry time because Body closes after the request */ var clonedRequest *http.Request = request.Clone(request.Context()) @@ -409,22 +408,21 @@ func (c *APIClient) prepareRequest( // Adding Query Param query := url.Query() /* adding default query params */ - for k, v := range c.cfg.DefaultQueryParams { - if _, ok := queryParams[k]; !ok { - queryParams[k] = v - } - } + for k, v := range c.cfg.DefaultQueryParams { + if _, ok := queryParams[k]; !ok { + queryParams[k] = v + } + } for k, v := range queryParams { for _, iv := range v { query.Add(k, iv) } } - // Adding default depth if needed - if query.Get(DepthParam) == "" { - query.Add(DepthParam, DefaultDepth) - } - + // Adding default depth if needed + if query.Get(DepthParam) == "" { + query.Add(DepthParam, DefaultDepth) + } // Encode the parameters. url.RawQuery = query.Encode() @@ -451,13 +449,13 @@ func (c *APIClient) prepareRequest( // Add the user agent to the request. localVarRequest.Header.Add("User-Agent", c.cfg.UserAgent) - if c.cfg.Token != "" { - localVarRequest.Header.Add("Authorization", "Bearer " + c.cfg.Token) - } else { - if c.cfg.Username != "" { - localVarRequest.SetBasicAuth(c.cfg.Username, c.cfg.Password) - } - } + if c.cfg.Token != "" { + localVarRequest.Header.Add("Authorization", "Bearer "+c.cfg.Token) + } else { + if c.cfg.Username != "" { + localVarRequest.SetBasicAuth(c.cfg.Username, c.cfg.Password) + } + } if ctx != nil { // add context to the request @@ -509,9 +507,9 @@ func (c *APIClient) decode(v interface{}, b []byte, contentType string) (err err return nil } if jsonCheck.MatchString(contentType) { - if actualObj, ok := v.(interface{GetActualInstance() interface{}}); ok { // oneOf, anyOf schemas - if unmarshalObj, ok := actualObj.(interface{UnmarshalJSON([]byte) error}); ok { // make sure it has UnmarshalJSON defined - if err = unmarshalObj.UnmarshalJSON(b); err!= nil { + if actualObj, ok := v.(interface{ GetActualInstance() interface{} }); ok { // oneOf, anyOf schemas + if unmarshalObj, ok := actualObj.(interface{ UnmarshalJSON([]byte) error }); ok { // make sure it has UnmarshalJSON defined + if err = unmarshalObj.UnmarshalJSON(b); err != nil { return err } } else { @@ -525,7 +523,6 @@ func (c *APIClient) decode(v interface{}, b []byte, contentType string) (err err return errors.New("undefined response type") } - func (c *APIClient) WaitForRequest(ctx context.Context, path string) (*APIResponse, error) { var ( @@ -562,11 +559,11 @@ func (c *APIClient) WaitForRequest(ctx context.Context, path string) (*APIRespon } - localVarAPIResponse := &APIResponse { - Response: resp, - Method: localVarHTTPMethod, + localVarAPIResponse := &APIResponse{ + Response: resp, + Method: localVarHTTPMethod, RequestURL: path, - Operation: "WaitForRequest", + Operation: "WaitForRequest", } localVarAPIResponse.Payload = localVarBody diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/configuration.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/configuration.go index 0de593f9690d..0d5566dab22c 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/configuration.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/configuration.go @@ -21,12 +21,12 @@ import ( ) const ( - IonosUsernameEnvVar = "IONOS_USERNAME" - IonosPasswordEnvVar = "IONOS_PASSWORD" - IonosTokenEnvVar = "IONOS_TOKEN" - defaultMaxRetries = 3 - defaultWaitTime = time.Duration(100) * time.Millisecond - defaultMaxWaitTime = time.Duration(2000) * time.Millisecond + IonosUsernameEnvVar = "IONOS_USERNAME" + IonosPasswordEnvVar = "IONOS_PASSWORD" + IonosTokenEnvVar = "IONOS_TOKEN" + defaultMaxRetries = 3 + defaultWaitTime = time.Duration(100) * time.Millisecond + defaultMaxWaitTime = time.Duration(2000) * time.Millisecond ) // contextKeys are used to identify the type of value in the context. @@ -89,9 +89,9 @@ type ServerVariable struct { // ServerConfiguration stores the information about a server type ServerConfiguration struct { - URL string + URL string Description string - Variables map[string]ServerVariable + Variables map[string]ServerVariable } // ServerConfigurations stores multiple ServerConfiguration items @@ -99,50 +99,49 @@ type ServerConfigurations []ServerConfiguration // Configuration stores the configuration of the API client type Configuration struct { - Host string `json:"host,omitempty"` - Scheme string `json:"scheme,omitempty"` - DefaultHeader map[string]string `json:"defaultHeader,omitempty"` - DefaultQueryParams url.Values `json:"defaultQueryParams,omitempty"` - UserAgent string `json:"userAgent,omitempty"` - Debug bool `json:"debug,omitempty"` - Servers ServerConfigurations - OperationServers map[string]ServerConfigurations - HTTPClient *http.Client - Username string `json:"username,omitempty"` - Password string `json:"password,omitempty"` - Token string `json:"token,omitempty"` - MaxRetries int `json:"maxRetries,omitempty"` - WaitTime time.Duration `json:"waitTime,omitempty"` - MaxWaitTime time.Duration `json:"maxWaitTime,omitempty"` + Host string `json:"host,omitempty"` + Scheme string `json:"scheme,omitempty"` + DefaultHeader map[string]string `json:"defaultHeader,omitempty"` + DefaultQueryParams url.Values `json:"defaultQueryParams,omitempty"` + UserAgent string `json:"userAgent,omitempty"` + Debug bool `json:"debug,omitempty"` + Servers ServerConfigurations + OperationServers map[string]ServerConfigurations + HTTPClient *http.Client + Username string `json:"username,omitempty"` + Password string `json:"password,omitempty"` + Token string `json:"token,omitempty"` + MaxRetries int `json:"maxRetries,omitempty"` + WaitTime time.Duration `json:"waitTime,omitempty"` + MaxWaitTime time.Duration `json:"maxWaitTime,omitempty"` } // NewConfiguration returns a new Configuration object func NewConfiguration(username string, password string, token string) *Configuration { cfg := &Configuration{ - DefaultHeader: make(map[string]string), + DefaultHeader: make(map[string]string), DefaultQueryParams: url.Values{}, - UserAgent: "ionos-cloud-sdk-go/v5", - Debug: false, - Username: username, - Password: password, - Token: token, - MaxRetries: defaultMaxRetries, - MaxWaitTime: defaultMaxWaitTime, - WaitTime: defaultWaitTime, - Servers: ServerConfigurations{ + UserAgent: "ionos-cloud-sdk-go/v5", + Debug: false, + Username: username, + Password: password, + Token: token, + MaxRetries: defaultMaxRetries, + MaxWaitTime: defaultMaxWaitTime, + WaitTime: defaultWaitTime, + Servers: ServerConfigurations{ { - URL: "https://api.ionos.com/cloudapi/v5", + URL: "https://api.ionos.com/cloudapi/v5", Description: "No description provided", }, }, - OperationServers: map[string]ServerConfigurations{ - }, + OperationServers: map[string]ServerConfigurations{}, } return cfg } func NewConfigurationFromEnv() *Configuration { - return NewConfiguration(os.Getenv(IonosUsernameEnvVar), os.Getenv(IonosPasswordEnvVar), os.Getenv(IonosTokenEnvVar)) + return NewConfiguration(os.Getenv(IonosUsernameEnvVar), os.Getenv(IonosPasswordEnvVar), os.Getenv(IonosTokenEnvVar)) } // AddDefaultHeader adds a new HTTP header to the default header in the request @@ -151,11 +150,11 @@ func (c *Configuration) AddDefaultHeader(key string, value string) { } func (c *Configuration) AddDefaultQueryParam(key string, value string) { - if _, ok := c.DefaultQueryParams[key]; ok { - c.DefaultQueryParams[key] = append(c.DefaultQueryParams[key], value) - } else { - c.DefaultQueryParams[key] = []string{value} - } + if _, ok := c.DefaultQueryParams[key]; ok { + c.DefaultQueryParams[key] = append(c.DefaultQueryParams[key], value) + } else { + c.DefaultQueryParams[key] = []string{value} + } } // URL formats template on a index using given variables diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_attached_volumes.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_attached_volumes.go index b0ef52a0e039..5a937e588aee 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_attached_volumes.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_attached_volumes.go @@ -26,8 +26,6 @@ type AttachedVolumes struct { Items *[]Volume `json:"items,omitempty"` } - - // GetId returns the Id field value // If the value is explicit nil, the zero value for string will be returned func (o *AttachedVolumes) GetId() *string { @@ -62,8 +60,6 @@ func (o *AttachedVolumes) HasId() bool { return false } - - // GetType returns the Type field value // If the value is explicit nil, the zero value for Type will be returned func (o *AttachedVolumes) GetType() *Type { @@ -98,8 +94,6 @@ func (o *AttachedVolumes) HasType() bool { return false } - - // GetHref returns the Href field value // If the value is explicit nil, the zero value for string will be returned func (o *AttachedVolumes) GetHref() *string { @@ -134,8 +128,6 @@ func (o *AttachedVolumes) HasHref() bool { return false } - - // GetItems returns the Items field value // If the value is explicit nil, the zero value for []Volume will be returned func (o *AttachedVolumes) GetItems() *[]Volume { @@ -170,29 +162,25 @@ func (o *AttachedVolumes) HasItems() bool { return false } - func (o AttachedVolumes) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.Id != nil { toSerialize["id"] = o.Id } - if o.Type != nil { toSerialize["type"] = o.Type } - if o.Href != nil { toSerialize["href"] = o.Href } - if o.Items != nil { toSerialize["items"] = o.Items } - + return json.Marshal(toSerialize) } @@ -231,5 +219,3 @@ func (v *NullableAttachedVolumes) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_backup_unit.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_backup_unit.go index 550ca9b1e584..93fbe7ab9cd4 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_backup_unit.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_backup_unit.go @@ -21,13 +21,11 @@ type BackupUnit struct { // The type of object that has been created Type *string `json:"type,omitempty"` // URL to the object representation (absolute path) - Href *string `json:"href,omitempty"` - Metadata *DatacenterElementMetadata `json:"metadata,omitempty"` - Properties *BackupUnitProperties `json:"properties"` + Href *string `json:"href,omitempty"` + Metadata *DatacenterElementMetadata `json:"metadata,omitempty"` + Properties *BackupUnitProperties `json:"properties"` } - - // GetId returns the Id field value // If the value is explicit nil, the zero value for string will be returned func (o *BackupUnit) GetId() *string { @@ -62,8 +60,6 @@ func (o *BackupUnit) HasId() bool { return false } - - // GetType returns the Type field value // If the value is explicit nil, the zero value for string will be returned func (o *BackupUnit) GetType() *string { @@ -98,8 +94,6 @@ func (o *BackupUnit) HasType() bool { return false } - - // GetHref returns the Href field value // If the value is explicit nil, the zero value for string will be returned func (o *BackupUnit) GetHref() *string { @@ -134,8 +128,6 @@ func (o *BackupUnit) HasHref() bool { return false } - - // GetMetadata returns the Metadata field value // If the value is explicit nil, the zero value for DatacenterElementMetadata will be returned func (o *BackupUnit) GetMetadata() *DatacenterElementMetadata { @@ -170,8 +162,6 @@ func (o *BackupUnit) HasMetadata() bool { return false } - - // GetProperties returns the Properties field value // If the value is explicit nil, the zero value for BackupUnitProperties will be returned func (o *BackupUnit) GetProperties() *BackupUnitProperties { @@ -206,34 +196,29 @@ func (o *BackupUnit) HasProperties() bool { return false } - func (o BackupUnit) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.Id != nil { toSerialize["id"] = o.Id } - if o.Type != nil { toSerialize["type"] = o.Type } - if o.Href != nil { toSerialize["href"] = o.Href } - if o.Metadata != nil { toSerialize["metadata"] = o.Metadata } - if o.Properties != nil { toSerialize["properties"] = o.Properties } - + return json.Marshal(toSerialize) } @@ -272,5 +257,3 @@ func (v *NullableBackupUnit) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_backup_unit_properties.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_backup_unit_properties.go index 4428de8b09ad..48c22fc43b8d 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_backup_unit_properties.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_backup_unit_properties.go @@ -24,8 +24,6 @@ type BackupUnitProperties struct { Email *string `json:"email,omitempty"` } - - // GetName returns the Name field value // If the value is explicit nil, the zero value for string will be returned func (o *BackupUnitProperties) GetName() *string { @@ -60,8 +58,6 @@ func (o *BackupUnitProperties) HasName() bool { return false } - - // GetPassword returns the Password field value // If the value is explicit nil, the zero value for string will be returned func (o *BackupUnitProperties) GetPassword() *string { @@ -96,8 +92,6 @@ func (o *BackupUnitProperties) HasPassword() bool { return false } - - // GetEmail returns the Email field value // If the value is explicit nil, the zero value for string will be returned func (o *BackupUnitProperties) GetEmail() *string { @@ -132,24 +126,21 @@ func (o *BackupUnitProperties) HasEmail() bool { return false } - func (o BackupUnitProperties) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.Name != nil { toSerialize["name"] = o.Name } - if o.Password != nil { toSerialize["password"] = o.Password } - if o.Email != nil { toSerialize["email"] = o.Email } - + return json.Marshal(toSerialize) } @@ -188,5 +179,3 @@ func (v *NullableBackupUnitProperties) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_backup_unit_sso.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_backup_unit_sso.go index ef5355665799..2662352f31c5 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_backup_unit_sso.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_backup_unit_sso.go @@ -20,8 +20,6 @@ type BackupUnitSSO struct { SsoUrl *string `json:"ssoUrl,omitempty"` } - - // GetSsoUrl returns the SsoUrl field value // If the value is explicit nil, the zero value for string will be returned func (o *BackupUnitSSO) GetSsoUrl() *string { @@ -56,14 +54,13 @@ func (o *BackupUnitSSO) HasSsoUrl() bool { return false } - func (o BackupUnitSSO) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.SsoUrl != nil { toSerialize["ssoUrl"] = o.SsoUrl } - + return json.Marshal(toSerialize) } @@ -102,5 +99,3 @@ func (v *NullableBackupUnitSSO) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_backup_units.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_backup_units.go index 44be5b692dbc..ce39d91ce308 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_backup_units.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_backup_units.go @@ -26,8 +26,6 @@ type BackupUnits struct { Items *[]BackupUnit `json:"items,omitempty"` } - - // GetId returns the Id field value // If the value is explicit nil, the zero value for string will be returned func (o *BackupUnits) GetId() *string { @@ -62,8 +60,6 @@ func (o *BackupUnits) HasId() bool { return false } - - // GetType returns the Type field value // If the value is explicit nil, the zero value for string will be returned func (o *BackupUnits) GetType() *string { @@ -98,8 +94,6 @@ func (o *BackupUnits) HasType() bool { return false } - - // GetHref returns the Href field value // If the value is explicit nil, the zero value for string will be returned func (o *BackupUnits) GetHref() *string { @@ -134,8 +128,6 @@ func (o *BackupUnits) HasHref() bool { return false } - - // GetItems returns the Items field value // If the value is explicit nil, the zero value for []BackupUnit will be returned func (o *BackupUnits) GetItems() *[]BackupUnit { @@ -170,29 +162,25 @@ func (o *BackupUnits) HasItems() bool { return false } - func (o BackupUnits) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.Id != nil { toSerialize["id"] = o.Id } - if o.Type != nil { toSerialize["type"] = o.Type } - if o.Href != nil { toSerialize["href"] = o.Href } - if o.Items != nil { toSerialize["items"] = o.Items } - + return json.Marshal(toSerialize) } @@ -231,5 +219,3 @@ func (v *NullableBackupUnits) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_balanced_nics.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_balanced_nics.go index f3ecbfec7b22..e187f3b9dd34 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_balanced_nics.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_balanced_nics.go @@ -26,8 +26,6 @@ type BalancedNics struct { Items *[]Nic `json:"items,omitempty"` } - - // GetId returns the Id field value // If the value is explicit nil, the zero value for string will be returned func (o *BalancedNics) GetId() *string { @@ -62,8 +60,6 @@ func (o *BalancedNics) HasId() bool { return false } - - // GetType returns the Type field value // If the value is explicit nil, the zero value for Type will be returned func (o *BalancedNics) GetType() *Type { @@ -98,8 +94,6 @@ func (o *BalancedNics) HasType() bool { return false } - - // GetHref returns the Href field value // If the value is explicit nil, the zero value for string will be returned func (o *BalancedNics) GetHref() *string { @@ -134,8 +128,6 @@ func (o *BalancedNics) HasHref() bool { return false } - - // GetItems returns the Items field value // If the value is explicit nil, the zero value for []Nic will be returned func (o *BalancedNics) GetItems() *[]Nic { @@ -170,29 +162,25 @@ func (o *BalancedNics) HasItems() bool { return false } - func (o BalancedNics) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.Id != nil { toSerialize["id"] = o.Id } - if o.Type != nil { toSerialize["type"] = o.Type } - if o.Href != nil { toSerialize["href"] = o.Href } - if o.Items != nil { toSerialize["items"] = o.Items } - + return json.Marshal(toSerialize) } @@ -231,5 +219,3 @@ func (v *NullableBalancedNics) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_cdroms.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_cdroms.go index 1cad3fb128eb..af2a4714e3bb 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_cdroms.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_cdroms.go @@ -26,8 +26,6 @@ type Cdroms struct { Items *[]Image `json:"items,omitempty"` } - - // GetId returns the Id field value // If the value is explicit nil, the zero value for string will be returned func (o *Cdroms) GetId() *string { @@ -62,8 +60,6 @@ func (o *Cdroms) HasId() bool { return false } - - // GetType returns the Type field value // If the value is explicit nil, the zero value for Type will be returned func (o *Cdroms) GetType() *Type { @@ -98,8 +94,6 @@ func (o *Cdroms) HasType() bool { return false } - - // GetHref returns the Href field value // If the value is explicit nil, the zero value for string will be returned func (o *Cdroms) GetHref() *string { @@ -134,8 +128,6 @@ func (o *Cdroms) HasHref() bool { return false } - - // GetItems returns the Items field value // If the value is explicit nil, the zero value for []Image will be returned func (o *Cdroms) GetItems() *[]Image { @@ -170,29 +162,25 @@ func (o *Cdroms) HasItems() bool { return false } - func (o Cdroms) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.Id != nil { toSerialize["id"] = o.Id } - if o.Type != nil { toSerialize["type"] = o.Type } - if o.Href != nil { toSerialize["href"] = o.Href } - if o.Items != nil { toSerialize["items"] = o.Items } - + return json.Marshal(toSerialize) } @@ -231,5 +219,3 @@ func (v *NullableCdroms) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_connectable_datacenter.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_connectable_datacenter.go index 4a62657d79a0..cf3a163efa3b 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_connectable_datacenter.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_connectable_datacenter.go @@ -16,13 +16,11 @@ import ( // ConnectableDatacenter struct for ConnectableDatacenter type ConnectableDatacenter struct { - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` Location *string `json:"location,omitempty"` } - - // GetId returns the Id field value // If the value is explicit nil, the zero value for string will be returned func (o *ConnectableDatacenter) GetId() *string { @@ -57,8 +55,6 @@ func (o *ConnectableDatacenter) HasId() bool { return false } - - // GetName returns the Name field value // If the value is explicit nil, the zero value for string will be returned func (o *ConnectableDatacenter) GetName() *string { @@ -93,8 +89,6 @@ func (o *ConnectableDatacenter) HasName() bool { return false } - - // GetLocation returns the Location field value // If the value is explicit nil, the zero value for string will be returned func (o *ConnectableDatacenter) GetLocation() *string { @@ -129,24 +123,21 @@ func (o *ConnectableDatacenter) HasLocation() bool { return false } - func (o ConnectableDatacenter) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.Id != nil { toSerialize["id"] = o.Id } - if o.Name != nil { toSerialize["name"] = o.Name } - if o.Location != nil { toSerialize["location"] = o.Location } - + return json.Marshal(toSerialize) } @@ -185,5 +176,3 @@ func (v *NullableConnectableDatacenter) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_contract.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_contract.go index 09f8fc5d970e..4cfd5378d1dd 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_contract.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_contract.go @@ -17,12 +17,10 @@ import ( // Contract struct for Contract type Contract struct { // The type of the resource - Type *Type `json:"type,omitempty"` + Type *Type `json:"type,omitempty"` Properties *ContractProperties `json:"properties"` } - - // GetType returns the Type field value // If the value is explicit nil, the zero value for Type will be returned func (o *Contract) GetType() *Type { @@ -57,8 +55,6 @@ func (o *Contract) HasType() bool { return false } - - // GetProperties returns the Properties field value // If the value is explicit nil, the zero value for ContractProperties will be returned func (o *Contract) GetProperties() *ContractProperties { @@ -93,19 +89,17 @@ func (o *Contract) HasProperties() bool { return false } - func (o Contract) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.Type != nil { toSerialize["type"] = o.Type } - if o.Properties != nil { toSerialize["properties"] = o.Properties } - + return json.Marshal(toSerialize) } @@ -144,5 +138,3 @@ func (v *NullableContract) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_contract_properties.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_contract_properties.go index 9783db40cd88..7bb02e22775f 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_contract_properties.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_contract_properties.go @@ -23,12 +23,10 @@ type ContractProperties struct { // status of the contract Status *string `json:"status,omitempty"` // Registration domain of the contract - RegDomain *string `json:"regDomain,omitempty"` + RegDomain *string `json:"regDomain,omitempty"` ResourceLimits *ResourceLimits `json:"resourceLimits,omitempty"` } - - // GetContractNumber returns the ContractNumber field value // If the value is explicit nil, the zero value for int64 will be returned func (o *ContractProperties) GetContractNumber() *int64 { @@ -63,8 +61,6 @@ func (o *ContractProperties) HasContractNumber() bool { return false } - - // GetOwner returns the Owner field value // If the value is explicit nil, the zero value for string will be returned func (o *ContractProperties) GetOwner() *string { @@ -99,8 +95,6 @@ func (o *ContractProperties) HasOwner() bool { return false } - - // GetStatus returns the Status field value // If the value is explicit nil, the zero value for string will be returned func (o *ContractProperties) GetStatus() *string { @@ -135,8 +129,6 @@ func (o *ContractProperties) HasStatus() bool { return false } - - // GetRegDomain returns the RegDomain field value // If the value is explicit nil, the zero value for string will be returned func (o *ContractProperties) GetRegDomain() *string { @@ -171,8 +163,6 @@ func (o *ContractProperties) HasRegDomain() bool { return false } - - // GetResourceLimits returns the ResourceLimits field value // If the value is explicit nil, the zero value for ResourceLimits will be returned func (o *ContractProperties) GetResourceLimits() *ResourceLimits { @@ -207,34 +197,29 @@ func (o *ContractProperties) HasResourceLimits() bool { return false } - func (o ContractProperties) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.ContractNumber != nil { toSerialize["contractNumber"] = o.ContractNumber } - if o.Owner != nil { toSerialize["owner"] = o.Owner } - if o.Status != nil { toSerialize["status"] = o.Status } - if o.RegDomain != nil { toSerialize["regDomain"] = o.RegDomain } - if o.ResourceLimits != nil { toSerialize["resourceLimits"] = o.ResourceLimits } - + return json.Marshal(toSerialize) } @@ -273,5 +258,3 @@ func (v *NullableContractProperties) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_datacenter.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_datacenter.go index c9a8784b7839..816d99ae00d9 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_datacenter.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_datacenter.go @@ -21,14 +21,12 @@ type Datacenter struct { // The type of object that has been created Type *Type `json:"type,omitempty"` // URL to the object representation (absolute path) - Href *string `json:"href,omitempty"` - Metadata *DatacenterElementMetadata `json:"metadata,omitempty"` - Properties *DatacenterProperties `json:"properties"` - Entities *DatacenterEntities `json:"entities,omitempty"` + Href *string `json:"href,omitempty"` + Metadata *DatacenterElementMetadata `json:"metadata,omitempty"` + Properties *DatacenterProperties `json:"properties"` + Entities *DatacenterEntities `json:"entities,omitempty"` } - - // GetId returns the Id field value // If the value is explicit nil, the zero value for string will be returned func (o *Datacenter) GetId() *string { @@ -63,8 +61,6 @@ func (o *Datacenter) HasId() bool { return false } - - // GetType returns the Type field value // If the value is explicit nil, the zero value for Type will be returned func (o *Datacenter) GetType() *Type { @@ -99,8 +95,6 @@ func (o *Datacenter) HasType() bool { return false } - - // GetHref returns the Href field value // If the value is explicit nil, the zero value for string will be returned func (o *Datacenter) GetHref() *string { @@ -135,8 +129,6 @@ func (o *Datacenter) HasHref() bool { return false } - - // GetMetadata returns the Metadata field value // If the value is explicit nil, the zero value for DatacenterElementMetadata will be returned func (o *Datacenter) GetMetadata() *DatacenterElementMetadata { @@ -171,8 +163,6 @@ func (o *Datacenter) HasMetadata() bool { return false } - - // GetProperties returns the Properties field value // If the value is explicit nil, the zero value for DatacenterProperties will be returned func (o *Datacenter) GetProperties() *DatacenterProperties { @@ -207,8 +197,6 @@ func (o *Datacenter) HasProperties() bool { return false } - - // GetEntities returns the Entities field value // If the value is explicit nil, the zero value for DatacenterEntities will be returned func (o *Datacenter) GetEntities() *DatacenterEntities { @@ -243,39 +231,33 @@ func (o *Datacenter) HasEntities() bool { return false } - func (o Datacenter) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.Id != nil { toSerialize["id"] = o.Id } - if o.Type != nil { toSerialize["type"] = o.Type } - if o.Href != nil { toSerialize["href"] = o.Href } - if o.Metadata != nil { toSerialize["metadata"] = o.Metadata } - if o.Properties != nil { toSerialize["properties"] = o.Properties } - if o.Entities != nil { toSerialize["entities"] = o.Entities } - + return json.Marshal(toSerialize) } @@ -314,5 +296,3 @@ func (v *NullableDatacenter) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_datacenter_element_metadata.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_datacenter_element_metadata.go index a6df0841d76f..174d64b3f9a9 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_datacenter_element_metadata.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_datacenter_element_metadata.go @@ -17,7 +17,7 @@ import ( // DatacenterElementMetadata struct for DatacenterElementMetadata type DatacenterElementMetadata struct { - // Resource's Entity Tag as defined in http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.11 . Entity Tag is also added as an 'ETag response header to requests which don't use 'depth' parameter. + // Resource's Entity Tag as defined in http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.11 . Entity Tag is also added as an 'ETag response header to requests which don't use 'depth' parameter. Etag *string `json:"etag,omitempty"` // The last time the resource was created CreatedDate *time.Time `json:"createdDate,omitempty"` @@ -35,8 +35,6 @@ type DatacenterElementMetadata struct { State *string `json:"state,omitempty"` } - - // GetEtag returns the Etag field value // If the value is explicit nil, the zero value for string will be returned func (o *DatacenterElementMetadata) GetEtag() *string { @@ -71,8 +69,6 @@ func (o *DatacenterElementMetadata) HasEtag() bool { return false } - - // GetCreatedDate returns the CreatedDate field value // If the value is explicit nil, the zero value for time.Time will be returned func (o *DatacenterElementMetadata) GetCreatedDate() *time.Time { @@ -107,8 +103,6 @@ func (o *DatacenterElementMetadata) HasCreatedDate() bool { return false } - - // GetCreatedBy returns the CreatedBy field value // If the value is explicit nil, the zero value for string will be returned func (o *DatacenterElementMetadata) GetCreatedBy() *string { @@ -143,8 +137,6 @@ func (o *DatacenterElementMetadata) HasCreatedBy() bool { return false } - - // GetCreatedByUserId returns the CreatedByUserId field value // If the value is explicit nil, the zero value for string will be returned func (o *DatacenterElementMetadata) GetCreatedByUserId() *string { @@ -179,8 +171,6 @@ func (o *DatacenterElementMetadata) HasCreatedByUserId() bool { return false } - - // GetLastModifiedDate returns the LastModifiedDate field value // If the value is explicit nil, the zero value for time.Time will be returned func (o *DatacenterElementMetadata) GetLastModifiedDate() *time.Time { @@ -215,8 +205,6 @@ func (o *DatacenterElementMetadata) HasLastModifiedDate() bool { return false } - - // GetLastModifiedBy returns the LastModifiedBy field value // If the value is explicit nil, the zero value for string will be returned func (o *DatacenterElementMetadata) GetLastModifiedBy() *string { @@ -251,8 +239,6 @@ func (o *DatacenterElementMetadata) HasLastModifiedBy() bool { return false } - - // GetLastModifiedByUserId returns the LastModifiedByUserId field value // If the value is explicit nil, the zero value for string will be returned func (o *DatacenterElementMetadata) GetLastModifiedByUserId() *string { @@ -287,8 +273,6 @@ func (o *DatacenterElementMetadata) HasLastModifiedByUserId() bool { return false } - - // GetState returns the State field value // If the value is explicit nil, the zero value for string will be returned func (o *DatacenterElementMetadata) GetState() *string { @@ -323,49 +307,41 @@ func (o *DatacenterElementMetadata) HasState() bool { return false } - func (o DatacenterElementMetadata) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.Etag != nil { toSerialize["etag"] = o.Etag } - if o.CreatedDate != nil { toSerialize["createdDate"] = o.CreatedDate } - if o.CreatedBy != nil { toSerialize["createdBy"] = o.CreatedBy } - if o.CreatedByUserId != nil { toSerialize["createdByUserId"] = o.CreatedByUserId } - if o.LastModifiedDate != nil { toSerialize["lastModifiedDate"] = o.LastModifiedDate } - if o.LastModifiedBy != nil { toSerialize["lastModifiedBy"] = o.LastModifiedBy } - if o.LastModifiedByUserId != nil { toSerialize["lastModifiedByUserId"] = o.LastModifiedByUserId } - if o.State != nil { toSerialize["state"] = o.State } - + return json.Marshal(toSerialize) } @@ -404,5 +380,3 @@ func (v *NullableDatacenterElementMetadata) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_datacenter_entities.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_datacenter_entities.go index 7458507ae22f..40eddb534fe1 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_datacenter_entities.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_datacenter_entities.go @@ -16,14 +16,12 @@ import ( // DatacenterEntities struct for DatacenterEntities type DatacenterEntities struct { - Servers *Servers `json:"servers,omitempty"` - Volumes *Volumes `json:"volumes,omitempty"` + Servers *Servers `json:"servers,omitempty"` + Volumes *Volumes `json:"volumes,omitempty"` Loadbalancers *Loadbalancers `json:"loadbalancers,omitempty"` - Lans *Lans `json:"lans,omitempty"` + Lans *Lans `json:"lans,omitempty"` } - - // GetServers returns the Servers field value // If the value is explicit nil, the zero value for Servers will be returned func (o *DatacenterEntities) GetServers() *Servers { @@ -58,8 +56,6 @@ func (o *DatacenterEntities) HasServers() bool { return false } - - // GetVolumes returns the Volumes field value // If the value is explicit nil, the zero value for Volumes will be returned func (o *DatacenterEntities) GetVolumes() *Volumes { @@ -94,8 +90,6 @@ func (o *DatacenterEntities) HasVolumes() bool { return false } - - // GetLoadbalancers returns the Loadbalancers field value // If the value is explicit nil, the zero value for Loadbalancers will be returned func (o *DatacenterEntities) GetLoadbalancers() *Loadbalancers { @@ -130,8 +124,6 @@ func (o *DatacenterEntities) HasLoadbalancers() bool { return false } - - // GetLans returns the Lans field value // If the value is explicit nil, the zero value for Lans will be returned func (o *DatacenterEntities) GetLans() *Lans { @@ -166,29 +158,25 @@ func (o *DatacenterEntities) HasLans() bool { return false } - func (o DatacenterEntities) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.Servers != nil { toSerialize["servers"] = o.Servers } - if o.Volumes != nil { toSerialize["volumes"] = o.Volumes } - if o.Loadbalancers != nil { toSerialize["loadbalancers"] = o.Loadbalancers } - if o.Lans != nil { toSerialize["lans"] = o.Lans } - + return json.Marshal(toSerialize) } @@ -227,5 +215,3 @@ func (v *NullableDatacenterEntities) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_datacenter_properties.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_datacenter_properties.go index f25e20273c54..667318de6086 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_datacenter_properties.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_datacenter_properties.go @@ -30,8 +30,6 @@ type DatacenterProperties struct { SecAuthProtection *bool `json:"secAuthProtection,omitempty"` } - - // GetName returns the Name field value // If the value is explicit nil, the zero value for string will be returned func (o *DatacenterProperties) GetName() *string { @@ -66,8 +64,6 @@ func (o *DatacenterProperties) HasName() bool { return false } - - // GetDescription returns the Description field value // If the value is explicit nil, the zero value for string will be returned func (o *DatacenterProperties) GetDescription() *string { @@ -102,8 +98,6 @@ func (o *DatacenterProperties) HasDescription() bool { return false } - - // GetLocation returns the Location field value // If the value is explicit nil, the zero value for string will be returned func (o *DatacenterProperties) GetLocation() *string { @@ -138,8 +132,6 @@ func (o *DatacenterProperties) HasLocation() bool { return false } - - // GetVersion returns the Version field value // If the value is explicit nil, the zero value for int32 will be returned func (o *DatacenterProperties) GetVersion() *int32 { @@ -174,8 +166,6 @@ func (o *DatacenterProperties) HasVersion() bool { return false } - - // GetFeatures returns the Features field value // If the value is explicit nil, the zero value for []string will be returned func (o *DatacenterProperties) GetFeatures() *[]string { @@ -210,8 +200,6 @@ func (o *DatacenterProperties) HasFeatures() bool { return false } - - // GetSecAuthProtection returns the SecAuthProtection field value // If the value is explicit nil, the zero value for bool will be returned func (o *DatacenterProperties) GetSecAuthProtection() *bool { @@ -246,39 +234,33 @@ func (o *DatacenterProperties) HasSecAuthProtection() bool { return false } - func (o DatacenterProperties) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.Name != nil { toSerialize["name"] = o.Name } - if o.Description != nil { toSerialize["description"] = o.Description } - if o.Location != nil { toSerialize["location"] = o.Location } - if o.Version != nil { toSerialize["version"] = o.Version } - if o.Features != nil { toSerialize["features"] = o.Features } - if o.SecAuthProtection != nil { toSerialize["secAuthProtection"] = o.SecAuthProtection } - + return json.Marshal(toSerialize) } @@ -317,5 +299,3 @@ func (v *NullableDatacenterProperties) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_datacenters.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_datacenters.go index 5c9e6c48cf2e..ef4ac16018a9 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_datacenters.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_datacenters.go @@ -26,8 +26,6 @@ type Datacenters struct { Items *[]Datacenter `json:"items,omitempty"` } - - // GetId returns the Id field value // If the value is explicit nil, the zero value for string will be returned func (o *Datacenters) GetId() *string { @@ -62,8 +60,6 @@ func (o *Datacenters) HasId() bool { return false } - - // GetType returns the Type field value // If the value is explicit nil, the zero value for Type will be returned func (o *Datacenters) GetType() *Type { @@ -98,8 +94,6 @@ func (o *Datacenters) HasType() bool { return false } - - // GetHref returns the Href field value // If the value is explicit nil, the zero value for string will be returned func (o *Datacenters) GetHref() *string { @@ -134,8 +128,6 @@ func (o *Datacenters) HasHref() bool { return false } - - // GetItems returns the Items field value // If the value is explicit nil, the zero value for []Datacenter will be returned func (o *Datacenters) GetItems() *[]Datacenter { @@ -170,29 +162,25 @@ func (o *Datacenters) HasItems() bool { return false } - func (o Datacenters) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.Id != nil { toSerialize["id"] = o.Id } - if o.Type != nil { toSerialize["type"] = o.Type } - if o.Href != nil { toSerialize["href"] = o.Href } - if o.Items != nil { toSerialize["items"] = o.Items } - + return json.Marshal(toSerialize) } @@ -231,5 +219,3 @@ func (v *NullableDatacenters) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_error.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_error.go index 42ef0a4a6487..e580f2af06f3 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_error.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_error.go @@ -17,12 +17,10 @@ import ( // Error struct for Error type Error struct { // HTTP status code of the operation - HttpStatus *int32 `json:"httpStatus,omitempty"` - Messages *[]ErrorMessage `json:"messages,omitempty"` + HttpStatus *int32 `json:"httpStatus,omitempty"` + Messages *[]ErrorMessage `json:"messages,omitempty"` } - - // GetHttpStatus returns the HttpStatus field value // If the value is explicit nil, the zero value for int32 will be returned func (o *Error) GetHttpStatus() *int32 { @@ -57,8 +55,6 @@ func (o *Error) HasHttpStatus() bool { return false } - - // GetMessages returns the Messages field value // If the value is explicit nil, the zero value for []ErrorMessage will be returned func (o *Error) GetMessages() *[]ErrorMessage { @@ -93,19 +89,17 @@ func (o *Error) HasMessages() bool { return false } - func (o Error) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.HttpStatus != nil { toSerialize["httpStatus"] = o.HttpStatus } - if o.Messages != nil { toSerialize["messages"] = o.Messages } - + return json.Marshal(toSerialize) } @@ -144,5 +138,3 @@ func (v *NullableError) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_error_message.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_error_message.go index 2c6fff83e665..d14c3709878d 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_error_message.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_error_message.go @@ -22,8 +22,6 @@ type ErrorMessage struct { Message *string `json:"message,omitempty"` } - - // GetErrorCode returns the ErrorCode field value // If the value is explicit nil, the zero value for string will be returned func (o *ErrorMessage) GetErrorCode() *string { @@ -58,8 +56,6 @@ func (o *ErrorMessage) HasErrorCode() bool { return false } - - // GetMessage returns the Message field value // If the value is explicit nil, the zero value for string will be returned func (o *ErrorMessage) GetMessage() *string { @@ -94,19 +90,17 @@ func (o *ErrorMessage) HasMessage() bool { return false } - func (o ErrorMessage) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.ErrorCode != nil { toSerialize["errorCode"] = o.ErrorCode } - if o.Message != nil { toSerialize["message"] = o.Message } - + return json.Marshal(toSerialize) } @@ -145,5 +139,3 @@ func (v *NullableErrorMessage) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_firewall_rule.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_firewall_rule.go index ae2bd73f667a..5286e81f51e6 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_firewall_rule.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_firewall_rule.go @@ -21,13 +21,11 @@ type FirewallRule struct { // The type of object that has been created Type *Type `json:"type,omitempty"` // URL to the object representation (absolute path) - Href *string `json:"href,omitempty"` - Metadata *DatacenterElementMetadata `json:"metadata,omitempty"` - Properties *FirewallruleProperties `json:"properties"` + Href *string `json:"href,omitempty"` + Metadata *DatacenterElementMetadata `json:"metadata,omitempty"` + Properties *FirewallruleProperties `json:"properties"` } - - // GetId returns the Id field value // If the value is explicit nil, the zero value for string will be returned func (o *FirewallRule) GetId() *string { @@ -62,8 +60,6 @@ func (o *FirewallRule) HasId() bool { return false } - - // GetType returns the Type field value // If the value is explicit nil, the zero value for Type will be returned func (o *FirewallRule) GetType() *Type { @@ -98,8 +94,6 @@ func (o *FirewallRule) HasType() bool { return false } - - // GetHref returns the Href field value // If the value is explicit nil, the zero value for string will be returned func (o *FirewallRule) GetHref() *string { @@ -134,8 +128,6 @@ func (o *FirewallRule) HasHref() bool { return false } - - // GetMetadata returns the Metadata field value // If the value is explicit nil, the zero value for DatacenterElementMetadata will be returned func (o *FirewallRule) GetMetadata() *DatacenterElementMetadata { @@ -170,8 +162,6 @@ func (o *FirewallRule) HasMetadata() bool { return false } - - // GetProperties returns the Properties field value // If the value is explicit nil, the zero value for FirewallruleProperties will be returned func (o *FirewallRule) GetProperties() *FirewallruleProperties { @@ -206,34 +196,29 @@ func (o *FirewallRule) HasProperties() bool { return false } - func (o FirewallRule) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.Id != nil { toSerialize["id"] = o.Id } - if o.Type != nil { toSerialize["type"] = o.Type } - if o.Href != nil { toSerialize["href"] = o.Href } - if o.Metadata != nil { toSerialize["metadata"] = o.Metadata } - if o.Properties != nil { toSerialize["properties"] = o.Properties } - + return json.Marshal(toSerialize) } @@ -272,5 +257,3 @@ func (v *NullableFirewallRule) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_firewall_rules.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_firewall_rules.go index bd46fb030b73..267e3e70d912 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_firewall_rules.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_firewall_rules.go @@ -26,8 +26,6 @@ type FirewallRules struct { Items *[]FirewallRule `json:"items,omitempty"` } - - // GetId returns the Id field value // If the value is explicit nil, the zero value for string will be returned func (o *FirewallRules) GetId() *string { @@ -62,8 +60,6 @@ func (o *FirewallRules) HasId() bool { return false } - - // GetType returns the Type field value // If the value is explicit nil, the zero value for Type will be returned func (o *FirewallRules) GetType() *Type { @@ -98,8 +94,6 @@ func (o *FirewallRules) HasType() bool { return false } - - // GetHref returns the Href field value // If the value is explicit nil, the zero value for string will be returned func (o *FirewallRules) GetHref() *string { @@ -134,8 +128,6 @@ func (o *FirewallRules) HasHref() bool { return false } - - // GetItems returns the Items field value // If the value is explicit nil, the zero value for []FirewallRule will be returned func (o *FirewallRules) GetItems() *[]FirewallRule { @@ -170,29 +162,25 @@ func (o *FirewallRules) HasItems() bool { return false } - func (o FirewallRules) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.Id != nil { toSerialize["id"] = o.Id } - if o.Type != nil { toSerialize["type"] = o.Type } - if o.Href != nil { toSerialize["href"] = o.Href } - if o.Items != nil { toSerialize["items"] = o.Items } - + return json.Marshal(toSerialize) } @@ -231,5 +219,3 @@ func (v *NullableFirewallRules) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_firewallrule_properties.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_firewallrule_properties.go index 501c5c743632..40e38ddfd577 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_firewallrule_properties.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_firewallrule_properties.go @@ -36,8 +36,6 @@ type FirewallruleProperties struct { PortRangeEnd *int32 `json:"portRangeEnd,omitempty"` } - - // GetName returns the Name field value // If the value is explicit nil, the zero value for string will be returned func (o *FirewallruleProperties) GetName() *string { @@ -72,8 +70,6 @@ func (o *FirewallruleProperties) HasName() bool { return false } - - // GetProtocol returns the Protocol field value // If the value is explicit nil, the zero value for string will be returned func (o *FirewallruleProperties) GetProtocol() *string { @@ -108,8 +104,6 @@ func (o *FirewallruleProperties) HasProtocol() bool { return false } - - // GetSourceMac returns the SourceMac field value // If the value is explicit nil, the zero value for string will be returned func (o *FirewallruleProperties) GetSourceMac() *string { @@ -144,8 +138,6 @@ func (o *FirewallruleProperties) HasSourceMac() bool { return false } - - // GetSourceIp returns the SourceIp field value // If the value is explicit nil, the zero value for string will be returned func (o *FirewallruleProperties) GetSourceIp() *string { @@ -180,8 +172,6 @@ func (o *FirewallruleProperties) HasSourceIp() bool { return false } - - // GetTargetIp returns the TargetIp field value // If the value is explicit nil, the zero value for string will be returned func (o *FirewallruleProperties) GetTargetIp() *string { @@ -216,8 +206,6 @@ func (o *FirewallruleProperties) HasTargetIp() bool { return false } - - // GetIcmpCode returns the IcmpCode field value // If the value is explicit nil, the zero value for int32 will be returned func (o *FirewallruleProperties) GetIcmpCode() *int32 { @@ -252,8 +240,6 @@ func (o *FirewallruleProperties) HasIcmpCode() bool { return false } - - // GetIcmpType returns the IcmpType field value // If the value is explicit nil, the zero value for int32 will be returned func (o *FirewallruleProperties) GetIcmpType() *int32 { @@ -288,8 +274,6 @@ func (o *FirewallruleProperties) HasIcmpType() bool { return false } - - // GetPortRangeStart returns the PortRangeStart field value // If the value is explicit nil, the zero value for int32 will be returned func (o *FirewallruleProperties) GetPortRangeStart() *int32 { @@ -324,8 +308,6 @@ func (o *FirewallruleProperties) HasPortRangeStart() bool { return false } - - // GetPortRangeEnd returns the PortRangeEnd field value // If the value is explicit nil, the zero value for int32 will be returned func (o *FirewallruleProperties) GetPortRangeEnd() *int32 { @@ -360,54 +342,45 @@ func (o *FirewallruleProperties) HasPortRangeEnd() bool { return false } - func (o FirewallruleProperties) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.Name != nil { toSerialize["name"] = o.Name } - if o.Protocol != nil { toSerialize["protocol"] = o.Protocol } - if o.SourceMac != nil { toSerialize["sourceMac"] = o.SourceMac } - if o.SourceIp != nil { toSerialize["sourceIp"] = o.SourceIp } - if o.TargetIp != nil { toSerialize["targetIp"] = o.TargetIp } - if o.IcmpCode != nil { toSerialize["icmpCode"] = o.IcmpCode } - if o.IcmpType != nil { toSerialize["icmpType"] = o.IcmpType } - if o.PortRangeStart != nil { toSerialize["portRangeStart"] = o.PortRangeStart } - if o.PortRangeEnd != nil { toSerialize["portRangeEnd"] = o.PortRangeEnd } - + return json.Marshal(toSerialize) } @@ -446,5 +419,3 @@ func (v *NullableFirewallruleProperties) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_group.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_group.go index c8d4c1a54b62..2968952ccbe4 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_group.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_group.go @@ -21,13 +21,11 @@ type Group struct { // The type of the resource Type *Type `json:"type,omitempty"` // URL to the object representation (absolute path) - Href *string `json:"href,omitempty"` + Href *string `json:"href,omitempty"` Properties *GroupProperties `json:"properties"` - Entities *GroupEntities `json:"entities,omitempty"` + Entities *GroupEntities `json:"entities,omitempty"` } - - // GetId returns the Id field value // If the value is explicit nil, the zero value for string will be returned func (o *Group) GetId() *string { @@ -62,8 +60,6 @@ func (o *Group) HasId() bool { return false } - - // GetType returns the Type field value // If the value is explicit nil, the zero value for Type will be returned func (o *Group) GetType() *Type { @@ -98,8 +94,6 @@ func (o *Group) HasType() bool { return false } - - // GetHref returns the Href field value // If the value is explicit nil, the zero value for string will be returned func (o *Group) GetHref() *string { @@ -134,8 +128,6 @@ func (o *Group) HasHref() bool { return false } - - // GetProperties returns the Properties field value // If the value is explicit nil, the zero value for GroupProperties will be returned func (o *Group) GetProperties() *GroupProperties { @@ -170,8 +162,6 @@ func (o *Group) HasProperties() bool { return false } - - // GetEntities returns the Entities field value // If the value is explicit nil, the zero value for GroupEntities will be returned func (o *Group) GetEntities() *GroupEntities { @@ -206,34 +196,29 @@ func (o *Group) HasEntities() bool { return false } - func (o Group) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.Id != nil { toSerialize["id"] = o.Id } - if o.Type != nil { toSerialize["type"] = o.Type } - if o.Href != nil { toSerialize["href"] = o.Href } - if o.Properties != nil { toSerialize["properties"] = o.Properties } - if o.Entities != nil { toSerialize["entities"] = o.Entities } - + return json.Marshal(toSerialize) } @@ -272,5 +257,3 @@ func (v *NullableGroup) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_group_entities.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_group_entities.go index f1b6f9d1b41a..d9b2bdbc1176 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_group_entities.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_group_entities.go @@ -16,12 +16,10 @@ import ( // GroupEntities struct for GroupEntities type GroupEntities struct { - Users *GroupMembers `json:"users,omitempty"` + Users *GroupMembers `json:"users,omitempty"` Resources *ResourceGroups `json:"resources,omitempty"` } - - // GetUsers returns the Users field value // If the value is explicit nil, the zero value for GroupMembers will be returned func (o *GroupEntities) GetUsers() *GroupMembers { @@ -56,8 +54,6 @@ func (o *GroupEntities) HasUsers() bool { return false } - - // GetResources returns the Resources field value // If the value is explicit nil, the zero value for ResourceGroups will be returned func (o *GroupEntities) GetResources() *ResourceGroups { @@ -92,19 +88,17 @@ func (o *GroupEntities) HasResources() bool { return false } - func (o GroupEntities) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.Users != nil { toSerialize["users"] = o.Users } - if o.Resources != nil { toSerialize["resources"] = o.Resources } - + return json.Marshal(toSerialize) } @@ -143,5 +137,3 @@ func (v *NullableGroupEntities) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_group_members.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_group_members.go index a1df808df3b0..7726eefde95e 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_group_members.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_group_members.go @@ -26,8 +26,6 @@ type GroupMembers struct { Items *[]User `json:"items,omitempty"` } - - // GetId returns the Id field value // If the value is explicit nil, the zero value for string will be returned func (o *GroupMembers) GetId() *string { @@ -62,8 +60,6 @@ func (o *GroupMembers) HasId() bool { return false } - - // GetType returns the Type field value // If the value is explicit nil, the zero value for Type will be returned func (o *GroupMembers) GetType() *Type { @@ -98,8 +94,6 @@ func (o *GroupMembers) HasType() bool { return false } - - // GetHref returns the Href field value // If the value is explicit nil, the zero value for string will be returned func (o *GroupMembers) GetHref() *string { @@ -134,8 +128,6 @@ func (o *GroupMembers) HasHref() bool { return false } - - // GetItems returns the Items field value // If the value is explicit nil, the zero value for []User will be returned func (o *GroupMembers) GetItems() *[]User { @@ -170,29 +162,25 @@ func (o *GroupMembers) HasItems() bool { return false } - func (o GroupMembers) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.Id != nil { toSerialize["id"] = o.Id } - if o.Type != nil { toSerialize["type"] = o.Type } - if o.Href != nil { toSerialize["href"] = o.Href } - if o.Items != nil { toSerialize["items"] = o.Items } - + return json.Marshal(toSerialize) } @@ -231,5 +219,3 @@ func (v *NullableGroupMembers) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_group_properties.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_group_properties.go index bbf75293b64a..75b9f581a2bc 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_group_properties.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_group_properties.go @@ -38,8 +38,6 @@ type GroupProperties struct { CreateK8sCluster *bool `json:"createK8sCluster,omitempty"` } - - // GetName returns the Name field value // If the value is explicit nil, the zero value for string will be returned func (o *GroupProperties) GetName() *string { @@ -74,8 +72,6 @@ func (o *GroupProperties) HasName() bool { return false } - - // GetCreateDataCenter returns the CreateDataCenter field value // If the value is explicit nil, the zero value for bool will be returned func (o *GroupProperties) GetCreateDataCenter() *bool { @@ -110,8 +106,6 @@ func (o *GroupProperties) HasCreateDataCenter() bool { return false } - - // GetCreateSnapshot returns the CreateSnapshot field value // If the value is explicit nil, the zero value for bool will be returned func (o *GroupProperties) GetCreateSnapshot() *bool { @@ -146,8 +140,6 @@ func (o *GroupProperties) HasCreateSnapshot() bool { return false } - - // GetReserveIp returns the ReserveIp field value // If the value is explicit nil, the zero value for bool will be returned func (o *GroupProperties) GetReserveIp() *bool { @@ -182,8 +174,6 @@ func (o *GroupProperties) HasReserveIp() bool { return false } - - // GetAccessActivityLog returns the AccessActivityLog field value // If the value is explicit nil, the zero value for bool will be returned func (o *GroupProperties) GetAccessActivityLog() *bool { @@ -218,8 +208,6 @@ func (o *GroupProperties) HasAccessActivityLog() bool { return false } - - // GetCreatePcc returns the CreatePcc field value // If the value is explicit nil, the zero value for bool will be returned func (o *GroupProperties) GetCreatePcc() *bool { @@ -254,8 +242,6 @@ func (o *GroupProperties) HasCreatePcc() bool { return false } - - // GetS3Privilege returns the S3Privilege field value // If the value is explicit nil, the zero value for bool will be returned func (o *GroupProperties) GetS3Privilege() *bool { @@ -290,8 +276,6 @@ func (o *GroupProperties) HasS3Privilege() bool { return false } - - // GetCreateBackupUnit returns the CreateBackupUnit field value // If the value is explicit nil, the zero value for bool will be returned func (o *GroupProperties) GetCreateBackupUnit() *bool { @@ -326,8 +310,6 @@ func (o *GroupProperties) HasCreateBackupUnit() bool { return false } - - // GetCreateInternetAccess returns the CreateInternetAccess field value // If the value is explicit nil, the zero value for bool will be returned func (o *GroupProperties) GetCreateInternetAccess() *bool { @@ -362,8 +344,6 @@ func (o *GroupProperties) HasCreateInternetAccess() bool { return false } - - // GetCreateK8sCluster returns the CreateK8sCluster field value // If the value is explicit nil, the zero value for bool will be returned func (o *GroupProperties) GetCreateK8sCluster() *bool { @@ -398,59 +378,49 @@ func (o *GroupProperties) HasCreateK8sCluster() bool { return false } - func (o GroupProperties) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.Name != nil { toSerialize["name"] = o.Name } - if o.CreateDataCenter != nil { toSerialize["createDataCenter"] = o.CreateDataCenter } - if o.CreateSnapshot != nil { toSerialize["createSnapshot"] = o.CreateSnapshot } - if o.ReserveIp != nil { toSerialize["reserveIp"] = o.ReserveIp } - if o.AccessActivityLog != nil { toSerialize["accessActivityLog"] = o.AccessActivityLog } - if o.CreatePcc != nil { toSerialize["createPcc"] = o.CreatePcc } - if o.S3Privilege != nil { toSerialize["s3Privilege"] = o.S3Privilege } - if o.CreateBackupUnit != nil { toSerialize["createBackupUnit"] = o.CreateBackupUnit } - if o.CreateInternetAccess != nil { toSerialize["createInternetAccess"] = o.CreateInternetAccess } - if o.CreateK8sCluster != nil { toSerialize["createK8sCluster"] = o.CreateK8sCluster } - + return json.Marshal(toSerialize) } @@ -489,5 +459,3 @@ func (v *NullableGroupProperties) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_group_share.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_group_share.go index 943a582591dd..04c0feda681d 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_group_share.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_group_share.go @@ -21,12 +21,10 @@ type GroupShare struct { // resource as generic type Type *Type `json:"type,omitempty"` // URL to the object representation (absolute path) - Href *string `json:"href,omitempty"` + Href *string `json:"href,omitempty"` Properties *GroupShareProperties `json:"properties"` } - - // GetId returns the Id field value // If the value is explicit nil, the zero value for string will be returned func (o *GroupShare) GetId() *string { @@ -61,8 +59,6 @@ func (o *GroupShare) HasId() bool { return false } - - // GetType returns the Type field value // If the value is explicit nil, the zero value for Type will be returned func (o *GroupShare) GetType() *Type { @@ -97,8 +93,6 @@ func (o *GroupShare) HasType() bool { return false } - - // GetHref returns the Href field value // If the value is explicit nil, the zero value for string will be returned func (o *GroupShare) GetHref() *string { @@ -133,8 +127,6 @@ func (o *GroupShare) HasHref() bool { return false } - - // GetProperties returns the Properties field value // If the value is explicit nil, the zero value for GroupShareProperties will be returned func (o *GroupShare) GetProperties() *GroupShareProperties { @@ -169,29 +161,25 @@ func (o *GroupShare) HasProperties() bool { return false } - func (o GroupShare) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.Id != nil { toSerialize["id"] = o.Id } - if o.Type != nil { toSerialize["type"] = o.Type } - if o.Href != nil { toSerialize["href"] = o.Href } - if o.Properties != nil { toSerialize["properties"] = o.Properties } - + return json.Marshal(toSerialize) } @@ -230,5 +218,3 @@ func (v *NullableGroupShare) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_group_share_properties.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_group_share_properties.go index d5dfce78ffb7..3bc8d297000a 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_group_share_properties.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_group_share_properties.go @@ -22,8 +22,6 @@ type GroupShareProperties struct { SharePrivilege *bool `json:"sharePrivilege,omitempty"` } - - // GetEditPrivilege returns the EditPrivilege field value // If the value is explicit nil, the zero value for bool will be returned func (o *GroupShareProperties) GetEditPrivilege() *bool { @@ -58,8 +56,6 @@ func (o *GroupShareProperties) HasEditPrivilege() bool { return false } - - // GetSharePrivilege returns the SharePrivilege field value // If the value is explicit nil, the zero value for bool will be returned func (o *GroupShareProperties) GetSharePrivilege() *bool { @@ -94,19 +90,17 @@ func (o *GroupShareProperties) HasSharePrivilege() bool { return false } - func (o GroupShareProperties) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.EditPrivilege != nil { toSerialize["editPrivilege"] = o.EditPrivilege } - if o.SharePrivilege != nil { toSerialize["sharePrivilege"] = o.SharePrivilege } - + return json.Marshal(toSerialize) } @@ -145,5 +139,3 @@ func (v *NullableGroupShareProperties) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_group_shares.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_group_shares.go index 1c3a6910af70..f02df6cef86f 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_group_shares.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_group_shares.go @@ -26,8 +26,6 @@ type GroupShares struct { Items *[]GroupShare `json:"items,omitempty"` } - - // GetId returns the Id field value // If the value is explicit nil, the zero value for string will be returned func (o *GroupShares) GetId() *string { @@ -62,8 +60,6 @@ func (o *GroupShares) HasId() bool { return false } - - // GetType returns the Type field value // If the value is explicit nil, the zero value for Type will be returned func (o *GroupShares) GetType() *Type { @@ -98,8 +94,6 @@ func (o *GroupShares) HasType() bool { return false } - - // GetHref returns the Href field value // If the value is explicit nil, the zero value for string will be returned func (o *GroupShares) GetHref() *string { @@ -134,8 +128,6 @@ func (o *GroupShares) HasHref() bool { return false } - - // GetItems returns the Items field value // If the value is explicit nil, the zero value for []GroupShare will be returned func (o *GroupShares) GetItems() *[]GroupShare { @@ -170,29 +162,25 @@ func (o *GroupShares) HasItems() bool { return false } - func (o GroupShares) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.Id != nil { toSerialize["id"] = o.Id } - if o.Type != nil { toSerialize["type"] = o.Type } - if o.Href != nil { toSerialize["href"] = o.Href } - if o.Items != nil { toSerialize["items"] = o.Items } - + return json.Marshal(toSerialize) } @@ -231,5 +219,3 @@ func (v *NullableGroupShares) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_group_users.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_group_users.go index 503655e6d9c2..d3153e9da402 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_group_users.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_group_users.go @@ -26,8 +26,6 @@ type GroupUsers struct { Items *[]Group `json:"items,omitempty"` } - - // GetId returns the Id field value // If the value is explicit nil, the zero value for string will be returned func (o *GroupUsers) GetId() *string { @@ -62,8 +60,6 @@ func (o *GroupUsers) HasId() bool { return false } - - // GetType returns the Type field value // If the value is explicit nil, the zero value for Type will be returned func (o *GroupUsers) GetType() *Type { @@ -98,8 +94,6 @@ func (o *GroupUsers) HasType() bool { return false } - - // GetHref returns the Href field value // If the value is explicit nil, the zero value for string will be returned func (o *GroupUsers) GetHref() *string { @@ -134,8 +128,6 @@ func (o *GroupUsers) HasHref() bool { return false } - - // GetItems returns the Items field value // If the value is explicit nil, the zero value for []Group will be returned func (o *GroupUsers) GetItems() *[]Group { @@ -170,29 +162,25 @@ func (o *GroupUsers) HasItems() bool { return false } - func (o GroupUsers) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.Id != nil { toSerialize["id"] = o.Id } - if o.Type != nil { toSerialize["type"] = o.Type } - if o.Href != nil { toSerialize["href"] = o.Href } - if o.Items != nil { toSerialize["items"] = o.Items } - + return json.Marshal(toSerialize) } @@ -231,5 +219,3 @@ func (v *NullableGroupUsers) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_groups.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_groups.go index 8b40fe7dab47..10c215fce527 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_groups.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_groups.go @@ -26,8 +26,6 @@ type Groups struct { Items *[]Group `json:"items,omitempty"` } - - // GetId returns the Id field value // If the value is explicit nil, the zero value for string will be returned func (o *Groups) GetId() *string { @@ -62,8 +60,6 @@ func (o *Groups) HasId() bool { return false } - - // GetType returns the Type field value // If the value is explicit nil, the zero value for Type will be returned func (o *Groups) GetType() *Type { @@ -98,8 +94,6 @@ func (o *Groups) HasType() bool { return false } - - // GetHref returns the Href field value // If the value is explicit nil, the zero value for string will be returned func (o *Groups) GetHref() *string { @@ -134,8 +128,6 @@ func (o *Groups) HasHref() bool { return false } - - // GetItems returns the Items field value // If the value is explicit nil, the zero value for []Group will be returned func (o *Groups) GetItems() *[]Group { @@ -170,29 +162,25 @@ func (o *Groups) HasItems() bool { return false } - func (o Groups) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.Id != nil { toSerialize["id"] = o.Id } - if o.Type != nil { toSerialize["type"] = o.Type } - if o.Href != nil { toSerialize["href"] = o.Href } - if o.Items != nil { toSerialize["items"] = o.Items } - + return json.Marshal(toSerialize) } @@ -231,5 +219,3 @@ func (v *NullableGroups) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_image.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_image.go index 1740e3dcbb9e..3b9dc4213590 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_image.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_image.go @@ -21,13 +21,11 @@ type Image struct { // The type of object that has been created Type *Type `json:"type,omitempty"` // URL to the object representation (absolute path) - Href *string `json:"href,omitempty"` - Metadata *DatacenterElementMetadata `json:"metadata,omitempty"` - Properties *ImageProperties `json:"properties"` + Href *string `json:"href,omitempty"` + Metadata *DatacenterElementMetadata `json:"metadata,omitempty"` + Properties *ImageProperties `json:"properties"` } - - // GetId returns the Id field value // If the value is explicit nil, the zero value for string will be returned func (o *Image) GetId() *string { @@ -62,8 +60,6 @@ func (o *Image) HasId() bool { return false } - - // GetType returns the Type field value // If the value is explicit nil, the zero value for Type will be returned func (o *Image) GetType() *Type { @@ -98,8 +94,6 @@ func (o *Image) HasType() bool { return false } - - // GetHref returns the Href field value // If the value is explicit nil, the zero value for string will be returned func (o *Image) GetHref() *string { @@ -134,8 +128,6 @@ func (o *Image) HasHref() bool { return false } - - // GetMetadata returns the Metadata field value // If the value is explicit nil, the zero value for DatacenterElementMetadata will be returned func (o *Image) GetMetadata() *DatacenterElementMetadata { @@ -170,8 +162,6 @@ func (o *Image) HasMetadata() bool { return false } - - // GetProperties returns the Properties field value // If the value is explicit nil, the zero value for ImageProperties will be returned func (o *Image) GetProperties() *ImageProperties { @@ -206,34 +196,29 @@ func (o *Image) HasProperties() bool { return false } - func (o Image) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.Id != nil { toSerialize["id"] = o.Id } - if o.Type != nil { toSerialize["type"] = o.Type } - if o.Href != nil { toSerialize["href"] = o.Href } - if o.Metadata != nil { toSerialize["metadata"] = o.Metadata } - if o.Properties != nil { toSerialize["properties"] = o.Properties } - + return json.Marshal(toSerialize) } @@ -272,5 +257,3 @@ func (v *NullableImage) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_image_properties.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_image_properties.go index 7c277d3193f6..d0d223899f7d 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_image_properties.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_image_properties.go @@ -20,7 +20,7 @@ type ImageProperties struct { Name *string `json:"name,omitempty"` // Human readable description Description *string `json:"description,omitempty"` - // Location of that image/snapshot. + // Location of that image/snapshot. Location *string `json:"location,omitempty"` // The size of the image in GB Size *float32 `json:"size,omitempty"` @@ -52,8 +52,6 @@ type ImageProperties struct { Public *bool `json:"public,omitempty"` } - - // GetName returns the Name field value // If the value is explicit nil, the zero value for string will be returned func (o *ImageProperties) GetName() *string { @@ -88,8 +86,6 @@ func (o *ImageProperties) HasName() bool { return false } - - // GetDescription returns the Description field value // If the value is explicit nil, the zero value for string will be returned func (o *ImageProperties) GetDescription() *string { @@ -124,8 +120,6 @@ func (o *ImageProperties) HasDescription() bool { return false } - - // GetLocation returns the Location field value // If the value is explicit nil, the zero value for string will be returned func (o *ImageProperties) GetLocation() *string { @@ -160,8 +154,6 @@ func (o *ImageProperties) HasLocation() bool { return false } - - // GetSize returns the Size field value // If the value is explicit nil, the zero value for float32 will be returned func (o *ImageProperties) GetSize() *float32 { @@ -196,8 +188,6 @@ func (o *ImageProperties) HasSize() bool { return false } - - // GetCpuHotPlug returns the CpuHotPlug field value // If the value is explicit nil, the zero value for bool will be returned func (o *ImageProperties) GetCpuHotPlug() *bool { @@ -232,8 +222,6 @@ func (o *ImageProperties) HasCpuHotPlug() bool { return false } - - // GetCpuHotUnplug returns the CpuHotUnplug field value // If the value is explicit nil, the zero value for bool will be returned func (o *ImageProperties) GetCpuHotUnplug() *bool { @@ -268,8 +256,6 @@ func (o *ImageProperties) HasCpuHotUnplug() bool { return false } - - // GetRamHotPlug returns the RamHotPlug field value // If the value is explicit nil, the zero value for bool will be returned func (o *ImageProperties) GetRamHotPlug() *bool { @@ -304,8 +290,6 @@ func (o *ImageProperties) HasRamHotPlug() bool { return false } - - // GetRamHotUnplug returns the RamHotUnplug field value // If the value is explicit nil, the zero value for bool will be returned func (o *ImageProperties) GetRamHotUnplug() *bool { @@ -340,8 +324,6 @@ func (o *ImageProperties) HasRamHotUnplug() bool { return false } - - // GetNicHotPlug returns the NicHotPlug field value // If the value is explicit nil, the zero value for bool will be returned func (o *ImageProperties) GetNicHotPlug() *bool { @@ -376,8 +358,6 @@ func (o *ImageProperties) HasNicHotPlug() bool { return false } - - // GetNicHotUnplug returns the NicHotUnplug field value // If the value is explicit nil, the zero value for bool will be returned func (o *ImageProperties) GetNicHotUnplug() *bool { @@ -412,8 +392,6 @@ func (o *ImageProperties) HasNicHotUnplug() bool { return false } - - // GetDiscVirtioHotPlug returns the DiscVirtioHotPlug field value // If the value is explicit nil, the zero value for bool will be returned func (o *ImageProperties) GetDiscVirtioHotPlug() *bool { @@ -448,8 +426,6 @@ func (o *ImageProperties) HasDiscVirtioHotPlug() bool { return false } - - // GetDiscVirtioHotUnplug returns the DiscVirtioHotUnplug field value // If the value is explicit nil, the zero value for bool will be returned func (o *ImageProperties) GetDiscVirtioHotUnplug() *bool { @@ -484,8 +460,6 @@ func (o *ImageProperties) HasDiscVirtioHotUnplug() bool { return false } - - // GetDiscScsiHotPlug returns the DiscScsiHotPlug field value // If the value is explicit nil, the zero value for bool will be returned func (o *ImageProperties) GetDiscScsiHotPlug() *bool { @@ -520,8 +494,6 @@ func (o *ImageProperties) HasDiscScsiHotPlug() bool { return false } - - // GetDiscScsiHotUnplug returns the DiscScsiHotUnplug field value // If the value is explicit nil, the zero value for bool will be returned func (o *ImageProperties) GetDiscScsiHotUnplug() *bool { @@ -556,8 +528,6 @@ func (o *ImageProperties) HasDiscScsiHotUnplug() bool { return false } - - // GetLicenceType returns the LicenceType field value // If the value is explicit nil, the zero value for string will be returned func (o *ImageProperties) GetLicenceType() *string { @@ -592,8 +562,6 @@ func (o *ImageProperties) HasLicenceType() bool { return false } - - // GetImageType returns the ImageType field value // If the value is explicit nil, the zero value for string will be returned func (o *ImageProperties) GetImageType() *string { @@ -628,8 +596,6 @@ func (o *ImageProperties) HasImageType() bool { return false } - - // GetPublic returns the Public field value // If the value is explicit nil, the zero value for bool will be returned func (o *ImageProperties) GetPublic() *bool { @@ -664,94 +630,77 @@ func (o *ImageProperties) HasPublic() bool { return false } - func (o ImageProperties) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.Name != nil { toSerialize["name"] = o.Name } - if o.Description != nil { toSerialize["description"] = o.Description } - if o.Location != nil { toSerialize["location"] = o.Location } - if o.Size != nil { toSerialize["size"] = o.Size } - if o.CpuHotPlug != nil { toSerialize["cpuHotPlug"] = o.CpuHotPlug } - if o.CpuHotUnplug != nil { toSerialize["cpuHotUnplug"] = o.CpuHotUnplug } - if o.RamHotPlug != nil { toSerialize["ramHotPlug"] = o.RamHotPlug } - if o.RamHotUnplug != nil { toSerialize["ramHotUnplug"] = o.RamHotUnplug } - if o.NicHotPlug != nil { toSerialize["nicHotPlug"] = o.NicHotPlug } - if o.NicHotUnplug != nil { toSerialize["nicHotUnplug"] = o.NicHotUnplug } - if o.DiscVirtioHotPlug != nil { toSerialize["discVirtioHotPlug"] = o.DiscVirtioHotPlug } - if o.DiscVirtioHotUnplug != nil { toSerialize["discVirtioHotUnplug"] = o.DiscVirtioHotUnplug } - if o.DiscScsiHotPlug != nil { toSerialize["discScsiHotPlug"] = o.DiscScsiHotPlug } - if o.DiscScsiHotUnplug != nil { toSerialize["discScsiHotUnplug"] = o.DiscScsiHotUnplug } - if o.LicenceType != nil { toSerialize["licenceType"] = o.LicenceType } - if o.ImageType != nil { toSerialize["imageType"] = o.ImageType } - if o.Public != nil { toSerialize["public"] = o.Public } - + return json.Marshal(toSerialize) } @@ -790,5 +739,3 @@ func (v *NullableImageProperties) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_images.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_images.go index 014b165f06ec..0fff2442d46a 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_images.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_images.go @@ -26,8 +26,6 @@ type Images struct { Items *[]Image `json:"items,omitempty"` } - - // GetId returns the Id field value // If the value is explicit nil, the zero value for string will be returned func (o *Images) GetId() *string { @@ -62,8 +60,6 @@ func (o *Images) HasId() bool { return false } - - // GetType returns the Type field value // If the value is explicit nil, the zero value for Type will be returned func (o *Images) GetType() *Type { @@ -98,8 +94,6 @@ func (o *Images) HasType() bool { return false } - - // GetHref returns the Href field value // If the value is explicit nil, the zero value for string will be returned func (o *Images) GetHref() *string { @@ -134,8 +128,6 @@ func (o *Images) HasHref() bool { return false } - - // GetItems returns the Items field value // If the value is explicit nil, the zero value for []Image will be returned func (o *Images) GetItems() *[]Image { @@ -170,29 +162,25 @@ func (o *Images) HasItems() bool { return false } - func (o Images) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.Id != nil { toSerialize["id"] = o.Id } - if o.Type != nil { toSerialize["type"] = o.Type } - if o.Href != nil { toSerialize["href"] = o.Href } - if o.Items != nil { toSerialize["items"] = o.Items } - + return json.Marshal(toSerialize) } @@ -231,5 +219,3 @@ func (v *NullableImages) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_info.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_info.go index e07988ee7243..3a4d03cf19fd 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_info.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_info.go @@ -24,8 +24,6 @@ type Info struct { Version *string `json:"version,omitempty"` } - - // GetHref returns the Href field value // If the value is explicit nil, the zero value for string will be returned func (o *Info) GetHref() *string { @@ -60,8 +58,6 @@ func (o *Info) HasHref() bool { return false } - - // GetName returns the Name field value // If the value is explicit nil, the zero value for string will be returned func (o *Info) GetName() *string { @@ -96,8 +92,6 @@ func (o *Info) HasName() bool { return false } - - // GetVersion returns the Version field value // If the value is explicit nil, the zero value for string will be returned func (o *Info) GetVersion() *string { @@ -132,24 +126,21 @@ func (o *Info) HasVersion() bool { return false } - func (o Info) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.Href != nil { toSerialize["href"] = o.Href } - if o.Name != nil { toSerialize["name"] = o.Name } - if o.Version != nil { toSerialize["version"] = o.Version } - + return json.Marshal(toSerialize) } @@ -188,5 +179,3 @@ func (v *NullableInfo) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_ip_block.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_ip_block.go index f9cd95bc29a6..3c171a508289 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_ip_block.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_ip_block.go @@ -21,13 +21,11 @@ type IpBlock struct { // The type of object that has been created Type *Type `json:"type,omitempty"` // URL to the object representation (absolute path) - Href *string `json:"href,omitempty"` - Metadata *DatacenterElementMetadata `json:"metadata,omitempty"` - Properties *IpBlockProperties `json:"properties"` + Href *string `json:"href,omitempty"` + Metadata *DatacenterElementMetadata `json:"metadata,omitempty"` + Properties *IpBlockProperties `json:"properties"` } - - // GetId returns the Id field value // If the value is explicit nil, the zero value for string will be returned func (o *IpBlock) GetId() *string { @@ -62,8 +60,6 @@ func (o *IpBlock) HasId() bool { return false } - - // GetType returns the Type field value // If the value is explicit nil, the zero value for Type will be returned func (o *IpBlock) GetType() *Type { @@ -98,8 +94,6 @@ func (o *IpBlock) HasType() bool { return false } - - // GetHref returns the Href field value // If the value is explicit nil, the zero value for string will be returned func (o *IpBlock) GetHref() *string { @@ -134,8 +128,6 @@ func (o *IpBlock) HasHref() bool { return false } - - // GetMetadata returns the Metadata field value // If the value is explicit nil, the zero value for DatacenterElementMetadata will be returned func (o *IpBlock) GetMetadata() *DatacenterElementMetadata { @@ -170,8 +162,6 @@ func (o *IpBlock) HasMetadata() bool { return false } - - // GetProperties returns the Properties field value // If the value is explicit nil, the zero value for IpBlockProperties will be returned func (o *IpBlock) GetProperties() *IpBlockProperties { @@ -206,34 +196,29 @@ func (o *IpBlock) HasProperties() bool { return false } - func (o IpBlock) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.Id != nil { toSerialize["id"] = o.Id } - if o.Type != nil { toSerialize["type"] = o.Type } - if o.Href != nil { toSerialize["href"] = o.Href } - if o.Metadata != nil { toSerialize["metadata"] = o.Metadata } - if o.Properties != nil { toSerialize["properties"] = o.Properties } - + return json.Marshal(toSerialize) } @@ -272,5 +257,3 @@ func (v *NullableIpBlock) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_ip_block_properties.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_ip_block_properties.go index 14fde442d401..c8044b3a6d58 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_ip_block_properties.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_ip_block_properties.go @@ -28,8 +28,6 @@ type IpBlockProperties struct { IpConsumers *[]IpConsumer `json:"ipConsumers,omitempty"` } - - // GetIps returns the Ips field value // If the value is explicit nil, the zero value for []string will be returned func (o *IpBlockProperties) GetIps() *[]string { @@ -64,8 +62,6 @@ func (o *IpBlockProperties) HasIps() bool { return false } - - // GetLocation returns the Location field value // If the value is explicit nil, the zero value for string will be returned func (o *IpBlockProperties) GetLocation() *string { @@ -100,8 +96,6 @@ func (o *IpBlockProperties) HasLocation() bool { return false } - - // GetSize returns the Size field value // If the value is explicit nil, the zero value for int32 will be returned func (o *IpBlockProperties) GetSize() *int32 { @@ -136,8 +130,6 @@ func (o *IpBlockProperties) HasSize() bool { return false } - - // GetName returns the Name field value // If the value is explicit nil, the zero value for string will be returned func (o *IpBlockProperties) GetName() *string { @@ -172,8 +164,6 @@ func (o *IpBlockProperties) HasName() bool { return false } - - // GetIpConsumers returns the IpConsumers field value // If the value is explicit nil, the zero value for []IpConsumer will be returned func (o *IpBlockProperties) GetIpConsumers() *[]IpConsumer { @@ -208,34 +198,29 @@ func (o *IpBlockProperties) HasIpConsumers() bool { return false } - func (o IpBlockProperties) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.Ips != nil { toSerialize["ips"] = o.Ips } - if o.Location != nil { toSerialize["location"] = o.Location } - if o.Size != nil { toSerialize["size"] = o.Size } - if o.Name != nil { toSerialize["name"] = o.Name } - if o.IpConsumers != nil { toSerialize["ipConsumers"] = o.IpConsumers } - + return json.Marshal(toSerialize) } @@ -274,5 +259,3 @@ func (v *NullableIpBlockProperties) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_ip_blocks.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_ip_blocks.go index a74f91534614..35831f8cf03c 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_ip_blocks.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_ip_blocks.go @@ -26,8 +26,6 @@ type IpBlocks struct { Items *[]IpBlock `json:"items,omitempty"` } - - // GetId returns the Id field value // If the value is explicit nil, the zero value for string will be returned func (o *IpBlocks) GetId() *string { @@ -62,8 +60,6 @@ func (o *IpBlocks) HasId() bool { return false } - - // GetType returns the Type field value // If the value is explicit nil, the zero value for Type will be returned func (o *IpBlocks) GetType() *Type { @@ -98,8 +94,6 @@ func (o *IpBlocks) HasType() bool { return false } - - // GetHref returns the Href field value // If the value is explicit nil, the zero value for string will be returned func (o *IpBlocks) GetHref() *string { @@ -134,8 +128,6 @@ func (o *IpBlocks) HasHref() bool { return false } - - // GetItems returns the Items field value // If the value is explicit nil, the zero value for []IpBlock will be returned func (o *IpBlocks) GetItems() *[]IpBlock { @@ -170,29 +162,25 @@ func (o *IpBlocks) HasItems() bool { return false } - func (o IpBlocks) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.Id != nil { toSerialize["id"] = o.Id } - if o.Type != nil { toSerialize["type"] = o.Type } - if o.Href != nil { toSerialize["href"] = o.Href } - if o.Items != nil { toSerialize["items"] = o.Items } - + return json.Marshal(toSerialize) } @@ -231,5 +219,3 @@ func (v *NullableIpBlocks) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_ip_consumer.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_ip_consumer.go index cc70643256ab..6cf2ecd7f92c 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_ip_consumer.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_ip_consumer.go @@ -16,17 +16,15 @@ import ( // IpConsumer struct for IpConsumer type IpConsumer struct { - Ip *string `json:"ip,omitempty"` - Mac *string `json:"mac,omitempty"` - NicId *string `json:"nicId,omitempty"` - ServerId *string `json:"serverId,omitempty"` - ServerName *string `json:"serverName,omitempty"` - DatacenterId *string `json:"datacenterId,omitempty"` + Ip *string `json:"ip,omitempty"` + Mac *string `json:"mac,omitempty"` + NicId *string `json:"nicId,omitempty"` + ServerId *string `json:"serverId,omitempty"` + ServerName *string `json:"serverName,omitempty"` + DatacenterId *string `json:"datacenterId,omitempty"` DatacenterName *string `json:"datacenterName,omitempty"` } - - // GetIp returns the Ip field value // If the value is explicit nil, the zero value for string will be returned func (o *IpConsumer) GetIp() *string { @@ -61,8 +59,6 @@ func (o *IpConsumer) HasIp() bool { return false } - - // GetMac returns the Mac field value // If the value is explicit nil, the zero value for string will be returned func (o *IpConsumer) GetMac() *string { @@ -97,8 +93,6 @@ func (o *IpConsumer) HasMac() bool { return false } - - // GetNicId returns the NicId field value // If the value is explicit nil, the zero value for string will be returned func (o *IpConsumer) GetNicId() *string { @@ -133,8 +127,6 @@ func (o *IpConsumer) HasNicId() bool { return false } - - // GetServerId returns the ServerId field value // If the value is explicit nil, the zero value for string will be returned func (o *IpConsumer) GetServerId() *string { @@ -169,8 +161,6 @@ func (o *IpConsumer) HasServerId() bool { return false } - - // GetServerName returns the ServerName field value // If the value is explicit nil, the zero value for string will be returned func (o *IpConsumer) GetServerName() *string { @@ -205,8 +195,6 @@ func (o *IpConsumer) HasServerName() bool { return false } - - // GetDatacenterId returns the DatacenterId field value // If the value is explicit nil, the zero value for string will be returned func (o *IpConsumer) GetDatacenterId() *string { @@ -241,8 +229,6 @@ func (o *IpConsumer) HasDatacenterId() bool { return false } - - // GetDatacenterName returns the DatacenterName field value // If the value is explicit nil, the zero value for string will be returned func (o *IpConsumer) GetDatacenterName() *string { @@ -277,44 +263,37 @@ func (o *IpConsumer) HasDatacenterName() bool { return false } - func (o IpConsumer) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.Ip != nil { toSerialize["ip"] = o.Ip } - if o.Mac != nil { toSerialize["mac"] = o.Mac } - if o.NicId != nil { toSerialize["nicId"] = o.NicId } - if o.ServerId != nil { toSerialize["serverId"] = o.ServerId } - if o.ServerName != nil { toSerialize["serverName"] = o.ServerName } - if o.DatacenterId != nil { toSerialize["datacenterId"] = o.DatacenterId } - if o.DatacenterName != nil { toSerialize["datacenterName"] = o.DatacenterName } - + return json.Marshal(toSerialize) } @@ -353,5 +332,3 @@ func (v *NullableIpConsumer) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_ip_failover.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_ip_failover.go index e2a3064516b4..870d7c78eccc 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_ip_failover.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_ip_failover.go @@ -16,12 +16,10 @@ import ( // IPFailover struct for IPFailover type IPFailover struct { - Ip *string `json:"ip,omitempty"` + Ip *string `json:"ip,omitempty"` NicUuid *string `json:"nicUuid,omitempty"` } - - // GetIp returns the Ip field value // If the value is explicit nil, the zero value for string will be returned func (o *IPFailover) GetIp() *string { @@ -56,8 +54,6 @@ func (o *IPFailover) HasIp() bool { return false } - - // GetNicUuid returns the NicUuid field value // If the value is explicit nil, the zero value for string will be returned func (o *IPFailover) GetNicUuid() *string { @@ -92,19 +88,17 @@ func (o *IPFailover) HasNicUuid() bool { return false } - func (o IPFailover) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.Ip != nil { toSerialize["ip"] = o.Ip } - if o.NicUuid != nil { toSerialize["nicUuid"] = o.NicUuid } - + return json.Marshal(toSerialize) } @@ -143,5 +137,3 @@ func (v *NullableIPFailover) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_kubernetes_auto_scaling.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_kubernetes_auto_scaling.go index 31084b780727..52c067d74813 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_kubernetes_auto_scaling.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_kubernetes_auto_scaling.go @@ -22,8 +22,6 @@ type KubernetesAutoScaling struct { MaxNodeCount *int32 `json:"maxNodeCount,omitempty"` } - - // GetMinNodeCount returns the MinNodeCount field value // If the value is explicit nil, the zero value for int32 will be returned func (o *KubernetesAutoScaling) GetMinNodeCount() *int32 { @@ -58,8 +56,6 @@ func (o *KubernetesAutoScaling) HasMinNodeCount() bool { return false } - - // GetMaxNodeCount returns the MaxNodeCount field value // If the value is explicit nil, the zero value for int32 will be returned func (o *KubernetesAutoScaling) GetMaxNodeCount() *int32 { @@ -94,19 +90,17 @@ func (o *KubernetesAutoScaling) HasMaxNodeCount() bool { return false } - func (o KubernetesAutoScaling) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.MinNodeCount != nil { toSerialize["minNodeCount"] = o.MinNodeCount } - if o.MaxNodeCount != nil { toSerialize["maxNodeCount"] = o.MaxNodeCount } - + return json.Marshal(toSerialize) } @@ -145,5 +139,3 @@ func (v *NullableKubernetesAutoScaling) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_kubernetes_cluster.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_kubernetes_cluster.go index 7e6bedda22a7..063e30f030d3 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_kubernetes_cluster.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_kubernetes_cluster.go @@ -21,14 +21,12 @@ type KubernetesCluster struct { // The type of object Type *string `json:"type,omitempty"` // URL to the object representation (absolute path) - Href *string `json:"href,omitempty"` - Metadata *DatacenterElementMetadata `json:"metadata,omitempty"` + Href *string `json:"href,omitempty"` + Metadata *DatacenterElementMetadata `json:"metadata,omitempty"` Properties *KubernetesClusterProperties `json:"properties"` - Entities *KubernetesClusterEntities `json:"entities,omitempty"` + Entities *KubernetesClusterEntities `json:"entities,omitempty"` } - - // GetId returns the Id field value // If the value is explicit nil, the zero value for string will be returned func (o *KubernetesCluster) GetId() *string { @@ -63,8 +61,6 @@ func (o *KubernetesCluster) HasId() bool { return false } - - // GetType returns the Type field value // If the value is explicit nil, the zero value for string will be returned func (o *KubernetesCluster) GetType() *string { @@ -99,8 +95,6 @@ func (o *KubernetesCluster) HasType() bool { return false } - - // GetHref returns the Href field value // If the value is explicit nil, the zero value for string will be returned func (o *KubernetesCluster) GetHref() *string { @@ -135,8 +129,6 @@ func (o *KubernetesCluster) HasHref() bool { return false } - - // GetMetadata returns the Metadata field value // If the value is explicit nil, the zero value for DatacenterElementMetadata will be returned func (o *KubernetesCluster) GetMetadata() *DatacenterElementMetadata { @@ -171,8 +163,6 @@ func (o *KubernetesCluster) HasMetadata() bool { return false } - - // GetProperties returns the Properties field value // If the value is explicit nil, the zero value for KubernetesClusterProperties will be returned func (o *KubernetesCluster) GetProperties() *KubernetesClusterProperties { @@ -207,8 +197,6 @@ func (o *KubernetesCluster) HasProperties() bool { return false } - - // GetEntities returns the Entities field value // If the value is explicit nil, the zero value for KubernetesClusterEntities will be returned func (o *KubernetesCluster) GetEntities() *KubernetesClusterEntities { @@ -243,39 +231,33 @@ func (o *KubernetesCluster) HasEntities() bool { return false } - func (o KubernetesCluster) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.Id != nil { toSerialize["id"] = o.Id } - if o.Type != nil { toSerialize["type"] = o.Type } - if o.Href != nil { toSerialize["href"] = o.Href } - if o.Metadata != nil { toSerialize["metadata"] = o.Metadata } - if o.Properties != nil { toSerialize["properties"] = o.Properties } - if o.Entities != nil { toSerialize["entities"] = o.Entities } - + return json.Marshal(toSerialize) } @@ -314,5 +296,3 @@ func (v *NullableKubernetesCluster) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_kubernetes_cluster_entities.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_kubernetes_cluster_entities.go index 21f038e03486..50c82ba8723b 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_kubernetes_cluster_entities.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_kubernetes_cluster_entities.go @@ -19,8 +19,6 @@ type KubernetesClusterEntities struct { Nodepools *KubernetesNodePools `json:"nodepools,omitempty"` } - - // GetNodepools returns the Nodepools field value // If the value is explicit nil, the zero value for KubernetesNodePools will be returned func (o *KubernetesClusterEntities) GetNodepools() *KubernetesNodePools { @@ -55,14 +53,13 @@ func (o *KubernetesClusterEntities) HasNodepools() bool { return false } - func (o KubernetesClusterEntities) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.Nodepools != nil { toSerialize["nodepools"] = o.Nodepools } - + return json.Marshal(toSerialize) } @@ -101,5 +98,3 @@ func (v *NullableKubernetesClusterEntities) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_kubernetes_cluster_properties.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_kubernetes_cluster_properties.go index 0525a484ca0a..b3d51ed07c21 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_kubernetes_cluster_properties.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_kubernetes_cluster_properties.go @@ -19,12 +19,10 @@ type KubernetesClusterProperties struct { // A Kubernetes Cluster Name. Valid Kubernetes Cluster name must be 63 characters or less and must be empty or begin and end with an alphanumeric character ([a-z0-9A-Z]) with dashes (-), underscores (_), dots (.), and alphanumerics between. Name *string `json:"name"` // The kubernetes version in which a cluster is running. This imposes restrictions on what kubernetes versions can be run in a cluster's nodepools. Additionally, not all kubernetes versions are viable upgrade targets for all prior versions. - K8sVersion *string `json:"k8sVersion,omitempty"` + K8sVersion *string `json:"k8sVersion,omitempty"` MaintenanceWindow *KubernetesMaintenanceWindow `json:"maintenanceWindow,omitempty"` } - - // GetName returns the Name field value // If the value is explicit nil, the zero value for string will be returned func (o *KubernetesClusterProperties) GetName() *string { @@ -59,8 +57,6 @@ func (o *KubernetesClusterProperties) HasName() bool { return false } - - // GetK8sVersion returns the K8sVersion field value // If the value is explicit nil, the zero value for string will be returned func (o *KubernetesClusterProperties) GetK8sVersion() *string { @@ -95,8 +91,6 @@ func (o *KubernetesClusterProperties) HasK8sVersion() bool { return false } - - // GetMaintenanceWindow returns the MaintenanceWindow field value // If the value is explicit nil, the zero value for KubernetesMaintenanceWindow will be returned func (o *KubernetesClusterProperties) GetMaintenanceWindow() *KubernetesMaintenanceWindow { @@ -131,24 +125,21 @@ func (o *KubernetesClusterProperties) HasMaintenanceWindow() bool { return false } - func (o KubernetesClusterProperties) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.Name != nil { toSerialize["name"] = o.Name } - if o.K8sVersion != nil { toSerialize["k8sVersion"] = o.K8sVersion } - if o.MaintenanceWindow != nil { toSerialize["maintenanceWindow"] = o.MaintenanceWindow } - + return json.Marshal(toSerialize) } @@ -187,5 +178,3 @@ func (v *NullableKubernetesClusterProperties) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_kubernetes_clusters.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_kubernetes_clusters.go index 5f5d03ab016e..4bcefddf8de7 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_kubernetes_clusters.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_kubernetes_clusters.go @@ -26,8 +26,6 @@ type KubernetesClusters struct { Items *[]KubernetesCluster `json:"items,omitempty"` } - - // GetId returns the Id field value // If the value is explicit nil, the zero value for string will be returned func (o *KubernetesClusters) GetId() *string { @@ -62,8 +60,6 @@ func (o *KubernetesClusters) HasId() bool { return false } - - // GetType returns the Type field value // If the value is explicit nil, the zero value for string will be returned func (o *KubernetesClusters) GetType() *string { @@ -98,8 +94,6 @@ func (o *KubernetesClusters) HasType() bool { return false } - - // GetHref returns the Href field value // If the value is explicit nil, the zero value for string will be returned func (o *KubernetesClusters) GetHref() *string { @@ -134,8 +128,6 @@ func (o *KubernetesClusters) HasHref() bool { return false } - - // GetItems returns the Items field value // If the value is explicit nil, the zero value for []KubernetesCluster will be returned func (o *KubernetesClusters) GetItems() *[]KubernetesCluster { @@ -170,29 +162,25 @@ func (o *KubernetesClusters) HasItems() bool { return false } - func (o KubernetesClusters) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.Id != nil { toSerialize["id"] = o.Id } - if o.Type != nil { toSerialize["type"] = o.Type } - if o.Href != nil { toSerialize["href"] = o.Href } - if o.Items != nil { toSerialize["items"] = o.Items } - + return json.Marshal(toSerialize) } @@ -231,5 +219,3 @@ func (v *NullableKubernetesClusters) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_kubernetes_config.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_kubernetes_config.go index ac6c54ee634b..2e9152fd61da 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_kubernetes_config.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_kubernetes_config.go @@ -21,12 +21,10 @@ type KubernetesConfig struct { // The type of object Type *string `json:"type,omitempty"` // URL to the object representation (absolute path) - Href *string `json:"href,omitempty"` + Href *string `json:"href,omitempty"` Properties *KubernetesConfigProperties `json:"properties"` } - - // GetId returns the Id field value // If the value is explicit nil, the zero value for string will be returned func (o *KubernetesConfig) GetId() *string { @@ -61,8 +59,6 @@ func (o *KubernetesConfig) HasId() bool { return false } - - // GetType returns the Type field value // If the value is explicit nil, the zero value for string will be returned func (o *KubernetesConfig) GetType() *string { @@ -97,8 +93,6 @@ func (o *KubernetesConfig) HasType() bool { return false } - - // GetHref returns the Href field value // If the value is explicit nil, the zero value for string will be returned func (o *KubernetesConfig) GetHref() *string { @@ -133,8 +127,6 @@ func (o *KubernetesConfig) HasHref() bool { return false } - - // GetProperties returns the Properties field value // If the value is explicit nil, the zero value for KubernetesConfigProperties will be returned func (o *KubernetesConfig) GetProperties() *KubernetesConfigProperties { @@ -169,29 +161,25 @@ func (o *KubernetesConfig) HasProperties() bool { return false } - func (o KubernetesConfig) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.Id != nil { toSerialize["id"] = o.Id } - if o.Type != nil { toSerialize["type"] = o.Type } - if o.Href != nil { toSerialize["href"] = o.Href } - if o.Properties != nil { toSerialize["properties"] = o.Properties } - + return json.Marshal(toSerialize) } @@ -230,5 +218,3 @@ func (v *NullableKubernetesConfig) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_kubernetes_config_properties.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_kubernetes_config_properties.go index 48c423675b66..b0e21b4416df 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_kubernetes_config_properties.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_kubernetes_config_properties.go @@ -20,8 +20,6 @@ type KubernetesConfigProperties struct { Kubeconfig *string `json:"kubeconfig,omitempty"` } - - // GetKubeconfig returns the Kubeconfig field value // If the value is explicit nil, the zero value for string will be returned func (o *KubernetesConfigProperties) GetKubeconfig() *string { @@ -56,14 +54,13 @@ func (o *KubernetesConfigProperties) HasKubeconfig() bool { return false } - func (o KubernetesConfigProperties) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.Kubeconfig != nil { toSerialize["kubeconfig"] = o.Kubeconfig } - + return json.Marshal(toSerialize) } @@ -102,5 +99,3 @@ func (v *NullableKubernetesConfigProperties) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_kubernetes_maintenance_window.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_kubernetes_maintenance_window.go index f7ecc2a9522e..eb98f28b0126 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_kubernetes_maintenance_window.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_kubernetes_maintenance_window.go @@ -22,8 +22,6 @@ type KubernetesMaintenanceWindow struct { Time *string `json:"time,omitempty"` } - - // GetDayOfTheWeek returns the DayOfTheWeek field value // If the value is explicit nil, the zero value for string will be returned func (o *KubernetesMaintenanceWindow) GetDayOfTheWeek() *string { @@ -58,8 +56,6 @@ func (o *KubernetesMaintenanceWindow) HasDayOfTheWeek() bool { return false } - - // GetTime returns the Time field value // If the value is explicit nil, the zero value for string will be returned func (o *KubernetesMaintenanceWindow) GetTime() *string { @@ -94,19 +90,17 @@ func (o *KubernetesMaintenanceWindow) HasTime() bool { return false } - func (o KubernetesMaintenanceWindow) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.DayOfTheWeek != nil { toSerialize["dayOfTheWeek"] = o.DayOfTheWeek } - if o.Time != nil { toSerialize["time"] = o.Time } - + return json.Marshal(toSerialize) } @@ -145,5 +139,3 @@ func (v *NullableKubernetesMaintenanceWindow) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_kubernetes_node.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_kubernetes_node.go index b33e440d11ac..dc31ed863c46 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_kubernetes_node.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_kubernetes_node.go @@ -21,13 +21,11 @@ type KubernetesNode struct { // The type of object Type *string `json:"type,omitempty"` // URL to the object representation (absolute path) - Href *string `json:"href,omitempty"` - Metadata *KubernetesNodeMetadata `json:"metadata,omitempty"` + Href *string `json:"href,omitempty"` + Metadata *KubernetesNodeMetadata `json:"metadata,omitempty"` Properties *KubernetesNodeProperties `json:"properties"` } - - // GetId returns the Id field value // If the value is explicit nil, the zero value for string will be returned func (o *KubernetesNode) GetId() *string { @@ -62,8 +60,6 @@ func (o *KubernetesNode) HasId() bool { return false } - - // GetType returns the Type field value // If the value is explicit nil, the zero value for string will be returned func (o *KubernetesNode) GetType() *string { @@ -98,8 +94,6 @@ func (o *KubernetesNode) HasType() bool { return false } - - // GetHref returns the Href field value // If the value is explicit nil, the zero value for string will be returned func (o *KubernetesNode) GetHref() *string { @@ -134,8 +128,6 @@ func (o *KubernetesNode) HasHref() bool { return false } - - // GetMetadata returns the Metadata field value // If the value is explicit nil, the zero value for KubernetesNodeMetadata will be returned func (o *KubernetesNode) GetMetadata() *KubernetesNodeMetadata { @@ -170,8 +162,6 @@ func (o *KubernetesNode) HasMetadata() bool { return false } - - // GetProperties returns the Properties field value // If the value is explicit nil, the zero value for KubernetesNodeProperties will be returned func (o *KubernetesNode) GetProperties() *KubernetesNodeProperties { @@ -206,34 +196,29 @@ func (o *KubernetesNode) HasProperties() bool { return false } - func (o KubernetesNode) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.Id != nil { toSerialize["id"] = o.Id } - if o.Type != nil { toSerialize["type"] = o.Type } - if o.Href != nil { toSerialize["href"] = o.Href } - if o.Metadata != nil { toSerialize["metadata"] = o.Metadata } - if o.Properties != nil { toSerialize["properties"] = o.Properties } - + return json.Marshal(toSerialize) } @@ -272,5 +257,3 @@ func (v *NullableKubernetesNode) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_kubernetes_node_metadata.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_kubernetes_node_metadata.go index f0b25cebf8b2..3719426aa728 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_kubernetes_node_metadata.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_kubernetes_node_metadata.go @@ -17,7 +17,7 @@ import ( // KubernetesNodeMetadata struct for KubernetesNodeMetadata type KubernetesNodeMetadata struct { - // Resource's Entity Tag as defined in http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.11 . Entity Tag is also added as an 'ETag response header to requests which don't use 'depth' parameter. + // Resource's Entity Tag as defined in http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.11 . Entity Tag is also added as an 'ETag response header to requests which don't use 'depth' parameter. Etag *string `json:"etag,omitempty"` // The last time the resource was created CreatedDate *time.Time `json:"createdDate,omitempty"` @@ -29,8 +29,6 @@ type KubernetesNodeMetadata struct { LastSoftwareUpdatedDate *time.Time `json:"lastSoftwareUpdatedDate,omitempty"` } - - // GetEtag returns the Etag field value // If the value is explicit nil, the zero value for string will be returned func (o *KubernetesNodeMetadata) GetEtag() *string { @@ -65,8 +63,6 @@ func (o *KubernetesNodeMetadata) HasEtag() bool { return false } - - // GetCreatedDate returns the CreatedDate field value // If the value is explicit nil, the zero value for time.Time will be returned func (o *KubernetesNodeMetadata) GetCreatedDate() *time.Time { @@ -101,8 +97,6 @@ func (o *KubernetesNodeMetadata) HasCreatedDate() bool { return false } - - // GetLastModifiedDate returns the LastModifiedDate field value // If the value is explicit nil, the zero value for time.Time will be returned func (o *KubernetesNodeMetadata) GetLastModifiedDate() *time.Time { @@ -137,8 +131,6 @@ func (o *KubernetesNodeMetadata) HasLastModifiedDate() bool { return false } - - // GetState returns the State field value // If the value is explicit nil, the zero value for string will be returned func (o *KubernetesNodeMetadata) GetState() *string { @@ -173,8 +165,6 @@ func (o *KubernetesNodeMetadata) HasState() bool { return false } - - // GetLastSoftwareUpdatedDate returns the LastSoftwareUpdatedDate field value // If the value is explicit nil, the zero value for time.Time will be returned func (o *KubernetesNodeMetadata) GetLastSoftwareUpdatedDate() *time.Time { @@ -209,34 +199,29 @@ func (o *KubernetesNodeMetadata) HasLastSoftwareUpdatedDate() bool { return false } - func (o KubernetesNodeMetadata) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.Etag != nil { toSerialize["etag"] = o.Etag } - if o.CreatedDate != nil { toSerialize["createdDate"] = o.CreatedDate } - if o.LastModifiedDate != nil { toSerialize["lastModifiedDate"] = o.LastModifiedDate } - if o.State != nil { toSerialize["state"] = o.State } - if o.LastSoftwareUpdatedDate != nil { toSerialize["lastSoftwareUpdatedDate"] = o.LastSoftwareUpdatedDate } - + return json.Marshal(toSerialize) } @@ -275,5 +260,3 @@ func (v *NullableKubernetesNodeMetadata) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_kubernetes_node_pool.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_kubernetes_node_pool.go index 85378c5ba130..4ce52cba4876 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_kubernetes_node_pool.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_kubernetes_node_pool.go @@ -21,13 +21,11 @@ type KubernetesNodePool struct { // The type of object Type *string `json:"type,omitempty"` // URL to the object representation (absolute path) - Href *string `json:"href,omitempty"` - Metadata *DatacenterElementMetadata `json:"metadata,omitempty"` + Href *string `json:"href,omitempty"` + Metadata *DatacenterElementMetadata `json:"metadata,omitempty"` Properties *KubernetesNodePoolProperties `json:"properties"` } - - // GetId returns the Id field value // If the value is explicit nil, the zero value for string will be returned func (o *KubernetesNodePool) GetId() *string { @@ -62,8 +60,6 @@ func (o *KubernetesNodePool) HasId() bool { return false } - - // GetType returns the Type field value // If the value is explicit nil, the zero value for string will be returned func (o *KubernetesNodePool) GetType() *string { @@ -98,8 +94,6 @@ func (o *KubernetesNodePool) HasType() bool { return false } - - // GetHref returns the Href field value // If the value is explicit nil, the zero value for string will be returned func (o *KubernetesNodePool) GetHref() *string { @@ -134,8 +128,6 @@ func (o *KubernetesNodePool) HasHref() bool { return false } - - // GetMetadata returns the Metadata field value // If the value is explicit nil, the zero value for DatacenterElementMetadata will be returned func (o *KubernetesNodePool) GetMetadata() *DatacenterElementMetadata { @@ -170,8 +162,6 @@ func (o *KubernetesNodePool) HasMetadata() bool { return false } - - // GetProperties returns the Properties field value // If the value is explicit nil, the zero value for KubernetesNodePoolProperties will be returned func (o *KubernetesNodePool) GetProperties() *KubernetesNodePoolProperties { @@ -206,34 +196,29 @@ func (o *KubernetesNodePool) HasProperties() bool { return false } - func (o KubernetesNodePool) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.Id != nil { toSerialize["id"] = o.Id } - if o.Type != nil { toSerialize["type"] = o.Type } - if o.Href != nil { toSerialize["href"] = o.Href } - if o.Metadata != nil { toSerialize["metadata"] = o.Metadata } - if o.Properties != nil { toSerialize["properties"] = o.Properties } - + return json.Marshal(toSerialize) } @@ -272,5 +257,3 @@ func (v *NullableKubernetesNodePool) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_kubernetes_node_pool_annotation.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_kubernetes_node_pool_annotation.go index 0192b337ab43..0e201b444a72 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_kubernetes_node_pool_annotation.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_kubernetes_node_pool_annotation.go @@ -22,8 +22,6 @@ type KubernetesNodePoolAnnotation struct { Value *string `json:"value,omitempty"` } - - // GetKey returns the Key field value // If the value is explicit nil, the zero value for string will be returned func (o *KubernetesNodePoolAnnotation) GetKey() *string { @@ -58,8 +56,6 @@ func (o *KubernetesNodePoolAnnotation) HasKey() bool { return false } - - // GetValue returns the Value field value // If the value is explicit nil, the zero value for string will be returned func (o *KubernetesNodePoolAnnotation) GetValue() *string { @@ -94,19 +90,17 @@ func (o *KubernetesNodePoolAnnotation) HasValue() bool { return false } - func (o KubernetesNodePoolAnnotation) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.Key != nil { toSerialize["key"] = o.Key } - if o.Value != nil { toSerialize["value"] = o.Value } - + return json.Marshal(toSerialize) } @@ -145,5 +139,3 @@ func (v *NullableKubernetesNodePoolAnnotation) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_kubernetes_node_pool_for_put.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_kubernetes_node_pool_for_put.go index d2c7b93de7f7..410bf7545e6f 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_kubernetes_node_pool_for_put.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_kubernetes_node_pool_for_put.go @@ -21,13 +21,11 @@ type KubernetesNodePoolForPut struct { // The type of object Type *string `json:"type,omitempty"` // URL to the object representation (absolute path) - Href *string `json:"href,omitempty"` - Metadata *DatacenterElementMetadata `json:"metadata,omitempty"` + Href *string `json:"href,omitempty"` + Metadata *DatacenterElementMetadata `json:"metadata,omitempty"` Properties *KubernetesNodePoolPropertiesForPut `json:"properties"` } - - // GetId returns the Id field value // If the value is explicit nil, the zero value for string will be returned func (o *KubernetesNodePoolForPut) GetId() *string { @@ -62,8 +60,6 @@ func (o *KubernetesNodePoolForPut) HasId() bool { return false } - - // GetType returns the Type field value // If the value is explicit nil, the zero value for string will be returned func (o *KubernetesNodePoolForPut) GetType() *string { @@ -98,8 +94,6 @@ func (o *KubernetesNodePoolForPut) HasType() bool { return false } - - // GetHref returns the Href field value // If the value is explicit nil, the zero value for string will be returned func (o *KubernetesNodePoolForPut) GetHref() *string { @@ -134,8 +128,6 @@ func (o *KubernetesNodePoolForPut) HasHref() bool { return false } - - // GetMetadata returns the Metadata field value // If the value is explicit nil, the zero value for DatacenterElementMetadata will be returned func (o *KubernetesNodePoolForPut) GetMetadata() *DatacenterElementMetadata { @@ -170,8 +162,6 @@ func (o *KubernetesNodePoolForPut) HasMetadata() bool { return false } - - // GetProperties returns the Properties field value // If the value is explicit nil, the zero value for KubernetesNodePoolPropertiesForPut will be returned func (o *KubernetesNodePoolForPut) GetProperties() *KubernetesNodePoolPropertiesForPut { @@ -206,34 +196,29 @@ func (o *KubernetesNodePoolForPut) HasProperties() bool { return false } - func (o KubernetesNodePoolForPut) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.Id != nil { toSerialize["id"] = o.Id } - if o.Type != nil { toSerialize["type"] = o.Type } - if o.Href != nil { toSerialize["href"] = o.Href } - if o.Metadata != nil { toSerialize["metadata"] = o.Metadata } - if o.Properties != nil { toSerialize["properties"] = o.Properties } - + return json.Marshal(toSerialize) } @@ -272,5 +257,3 @@ func (v *NullableKubernetesNodePoolForPut) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_kubernetes_node_pool_label.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_kubernetes_node_pool_label.go index 29869a188c66..2469c9a6a485 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_kubernetes_node_pool_label.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_kubernetes_node_pool_label.go @@ -22,8 +22,6 @@ type KubernetesNodePoolLabel struct { Value *string `json:"value,omitempty"` } - - // GetKey returns the Key field value // If the value is explicit nil, the zero value for string will be returned func (o *KubernetesNodePoolLabel) GetKey() *string { @@ -58,8 +56,6 @@ func (o *KubernetesNodePoolLabel) HasKey() bool { return false } - - // GetValue returns the Value field value // If the value is explicit nil, the zero value for string will be returned func (o *KubernetesNodePoolLabel) GetValue() *string { @@ -94,19 +90,17 @@ func (o *KubernetesNodePoolLabel) HasValue() bool { return false } - func (o KubernetesNodePoolLabel) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.Key != nil { toSerialize["key"] = o.Key } - if o.Value != nil { toSerialize["value"] = o.Value } - + return json.Marshal(toSerialize) } @@ -145,5 +139,3 @@ func (v *NullableKubernetesNodePoolLabel) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_kubernetes_node_pool_lan.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_kubernetes_node_pool_lan.go index 88811ba51b03..5455decac912 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_kubernetes_node_pool_lan.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_kubernetes_node_pool_lan.go @@ -20,8 +20,6 @@ type KubernetesNodePoolLan struct { Id *int32 `json:"id,omitempty"` } - - // GetId returns the Id field value // If the value is explicit nil, the zero value for int32 will be returned func (o *KubernetesNodePoolLan) GetId() *int32 { @@ -56,14 +54,13 @@ func (o *KubernetesNodePoolLan) HasId() bool { return false } - func (o KubernetesNodePoolLan) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.Id != nil { toSerialize["id"] = o.Id } - + return json.Marshal(toSerialize) } @@ -102,5 +99,3 @@ func (v *NullableKubernetesNodePoolLan) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_kubernetes_node_pool_properties.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_kubernetes_node_pool_properties.go index 3130e8d1257d..c811d5a6f487 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_kubernetes_node_pool_properties.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_kubernetes_node_pool_properties.go @@ -35,17 +35,15 @@ type KubernetesNodePoolProperties struct { // The size of the volume in GB. The size should be greater than 10GB. StorageSize *int32 `json:"storageSize"` // The kubernetes version in which a nodepool is running. This imposes restrictions on what kubernetes versions can be run in a cluster's nodepools. Additionally, not all kubernetes versions are viable upgrade targets for all prior versions. - K8sVersion *string `json:"k8sVersion,omitempty"` + K8sVersion *string `json:"k8sVersion,omitempty"` MaintenanceWindow *KubernetesMaintenanceWindow `json:"maintenanceWindow,omitempty"` - AutoScaling *KubernetesAutoScaling `json:"autoScaling,omitempty"` + AutoScaling *KubernetesAutoScaling `json:"autoScaling,omitempty"` // array of additional LANs attached to worker nodes - Lans *[]KubernetesNodePoolLan `json:"lans,omitempty"` - Labels *KubernetesNodePoolLabel `json:"labels,omitempty"` + Lans *[]KubernetesNodePoolLan `json:"lans,omitempty"` + Labels *KubernetesNodePoolLabel `json:"labels,omitempty"` Annotations *KubernetesNodePoolAnnotation `json:"annotations,omitempty"` } - - // GetName returns the Name field value // If the value is explicit nil, the zero value for string will be returned func (o *KubernetesNodePoolProperties) GetName() *string { @@ -80,8 +78,6 @@ func (o *KubernetesNodePoolProperties) HasName() bool { return false } - - // GetDatacenterId returns the DatacenterId field value // If the value is explicit nil, the zero value for string will be returned func (o *KubernetesNodePoolProperties) GetDatacenterId() *string { @@ -116,8 +112,6 @@ func (o *KubernetesNodePoolProperties) HasDatacenterId() bool { return false } - - // GetNodeCount returns the NodeCount field value // If the value is explicit nil, the zero value for int32 will be returned func (o *KubernetesNodePoolProperties) GetNodeCount() *int32 { @@ -152,8 +146,6 @@ func (o *KubernetesNodePoolProperties) HasNodeCount() bool { return false } - - // GetCpuFamily returns the CpuFamily field value // If the value is explicit nil, the zero value for string will be returned func (o *KubernetesNodePoolProperties) GetCpuFamily() *string { @@ -188,8 +180,6 @@ func (o *KubernetesNodePoolProperties) HasCpuFamily() bool { return false } - - // GetCoresCount returns the CoresCount field value // If the value is explicit nil, the zero value for int32 will be returned func (o *KubernetesNodePoolProperties) GetCoresCount() *int32 { @@ -224,8 +214,6 @@ func (o *KubernetesNodePoolProperties) HasCoresCount() bool { return false } - - // GetRamSize returns the RamSize field value // If the value is explicit nil, the zero value for int32 will be returned func (o *KubernetesNodePoolProperties) GetRamSize() *int32 { @@ -260,8 +248,6 @@ func (o *KubernetesNodePoolProperties) HasRamSize() bool { return false } - - // GetAvailabilityZone returns the AvailabilityZone field value // If the value is explicit nil, the zero value for string will be returned func (o *KubernetesNodePoolProperties) GetAvailabilityZone() *string { @@ -296,8 +282,6 @@ func (o *KubernetesNodePoolProperties) HasAvailabilityZone() bool { return false } - - // GetStorageType returns the StorageType field value // If the value is explicit nil, the zero value for string will be returned func (o *KubernetesNodePoolProperties) GetStorageType() *string { @@ -332,8 +316,6 @@ func (o *KubernetesNodePoolProperties) HasStorageType() bool { return false } - - // GetStorageSize returns the StorageSize field value // If the value is explicit nil, the zero value for int32 will be returned func (o *KubernetesNodePoolProperties) GetStorageSize() *int32 { @@ -368,8 +350,6 @@ func (o *KubernetesNodePoolProperties) HasStorageSize() bool { return false } - - // GetK8sVersion returns the K8sVersion field value // If the value is explicit nil, the zero value for string will be returned func (o *KubernetesNodePoolProperties) GetK8sVersion() *string { @@ -404,8 +384,6 @@ func (o *KubernetesNodePoolProperties) HasK8sVersion() bool { return false } - - // GetMaintenanceWindow returns the MaintenanceWindow field value // If the value is explicit nil, the zero value for KubernetesMaintenanceWindow will be returned func (o *KubernetesNodePoolProperties) GetMaintenanceWindow() *KubernetesMaintenanceWindow { @@ -440,8 +418,6 @@ func (o *KubernetesNodePoolProperties) HasMaintenanceWindow() bool { return false } - - // GetAutoScaling returns the AutoScaling field value // If the value is explicit nil, the zero value for KubernetesAutoScaling will be returned func (o *KubernetesNodePoolProperties) GetAutoScaling() *KubernetesAutoScaling { @@ -476,8 +452,6 @@ func (o *KubernetesNodePoolProperties) HasAutoScaling() bool { return false } - - // GetLans returns the Lans field value // If the value is explicit nil, the zero value for []KubernetesNodePoolLan will be returned func (o *KubernetesNodePoolProperties) GetLans() *[]KubernetesNodePoolLan { @@ -512,8 +486,6 @@ func (o *KubernetesNodePoolProperties) HasLans() bool { return false } - - // GetLabels returns the Labels field value // If the value is explicit nil, the zero value for KubernetesNodePoolLabel will be returned func (o *KubernetesNodePoolProperties) GetLabels() *KubernetesNodePoolLabel { @@ -548,8 +520,6 @@ func (o *KubernetesNodePoolProperties) HasLabels() bool { return false } - - // GetAnnotations returns the Annotations field value // If the value is explicit nil, the zero value for KubernetesNodePoolAnnotation will be returned func (o *KubernetesNodePoolProperties) GetAnnotations() *KubernetesNodePoolAnnotation { @@ -584,84 +554,69 @@ func (o *KubernetesNodePoolProperties) HasAnnotations() bool { return false } - func (o KubernetesNodePoolProperties) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.Name != nil { toSerialize["name"] = o.Name } - if o.DatacenterId != nil { toSerialize["datacenterId"] = o.DatacenterId } - if o.NodeCount != nil { toSerialize["nodeCount"] = o.NodeCount } - if o.CpuFamily != nil { toSerialize["cpuFamily"] = o.CpuFamily } - if o.CoresCount != nil { toSerialize["coresCount"] = o.CoresCount } - if o.RamSize != nil { toSerialize["ramSize"] = o.RamSize } - if o.AvailabilityZone != nil { toSerialize["availabilityZone"] = o.AvailabilityZone } - if o.StorageType != nil { toSerialize["storageType"] = o.StorageType } - if o.StorageSize != nil { toSerialize["storageSize"] = o.StorageSize } - if o.K8sVersion != nil { toSerialize["k8sVersion"] = o.K8sVersion } - if o.MaintenanceWindow != nil { toSerialize["maintenanceWindow"] = o.MaintenanceWindow } - if o.AutoScaling != nil { toSerialize["autoScaling"] = o.AutoScaling } - if o.Lans != nil { toSerialize["lans"] = o.Lans } - if o.Labels != nil { toSerialize["labels"] = o.Labels } - if o.Annotations != nil { toSerialize["annotations"] = o.Annotations } - + return json.Marshal(toSerialize) } @@ -700,5 +655,3 @@ func (v *NullableKubernetesNodePoolProperties) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_kubernetes_node_pool_properties_for_put.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_kubernetes_node_pool_properties_for_put.go index fc0a091a110e..939d641ed572 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_kubernetes_node_pool_properties_for_put.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_kubernetes_node_pool_properties_for_put.go @@ -35,15 +35,13 @@ type KubernetesNodePoolPropertiesForPut struct { // The size of the volume in GB. The size should be greater than 10GB. StorageSize *int32 `json:"storageSize"` // The kubernetes version in which a nodepool is running. This imposes restrictions on what kubernetes versions can be run in a cluster's nodepools. Additionally, not all kubernetes versions are viable upgrade targets for all prior versions. - K8sVersion *string `json:"k8sVersion,omitempty"` + K8sVersion *string `json:"k8sVersion,omitempty"` MaintenanceWindow *KubernetesMaintenanceWindow `json:"maintenanceWindow,omitempty"` - AutoScaling *KubernetesAutoScaling `json:"autoScaling,omitempty"` + AutoScaling *KubernetesAutoScaling `json:"autoScaling,omitempty"` // array of additional LANs attached to worker nodes Lans *[]KubernetesNodePoolLan `json:"lans,omitempty"` } - - // GetName returns the Name field value // If the value is explicit nil, the zero value for string will be returned func (o *KubernetesNodePoolPropertiesForPut) GetName() *string { @@ -78,8 +76,6 @@ func (o *KubernetesNodePoolPropertiesForPut) HasName() bool { return false } - - // GetDatacenterId returns the DatacenterId field value // If the value is explicit nil, the zero value for string will be returned func (o *KubernetesNodePoolPropertiesForPut) GetDatacenterId() *string { @@ -114,8 +110,6 @@ func (o *KubernetesNodePoolPropertiesForPut) HasDatacenterId() bool { return false } - - // GetNodeCount returns the NodeCount field value // If the value is explicit nil, the zero value for int32 will be returned func (o *KubernetesNodePoolPropertiesForPut) GetNodeCount() *int32 { @@ -150,8 +144,6 @@ func (o *KubernetesNodePoolPropertiesForPut) HasNodeCount() bool { return false } - - // GetCpuFamily returns the CpuFamily field value // If the value is explicit nil, the zero value for string will be returned func (o *KubernetesNodePoolPropertiesForPut) GetCpuFamily() *string { @@ -186,8 +178,6 @@ func (o *KubernetesNodePoolPropertiesForPut) HasCpuFamily() bool { return false } - - // GetCoresCount returns the CoresCount field value // If the value is explicit nil, the zero value for int32 will be returned func (o *KubernetesNodePoolPropertiesForPut) GetCoresCount() *int32 { @@ -222,8 +212,6 @@ func (o *KubernetesNodePoolPropertiesForPut) HasCoresCount() bool { return false } - - // GetRamSize returns the RamSize field value // If the value is explicit nil, the zero value for int32 will be returned func (o *KubernetesNodePoolPropertiesForPut) GetRamSize() *int32 { @@ -258,8 +246,6 @@ func (o *KubernetesNodePoolPropertiesForPut) HasRamSize() bool { return false } - - // GetAvailabilityZone returns the AvailabilityZone field value // If the value is explicit nil, the zero value for string will be returned func (o *KubernetesNodePoolPropertiesForPut) GetAvailabilityZone() *string { @@ -294,8 +280,6 @@ func (o *KubernetesNodePoolPropertiesForPut) HasAvailabilityZone() bool { return false } - - // GetStorageType returns the StorageType field value // If the value is explicit nil, the zero value for string will be returned func (o *KubernetesNodePoolPropertiesForPut) GetStorageType() *string { @@ -330,8 +314,6 @@ func (o *KubernetesNodePoolPropertiesForPut) HasStorageType() bool { return false } - - // GetStorageSize returns the StorageSize field value // If the value is explicit nil, the zero value for int32 will be returned func (o *KubernetesNodePoolPropertiesForPut) GetStorageSize() *int32 { @@ -366,8 +348,6 @@ func (o *KubernetesNodePoolPropertiesForPut) HasStorageSize() bool { return false } - - // GetK8sVersion returns the K8sVersion field value // If the value is explicit nil, the zero value for string will be returned func (o *KubernetesNodePoolPropertiesForPut) GetK8sVersion() *string { @@ -402,8 +382,6 @@ func (o *KubernetesNodePoolPropertiesForPut) HasK8sVersion() bool { return false } - - // GetMaintenanceWindow returns the MaintenanceWindow field value // If the value is explicit nil, the zero value for KubernetesMaintenanceWindow will be returned func (o *KubernetesNodePoolPropertiesForPut) GetMaintenanceWindow() *KubernetesMaintenanceWindow { @@ -438,8 +416,6 @@ func (o *KubernetesNodePoolPropertiesForPut) HasMaintenanceWindow() bool { return false } - - // GetAutoScaling returns the AutoScaling field value // If the value is explicit nil, the zero value for KubernetesAutoScaling will be returned func (o *KubernetesNodePoolPropertiesForPut) GetAutoScaling() *KubernetesAutoScaling { @@ -474,8 +450,6 @@ func (o *KubernetesNodePoolPropertiesForPut) HasAutoScaling() bool { return false } - - // GetLans returns the Lans field value // If the value is explicit nil, the zero value for []KubernetesNodePoolLan will be returned func (o *KubernetesNodePoolPropertiesForPut) GetLans() *[]KubernetesNodePoolLan { @@ -510,74 +484,61 @@ func (o *KubernetesNodePoolPropertiesForPut) HasLans() bool { return false } - func (o KubernetesNodePoolPropertiesForPut) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.Name != nil { toSerialize["name"] = o.Name } - if o.DatacenterId != nil { toSerialize["datacenterId"] = o.DatacenterId } - if o.NodeCount != nil { toSerialize["nodeCount"] = o.NodeCount } - if o.CpuFamily != nil { toSerialize["cpuFamily"] = o.CpuFamily } - if o.CoresCount != nil { toSerialize["coresCount"] = o.CoresCount } - if o.RamSize != nil { toSerialize["ramSize"] = o.RamSize } - if o.AvailabilityZone != nil { toSerialize["availabilityZone"] = o.AvailabilityZone } - if o.StorageType != nil { toSerialize["storageType"] = o.StorageType } - if o.StorageSize != nil { toSerialize["storageSize"] = o.StorageSize } - if o.K8sVersion != nil { toSerialize["k8sVersion"] = o.K8sVersion } - if o.MaintenanceWindow != nil { toSerialize["maintenanceWindow"] = o.MaintenanceWindow } - if o.AutoScaling != nil { toSerialize["autoScaling"] = o.AutoScaling } - if o.Lans != nil { toSerialize["lans"] = o.Lans } - + return json.Marshal(toSerialize) } @@ -616,5 +577,3 @@ func (v *NullableKubernetesNodePoolPropertiesForPut) UnmarshalJSON(src []byte) e v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_kubernetes_node_pools.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_kubernetes_node_pools.go index 7496854f1df6..410dc0f7a367 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_kubernetes_node_pools.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_kubernetes_node_pools.go @@ -26,8 +26,6 @@ type KubernetesNodePools struct { Items *[]KubernetesNodePool `json:"items,omitempty"` } - - // GetId returns the Id field value // If the value is explicit nil, the zero value for string will be returned func (o *KubernetesNodePools) GetId() *string { @@ -62,8 +60,6 @@ func (o *KubernetesNodePools) HasId() bool { return false } - - // GetType returns the Type field value // If the value is explicit nil, the zero value for string will be returned func (o *KubernetesNodePools) GetType() *string { @@ -98,8 +94,6 @@ func (o *KubernetesNodePools) HasType() bool { return false } - - // GetHref returns the Href field value // If the value is explicit nil, the zero value for string will be returned func (o *KubernetesNodePools) GetHref() *string { @@ -134,8 +128,6 @@ func (o *KubernetesNodePools) HasHref() bool { return false } - - // GetItems returns the Items field value // If the value is explicit nil, the zero value for []KubernetesNodePool will be returned func (o *KubernetesNodePools) GetItems() *[]KubernetesNodePool { @@ -170,29 +162,25 @@ func (o *KubernetesNodePools) HasItems() bool { return false } - func (o KubernetesNodePools) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.Id != nil { toSerialize["id"] = o.Id } - if o.Type != nil { toSerialize["type"] = o.Type } - if o.Href != nil { toSerialize["href"] = o.Href } - if o.Items != nil { toSerialize["items"] = o.Items } - + return json.Marshal(toSerialize) } @@ -231,5 +219,3 @@ func (v *NullableKubernetesNodePools) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_kubernetes_node_properties.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_kubernetes_node_properties.go index 0c3181da4b3b..0bd96c88421d 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_kubernetes_node_properties.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_kubernetes_node_properties.go @@ -24,8 +24,6 @@ type KubernetesNodeProperties struct { K8sVersion *string `json:"k8sVersion"` } - - // GetName returns the Name field value // If the value is explicit nil, the zero value for string will be returned func (o *KubernetesNodeProperties) GetName() *string { @@ -60,8 +58,6 @@ func (o *KubernetesNodeProperties) HasName() bool { return false } - - // GetPublicIP returns the PublicIP field value // If the value is explicit nil, the zero value for string will be returned func (o *KubernetesNodeProperties) GetPublicIP() *string { @@ -96,8 +92,6 @@ func (o *KubernetesNodeProperties) HasPublicIP() bool { return false } - - // GetK8sVersion returns the K8sVersion field value // If the value is explicit nil, the zero value for string will be returned func (o *KubernetesNodeProperties) GetK8sVersion() *string { @@ -132,24 +126,21 @@ func (o *KubernetesNodeProperties) HasK8sVersion() bool { return false } - func (o KubernetesNodeProperties) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.Name != nil { toSerialize["name"] = o.Name } - if o.PublicIP != nil { toSerialize["publicIP"] = o.PublicIP } - if o.K8sVersion != nil { toSerialize["k8sVersion"] = o.K8sVersion } - + return json.Marshal(toSerialize) } @@ -188,5 +179,3 @@ func (v *NullableKubernetesNodeProperties) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_kubernetes_nodes.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_kubernetes_nodes.go index 0c5cf8a41232..d2b8bf35cb81 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_kubernetes_nodes.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_kubernetes_nodes.go @@ -26,8 +26,6 @@ type KubernetesNodes struct { Items *[]KubernetesNode `json:"items,omitempty"` } - - // GetId returns the Id field value // If the value is explicit nil, the zero value for string will be returned func (o *KubernetesNodes) GetId() *string { @@ -62,8 +60,6 @@ func (o *KubernetesNodes) HasId() bool { return false } - - // GetType returns the Type field value // If the value is explicit nil, the zero value for string will be returned func (o *KubernetesNodes) GetType() *string { @@ -98,8 +94,6 @@ func (o *KubernetesNodes) HasType() bool { return false } - - // GetHref returns the Href field value // If the value is explicit nil, the zero value for string will be returned func (o *KubernetesNodes) GetHref() *string { @@ -134,8 +128,6 @@ func (o *KubernetesNodes) HasHref() bool { return false } - - // GetItems returns the Items field value // If the value is explicit nil, the zero value for []KubernetesNode will be returned func (o *KubernetesNodes) GetItems() *[]KubernetesNode { @@ -170,29 +162,25 @@ func (o *KubernetesNodes) HasItems() bool { return false } - func (o KubernetesNodes) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.Id != nil { toSerialize["id"] = o.Id } - if o.Type != nil { toSerialize["type"] = o.Type } - if o.Href != nil { toSerialize["href"] = o.Href } - if o.Items != nil { toSerialize["items"] = o.Items } - + return json.Marshal(toSerialize) } @@ -231,5 +219,3 @@ func (v *NullableKubernetesNodes) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_label.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_label.go index 7e1af0509267..107ca851df73 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_label.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_label.go @@ -21,13 +21,11 @@ type Label struct { // The type of object that has been created Type *string `json:"type,omitempty"` // URL to the object representation (absolute path) - Href *string `json:"href,omitempty"` - Metadata *NoStateMetaData `json:"metadata,omitempty"` + Href *string `json:"href,omitempty"` + Metadata *NoStateMetaData `json:"metadata,omitempty"` Properties *LabelProperties `json:"properties"` } - - // GetId returns the Id field value // If the value is explicit nil, the zero value for string will be returned func (o *Label) GetId() *string { @@ -62,8 +60,6 @@ func (o *Label) HasId() bool { return false } - - // GetType returns the Type field value // If the value is explicit nil, the zero value for string will be returned func (o *Label) GetType() *string { @@ -98,8 +94,6 @@ func (o *Label) HasType() bool { return false } - - // GetHref returns the Href field value // If the value is explicit nil, the zero value for string will be returned func (o *Label) GetHref() *string { @@ -134,8 +128,6 @@ func (o *Label) HasHref() bool { return false } - - // GetMetadata returns the Metadata field value // If the value is explicit nil, the zero value for NoStateMetaData will be returned func (o *Label) GetMetadata() *NoStateMetaData { @@ -170,8 +162,6 @@ func (o *Label) HasMetadata() bool { return false } - - // GetProperties returns the Properties field value // If the value is explicit nil, the zero value for LabelProperties will be returned func (o *Label) GetProperties() *LabelProperties { @@ -206,34 +196,29 @@ func (o *Label) HasProperties() bool { return false } - func (o Label) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.Id != nil { toSerialize["id"] = o.Id } - if o.Type != nil { toSerialize["type"] = o.Type } - if o.Href != nil { toSerialize["href"] = o.Href } - if o.Metadata != nil { toSerialize["metadata"] = o.Metadata } - if o.Properties != nil { toSerialize["properties"] = o.Properties } - + return json.Marshal(toSerialize) } @@ -272,5 +257,3 @@ func (v *NullableLabel) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_label_properties.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_label_properties.go index 58c84024f641..7dd85c238bf2 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_label_properties.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_label_properties.go @@ -28,8 +28,6 @@ type LabelProperties struct { ResourceHref *string `json:"resourceHref,omitempty"` } - - // GetKey returns the Key field value // If the value is explicit nil, the zero value for string will be returned func (o *LabelProperties) GetKey() *string { @@ -64,8 +62,6 @@ func (o *LabelProperties) HasKey() bool { return false } - - // GetValue returns the Value field value // If the value is explicit nil, the zero value for string will be returned func (o *LabelProperties) GetValue() *string { @@ -100,8 +96,6 @@ func (o *LabelProperties) HasValue() bool { return false } - - // GetResourceId returns the ResourceId field value // If the value is explicit nil, the zero value for string will be returned func (o *LabelProperties) GetResourceId() *string { @@ -136,8 +130,6 @@ func (o *LabelProperties) HasResourceId() bool { return false } - - // GetResourceType returns the ResourceType field value // If the value is explicit nil, the zero value for string will be returned func (o *LabelProperties) GetResourceType() *string { @@ -172,8 +164,6 @@ func (o *LabelProperties) HasResourceType() bool { return false } - - // GetResourceHref returns the ResourceHref field value // If the value is explicit nil, the zero value for string will be returned func (o *LabelProperties) GetResourceHref() *string { @@ -208,34 +198,29 @@ func (o *LabelProperties) HasResourceHref() bool { return false } - func (o LabelProperties) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.Key != nil { toSerialize["key"] = o.Key } - if o.Value != nil { toSerialize["value"] = o.Value } - if o.ResourceId != nil { toSerialize["resourceId"] = o.ResourceId } - if o.ResourceType != nil { toSerialize["resourceType"] = o.ResourceType } - if o.ResourceHref != nil { toSerialize["resourceHref"] = o.ResourceHref } - + return json.Marshal(toSerialize) } @@ -274,5 +259,3 @@ func (v *NullableLabelProperties) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_label_resource.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_label_resource.go index 34d7e10160a3..4de16cc537df 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_label_resource.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_label_resource.go @@ -21,13 +21,11 @@ type LabelResource struct { // The type of object that has been created Type *string `json:"type,omitempty"` // URL to the object representation (absolute path) - Href *string `json:"href,omitempty"` - Metadata *NoStateMetaData `json:"metadata,omitempty"` + Href *string `json:"href,omitempty"` + Metadata *NoStateMetaData `json:"metadata,omitempty"` Properties *LabelResourceProperties `json:"properties"` } - - // GetId returns the Id field value // If the value is explicit nil, the zero value for string will be returned func (o *LabelResource) GetId() *string { @@ -62,8 +60,6 @@ func (o *LabelResource) HasId() bool { return false } - - // GetType returns the Type field value // If the value is explicit nil, the zero value for string will be returned func (o *LabelResource) GetType() *string { @@ -98,8 +94,6 @@ func (o *LabelResource) HasType() bool { return false } - - // GetHref returns the Href field value // If the value is explicit nil, the zero value for string will be returned func (o *LabelResource) GetHref() *string { @@ -134,8 +128,6 @@ func (o *LabelResource) HasHref() bool { return false } - - // GetMetadata returns the Metadata field value // If the value is explicit nil, the zero value for NoStateMetaData will be returned func (o *LabelResource) GetMetadata() *NoStateMetaData { @@ -170,8 +162,6 @@ func (o *LabelResource) HasMetadata() bool { return false } - - // GetProperties returns the Properties field value // If the value is explicit nil, the zero value for LabelResourceProperties will be returned func (o *LabelResource) GetProperties() *LabelResourceProperties { @@ -206,34 +196,29 @@ func (o *LabelResource) HasProperties() bool { return false } - func (o LabelResource) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.Id != nil { toSerialize["id"] = o.Id } - if o.Type != nil { toSerialize["type"] = o.Type } - if o.Href != nil { toSerialize["href"] = o.Href } - if o.Metadata != nil { toSerialize["metadata"] = o.Metadata } - if o.Properties != nil { toSerialize["properties"] = o.Properties } - + return json.Marshal(toSerialize) } @@ -272,5 +257,3 @@ func (v *NullableLabelResource) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_label_resource_properties.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_label_resource_properties.go index 27ca1ff7734b..9e9cdcffb64b 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_label_resource_properties.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_label_resource_properties.go @@ -22,8 +22,6 @@ type LabelResourceProperties struct { Value *string `json:"value,omitempty"` } - - // GetKey returns the Key field value // If the value is explicit nil, the zero value for string will be returned func (o *LabelResourceProperties) GetKey() *string { @@ -58,8 +56,6 @@ func (o *LabelResourceProperties) HasKey() bool { return false } - - // GetValue returns the Value field value // If the value is explicit nil, the zero value for string will be returned func (o *LabelResourceProperties) GetValue() *string { @@ -94,19 +90,17 @@ func (o *LabelResourceProperties) HasValue() bool { return false } - func (o LabelResourceProperties) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.Key != nil { toSerialize["key"] = o.Key } - if o.Value != nil { toSerialize["value"] = o.Value } - + return json.Marshal(toSerialize) } @@ -145,5 +139,3 @@ func (v *NullableLabelResourceProperties) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_label_resources.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_label_resources.go index 43367e1de08a..9da5bba09863 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_label_resources.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_label_resources.go @@ -26,8 +26,6 @@ type LabelResources struct { Items *[]LabelResource `json:"items,omitempty"` } - - // GetId returns the Id field value // If the value is explicit nil, the zero value for string will be returned func (o *LabelResources) GetId() *string { @@ -62,8 +60,6 @@ func (o *LabelResources) HasId() bool { return false } - - // GetType returns the Type field value // If the value is explicit nil, the zero value for string will be returned func (o *LabelResources) GetType() *string { @@ -98,8 +94,6 @@ func (o *LabelResources) HasType() bool { return false } - - // GetHref returns the Href field value // If the value is explicit nil, the zero value for string will be returned func (o *LabelResources) GetHref() *string { @@ -134,8 +128,6 @@ func (o *LabelResources) HasHref() bool { return false } - - // GetItems returns the Items field value // If the value is explicit nil, the zero value for []LabelResource will be returned func (o *LabelResources) GetItems() *[]LabelResource { @@ -170,29 +162,25 @@ func (o *LabelResources) HasItems() bool { return false } - func (o LabelResources) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.Id != nil { toSerialize["id"] = o.Id } - if o.Type != nil { toSerialize["type"] = o.Type } - if o.Href != nil { toSerialize["href"] = o.Href } - if o.Items != nil { toSerialize["items"] = o.Items } - + return json.Marshal(toSerialize) } @@ -231,5 +219,3 @@ func (v *NullableLabelResources) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_labels.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_labels.go index 72ac151e2854..4c47798abf92 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_labels.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_labels.go @@ -26,8 +26,6 @@ type Labels struct { Items *[]Label `json:"items,omitempty"` } - - // GetId returns the Id field value // If the value is explicit nil, the zero value for string will be returned func (o *Labels) GetId() *string { @@ -62,8 +60,6 @@ func (o *Labels) HasId() bool { return false } - - // GetType returns the Type field value // If the value is explicit nil, the zero value for string will be returned func (o *Labels) GetType() *string { @@ -98,8 +94,6 @@ func (o *Labels) HasType() bool { return false } - - // GetHref returns the Href field value // If the value is explicit nil, the zero value for string will be returned func (o *Labels) GetHref() *string { @@ -134,8 +128,6 @@ func (o *Labels) HasHref() bool { return false } - - // GetItems returns the Items field value // If the value is explicit nil, the zero value for []Label will be returned func (o *Labels) GetItems() *[]Label { @@ -170,29 +162,25 @@ func (o *Labels) HasItems() bool { return false } - func (o Labels) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.Id != nil { toSerialize["id"] = o.Id } - if o.Type != nil { toSerialize["type"] = o.Type } - if o.Href != nil { toSerialize["href"] = o.Href } - if o.Items != nil { toSerialize["items"] = o.Items } - + return json.Marshal(toSerialize) } @@ -231,5 +219,3 @@ func (v *NullableLabels) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_lan.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_lan.go index 8edc04fc9781..2a802d9e7e57 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_lan.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_lan.go @@ -21,14 +21,12 @@ type Lan struct { // The type of object that has been created Type *Type `json:"type,omitempty"` // URL to the object representation (absolute path) - Href *string `json:"href,omitempty"` - Metadata *DatacenterElementMetadata `json:"metadata,omitempty"` - Properties *LanProperties `json:"properties"` - Entities *LanEntities `json:"entities,omitempty"` + Href *string `json:"href,omitempty"` + Metadata *DatacenterElementMetadata `json:"metadata,omitempty"` + Properties *LanProperties `json:"properties"` + Entities *LanEntities `json:"entities,omitempty"` } - - // GetId returns the Id field value // If the value is explicit nil, the zero value for string will be returned func (o *Lan) GetId() *string { @@ -63,8 +61,6 @@ func (o *Lan) HasId() bool { return false } - - // GetType returns the Type field value // If the value is explicit nil, the zero value for Type will be returned func (o *Lan) GetType() *Type { @@ -99,8 +95,6 @@ func (o *Lan) HasType() bool { return false } - - // GetHref returns the Href field value // If the value is explicit nil, the zero value for string will be returned func (o *Lan) GetHref() *string { @@ -135,8 +129,6 @@ func (o *Lan) HasHref() bool { return false } - - // GetMetadata returns the Metadata field value // If the value is explicit nil, the zero value for DatacenterElementMetadata will be returned func (o *Lan) GetMetadata() *DatacenterElementMetadata { @@ -171,8 +163,6 @@ func (o *Lan) HasMetadata() bool { return false } - - // GetProperties returns the Properties field value // If the value is explicit nil, the zero value for LanProperties will be returned func (o *Lan) GetProperties() *LanProperties { @@ -207,8 +197,6 @@ func (o *Lan) HasProperties() bool { return false } - - // GetEntities returns the Entities field value // If the value is explicit nil, the zero value for LanEntities will be returned func (o *Lan) GetEntities() *LanEntities { @@ -243,39 +231,33 @@ func (o *Lan) HasEntities() bool { return false } - func (o Lan) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.Id != nil { toSerialize["id"] = o.Id } - if o.Type != nil { toSerialize["type"] = o.Type } - if o.Href != nil { toSerialize["href"] = o.Href } - if o.Metadata != nil { toSerialize["metadata"] = o.Metadata } - if o.Properties != nil { toSerialize["properties"] = o.Properties } - if o.Entities != nil { toSerialize["entities"] = o.Entities } - + return json.Marshal(toSerialize) } @@ -314,5 +296,3 @@ func (v *NullableLan) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_lan_entities.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_lan_entities.go index 4fdf1c664380..5a3675f43e99 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_lan_entities.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_lan_entities.go @@ -19,8 +19,6 @@ type LanEntities struct { Nics *LanNics `json:"nics,omitempty"` } - - // GetNics returns the Nics field value // If the value is explicit nil, the zero value for LanNics will be returned func (o *LanEntities) GetNics() *LanNics { @@ -55,14 +53,13 @@ func (o *LanEntities) HasNics() bool { return false } - func (o LanEntities) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.Nics != nil { toSerialize["nics"] = o.Nics } - + return json.Marshal(toSerialize) } @@ -101,5 +98,3 @@ func (v *NullableLanEntities) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_lan_nics.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_lan_nics.go index a13c06b9a56b..615c825fe519 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_lan_nics.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_lan_nics.go @@ -26,8 +26,6 @@ type LanNics struct { Items *[]Nic `json:"items,omitempty"` } - - // GetId returns the Id field value // If the value is explicit nil, the zero value for string will be returned func (o *LanNics) GetId() *string { @@ -62,8 +60,6 @@ func (o *LanNics) HasId() bool { return false } - - // GetType returns the Type field value // If the value is explicit nil, the zero value for Type will be returned func (o *LanNics) GetType() *Type { @@ -98,8 +94,6 @@ func (o *LanNics) HasType() bool { return false } - - // GetHref returns the Href field value // If the value is explicit nil, the zero value for string will be returned func (o *LanNics) GetHref() *string { @@ -134,8 +128,6 @@ func (o *LanNics) HasHref() bool { return false } - - // GetItems returns the Items field value // If the value is explicit nil, the zero value for []Nic will be returned func (o *LanNics) GetItems() *[]Nic { @@ -170,29 +162,25 @@ func (o *LanNics) HasItems() bool { return false } - func (o LanNics) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.Id != nil { toSerialize["id"] = o.Id } - if o.Type != nil { toSerialize["type"] = o.Type } - if o.Href != nil { toSerialize["href"] = o.Href } - if o.Items != nil { toSerialize["items"] = o.Items } - + return json.Marshal(toSerialize) } @@ -231,5 +219,3 @@ func (v *NullableLanNics) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_lan_post.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_lan_post.go index 122fe8721548..b92035adc93c 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_lan_post.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_lan_post.go @@ -21,14 +21,12 @@ type LanPost struct { // The type of object that has been created Type *Type `json:"type,omitempty"` // URL to the object representation (absolute path) - Href *string `json:"href,omitempty"` - Metadata *DatacenterElementMetadata `json:"metadata,omitempty"` - Entities *LanEntities `json:"entities,omitempty"` - Properties *LanPropertiesPost `json:"properties"` + Href *string `json:"href,omitempty"` + Metadata *DatacenterElementMetadata `json:"metadata,omitempty"` + Entities *LanEntities `json:"entities,omitempty"` + Properties *LanPropertiesPost `json:"properties"` } - - // GetId returns the Id field value // If the value is explicit nil, the zero value for string will be returned func (o *LanPost) GetId() *string { @@ -63,8 +61,6 @@ func (o *LanPost) HasId() bool { return false } - - // GetType returns the Type field value // If the value is explicit nil, the zero value for Type will be returned func (o *LanPost) GetType() *Type { @@ -99,8 +95,6 @@ func (o *LanPost) HasType() bool { return false } - - // GetHref returns the Href field value // If the value is explicit nil, the zero value for string will be returned func (o *LanPost) GetHref() *string { @@ -135,8 +129,6 @@ func (o *LanPost) HasHref() bool { return false } - - // GetMetadata returns the Metadata field value // If the value is explicit nil, the zero value for DatacenterElementMetadata will be returned func (o *LanPost) GetMetadata() *DatacenterElementMetadata { @@ -171,8 +163,6 @@ func (o *LanPost) HasMetadata() bool { return false } - - // GetEntities returns the Entities field value // If the value is explicit nil, the zero value for LanEntities will be returned func (o *LanPost) GetEntities() *LanEntities { @@ -207,8 +197,6 @@ func (o *LanPost) HasEntities() bool { return false } - - // GetProperties returns the Properties field value // If the value is explicit nil, the zero value for LanPropertiesPost will be returned func (o *LanPost) GetProperties() *LanPropertiesPost { @@ -243,39 +231,33 @@ func (o *LanPost) HasProperties() bool { return false } - func (o LanPost) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.Id != nil { toSerialize["id"] = o.Id } - if o.Type != nil { toSerialize["type"] = o.Type } - if o.Href != nil { toSerialize["href"] = o.Href } - if o.Metadata != nil { toSerialize["metadata"] = o.Metadata } - if o.Entities != nil { toSerialize["entities"] = o.Entities } - if o.Properties != nil { toSerialize["properties"] = o.Properties } - + return json.Marshal(toSerialize) } @@ -314,5 +296,3 @@ func (v *NullableLanPost) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_lan_properties.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_lan_properties.go index 0b6e35290da5..e87a9f1cdf97 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_lan_properties.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_lan_properties.go @@ -26,8 +26,6 @@ type LanProperties struct { Public *bool `json:"public,omitempty"` } - - // GetName returns the Name field value // If the value is explicit nil, the zero value for string will be returned func (o *LanProperties) GetName() *string { @@ -62,8 +60,6 @@ func (o *LanProperties) HasName() bool { return false } - - // GetIpFailover returns the IpFailover field value // If the value is explicit nil, the zero value for []IPFailover will be returned func (o *LanProperties) GetIpFailover() *[]IPFailover { @@ -98,8 +94,6 @@ func (o *LanProperties) HasIpFailover() bool { return false } - - // GetPcc returns the Pcc field value // If the value is explicit nil, the zero value for string will be returned func (o *LanProperties) GetPcc() *string { @@ -134,8 +128,6 @@ func (o *LanProperties) HasPcc() bool { return false } - - // GetPublic returns the Public field value // If the value is explicit nil, the zero value for bool will be returned func (o *LanProperties) GetPublic() *bool { @@ -170,29 +162,25 @@ func (o *LanProperties) HasPublic() bool { return false } - func (o LanProperties) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.Name != nil { toSerialize["name"] = o.Name } - if o.IpFailover != nil { toSerialize["ipFailover"] = o.IpFailover } - if o.Pcc != nil { toSerialize["pcc"] = o.Pcc } - if o.Public != nil { toSerialize["public"] = o.Public } - + return json.Marshal(toSerialize) } @@ -231,5 +219,3 @@ func (v *NullableLanProperties) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_lan_properties_post.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_lan_properties_post.go index 6636bfffcc4e..13c8f1837aaf 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_lan_properties_post.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_lan_properties_post.go @@ -22,8 +22,6 @@ type LanPropertiesPost struct { Public *bool `json:"public,omitempty"` } - - // GetName returns the Name field value // If the value is explicit nil, the zero value for string will be returned func (o *LanPropertiesPost) GetName() *string { @@ -58,8 +56,6 @@ func (o *LanPropertiesPost) HasName() bool { return false } - - // GetPublic returns the Public field value // If the value is explicit nil, the zero value for bool will be returned func (o *LanPropertiesPost) GetPublic() *bool { @@ -94,19 +90,17 @@ func (o *LanPropertiesPost) HasPublic() bool { return false } - func (o LanPropertiesPost) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.Name != nil { toSerialize["name"] = o.Name } - if o.Public != nil { toSerialize["public"] = o.Public } - + return json.Marshal(toSerialize) } @@ -145,5 +139,3 @@ func (v *NullableLanPropertiesPost) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_lans.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_lans.go index ec2aeb3330c4..3e1e12b4e5c6 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_lans.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_lans.go @@ -26,8 +26,6 @@ type Lans struct { Items *[]Lan `json:"items,omitempty"` } - - // GetId returns the Id field value // If the value is explicit nil, the zero value for string will be returned func (o *Lans) GetId() *string { @@ -62,8 +60,6 @@ func (o *Lans) HasId() bool { return false } - - // GetType returns the Type field value // If the value is explicit nil, the zero value for Type will be returned func (o *Lans) GetType() *Type { @@ -98,8 +94,6 @@ func (o *Lans) HasType() bool { return false } - - // GetHref returns the Href field value // If the value is explicit nil, the zero value for string will be returned func (o *Lans) GetHref() *string { @@ -134,8 +128,6 @@ func (o *Lans) HasHref() bool { return false } - - // GetItems returns the Items field value // If the value is explicit nil, the zero value for []Lan will be returned func (o *Lans) GetItems() *[]Lan { @@ -170,29 +162,25 @@ func (o *Lans) HasItems() bool { return false } - func (o Lans) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.Id != nil { toSerialize["id"] = o.Id } - if o.Type != nil { toSerialize["type"] = o.Type } - if o.Href != nil { toSerialize["href"] = o.Href } - if o.Items != nil { toSerialize["items"] = o.Items } - + return json.Marshal(toSerialize) } @@ -231,5 +219,3 @@ func (v *NullableLans) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_loadbalancer.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_loadbalancer.go index 47a0adf82097..8e7e656b86fe 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_loadbalancer.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_loadbalancer.go @@ -21,14 +21,12 @@ type Loadbalancer struct { // The type of object that has been created Type *Type `json:"type,omitempty"` // URL to the object representation (absolute path) - Href *string `json:"href,omitempty"` - Metadata *DatacenterElementMetadata `json:"metadata,omitempty"` - Properties *LoadbalancerProperties `json:"properties"` - Entities *LoadbalancerEntities `json:"entities,omitempty"` + Href *string `json:"href,omitempty"` + Metadata *DatacenterElementMetadata `json:"metadata,omitempty"` + Properties *LoadbalancerProperties `json:"properties"` + Entities *LoadbalancerEntities `json:"entities,omitempty"` } - - // GetId returns the Id field value // If the value is explicit nil, the zero value for string will be returned func (o *Loadbalancer) GetId() *string { @@ -63,8 +61,6 @@ func (o *Loadbalancer) HasId() bool { return false } - - // GetType returns the Type field value // If the value is explicit nil, the zero value for Type will be returned func (o *Loadbalancer) GetType() *Type { @@ -99,8 +95,6 @@ func (o *Loadbalancer) HasType() bool { return false } - - // GetHref returns the Href field value // If the value is explicit nil, the zero value for string will be returned func (o *Loadbalancer) GetHref() *string { @@ -135,8 +129,6 @@ func (o *Loadbalancer) HasHref() bool { return false } - - // GetMetadata returns the Metadata field value // If the value is explicit nil, the zero value for DatacenterElementMetadata will be returned func (o *Loadbalancer) GetMetadata() *DatacenterElementMetadata { @@ -171,8 +163,6 @@ func (o *Loadbalancer) HasMetadata() bool { return false } - - // GetProperties returns the Properties field value // If the value is explicit nil, the zero value for LoadbalancerProperties will be returned func (o *Loadbalancer) GetProperties() *LoadbalancerProperties { @@ -207,8 +197,6 @@ func (o *Loadbalancer) HasProperties() bool { return false } - - // GetEntities returns the Entities field value // If the value is explicit nil, the zero value for LoadbalancerEntities will be returned func (o *Loadbalancer) GetEntities() *LoadbalancerEntities { @@ -243,39 +231,33 @@ func (o *Loadbalancer) HasEntities() bool { return false } - func (o Loadbalancer) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.Id != nil { toSerialize["id"] = o.Id } - if o.Type != nil { toSerialize["type"] = o.Type } - if o.Href != nil { toSerialize["href"] = o.Href } - if o.Metadata != nil { toSerialize["metadata"] = o.Metadata } - if o.Properties != nil { toSerialize["properties"] = o.Properties } - if o.Entities != nil { toSerialize["entities"] = o.Entities } - + return json.Marshal(toSerialize) } @@ -314,5 +296,3 @@ func (v *NullableLoadbalancer) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_loadbalancer_entities.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_loadbalancer_entities.go index 69538781e24d..4e10d12cac57 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_loadbalancer_entities.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_loadbalancer_entities.go @@ -19,8 +19,6 @@ type LoadbalancerEntities struct { Balancednics *BalancedNics `json:"balancednics,omitempty"` } - - // GetBalancednics returns the Balancednics field value // If the value is explicit nil, the zero value for BalancedNics will be returned func (o *LoadbalancerEntities) GetBalancednics() *BalancedNics { @@ -55,14 +53,13 @@ func (o *LoadbalancerEntities) HasBalancednics() bool { return false } - func (o LoadbalancerEntities) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.Balancednics != nil { toSerialize["balancednics"] = o.Balancednics } - + return json.Marshal(toSerialize) } @@ -101,5 +98,3 @@ func (v *NullableLoadbalancerEntities) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_loadbalancer_properties.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_loadbalancer_properties.go index 61a6d83d7bdf..33875aaceaa9 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_loadbalancer_properties.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_loadbalancer_properties.go @@ -24,8 +24,6 @@ type LoadbalancerProperties struct { Dhcp *bool `json:"dhcp,omitempty"` } - - // GetName returns the Name field value // If the value is explicit nil, the zero value for string will be returned func (o *LoadbalancerProperties) GetName() *string { @@ -60,8 +58,6 @@ func (o *LoadbalancerProperties) HasName() bool { return false } - - // GetIp returns the Ip field value // If the value is explicit nil, the zero value for string will be returned func (o *LoadbalancerProperties) GetIp() *string { @@ -96,8 +92,6 @@ func (o *LoadbalancerProperties) HasIp() bool { return false } - - // GetDhcp returns the Dhcp field value // If the value is explicit nil, the zero value for bool will be returned func (o *LoadbalancerProperties) GetDhcp() *bool { @@ -132,24 +126,21 @@ func (o *LoadbalancerProperties) HasDhcp() bool { return false } - func (o LoadbalancerProperties) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.Name != nil { toSerialize["name"] = o.Name } - if o.Ip != nil { toSerialize["ip"] = o.Ip } - if o.Dhcp != nil { toSerialize["dhcp"] = o.Dhcp } - + return json.Marshal(toSerialize) } @@ -188,5 +179,3 @@ func (v *NullableLoadbalancerProperties) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_loadbalancers.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_loadbalancers.go index 718b6fa6398f..d33390c82bdb 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_loadbalancers.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_loadbalancers.go @@ -26,8 +26,6 @@ type Loadbalancers struct { Items *[]Loadbalancer `json:"items,omitempty"` } - - // GetId returns the Id field value // If the value is explicit nil, the zero value for string will be returned func (o *Loadbalancers) GetId() *string { @@ -62,8 +60,6 @@ func (o *Loadbalancers) HasId() bool { return false } - - // GetType returns the Type field value // If the value is explicit nil, the zero value for Type will be returned func (o *Loadbalancers) GetType() *Type { @@ -98,8 +94,6 @@ func (o *Loadbalancers) HasType() bool { return false } - - // GetHref returns the Href field value // If the value is explicit nil, the zero value for string will be returned func (o *Loadbalancers) GetHref() *string { @@ -134,8 +128,6 @@ func (o *Loadbalancers) HasHref() bool { return false } - - // GetItems returns the Items field value // If the value is explicit nil, the zero value for []Loadbalancer will be returned func (o *Loadbalancers) GetItems() *[]Loadbalancer { @@ -170,29 +162,25 @@ func (o *Loadbalancers) HasItems() bool { return false } - func (o Loadbalancers) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.Id != nil { toSerialize["id"] = o.Id } - if o.Type != nil { toSerialize["type"] = o.Type } - if o.Href != nil { toSerialize["href"] = o.Href } - if o.Items != nil { toSerialize["items"] = o.Items } - + return json.Marshal(toSerialize) } @@ -231,5 +219,3 @@ func (v *NullableLoadbalancers) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_location.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_location.go index ece6e03b3980..be30cff22140 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_location.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_location.go @@ -21,13 +21,11 @@ type Location struct { // The type of object that has been created Type *Type `json:"type,omitempty"` // URL to the object representation (absolute path) - Href *string `json:"href,omitempty"` - Metadata *DatacenterElementMetadata `json:"metadata,omitempty"` - Properties *LocationProperties `json:"properties"` + Href *string `json:"href,omitempty"` + Metadata *DatacenterElementMetadata `json:"metadata,omitempty"` + Properties *LocationProperties `json:"properties"` } - - // GetId returns the Id field value // If the value is explicit nil, the zero value for string will be returned func (o *Location) GetId() *string { @@ -62,8 +60,6 @@ func (o *Location) HasId() bool { return false } - - // GetType returns the Type field value // If the value is explicit nil, the zero value for Type will be returned func (o *Location) GetType() *Type { @@ -98,8 +94,6 @@ func (o *Location) HasType() bool { return false } - - // GetHref returns the Href field value // If the value is explicit nil, the zero value for string will be returned func (o *Location) GetHref() *string { @@ -134,8 +128,6 @@ func (o *Location) HasHref() bool { return false } - - // GetMetadata returns the Metadata field value // If the value is explicit nil, the zero value for DatacenterElementMetadata will be returned func (o *Location) GetMetadata() *DatacenterElementMetadata { @@ -170,8 +162,6 @@ func (o *Location) HasMetadata() bool { return false } - - // GetProperties returns the Properties field value // If the value is explicit nil, the zero value for LocationProperties will be returned func (o *Location) GetProperties() *LocationProperties { @@ -206,34 +196,29 @@ func (o *Location) HasProperties() bool { return false } - func (o Location) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.Id != nil { toSerialize["id"] = o.Id } - if o.Type != nil { toSerialize["type"] = o.Type } - if o.Href != nil { toSerialize["href"] = o.Href } - if o.Metadata != nil { toSerialize["metadata"] = o.Metadata } - if o.Properties != nil { toSerialize["properties"] = o.Properties } - + return json.Marshal(toSerialize) } @@ -272,5 +257,3 @@ func (v *NullableLocation) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_location_properties.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_location_properties.go index 8401e5d67a89..586f1b907dc9 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_location_properties.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_location_properties.go @@ -24,8 +24,6 @@ type LocationProperties struct { ImageAliases *[]string `json:"imageAliases,omitempty"` } - - // GetName returns the Name field value // If the value is explicit nil, the zero value for string will be returned func (o *LocationProperties) GetName() *string { @@ -60,8 +58,6 @@ func (o *LocationProperties) HasName() bool { return false } - - // GetFeatures returns the Features field value // If the value is explicit nil, the zero value for []string will be returned func (o *LocationProperties) GetFeatures() *[]string { @@ -96,8 +92,6 @@ func (o *LocationProperties) HasFeatures() bool { return false } - - // GetImageAliases returns the ImageAliases field value // If the value is explicit nil, the zero value for []string will be returned func (o *LocationProperties) GetImageAliases() *[]string { @@ -132,24 +126,21 @@ func (o *LocationProperties) HasImageAliases() bool { return false } - func (o LocationProperties) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.Name != nil { toSerialize["name"] = o.Name } - if o.Features != nil { toSerialize["features"] = o.Features } - if o.ImageAliases != nil { toSerialize["imageAliases"] = o.ImageAliases } - + return json.Marshal(toSerialize) } @@ -188,5 +179,3 @@ func (v *NullableLocationProperties) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_locations.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_locations.go index f3e7abaf6902..512248c98a66 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_locations.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_locations.go @@ -26,8 +26,6 @@ type Locations struct { Items *[]Location `json:"items,omitempty"` } - - // GetId returns the Id field value // If the value is explicit nil, the zero value for string will be returned func (o *Locations) GetId() *string { @@ -62,8 +60,6 @@ func (o *Locations) HasId() bool { return false } - - // GetType returns the Type field value // If the value is explicit nil, the zero value for Type will be returned func (o *Locations) GetType() *Type { @@ -98,8 +94,6 @@ func (o *Locations) HasType() bool { return false } - - // GetHref returns the Href field value // If the value is explicit nil, the zero value for string will be returned func (o *Locations) GetHref() *string { @@ -134,8 +128,6 @@ func (o *Locations) HasHref() bool { return false } - - // GetItems returns the Items field value // If the value is explicit nil, the zero value for []Location will be returned func (o *Locations) GetItems() *[]Location { @@ -170,29 +162,25 @@ func (o *Locations) HasItems() bool { return false } - func (o Locations) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.Id != nil { toSerialize["id"] = o.Id } - if o.Type != nil { toSerialize["type"] = o.Type } - if o.Href != nil { toSerialize["href"] = o.Href } - if o.Items != nil { toSerialize["items"] = o.Items } - + return json.Marshal(toSerialize) } @@ -231,5 +219,3 @@ func (v *NullableLocations) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_nic.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_nic.go index 47f61d043df2..0f7d827f4da3 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_nic.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_nic.go @@ -21,14 +21,12 @@ type Nic struct { // The type of object that has been created Type *Type `json:"type,omitempty"` // URL to the object representation (absolute path) - Href *string `json:"href,omitempty"` - Metadata *DatacenterElementMetadata `json:"metadata,omitempty"` - Properties *NicProperties `json:"properties"` - Entities *NicEntities `json:"entities,omitempty"` + Href *string `json:"href,omitempty"` + Metadata *DatacenterElementMetadata `json:"metadata,omitempty"` + Properties *NicProperties `json:"properties"` + Entities *NicEntities `json:"entities,omitempty"` } - - // GetId returns the Id field value // If the value is explicit nil, the zero value for string will be returned func (o *Nic) GetId() *string { @@ -63,8 +61,6 @@ func (o *Nic) HasId() bool { return false } - - // GetType returns the Type field value // If the value is explicit nil, the zero value for Type will be returned func (o *Nic) GetType() *Type { @@ -99,8 +95,6 @@ func (o *Nic) HasType() bool { return false } - - // GetHref returns the Href field value // If the value is explicit nil, the zero value for string will be returned func (o *Nic) GetHref() *string { @@ -135,8 +129,6 @@ func (o *Nic) HasHref() bool { return false } - - // GetMetadata returns the Metadata field value // If the value is explicit nil, the zero value for DatacenterElementMetadata will be returned func (o *Nic) GetMetadata() *DatacenterElementMetadata { @@ -171,8 +163,6 @@ func (o *Nic) HasMetadata() bool { return false } - - // GetProperties returns the Properties field value // If the value is explicit nil, the zero value for NicProperties will be returned func (o *Nic) GetProperties() *NicProperties { @@ -207,8 +197,6 @@ func (o *Nic) HasProperties() bool { return false } - - // GetEntities returns the Entities field value // If the value is explicit nil, the zero value for NicEntities will be returned func (o *Nic) GetEntities() *NicEntities { @@ -243,39 +231,33 @@ func (o *Nic) HasEntities() bool { return false } - func (o Nic) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.Id != nil { toSerialize["id"] = o.Id } - if o.Type != nil { toSerialize["type"] = o.Type } - if o.Href != nil { toSerialize["href"] = o.Href } - if o.Metadata != nil { toSerialize["metadata"] = o.Metadata } - if o.Properties != nil { toSerialize["properties"] = o.Properties } - if o.Entities != nil { toSerialize["entities"] = o.Entities } - + return json.Marshal(toSerialize) } @@ -314,5 +296,3 @@ func (v *NullableNic) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_nic_entities.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_nic_entities.go index db039d0d8e89..72ae0a6653fd 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_nic_entities.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_nic_entities.go @@ -19,8 +19,6 @@ type NicEntities struct { Firewallrules *FirewallRules `json:"firewallrules,omitempty"` } - - // GetFirewallrules returns the Firewallrules field value // If the value is explicit nil, the zero value for FirewallRules will be returned func (o *NicEntities) GetFirewallrules() *FirewallRules { @@ -55,14 +53,13 @@ func (o *NicEntities) HasFirewallrules() bool { return false } - func (o NicEntities) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.Firewallrules != nil { toSerialize["firewallrules"] = o.Firewallrules } - + return json.Marshal(toSerialize) } @@ -101,5 +98,3 @@ func (v *NullableNicEntities) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_nic_properties.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_nic_properties.go index 53b8b6862e39..c0c2f3109cdb 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_nic_properties.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_nic_properties.go @@ -32,8 +32,6 @@ type NicProperties struct { Nat *bool `json:"nat,omitempty"` } - - // GetName returns the Name field value // If the value is explicit nil, the zero value for string will be returned func (o *NicProperties) GetName() *string { @@ -68,8 +66,6 @@ func (o *NicProperties) HasName() bool { return false } - - // GetMac returns the Mac field value // If the value is explicit nil, the zero value for string will be returned func (o *NicProperties) GetMac() *string { @@ -104,8 +100,6 @@ func (o *NicProperties) HasMac() bool { return false } - - // GetIps returns the Ips field value // If the value is explicit nil, the zero value for []string will be returned func (o *NicProperties) GetIps() *[]string { @@ -140,8 +134,6 @@ func (o *NicProperties) HasIps() bool { return false } - - // GetDhcp returns the Dhcp field value // If the value is explicit nil, the zero value for bool will be returned func (o *NicProperties) GetDhcp() *bool { @@ -176,8 +168,6 @@ func (o *NicProperties) HasDhcp() bool { return false } - - // GetLan returns the Lan field value // If the value is explicit nil, the zero value for int32 will be returned func (o *NicProperties) GetLan() *int32 { @@ -212,8 +202,6 @@ func (o *NicProperties) HasLan() bool { return false } - - // GetFirewallActive returns the FirewallActive field value // If the value is explicit nil, the zero value for bool will be returned func (o *NicProperties) GetFirewallActive() *bool { @@ -248,8 +236,6 @@ func (o *NicProperties) HasFirewallActive() bool { return false } - - // GetNat returns the Nat field value // If the value is explicit nil, the zero value for bool will be returned func (o *NicProperties) GetNat() *bool { @@ -284,44 +270,37 @@ func (o *NicProperties) HasNat() bool { return false } - func (o NicProperties) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.Name != nil { toSerialize["name"] = o.Name } - if o.Mac != nil { toSerialize["mac"] = o.Mac } - if o.Ips != nil { toSerialize["ips"] = o.Ips } - if o.Dhcp != nil { toSerialize["dhcp"] = o.Dhcp } - if o.Lan != nil { toSerialize["lan"] = o.Lan } - if o.FirewallActive != nil { toSerialize["firewallActive"] = o.FirewallActive } - if o.Nat != nil { toSerialize["nat"] = o.Nat } - + return json.Marshal(toSerialize) } @@ -360,5 +339,3 @@ func (v *NullableNicProperties) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_nics.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_nics.go index 145d1d701c4e..6a5545eecf71 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_nics.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_nics.go @@ -26,8 +26,6 @@ type Nics struct { Items *[]Nic `json:"items,omitempty"` } - - // GetId returns the Id field value // If the value is explicit nil, the zero value for string will be returned func (o *Nics) GetId() *string { @@ -62,8 +60,6 @@ func (o *Nics) HasId() bool { return false } - - // GetType returns the Type field value // If the value is explicit nil, the zero value for Type will be returned func (o *Nics) GetType() *Type { @@ -98,8 +94,6 @@ func (o *Nics) HasType() bool { return false } - - // GetHref returns the Href field value // If the value is explicit nil, the zero value for string will be returned func (o *Nics) GetHref() *string { @@ -134,8 +128,6 @@ func (o *Nics) HasHref() bool { return false } - - // GetItems returns the Items field value // If the value is explicit nil, the zero value for []Nic will be returned func (o *Nics) GetItems() *[]Nic { @@ -170,29 +162,25 @@ func (o *Nics) HasItems() bool { return false } - func (o Nics) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.Id != nil { toSerialize["id"] = o.Id } - if o.Type != nil { toSerialize["type"] = o.Type } - if o.Href != nil { toSerialize["href"] = o.Href } - if o.Items != nil { toSerialize["items"] = o.Items } - + return json.Marshal(toSerialize) } @@ -231,5 +219,3 @@ func (v *NullableNics) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_no_state_meta_data.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_no_state_meta_data.go index bade291e55d7..2a74875afbd4 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_no_state_meta_data.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_no_state_meta_data.go @@ -17,7 +17,7 @@ import ( // NoStateMetaData struct for NoStateMetaData type NoStateMetaData struct { - // Resource's Entity Tag as defined in http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.11 . Entity Tag is also added as an 'ETag response header to requests which don't use 'depth' parameter. + // Resource's Entity Tag as defined in http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.11 . Entity Tag is also added as an 'ETag response header to requests which don't use 'depth' parameter. Etag *string `json:"etag,omitempty"` // The time the Resource was created CreatedDate *time.Time `json:"createdDate,omitempty"` @@ -33,8 +33,6 @@ type NoStateMetaData struct { LastModifiedByUserId *string `json:"lastModifiedByUserId,omitempty"` } - - // GetEtag returns the Etag field value // If the value is explicit nil, the zero value for string will be returned func (o *NoStateMetaData) GetEtag() *string { @@ -69,8 +67,6 @@ func (o *NoStateMetaData) HasEtag() bool { return false } - - // GetCreatedDate returns the CreatedDate field value // If the value is explicit nil, the zero value for time.Time will be returned func (o *NoStateMetaData) GetCreatedDate() *time.Time { @@ -105,8 +101,6 @@ func (o *NoStateMetaData) HasCreatedDate() bool { return false } - - // GetCreatedBy returns the CreatedBy field value // If the value is explicit nil, the zero value for string will be returned func (o *NoStateMetaData) GetCreatedBy() *string { @@ -141,8 +135,6 @@ func (o *NoStateMetaData) HasCreatedBy() bool { return false } - - // GetCreatedByUserId returns the CreatedByUserId field value // If the value is explicit nil, the zero value for string will be returned func (o *NoStateMetaData) GetCreatedByUserId() *string { @@ -177,8 +169,6 @@ func (o *NoStateMetaData) HasCreatedByUserId() bool { return false } - - // GetLastModifiedDate returns the LastModifiedDate field value // If the value is explicit nil, the zero value for time.Time will be returned func (o *NoStateMetaData) GetLastModifiedDate() *time.Time { @@ -213,8 +203,6 @@ func (o *NoStateMetaData) HasLastModifiedDate() bool { return false } - - // GetLastModifiedBy returns the LastModifiedBy field value // If the value is explicit nil, the zero value for string will be returned func (o *NoStateMetaData) GetLastModifiedBy() *string { @@ -249,8 +237,6 @@ func (o *NoStateMetaData) HasLastModifiedBy() bool { return false } - - // GetLastModifiedByUserId returns the LastModifiedByUserId field value // If the value is explicit nil, the zero value for string will be returned func (o *NoStateMetaData) GetLastModifiedByUserId() *string { @@ -285,44 +271,37 @@ func (o *NoStateMetaData) HasLastModifiedByUserId() bool { return false } - func (o NoStateMetaData) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.Etag != nil { toSerialize["etag"] = o.Etag } - if o.CreatedDate != nil { toSerialize["createdDate"] = o.CreatedDate } - if o.CreatedBy != nil { toSerialize["createdBy"] = o.CreatedBy } - if o.CreatedByUserId != nil { toSerialize["createdByUserId"] = o.CreatedByUserId } - if o.LastModifiedDate != nil { toSerialize["lastModifiedDate"] = o.LastModifiedDate } - if o.LastModifiedBy != nil { toSerialize["lastModifiedBy"] = o.LastModifiedBy } - if o.LastModifiedByUserId != nil { toSerialize["lastModifiedByUserId"] = o.LastModifiedByUserId } - + return json.Marshal(toSerialize) } @@ -361,5 +340,3 @@ func (v *NullableNoStateMetaData) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_peer.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_peer.go index 590a2bc73aae..547295796623 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_peer.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_peer.go @@ -16,15 +16,13 @@ import ( // Peer struct for Peer type Peer struct { - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - DatacenterId *string `json:"datacenterId,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + DatacenterId *string `json:"datacenterId,omitempty"` DatacenterName *string `json:"datacenterName,omitempty"` - Location *string `json:"location,omitempty"` + Location *string `json:"location,omitempty"` } - - // GetId returns the Id field value // If the value is explicit nil, the zero value for string will be returned func (o *Peer) GetId() *string { @@ -59,8 +57,6 @@ func (o *Peer) HasId() bool { return false } - - // GetName returns the Name field value // If the value is explicit nil, the zero value for string will be returned func (o *Peer) GetName() *string { @@ -95,8 +91,6 @@ func (o *Peer) HasName() bool { return false } - - // GetDatacenterId returns the DatacenterId field value // If the value is explicit nil, the zero value for string will be returned func (o *Peer) GetDatacenterId() *string { @@ -131,8 +125,6 @@ func (o *Peer) HasDatacenterId() bool { return false } - - // GetDatacenterName returns the DatacenterName field value // If the value is explicit nil, the zero value for string will be returned func (o *Peer) GetDatacenterName() *string { @@ -167,8 +159,6 @@ func (o *Peer) HasDatacenterName() bool { return false } - - // GetLocation returns the Location field value // If the value is explicit nil, the zero value for string will be returned func (o *Peer) GetLocation() *string { @@ -203,34 +193,29 @@ func (o *Peer) HasLocation() bool { return false } - func (o Peer) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.Id != nil { toSerialize["id"] = o.Id } - if o.Name != nil { toSerialize["name"] = o.Name } - if o.DatacenterId != nil { toSerialize["datacenterId"] = o.DatacenterId } - if o.DatacenterName != nil { toSerialize["datacenterName"] = o.DatacenterName } - if o.Location != nil { toSerialize["location"] = o.Location } - + return json.Marshal(toSerialize) } @@ -269,5 +254,3 @@ func (v *NullablePeer) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_private_cross_connect.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_private_cross_connect.go index 4db1183a4e5f..f4725013fb06 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_private_cross_connect.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_private_cross_connect.go @@ -21,13 +21,11 @@ type PrivateCrossConnect struct { // The type of object that has been created Type *Type `json:"type,omitempty"` // URL to the object representation (absolute path) - Href *string `json:"href,omitempty"` - Metadata *DatacenterElementMetadata `json:"metadata,omitempty"` + Href *string `json:"href,omitempty"` + Metadata *DatacenterElementMetadata `json:"metadata,omitempty"` Properties *PrivateCrossConnectProperties `json:"properties"` } - - // GetId returns the Id field value // If the value is explicit nil, the zero value for string will be returned func (o *PrivateCrossConnect) GetId() *string { @@ -62,8 +60,6 @@ func (o *PrivateCrossConnect) HasId() bool { return false } - - // GetType returns the Type field value // If the value is explicit nil, the zero value for Type will be returned func (o *PrivateCrossConnect) GetType() *Type { @@ -98,8 +94,6 @@ func (o *PrivateCrossConnect) HasType() bool { return false } - - // GetHref returns the Href field value // If the value is explicit nil, the zero value for string will be returned func (o *PrivateCrossConnect) GetHref() *string { @@ -134,8 +128,6 @@ func (o *PrivateCrossConnect) HasHref() bool { return false } - - // GetMetadata returns the Metadata field value // If the value is explicit nil, the zero value for DatacenterElementMetadata will be returned func (o *PrivateCrossConnect) GetMetadata() *DatacenterElementMetadata { @@ -170,8 +162,6 @@ func (o *PrivateCrossConnect) HasMetadata() bool { return false } - - // GetProperties returns the Properties field value // If the value is explicit nil, the zero value for PrivateCrossConnectProperties will be returned func (o *PrivateCrossConnect) GetProperties() *PrivateCrossConnectProperties { @@ -206,34 +196,29 @@ func (o *PrivateCrossConnect) HasProperties() bool { return false } - func (o PrivateCrossConnect) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.Id != nil { toSerialize["id"] = o.Id } - if o.Type != nil { toSerialize["type"] = o.Type } - if o.Href != nil { toSerialize["href"] = o.Href } - if o.Metadata != nil { toSerialize["metadata"] = o.Metadata } - if o.Properties != nil { toSerialize["properties"] = o.Properties } - + return json.Marshal(toSerialize) } @@ -272,5 +257,3 @@ func (v *NullablePrivateCrossConnect) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_private_cross_connect_properties.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_private_cross_connect_properties.go index b665ee3620e6..3687e01d810e 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_private_cross_connect_properties.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_private_cross_connect_properties.go @@ -26,8 +26,6 @@ type PrivateCrossConnectProperties struct { ConnectableDatacenters *[]ConnectableDatacenter `json:"connectableDatacenters,omitempty"` } - - // GetName returns the Name field value // If the value is explicit nil, the zero value for string will be returned func (o *PrivateCrossConnectProperties) GetName() *string { @@ -62,8 +60,6 @@ func (o *PrivateCrossConnectProperties) HasName() bool { return false } - - // GetDescription returns the Description field value // If the value is explicit nil, the zero value for string will be returned func (o *PrivateCrossConnectProperties) GetDescription() *string { @@ -98,8 +94,6 @@ func (o *PrivateCrossConnectProperties) HasDescription() bool { return false } - - // GetPeers returns the Peers field value // If the value is explicit nil, the zero value for []Peer will be returned func (o *PrivateCrossConnectProperties) GetPeers() *[]Peer { @@ -134,8 +128,6 @@ func (o *PrivateCrossConnectProperties) HasPeers() bool { return false } - - // GetConnectableDatacenters returns the ConnectableDatacenters field value // If the value is explicit nil, the zero value for []ConnectableDatacenter will be returned func (o *PrivateCrossConnectProperties) GetConnectableDatacenters() *[]ConnectableDatacenter { @@ -170,29 +162,25 @@ func (o *PrivateCrossConnectProperties) HasConnectableDatacenters() bool { return false } - func (o PrivateCrossConnectProperties) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.Name != nil { toSerialize["name"] = o.Name } - if o.Description != nil { toSerialize["description"] = o.Description } - if o.Peers != nil { toSerialize["peers"] = o.Peers } - if o.ConnectableDatacenters != nil { toSerialize["connectableDatacenters"] = o.ConnectableDatacenters } - + return json.Marshal(toSerialize) } @@ -231,5 +219,3 @@ func (v *NullablePrivateCrossConnectProperties) UnmarshalJSON(src []byte) error v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_private_cross_connects.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_private_cross_connects.go index 0c291323c90c..5f203ffe9c8e 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_private_cross_connects.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_private_cross_connects.go @@ -26,8 +26,6 @@ type PrivateCrossConnects struct { Items *[]PrivateCrossConnect `json:"items,omitempty"` } - - // GetId returns the Id field value // If the value is explicit nil, the zero value for string will be returned func (o *PrivateCrossConnects) GetId() *string { @@ -62,8 +60,6 @@ func (o *PrivateCrossConnects) HasId() bool { return false } - - // GetType returns the Type field value // If the value is explicit nil, the zero value for Type will be returned func (o *PrivateCrossConnects) GetType() *Type { @@ -98,8 +94,6 @@ func (o *PrivateCrossConnects) HasType() bool { return false } - - // GetHref returns the Href field value // If the value is explicit nil, the zero value for string will be returned func (o *PrivateCrossConnects) GetHref() *string { @@ -134,8 +128,6 @@ func (o *PrivateCrossConnects) HasHref() bool { return false } - - // GetItems returns the Items field value // If the value is explicit nil, the zero value for []PrivateCrossConnect will be returned func (o *PrivateCrossConnects) GetItems() *[]PrivateCrossConnect { @@ -170,29 +162,25 @@ func (o *PrivateCrossConnects) HasItems() bool { return false } - func (o PrivateCrossConnects) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.Id != nil { toSerialize["id"] = o.Id } - if o.Type != nil { toSerialize["type"] = o.Type } - if o.Href != nil { toSerialize["href"] = o.Href } - if o.Items != nil { toSerialize["items"] = o.Items } - + return json.Marshal(toSerialize) } @@ -231,5 +219,3 @@ func (v *NullablePrivateCrossConnects) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_request.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_request.go index 84035b79aaa2..2d7734e3b5ee 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_request.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_request.go @@ -21,13 +21,11 @@ type Request struct { // The type of object that has been created Type *Type `json:"type,omitempty"` // URL to the object representation (absolute path) - Href *string `json:"href,omitempty"` - Metadata *RequestMetadata `json:"metadata,omitempty"` + Href *string `json:"href,omitempty"` + Metadata *RequestMetadata `json:"metadata,omitempty"` Properties *RequestProperties `json:"properties"` } - - // GetId returns the Id field value // If the value is explicit nil, the zero value for string will be returned func (o *Request) GetId() *string { @@ -62,8 +60,6 @@ func (o *Request) HasId() bool { return false } - - // GetType returns the Type field value // If the value is explicit nil, the zero value for Type will be returned func (o *Request) GetType() *Type { @@ -98,8 +94,6 @@ func (o *Request) HasType() bool { return false } - - // GetHref returns the Href field value // If the value is explicit nil, the zero value for string will be returned func (o *Request) GetHref() *string { @@ -134,8 +128,6 @@ func (o *Request) HasHref() bool { return false } - - // GetMetadata returns the Metadata field value // If the value is explicit nil, the zero value for RequestMetadata will be returned func (o *Request) GetMetadata() *RequestMetadata { @@ -170,8 +162,6 @@ func (o *Request) HasMetadata() bool { return false } - - // GetProperties returns the Properties field value // If the value is explicit nil, the zero value for RequestProperties will be returned func (o *Request) GetProperties() *RequestProperties { @@ -206,34 +196,29 @@ func (o *Request) HasProperties() bool { return false } - func (o Request) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.Id != nil { toSerialize["id"] = o.Id } - if o.Type != nil { toSerialize["type"] = o.Type } - if o.Href != nil { toSerialize["href"] = o.Href } - if o.Metadata != nil { toSerialize["metadata"] = o.Metadata } - if o.Properties != nil { toSerialize["properties"] = o.Properties } - + return json.Marshal(toSerialize) } @@ -272,5 +257,3 @@ func (v *NullableRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_request_metadata.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_request_metadata.go index bc4f71ad3c38..20771dabe8da 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_request_metadata.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_request_metadata.go @@ -21,13 +21,11 @@ type RequestMetadata struct { CreatedDate *time.Time `json:"createdDate,omitempty"` // The user who created the resource. CreatedBy *string `json:"createdBy,omitempty"` - // Resource's Entity Tag as defined in http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.11 . Entity Tag is also added as an 'ETag response header to requests which don't use 'depth' parameter. - Etag *string `json:"etag,omitempty"` + // Resource's Entity Tag as defined in http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.11 . Entity Tag is also added as an 'ETag response header to requests which don't use 'depth' parameter. + Etag *string `json:"etag,omitempty"` RequestStatus *RequestStatus `json:"requestStatus,omitempty"` } - - // GetCreatedDate returns the CreatedDate field value // If the value is explicit nil, the zero value for time.Time will be returned func (o *RequestMetadata) GetCreatedDate() *time.Time { @@ -62,8 +60,6 @@ func (o *RequestMetadata) HasCreatedDate() bool { return false } - - // GetCreatedBy returns the CreatedBy field value // If the value is explicit nil, the zero value for string will be returned func (o *RequestMetadata) GetCreatedBy() *string { @@ -98,8 +94,6 @@ func (o *RequestMetadata) HasCreatedBy() bool { return false } - - // GetEtag returns the Etag field value // If the value is explicit nil, the zero value for string will be returned func (o *RequestMetadata) GetEtag() *string { @@ -134,8 +128,6 @@ func (o *RequestMetadata) HasEtag() bool { return false } - - // GetRequestStatus returns the RequestStatus field value // If the value is explicit nil, the zero value for RequestStatus will be returned func (o *RequestMetadata) GetRequestStatus() *RequestStatus { @@ -170,29 +162,25 @@ func (o *RequestMetadata) HasRequestStatus() bool { return false } - func (o RequestMetadata) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.CreatedDate != nil { toSerialize["createdDate"] = o.CreatedDate } - if o.CreatedBy != nil { toSerialize["createdBy"] = o.CreatedBy } - if o.Etag != nil { toSerialize["etag"] = o.Etag } - if o.RequestStatus != nil { toSerialize["requestStatus"] = o.RequestStatus } - + return json.Marshal(toSerialize) } @@ -231,5 +219,3 @@ func (v *NullableRequestMetadata) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_request_properties.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_request_properties.go index 7850b7375f91..543aa7a8f7f6 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_request_properties.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_request_properties.go @@ -16,14 +16,12 @@ import ( // RequestProperties struct for RequestProperties type RequestProperties struct { - Method *string `json:"method,omitempty"` + Method *string `json:"method,omitempty"` Headers *map[string]string `json:"headers,omitempty"` - Body *string `json:"body,omitempty"` - Url *string `json:"url,omitempty"` + Body *string `json:"body,omitempty"` + Url *string `json:"url,omitempty"` } - - // GetMethod returns the Method field value // If the value is explicit nil, the zero value for string will be returned func (o *RequestProperties) GetMethod() *string { @@ -58,8 +56,6 @@ func (o *RequestProperties) HasMethod() bool { return false } - - // GetHeaders returns the Headers field value // If the value is explicit nil, the zero value for map[string]string will be returned func (o *RequestProperties) GetHeaders() *map[string]string { @@ -94,8 +90,6 @@ func (o *RequestProperties) HasHeaders() bool { return false } - - // GetBody returns the Body field value // If the value is explicit nil, the zero value for string will be returned func (o *RequestProperties) GetBody() *string { @@ -130,8 +124,6 @@ func (o *RequestProperties) HasBody() bool { return false } - - // GetUrl returns the Url field value // If the value is explicit nil, the zero value for string will be returned func (o *RequestProperties) GetUrl() *string { @@ -166,29 +158,25 @@ func (o *RequestProperties) HasUrl() bool { return false } - func (o RequestProperties) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.Method != nil { toSerialize["method"] = o.Method } - if o.Headers != nil { toSerialize["headers"] = o.Headers } - if o.Body != nil { toSerialize["body"] = o.Body } - if o.Url != nil { toSerialize["url"] = o.Url } - + return json.Marshal(toSerialize) } @@ -227,5 +215,3 @@ func (v *NullableRequestProperties) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_request_status.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_request_status.go index 7b630638ba06..a7463937e031 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_request_status.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_request_status.go @@ -21,12 +21,10 @@ type RequestStatus struct { // The type of object that has been created Type *Type `json:"type,omitempty"` // URL to the object representation (absolute path) - Href *string `json:"href,omitempty"` + Href *string `json:"href,omitempty"` Metadata *RequestStatusMetadata `json:"metadata,omitempty"` } - - // GetId returns the Id field value // If the value is explicit nil, the zero value for string will be returned func (o *RequestStatus) GetId() *string { @@ -61,8 +59,6 @@ func (o *RequestStatus) HasId() bool { return false } - - // GetType returns the Type field value // If the value is explicit nil, the zero value for Type will be returned func (o *RequestStatus) GetType() *Type { @@ -97,8 +93,6 @@ func (o *RequestStatus) HasType() bool { return false } - - // GetHref returns the Href field value // If the value is explicit nil, the zero value for string will be returned func (o *RequestStatus) GetHref() *string { @@ -133,8 +127,6 @@ func (o *RequestStatus) HasHref() bool { return false } - - // GetMetadata returns the Metadata field value // If the value is explicit nil, the zero value for RequestStatusMetadata will be returned func (o *RequestStatus) GetMetadata() *RequestStatusMetadata { @@ -169,29 +161,25 @@ func (o *RequestStatus) HasMetadata() bool { return false } - func (o RequestStatus) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.Id != nil { toSerialize["id"] = o.Id } - if o.Type != nil { toSerialize["type"] = o.Type } - if o.Href != nil { toSerialize["href"] = o.Href } - if o.Metadata != nil { toSerialize["metadata"] = o.Metadata } - + return json.Marshal(toSerialize) } @@ -230,5 +218,3 @@ func (v *NullableRequestStatus) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_request_status_metadata.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_request_status_metadata.go index 409c0fd776fa..6a451b69058c 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_request_status_metadata.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_request_status_metadata.go @@ -16,15 +16,13 @@ import ( // RequestStatusMetadata struct for RequestStatusMetadata type RequestStatusMetadata struct { - Status *string `json:"status,omitempty"` + Status *string `json:"status,omitempty"` Message *string `json:"message,omitempty"` - // Resource's Entity Tag as defined in http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.11 . Entity Tag is also added as an 'ETag response header to requests which don't use 'depth' parameter. - Etag *string `json:"etag,omitempty"` + // Resource's Entity Tag as defined in http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.11 . Entity Tag is also added as an 'ETag response header to requests which don't use 'depth' parameter. + Etag *string `json:"etag,omitempty"` Targets *[]RequestTarget `json:"targets,omitempty"` } - - // GetStatus returns the Status field value // If the value is explicit nil, the zero value for string will be returned func (o *RequestStatusMetadata) GetStatus() *string { @@ -59,8 +57,6 @@ func (o *RequestStatusMetadata) HasStatus() bool { return false } - - // GetMessage returns the Message field value // If the value is explicit nil, the zero value for string will be returned func (o *RequestStatusMetadata) GetMessage() *string { @@ -95,8 +91,6 @@ func (o *RequestStatusMetadata) HasMessage() bool { return false } - - // GetEtag returns the Etag field value // If the value is explicit nil, the zero value for string will be returned func (o *RequestStatusMetadata) GetEtag() *string { @@ -131,8 +125,6 @@ func (o *RequestStatusMetadata) HasEtag() bool { return false } - - // GetTargets returns the Targets field value // If the value is explicit nil, the zero value for []RequestTarget will be returned func (o *RequestStatusMetadata) GetTargets() *[]RequestTarget { @@ -167,29 +159,25 @@ func (o *RequestStatusMetadata) HasTargets() bool { return false } - func (o RequestStatusMetadata) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.Status != nil { toSerialize["status"] = o.Status } - if o.Message != nil { toSerialize["message"] = o.Message } - if o.Etag != nil { toSerialize["etag"] = o.Etag } - if o.Targets != nil { toSerialize["targets"] = o.Targets } - + return json.Marshal(toSerialize) } @@ -228,5 +216,3 @@ func (v *NullableRequestStatusMetadata) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_request_target.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_request_target.go index 5b5ec5657fff..dbd670b2f8fc 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_request_target.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_request_target.go @@ -17,11 +17,9 @@ import ( // RequestTarget struct for RequestTarget type RequestTarget struct { Target *ResourceReference `json:"target,omitempty"` - Status *string `json:"status,omitempty"` + Status *string `json:"status,omitempty"` } - - // GetTarget returns the Target field value // If the value is explicit nil, the zero value for ResourceReference will be returned func (o *RequestTarget) GetTarget() *ResourceReference { @@ -56,8 +54,6 @@ func (o *RequestTarget) HasTarget() bool { return false } - - // GetStatus returns the Status field value // If the value is explicit nil, the zero value for string will be returned func (o *RequestTarget) GetStatus() *string { @@ -92,19 +88,17 @@ func (o *RequestTarget) HasStatus() bool { return false } - func (o RequestTarget) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.Target != nil { toSerialize["target"] = o.Target } - if o.Status != nil { toSerialize["status"] = o.Status } - + return json.Marshal(toSerialize) } @@ -143,5 +137,3 @@ func (v *NullableRequestTarget) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_requests.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_requests.go index 9e7391d0fbd0..9dee3d2e4e5a 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_requests.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_requests.go @@ -26,8 +26,6 @@ type Requests struct { Items *[]Request `json:"items,omitempty"` } - - // GetId returns the Id field value // If the value is explicit nil, the zero value for string will be returned func (o *Requests) GetId() *string { @@ -62,8 +60,6 @@ func (o *Requests) HasId() bool { return false } - - // GetType returns the Type field value // If the value is explicit nil, the zero value for Type will be returned func (o *Requests) GetType() *Type { @@ -98,8 +94,6 @@ func (o *Requests) HasType() bool { return false } - - // GetHref returns the Href field value // If the value is explicit nil, the zero value for string will be returned func (o *Requests) GetHref() *string { @@ -134,8 +128,6 @@ func (o *Requests) HasHref() bool { return false } - - // GetItems returns the Items field value // If the value is explicit nil, the zero value for []Request will be returned func (o *Requests) GetItems() *[]Request { @@ -170,29 +162,25 @@ func (o *Requests) HasItems() bool { return false } - func (o Requests) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.Id != nil { toSerialize["id"] = o.Id } - if o.Type != nil { toSerialize["type"] = o.Type } - if o.Href != nil { toSerialize["href"] = o.Href } - if o.Items != nil { toSerialize["items"] = o.Items } - + return json.Marshal(toSerialize) } @@ -231,5 +219,3 @@ func (v *NullableRequests) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_resource.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_resource.go index cd343d07c65b..34e2f6f56ebb 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_resource.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_resource.go @@ -21,14 +21,12 @@ type Resource struct { // The type of the resource Type *Type `json:"type,omitempty"` // URL to the object representation (absolute path) - Href *string `json:"href,omitempty"` - Metadata *DatacenterElementMetadata `json:"metadata,omitempty"` - Properties *ResourceProperties `json:"properties,omitempty"` - Entities *ResourceEntities `json:"entities,omitempty"` + Href *string `json:"href,omitempty"` + Metadata *DatacenterElementMetadata `json:"metadata,omitempty"` + Properties *ResourceProperties `json:"properties,omitempty"` + Entities *ResourceEntities `json:"entities,omitempty"` } - - // GetId returns the Id field value // If the value is explicit nil, the zero value for string will be returned func (o *Resource) GetId() *string { @@ -63,8 +61,6 @@ func (o *Resource) HasId() bool { return false } - - // GetType returns the Type field value // If the value is explicit nil, the zero value for Type will be returned func (o *Resource) GetType() *Type { @@ -99,8 +95,6 @@ func (o *Resource) HasType() bool { return false } - - // GetHref returns the Href field value // If the value is explicit nil, the zero value for string will be returned func (o *Resource) GetHref() *string { @@ -135,8 +129,6 @@ func (o *Resource) HasHref() bool { return false } - - // GetMetadata returns the Metadata field value // If the value is explicit nil, the zero value for DatacenterElementMetadata will be returned func (o *Resource) GetMetadata() *DatacenterElementMetadata { @@ -171,8 +163,6 @@ func (o *Resource) HasMetadata() bool { return false } - - // GetProperties returns the Properties field value // If the value is explicit nil, the zero value for ResourceProperties will be returned func (o *Resource) GetProperties() *ResourceProperties { @@ -207,8 +197,6 @@ func (o *Resource) HasProperties() bool { return false } - - // GetEntities returns the Entities field value // If the value is explicit nil, the zero value for ResourceEntities will be returned func (o *Resource) GetEntities() *ResourceEntities { @@ -243,39 +231,33 @@ func (o *Resource) HasEntities() bool { return false } - func (o Resource) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.Id != nil { toSerialize["id"] = o.Id } - if o.Type != nil { toSerialize["type"] = o.Type } - if o.Href != nil { toSerialize["href"] = o.Href } - if o.Metadata != nil { toSerialize["metadata"] = o.Metadata } - if o.Properties != nil { toSerialize["properties"] = o.Properties } - if o.Entities != nil { toSerialize["entities"] = o.Entities } - + return json.Marshal(toSerialize) } @@ -314,5 +296,3 @@ func (v *NullableResource) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_resource_entities.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_resource_entities.go index 7b2457802999..7107160a0a25 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_resource_entities.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_resource_entities.go @@ -19,8 +19,6 @@ type ResourceEntities struct { Groups *ResourceGroups `json:"groups,omitempty"` } - - // GetGroups returns the Groups field value // If the value is explicit nil, the zero value for ResourceGroups will be returned func (o *ResourceEntities) GetGroups() *ResourceGroups { @@ -55,14 +53,13 @@ func (o *ResourceEntities) HasGroups() bool { return false } - func (o ResourceEntities) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.Groups != nil { toSerialize["groups"] = o.Groups } - + return json.Marshal(toSerialize) } @@ -101,5 +98,3 @@ func (v *NullableResourceEntities) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_resource_groups.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_resource_groups.go index 69332ef3d795..52c7972ecc43 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_resource_groups.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_resource_groups.go @@ -26,8 +26,6 @@ type ResourceGroups struct { Items *[]Resource `json:"items,omitempty"` } - - // GetId returns the Id field value // If the value is explicit nil, the zero value for string will be returned func (o *ResourceGroups) GetId() *string { @@ -62,8 +60,6 @@ func (o *ResourceGroups) HasId() bool { return false } - - // GetType returns the Type field value // If the value is explicit nil, the zero value for Type will be returned func (o *ResourceGroups) GetType() *Type { @@ -98,8 +94,6 @@ func (o *ResourceGroups) HasType() bool { return false } - - // GetHref returns the Href field value // If the value is explicit nil, the zero value for string will be returned func (o *ResourceGroups) GetHref() *string { @@ -134,8 +128,6 @@ func (o *ResourceGroups) HasHref() bool { return false } - - // GetItems returns the Items field value // If the value is explicit nil, the zero value for []Resource will be returned func (o *ResourceGroups) GetItems() *[]Resource { @@ -170,29 +162,25 @@ func (o *ResourceGroups) HasItems() bool { return false } - func (o ResourceGroups) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.Id != nil { toSerialize["id"] = o.Id } - if o.Type != nil { toSerialize["type"] = o.Type } - if o.Href != nil { toSerialize["href"] = o.Href } - if o.Items != nil { toSerialize["items"] = o.Items } - + return json.Marshal(toSerialize) } @@ -231,5 +219,3 @@ func (v *NullableResourceGroups) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_resource_limits.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_resource_limits.go index 014c6f67f420..f67e4dcff000 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_resource_limits.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_resource_limits.go @@ -52,8 +52,6 @@ type ResourceLimits struct { K8sClustersProvisioned *int32 `json:"k8sClustersProvisioned"` } - - // GetCoresPerServer returns the CoresPerServer field value // If the value is explicit nil, the zero value for int32 will be returned func (o *ResourceLimits) GetCoresPerServer() *int32 { @@ -88,8 +86,6 @@ func (o *ResourceLimits) HasCoresPerServer() bool { return false } - - // GetCoresPerContract returns the CoresPerContract field value // If the value is explicit nil, the zero value for int32 will be returned func (o *ResourceLimits) GetCoresPerContract() *int32 { @@ -124,8 +120,6 @@ func (o *ResourceLimits) HasCoresPerContract() bool { return false } - - // GetCoresProvisioned returns the CoresProvisioned field value // If the value is explicit nil, the zero value for int32 will be returned func (o *ResourceLimits) GetCoresProvisioned() *int32 { @@ -160,8 +154,6 @@ func (o *ResourceLimits) HasCoresProvisioned() bool { return false } - - // GetRamPerServer returns the RamPerServer field value // If the value is explicit nil, the zero value for int32 will be returned func (o *ResourceLimits) GetRamPerServer() *int32 { @@ -196,8 +188,6 @@ func (o *ResourceLimits) HasRamPerServer() bool { return false } - - // GetRamPerContract returns the RamPerContract field value // If the value is explicit nil, the zero value for int32 will be returned func (o *ResourceLimits) GetRamPerContract() *int32 { @@ -232,8 +222,6 @@ func (o *ResourceLimits) HasRamPerContract() bool { return false } - - // GetRamProvisioned returns the RamProvisioned field value // If the value is explicit nil, the zero value for int32 will be returned func (o *ResourceLimits) GetRamProvisioned() *int32 { @@ -268,8 +256,6 @@ func (o *ResourceLimits) HasRamProvisioned() bool { return false } - - // GetHddLimitPerVolume returns the HddLimitPerVolume field value // If the value is explicit nil, the zero value for int64 will be returned func (o *ResourceLimits) GetHddLimitPerVolume() *int64 { @@ -304,8 +290,6 @@ func (o *ResourceLimits) HasHddLimitPerVolume() bool { return false } - - // GetHddLimitPerContract returns the HddLimitPerContract field value // If the value is explicit nil, the zero value for int64 will be returned func (o *ResourceLimits) GetHddLimitPerContract() *int64 { @@ -340,8 +324,6 @@ func (o *ResourceLimits) HasHddLimitPerContract() bool { return false } - - // GetHddVolumeProvisioned returns the HddVolumeProvisioned field value // If the value is explicit nil, the zero value for int64 will be returned func (o *ResourceLimits) GetHddVolumeProvisioned() *int64 { @@ -376,8 +358,6 @@ func (o *ResourceLimits) HasHddVolumeProvisioned() bool { return false } - - // GetSsdLimitPerVolume returns the SsdLimitPerVolume field value // If the value is explicit nil, the zero value for int64 will be returned func (o *ResourceLimits) GetSsdLimitPerVolume() *int64 { @@ -412,8 +392,6 @@ func (o *ResourceLimits) HasSsdLimitPerVolume() bool { return false } - - // GetSsdLimitPerContract returns the SsdLimitPerContract field value // If the value is explicit nil, the zero value for int64 will be returned func (o *ResourceLimits) GetSsdLimitPerContract() *int64 { @@ -448,8 +426,6 @@ func (o *ResourceLimits) HasSsdLimitPerContract() bool { return false } - - // GetSsdVolumeProvisioned returns the SsdVolumeProvisioned field value // If the value is explicit nil, the zero value for int64 will be returned func (o *ResourceLimits) GetSsdVolumeProvisioned() *int64 { @@ -484,8 +460,6 @@ func (o *ResourceLimits) HasSsdVolumeProvisioned() bool { return false } - - // GetReservableIps returns the ReservableIps field value // If the value is explicit nil, the zero value for int32 will be returned func (o *ResourceLimits) GetReservableIps() *int32 { @@ -520,8 +494,6 @@ func (o *ResourceLimits) HasReservableIps() bool { return false } - - // GetReservedIpsOnContract returns the ReservedIpsOnContract field value // If the value is explicit nil, the zero value for int32 will be returned func (o *ResourceLimits) GetReservedIpsOnContract() *int32 { @@ -556,8 +528,6 @@ func (o *ResourceLimits) HasReservedIpsOnContract() bool { return false } - - // GetReservedIpsInUse returns the ReservedIpsInUse field value // If the value is explicit nil, the zero value for int32 will be returned func (o *ResourceLimits) GetReservedIpsInUse() *int32 { @@ -592,8 +562,6 @@ func (o *ResourceLimits) HasReservedIpsInUse() bool { return false } - - // GetK8sClusterLimitTotal returns the K8sClusterLimitTotal field value // If the value is explicit nil, the zero value for int32 will be returned func (o *ResourceLimits) GetK8sClusterLimitTotal() *int32 { @@ -628,8 +596,6 @@ func (o *ResourceLimits) HasK8sClusterLimitTotal() bool { return false } - - // GetK8sClustersProvisioned returns the K8sClustersProvisioned field value // If the value is explicit nil, the zero value for int32 will be returned func (o *ResourceLimits) GetK8sClustersProvisioned() *int32 { @@ -664,94 +630,77 @@ func (o *ResourceLimits) HasK8sClustersProvisioned() bool { return false } - func (o ResourceLimits) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.CoresPerServer != nil { toSerialize["coresPerServer"] = o.CoresPerServer } - if o.CoresPerContract != nil { toSerialize["coresPerContract"] = o.CoresPerContract } - if o.CoresProvisioned != nil { toSerialize["coresProvisioned"] = o.CoresProvisioned } - if o.RamPerServer != nil { toSerialize["ramPerServer"] = o.RamPerServer } - if o.RamPerContract != nil { toSerialize["ramPerContract"] = o.RamPerContract } - if o.RamProvisioned != nil { toSerialize["ramProvisioned"] = o.RamProvisioned } - if o.HddLimitPerVolume != nil { toSerialize["hddLimitPerVolume"] = o.HddLimitPerVolume } - if o.HddLimitPerContract != nil { toSerialize["hddLimitPerContract"] = o.HddLimitPerContract } - if o.HddVolumeProvisioned != nil { toSerialize["hddVolumeProvisioned"] = o.HddVolumeProvisioned } - if o.SsdLimitPerVolume != nil { toSerialize["ssdLimitPerVolume"] = o.SsdLimitPerVolume } - if o.SsdLimitPerContract != nil { toSerialize["ssdLimitPerContract"] = o.SsdLimitPerContract } - if o.SsdVolumeProvisioned != nil { toSerialize["ssdVolumeProvisioned"] = o.SsdVolumeProvisioned } - if o.ReservableIps != nil { toSerialize["reservableIps"] = o.ReservableIps } - if o.ReservedIpsOnContract != nil { toSerialize["reservedIpsOnContract"] = o.ReservedIpsOnContract } - if o.ReservedIpsInUse != nil { toSerialize["reservedIpsInUse"] = o.ReservedIpsInUse } - if o.K8sClusterLimitTotal != nil { toSerialize["k8sClusterLimitTotal"] = o.K8sClusterLimitTotal } - if o.K8sClustersProvisioned != nil { toSerialize["k8sClustersProvisioned"] = o.K8sClustersProvisioned } - + return json.Marshal(toSerialize) } @@ -790,5 +739,3 @@ func (v *NullableResourceLimits) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_resource_properties.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_resource_properties.go index cba2849bceda..7a0da4bbb316 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_resource_properties.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_resource_properties.go @@ -22,8 +22,6 @@ type ResourceProperties struct { SecAuthProtection *bool `json:"secAuthProtection,omitempty"` } - - // GetName returns the Name field value // If the value is explicit nil, the zero value for string will be returned func (o *ResourceProperties) GetName() *string { @@ -58,8 +56,6 @@ func (o *ResourceProperties) HasName() bool { return false } - - // GetSecAuthProtection returns the SecAuthProtection field value // If the value is explicit nil, the zero value for bool will be returned func (o *ResourceProperties) GetSecAuthProtection() *bool { @@ -94,19 +90,17 @@ func (o *ResourceProperties) HasSecAuthProtection() bool { return false } - func (o ResourceProperties) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.Name != nil { toSerialize["name"] = o.Name } - if o.SecAuthProtection != nil { toSerialize["secAuthProtection"] = o.SecAuthProtection } - + return json.Marshal(toSerialize) } @@ -145,5 +139,3 @@ func (v *NullableResourceProperties) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_resource_reference.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_resource_reference.go index 4fec97300a35..24f247550fec 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_resource_reference.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_resource_reference.go @@ -24,8 +24,6 @@ type ResourceReference struct { Href *string `json:"href,omitempty"` } - - // GetId returns the Id field value // If the value is explicit nil, the zero value for string will be returned func (o *ResourceReference) GetId() *string { @@ -60,8 +58,6 @@ func (o *ResourceReference) HasId() bool { return false } - - // GetType returns the Type field value // If the value is explicit nil, the zero value for Type will be returned func (o *ResourceReference) GetType() *Type { @@ -96,8 +92,6 @@ func (o *ResourceReference) HasType() bool { return false } - - // GetHref returns the Href field value // If the value is explicit nil, the zero value for string will be returned func (o *ResourceReference) GetHref() *string { @@ -132,24 +126,21 @@ func (o *ResourceReference) HasHref() bool { return false } - func (o ResourceReference) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.Id != nil { toSerialize["id"] = o.Id } - if o.Type != nil { toSerialize["type"] = o.Type } - if o.Href != nil { toSerialize["href"] = o.Href } - + return json.Marshal(toSerialize) } @@ -188,5 +179,3 @@ func (v *NullableResourceReference) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_resources.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_resources.go index acd1023a18fd..c6242faee9b2 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_resources.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_resources.go @@ -26,8 +26,6 @@ type Resources struct { Items *[]Resource `json:"items,omitempty"` } - - // GetId returns the Id field value // If the value is explicit nil, the zero value for string will be returned func (o *Resources) GetId() *string { @@ -62,8 +60,6 @@ func (o *Resources) HasId() bool { return false } - - // GetType returns the Type field value // If the value is explicit nil, the zero value for Type will be returned func (o *Resources) GetType() *Type { @@ -98,8 +94,6 @@ func (o *Resources) HasType() bool { return false } - - // GetHref returns the Href field value // If the value is explicit nil, the zero value for string will be returned func (o *Resources) GetHref() *string { @@ -134,8 +128,6 @@ func (o *Resources) HasHref() bool { return false } - - // GetItems returns the Items field value // If the value is explicit nil, the zero value for []Resource will be returned func (o *Resources) GetItems() *[]Resource { @@ -170,29 +162,25 @@ func (o *Resources) HasItems() bool { return false } - func (o Resources) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.Id != nil { toSerialize["id"] = o.Id } - if o.Type != nil { toSerialize["type"] = o.Type } - if o.Href != nil { toSerialize["href"] = o.Href } - if o.Items != nil { toSerialize["items"] = o.Items } - + return json.Marshal(toSerialize) } @@ -231,5 +219,3 @@ func (v *NullableResources) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_resources_users.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_resources_users.go index d03b15884ef7..25ecda4d57ee 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_resources_users.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_resources_users.go @@ -26,8 +26,6 @@ type ResourcesUsers struct { Items *[]Resource `json:"items,omitempty"` } - - // GetId returns the Id field value // If the value is explicit nil, the zero value for string will be returned func (o *ResourcesUsers) GetId() *string { @@ -62,8 +60,6 @@ func (o *ResourcesUsers) HasId() bool { return false } - - // GetType returns the Type field value // If the value is explicit nil, the zero value for Type will be returned func (o *ResourcesUsers) GetType() *Type { @@ -98,8 +94,6 @@ func (o *ResourcesUsers) HasType() bool { return false } - - // GetHref returns the Href field value // If the value is explicit nil, the zero value for string will be returned func (o *ResourcesUsers) GetHref() *string { @@ -134,8 +128,6 @@ func (o *ResourcesUsers) HasHref() bool { return false } - - // GetItems returns the Items field value // If the value is explicit nil, the zero value for []Resource will be returned func (o *ResourcesUsers) GetItems() *[]Resource { @@ -170,29 +162,25 @@ func (o *ResourcesUsers) HasItems() bool { return false } - func (o ResourcesUsers) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.Id != nil { toSerialize["id"] = o.Id } - if o.Type != nil { toSerialize["type"] = o.Type } - if o.Href != nil { toSerialize["href"] = o.Href } - if o.Items != nil { toSerialize["items"] = o.Items } - + return json.Marshal(toSerialize) } @@ -231,5 +219,3 @@ func (v *NullableResourcesUsers) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_s3_key.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_s3_key.go index fa8bfa5bcee9..7e2ebb0f3d67 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_s3_key.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_s3_key.go @@ -21,13 +21,11 @@ type S3Key struct { // The type of the resource Type *Type `json:"type,omitempty"` // URL to the object representation (absolute path) - Href *string `json:"href,omitempty"` - Metadata *S3KeyMetadata `json:"metadata,omitempty"` + Href *string `json:"href,omitempty"` + Metadata *S3KeyMetadata `json:"metadata,omitempty"` Properties *S3KeyProperties `json:"properties"` } - - // GetId returns the Id field value // If the value is explicit nil, the zero value for string will be returned func (o *S3Key) GetId() *string { @@ -62,8 +60,6 @@ func (o *S3Key) HasId() bool { return false } - - // GetType returns the Type field value // If the value is explicit nil, the zero value for Type will be returned func (o *S3Key) GetType() *Type { @@ -98,8 +94,6 @@ func (o *S3Key) HasType() bool { return false } - - // GetHref returns the Href field value // If the value is explicit nil, the zero value for string will be returned func (o *S3Key) GetHref() *string { @@ -134,8 +128,6 @@ func (o *S3Key) HasHref() bool { return false } - - // GetMetadata returns the Metadata field value // If the value is explicit nil, the zero value for S3KeyMetadata will be returned func (o *S3Key) GetMetadata() *S3KeyMetadata { @@ -170,8 +162,6 @@ func (o *S3Key) HasMetadata() bool { return false } - - // GetProperties returns the Properties field value // If the value is explicit nil, the zero value for S3KeyProperties will be returned func (o *S3Key) GetProperties() *S3KeyProperties { @@ -206,34 +196,29 @@ func (o *S3Key) HasProperties() bool { return false } - func (o S3Key) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.Id != nil { toSerialize["id"] = o.Id } - if o.Type != nil { toSerialize["type"] = o.Type } - if o.Href != nil { toSerialize["href"] = o.Href } - if o.Metadata != nil { toSerialize["metadata"] = o.Metadata } - if o.Properties != nil { toSerialize["properties"] = o.Properties } - + return json.Marshal(toSerialize) } @@ -272,5 +257,3 @@ func (v *NullableS3Key) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_s3_key_metadata.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_s3_key_metadata.go index e4bd9409a2a5..718abf8f515b 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_s3_key_metadata.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_s3_key_metadata.go @@ -17,14 +17,12 @@ import ( // S3KeyMetadata struct for S3KeyMetadata type S3KeyMetadata struct { - // Resource's Entity Tag as defined in http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.11 . Entity Tag is also added as an 'ETag response header to requests which don't use 'depth' parameter. + // Resource's Entity Tag as defined in http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.11 . Entity Tag is also added as an 'ETag response header to requests which don't use 'depth' parameter. Etag *string `json:"etag,omitempty"` // The time the S3 key was created CreatedDate *time.Time `json:"createdDate,omitempty"` } - - // GetEtag returns the Etag field value // If the value is explicit nil, the zero value for string will be returned func (o *S3KeyMetadata) GetEtag() *string { @@ -59,8 +57,6 @@ func (o *S3KeyMetadata) HasEtag() bool { return false } - - // GetCreatedDate returns the CreatedDate field value // If the value is explicit nil, the zero value for time.Time will be returned func (o *S3KeyMetadata) GetCreatedDate() *time.Time { @@ -95,19 +91,17 @@ func (o *S3KeyMetadata) HasCreatedDate() bool { return false } - func (o S3KeyMetadata) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.Etag != nil { toSerialize["etag"] = o.Etag } - if o.CreatedDate != nil { toSerialize["createdDate"] = o.CreatedDate } - + return json.Marshal(toSerialize) } @@ -146,5 +140,3 @@ func (v *NullableS3KeyMetadata) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_s3_key_properties.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_s3_key_properties.go index 3bad61c2caa4..52e733c8667b 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_s3_key_properties.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_s3_key_properties.go @@ -22,8 +22,6 @@ type S3KeyProperties struct { Active *bool `json:"active,omitempty"` } - - // GetSecretKey returns the SecretKey field value // If the value is explicit nil, the zero value for string will be returned func (o *S3KeyProperties) GetSecretKey() *string { @@ -58,8 +56,6 @@ func (o *S3KeyProperties) HasSecretKey() bool { return false } - - // GetActive returns the Active field value // If the value is explicit nil, the zero value for bool will be returned func (o *S3KeyProperties) GetActive() *bool { @@ -94,19 +90,17 @@ func (o *S3KeyProperties) HasActive() bool { return false } - func (o S3KeyProperties) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.SecretKey != nil { toSerialize["secretKey"] = o.SecretKey } - if o.Active != nil { toSerialize["active"] = o.Active } - + return json.Marshal(toSerialize) } @@ -145,5 +139,3 @@ func (v *NullableS3KeyProperties) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_s3_keys.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_s3_keys.go index 7de532659647..e1eebec9e051 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_s3_keys.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_s3_keys.go @@ -26,8 +26,6 @@ type S3Keys struct { Items *[]S3Key `json:"items,omitempty"` } - - // GetId returns the Id field value // If the value is explicit nil, the zero value for string will be returned func (o *S3Keys) GetId() *string { @@ -62,8 +60,6 @@ func (o *S3Keys) HasId() bool { return false } - - // GetType returns the Type field value // If the value is explicit nil, the zero value for Type will be returned func (o *S3Keys) GetType() *Type { @@ -98,8 +94,6 @@ func (o *S3Keys) HasType() bool { return false } - - // GetHref returns the Href field value // If the value is explicit nil, the zero value for string will be returned func (o *S3Keys) GetHref() *string { @@ -134,8 +128,6 @@ func (o *S3Keys) HasHref() bool { return false } - - // GetItems returns the Items field value // If the value is explicit nil, the zero value for []S3Key will be returned func (o *S3Keys) GetItems() *[]S3Key { @@ -170,29 +162,25 @@ func (o *S3Keys) HasItems() bool { return false } - func (o S3Keys) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.Id != nil { toSerialize["id"] = o.Id } - if o.Type != nil { toSerialize["type"] = o.Type } - if o.Href != nil { toSerialize["href"] = o.Href } - if o.Items != nil { toSerialize["items"] = o.Items } - + return json.Marshal(toSerialize) } @@ -231,5 +219,3 @@ func (v *NullableS3Keys) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_s3_object_storage_sso.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_s3_object_storage_sso.go index 3139ecc7ebec..1e75ee45e349 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_s3_object_storage_sso.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_s3_object_storage_sso.go @@ -20,8 +20,6 @@ type S3ObjectStorageSSO struct { SsoUrl *string `json:"ssoUrl,omitempty"` } - - // GetSsoUrl returns the SsoUrl field value // If the value is explicit nil, the zero value for string will be returned func (o *S3ObjectStorageSSO) GetSsoUrl() *string { @@ -56,14 +54,13 @@ func (o *S3ObjectStorageSSO) HasSsoUrl() bool { return false } - func (o S3ObjectStorageSSO) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.SsoUrl != nil { toSerialize["ssoUrl"] = o.SsoUrl } - + return json.Marshal(toSerialize) } @@ -102,5 +99,3 @@ func (v *NullableS3ObjectStorageSSO) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_server.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_server.go index 2373a6219ca7..789f0c3ad8cd 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_server.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_server.go @@ -21,14 +21,12 @@ type Server struct { // The type of object that has been created Type *Type `json:"type,omitempty"` // URL to the object representation (absolute path) - Href *string `json:"href,omitempty"` - Metadata *DatacenterElementMetadata `json:"metadata,omitempty"` - Properties *ServerProperties `json:"properties"` - Entities *ServerEntities `json:"entities,omitempty"` + Href *string `json:"href,omitempty"` + Metadata *DatacenterElementMetadata `json:"metadata,omitempty"` + Properties *ServerProperties `json:"properties"` + Entities *ServerEntities `json:"entities,omitempty"` } - - // GetId returns the Id field value // If the value is explicit nil, the zero value for string will be returned func (o *Server) GetId() *string { @@ -63,8 +61,6 @@ func (o *Server) HasId() bool { return false } - - // GetType returns the Type field value // If the value is explicit nil, the zero value for Type will be returned func (o *Server) GetType() *Type { @@ -99,8 +95,6 @@ func (o *Server) HasType() bool { return false } - - // GetHref returns the Href field value // If the value is explicit nil, the zero value for string will be returned func (o *Server) GetHref() *string { @@ -135,8 +129,6 @@ func (o *Server) HasHref() bool { return false } - - // GetMetadata returns the Metadata field value // If the value is explicit nil, the zero value for DatacenterElementMetadata will be returned func (o *Server) GetMetadata() *DatacenterElementMetadata { @@ -171,8 +163,6 @@ func (o *Server) HasMetadata() bool { return false } - - // GetProperties returns the Properties field value // If the value is explicit nil, the zero value for ServerProperties will be returned func (o *Server) GetProperties() *ServerProperties { @@ -207,8 +197,6 @@ func (o *Server) HasProperties() bool { return false } - - // GetEntities returns the Entities field value // If the value is explicit nil, the zero value for ServerEntities will be returned func (o *Server) GetEntities() *ServerEntities { @@ -243,39 +231,33 @@ func (o *Server) HasEntities() bool { return false } - func (o Server) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.Id != nil { toSerialize["id"] = o.Id } - if o.Type != nil { toSerialize["type"] = o.Type } - if o.Href != nil { toSerialize["href"] = o.Href } - if o.Metadata != nil { toSerialize["metadata"] = o.Metadata } - if o.Properties != nil { toSerialize["properties"] = o.Properties } - if o.Entities != nil { toSerialize["entities"] = o.Entities } - + return json.Marshal(toSerialize) } @@ -314,5 +296,3 @@ func (v *NullableServer) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_server_entities.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_server_entities.go index 7fc54192c30c..6a4aaccd6494 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_server_entities.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_server_entities.go @@ -16,13 +16,11 @@ import ( // ServerEntities struct for ServerEntities type ServerEntities struct { - Cdroms *Cdroms `json:"cdroms,omitempty"` + Cdroms *Cdroms `json:"cdroms,omitempty"` Volumes *AttachedVolumes `json:"volumes,omitempty"` - Nics *Nics `json:"nics,omitempty"` + Nics *Nics `json:"nics,omitempty"` } - - // GetCdroms returns the Cdroms field value // If the value is explicit nil, the zero value for Cdroms will be returned func (o *ServerEntities) GetCdroms() *Cdroms { @@ -57,8 +55,6 @@ func (o *ServerEntities) HasCdroms() bool { return false } - - // GetVolumes returns the Volumes field value // If the value is explicit nil, the zero value for AttachedVolumes will be returned func (o *ServerEntities) GetVolumes() *AttachedVolumes { @@ -93,8 +89,6 @@ func (o *ServerEntities) HasVolumes() bool { return false } - - // GetNics returns the Nics field value // If the value is explicit nil, the zero value for Nics will be returned func (o *ServerEntities) GetNics() *Nics { @@ -129,24 +123,21 @@ func (o *ServerEntities) HasNics() bool { return false } - func (o ServerEntities) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.Cdroms != nil { toSerialize["cdroms"] = o.Cdroms } - if o.Volumes != nil { toSerialize["volumes"] = o.Volumes } - if o.Nics != nil { toSerialize["nics"] = o.Nics } - + return json.Marshal(toSerialize) } @@ -185,5 +176,3 @@ func (v *NullableServerEntities) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_server_properties.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_server_properties.go index e24d6ea68eae..5e0d5f9aa4c3 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_server_properties.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_server_properties.go @@ -25,15 +25,13 @@ type ServerProperties struct { // The availability zone in which the server should exist AvailabilityZone *string `json:"availabilityZone,omitempty"` // Status of the virtual Machine - VmState *string `json:"vmState,omitempty"` - BootCdrom *ResourceReference `json:"bootCdrom,omitempty"` + VmState *string `json:"vmState,omitempty"` + BootCdrom *ResourceReference `json:"bootCdrom,omitempty"` BootVolume *ResourceReference `json:"bootVolume,omitempty"` // Cpu family of pserver CpuFamily *string `json:"cpuFamily,omitempty"` } - - // GetName returns the Name field value // If the value is explicit nil, the zero value for string will be returned func (o *ServerProperties) GetName() *string { @@ -68,8 +66,6 @@ func (o *ServerProperties) HasName() bool { return false } - - // GetCores returns the Cores field value // If the value is explicit nil, the zero value for int32 will be returned func (o *ServerProperties) GetCores() *int32 { @@ -104,8 +100,6 @@ func (o *ServerProperties) HasCores() bool { return false } - - // GetRam returns the Ram field value // If the value is explicit nil, the zero value for int32 will be returned func (o *ServerProperties) GetRam() *int32 { @@ -140,8 +134,6 @@ func (o *ServerProperties) HasRam() bool { return false } - - // GetAvailabilityZone returns the AvailabilityZone field value // If the value is explicit nil, the zero value for string will be returned func (o *ServerProperties) GetAvailabilityZone() *string { @@ -176,8 +168,6 @@ func (o *ServerProperties) HasAvailabilityZone() bool { return false } - - // GetVmState returns the VmState field value // If the value is explicit nil, the zero value for string will be returned func (o *ServerProperties) GetVmState() *string { @@ -212,8 +202,6 @@ func (o *ServerProperties) HasVmState() bool { return false } - - // GetBootCdrom returns the BootCdrom field value // If the value is explicit nil, the zero value for ResourceReference will be returned func (o *ServerProperties) GetBootCdrom() *ResourceReference { @@ -248,8 +236,6 @@ func (o *ServerProperties) HasBootCdrom() bool { return false } - - // GetBootVolume returns the BootVolume field value // If the value is explicit nil, the zero value for ResourceReference will be returned func (o *ServerProperties) GetBootVolume() *ResourceReference { @@ -284,8 +270,6 @@ func (o *ServerProperties) HasBootVolume() bool { return false } - - // GetCpuFamily returns the CpuFamily field value // If the value is explicit nil, the zero value for string will be returned func (o *ServerProperties) GetCpuFamily() *string { @@ -320,49 +304,41 @@ func (o *ServerProperties) HasCpuFamily() bool { return false } - func (o ServerProperties) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.Name != nil { toSerialize["name"] = o.Name } - if o.Cores != nil { toSerialize["cores"] = o.Cores } - if o.Ram != nil { toSerialize["ram"] = o.Ram } - if o.AvailabilityZone != nil { toSerialize["availabilityZone"] = o.AvailabilityZone } - if o.VmState != nil { toSerialize["vmState"] = o.VmState } - if o.BootCdrom != nil { toSerialize["bootCdrom"] = o.BootCdrom } - if o.BootVolume != nil { toSerialize["bootVolume"] = o.BootVolume } - if o.CpuFamily != nil { toSerialize["cpuFamily"] = o.CpuFamily } - + return json.Marshal(toSerialize) } @@ -401,5 +377,3 @@ func (v *NullableServerProperties) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_servers.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_servers.go index 0d0c3d24c678..7d67946a68d4 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_servers.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_servers.go @@ -26,8 +26,6 @@ type Servers struct { Items *[]Server `json:"items,omitempty"` } - - // GetId returns the Id field value // If the value is explicit nil, the zero value for string will be returned func (o *Servers) GetId() *string { @@ -62,8 +60,6 @@ func (o *Servers) HasId() bool { return false } - - // GetType returns the Type field value // If the value is explicit nil, the zero value for Type will be returned func (o *Servers) GetType() *Type { @@ -98,8 +94,6 @@ func (o *Servers) HasType() bool { return false } - - // GetHref returns the Href field value // If the value is explicit nil, the zero value for string will be returned func (o *Servers) GetHref() *string { @@ -134,8 +128,6 @@ func (o *Servers) HasHref() bool { return false } - - // GetItems returns the Items field value // If the value is explicit nil, the zero value for []Server will be returned func (o *Servers) GetItems() *[]Server { @@ -170,29 +162,25 @@ func (o *Servers) HasItems() bool { return false } - func (o Servers) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.Id != nil { toSerialize["id"] = o.Id } - if o.Type != nil { toSerialize["type"] = o.Type } - if o.Href != nil { toSerialize["href"] = o.Href } - if o.Items != nil { toSerialize["items"] = o.Items } - + return json.Marshal(toSerialize) } @@ -231,5 +219,3 @@ func (v *NullableServers) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_snapshot.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_snapshot.go index 15efa7ea086f..9deb6afabf1f 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_snapshot.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_snapshot.go @@ -21,13 +21,11 @@ type Snapshot struct { // The type of object that has been created Type *Type `json:"type,omitempty"` // URL to the object representation (absolute path) - Href *string `json:"href,omitempty"` - Metadata *DatacenterElementMetadata `json:"metadata,omitempty"` - Properties *SnapshotProperties `json:"properties"` + Href *string `json:"href,omitempty"` + Metadata *DatacenterElementMetadata `json:"metadata,omitempty"` + Properties *SnapshotProperties `json:"properties"` } - - // GetId returns the Id field value // If the value is explicit nil, the zero value for string will be returned func (o *Snapshot) GetId() *string { @@ -62,8 +60,6 @@ func (o *Snapshot) HasId() bool { return false } - - // GetType returns the Type field value // If the value is explicit nil, the zero value for Type will be returned func (o *Snapshot) GetType() *Type { @@ -98,8 +94,6 @@ func (o *Snapshot) HasType() bool { return false } - - // GetHref returns the Href field value // If the value is explicit nil, the zero value for string will be returned func (o *Snapshot) GetHref() *string { @@ -134,8 +128,6 @@ func (o *Snapshot) HasHref() bool { return false } - - // GetMetadata returns the Metadata field value // If the value is explicit nil, the zero value for DatacenterElementMetadata will be returned func (o *Snapshot) GetMetadata() *DatacenterElementMetadata { @@ -170,8 +162,6 @@ func (o *Snapshot) HasMetadata() bool { return false } - - // GetProperties returns the Properties field value // If the value is explicit nil, the zero value for SnapshotProperties will be returned func (o *Snapshot) GetProperties() *SnapshotProperties { @@ -206,34 +196,29 @@ func (o *Snapshot) HasProperties() bool { return false } - func (o Snapshot) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.Id != nil { toSerialize["id"] = o.Id } - if o.Type != nil { toSerialize["type"] = o.Type } - if o.Href != nil { toSerialize["href"] = o.Href } - if o.Metadata != nil { toSerialize["metadata"] = o.Metadata } - if o.Properties != nil { toSerialize["properties"] = o.Properties } - + return json.Marshal(toSerialize) } @@ -272,5 +257,3 @@ func (v *NullableSnapshot) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_snapshot_properties.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_snapshot_properties.go index 90f729b9602b..c27054a8c4b8 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_snapshot_properties.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_snapshot_properties.go @@ -20,7 +20,7 @@ type SnapshotProperties struct { Name *string `json:"name,omitempty"` // Human readable description Description *string `json:"description,omitempty"` - // Location of that image/snapshot. + // Location of that image/snapshot. Location *string `json:"location,omitempty"` // The size of the image in GB Size *float32 `json:"size,omitempty"` @@ -50,8 +50,6 @@ type SnapshotProperties struct { LicenceType *string `json:"licenceType,omitempty"` } - - // GetName returns the Name field value // If the value is explicit nil, the zero value for string will be returned func (o *SnapshotProperties) GetName() *string { @@ -86,8 +84,6 @@ func (o *SnapshotProperties) HasName() bool { return false } - - // GetDescription returns the Description field value // If the value is explicit nil, the zero value for string will be returned func (o *SnapshotProperties) GetDescription() *string { @@ -122,8 +118,6 @@ func (o *SnapshotProperties) HasDescription() bool { return false } - - // GetLocation returns the Location field value // If the value is explicit nil, the zero value for string will be returned func (o *SnapshotProperties) GetLocation() *string { @@ -158,8 +152,6 @@ func (o *SnapshotProperties) HasLocation() bool { return false } - - // GetSize returns the Size field value // If the value is explicit nil, the zero value for float32 will be returned func (o *SnapshotProperties) GetSize() *float32 { @@ -194,8 +186,6 @@ func (o *SnapshotProperties) HasSize() bool { return false } - - // GetSecAuthProtection returns the SecAuthProtection field value // If the value is explicit nil, the zero value for bool will be returned func (o *SnapshotProperties) GetSecAuthProtection() *bool { @@ -230,8 +220,6 @@ func (o *SnapshotProperties) HasSecAuthProtection() bool { return false } - - // GetCpuHotPlug returns the CpuHotPlug field value // If the value is explicit nil, the zero value for bool will be returned func (o *SnapshotProperties) GetCpuHotPlug() *bool { @@ -266,8 +254,6 @@ func (o *SnapshotProperties) HasCpuHotPlug() bool { return false } - - // GetCpuHotUnplug returns the CpuHotUnplug field value // If the value is explicit nil, the zero value for bool will be returned func (o *SnapshotProperties) GetCpuHotUnplug() *bool { @@ -302,8 +288,6 @@ func (o *SnapshotProperties) HasCpuHotUnplug() bool { return false } - - // GetRamHotPlug returns the RamHotPlug field value // If the value is explicit nil, the zero value for bool will be returned func (o *SnapshotProperties) GetRamHotPlug() *bool { @@ -338,8 +322,6 @@ func (o *SnapshotProperties) HasRamHotPlug() bool { return false } - - // GetRamHotUnplug returns the RamHotUnplug field value // If the value is explicit nil, the zero value for bool will be returned func (o *SnapshotProperties) GetRamHotUnplug() *bool { @@ -374,8 +356,6 @@ func (o *SnapshotProperties) HasRamHotUnplug() bool { return false } - - // GetNicHotPlug returns the NicHotPlug field value // If the value is explicit nil, the zero value for bool will be returned func (o *SnapshotProperties) GetNicHotPlug() *bool { @@ -410,8 +390,6 @@ func (o *SnapshotProperties) HasNicHotPlug() bool { return false } - - // GetNicHotUnplug returns the NicHotUnplug field value // If the value is explicit nil, the zero value for bool will be returned func (o *SnapshotProperties) GetNicHotUnplug() *bool { @@ -446,8 +424,6 @@ func (o *SnapshotProperties) HasNicHotUnplug() bool { return false } - - // GetDiscVirtioHotPlug returns the DiscVirtioHotPlug field value // If the value is explicit nil, the zero value for bool will be returned func (o *SnapshotProperties) GetDiscVirtioHotPlug() *bool { @@ -482,8 +458,6 @@ func (o *SnapshotProperties) HasDiscVirtioHotPlug() bool { return false } - - // GetDiscVirtioHotUnplug returns the DiscVirtioHotUnplug field value // If the value is explicit nil, the zero value for bool will be returned func (o *SnapshotProperties) GetDiscVirtioHotUnplug() *bool { @@ -518,8 +492,6 @@ func (o *SnapshotProperties) HasDiscVirtioHotUnplug() bool { return false } - - // GetDiscScsiHotPlug returns the DiscScsiHotPlug field value // If the value is explicit nil, the zero value for bool will be returned func (o *SnapshotProperties) GetDiscScsiHotPlug() *bool { @@ -554,8 +526,6 @@ func (o *SnapshotProperties) HasDiscScsiHotPlug() bool { return false } - - // GetDiscScsiHotUnplug returns the DiscScsiHotUnplug field value // If the value is explicit nil, the zero value for bool will be returned func (o *SnapshotProperties) GetDiscScsiHotUnplug() *bool { @@ -590,8 +560,6 @@ func (o *SnapshotProperties) HasDiscScsiHotUnplug() bool { return false } - - // GetLicenceType returns the LicenceType field value // If the value is explicit nil, the zero value for string will be returned func (o *SnapshotProperties) GetLicenceType() *string { @@ -626,89 +594,73 @@ func (o *SnapshotProperties) HasLicenceType() bool { return false } - func (o SnapshotProperties) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.Name != nil { toSerialize["name"] = o.Name } - if o.Description != nil { toSerialize["description"] = o.Description } - if o.Location != nil { toSerialize["location"] = o.Location } - if o.Size != nil { toSerialize["size"] = o.Size } - if o.SecAuthProtection != nil { toSerialize["secAuthProtection"] = o.SecAuthProtection } - if o.CpuHotPlug != nil { toSerialize["cpuHotPlug"] = o.CpuHotPlug } - if o.CpuHotUnplug != nil { toSerialize["cpuHotUnplug"] = o.CpuHotUnplug } - if o.RamHotPlug != nil { toSerialize["ramHotPlug"] = o.RamHotPlug } - if o.RamHotUnplug != nil { toSerialize["ramHotUnplug"] = o.RamHotUnplug } - if o.NicHotPlug != nil { toSerialize["nicHotPlug"] = o.NicHotPlug } - if o.NicHotUnplug != nil { toSerialize["nicHotUnplug"] = o.NicHotUnplug } - if o.DiscVirtioHotPlug != nil { toSerialize["discVirtioHotPlug"] = o.DiscVirtioHotPlug } - if o.DiscVirtioHotUnplug != nil { toSerialize["discVirtioHotUnplug"] = o.DiscVirtioHotUnplug } - if o.DiscScsiHotPlug != nil { toSerialize["discScsiHotPlug"] = o.DiscScsiHotPlug } - if o.DiscScsiHotUnplug != nil { toSerialize["discScsiHotUnplug"] = o.DiscScsiHotUnplug } - if o.LicenceType != nil { toSerialize["licenceType"] = o.LicenceType } - + return json.Marshal(toSerialize) } @@ -747,5 +699,3 @@ func (v *NullableSnapshotProperties) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_snapshots.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_snapshots.go index e40e5784b124..dcc159061300 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_snapshots.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_snapshots.go @@ -26,8 +26,6 @@ type Snapshots struct { Items *[]Snapshot `json:"items,omitempty"` } - - // GetId returns the Id field value // If the value is explicit nil, the zero value for string will be returned func (o *Snapshots) GetId() *string { @@ -62,8 +60,6 @@ func (o *Snapshots) HasId() bool { return false } - - // GetType returns the Type field value // If the value is explicit nil, the zero value for Type will be returned func (o *Snapshots) GetType() *Type { @@ -98,8 +94,6 @@ func (o *Snapshots) HasType() bool { return false } - - // GetHref returns the Href field value // If the value is explicit nil, the zero value for string will be returned func (o *Snapshots) GetHref() *string { @@ -134,8 +128,6 @@ func (o *Snapshots) HasHref() bool { return false } - - // GetItems returns the Items field value // If the value is explicit nil, the zero value for []Snapshot will be returned func (o *Snapshots) GetItems() *[]Snapshot { @@ -170,29 +162,25 @@ func (o *Snapshots) HasItems() bool { return false } - func (o Snapshots) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.Id != nil { toSerialize["id"] = o.Id } - if o.Type != nil { toSerialize["type"] = o.Type } - if o.Href != nil { toSerialize["href"] = o.Href } - if o.Items != nil { toSerialize["items"] = o.Items } - + return json.Marshal(toSerialize) } @@ -231,5 +219,3 @@ func (v *NullableSnapshots) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_type.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_type.go index d67ee7995c39..35ab1a2dddb0 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_type.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_type.go @@ -20,30 +20,30 @@ type Type string // List of Type const ( - DATACENTER Type = "datacenter" - SERVER Type = "server" - VOLUME Type = "volume" - NIC Type = "nic" - LOADBALANCER Type = "loadbalancer" - LOCATION Type = "location" - FIREWALL_RULE Type = "firewall-rule" - IMAGE Type = "image" - SNAPSHOT Type = "snapshot" - LAN Type = "lan" - IPBLOCK Type = "ipblock" - PCC Type = "pcc" - CONTRACT Type = "contract" - USER Type = "user" - GROUP Type = "group" - COLLECTION Type = "collection" - RESOURCE Type = "resource" - REQUEST Type = "request" + DATACENTER Type = "datacenter" + SERVER Type = "server" + VOLUME Type = "volume" + NIC Type = "nic" + LOADBALANCER Type = "loadbalancer" + LOCATION Type = "location" + FIREWALL_RULE Type = "firewall-rule" + IMAGE Type = "image" + SNAPSHOT Type = "snapshot" + LAN Type = "lan" + IPBLOCK Type = "ipblock" + PCC Type = "pcc" + CONTRACT Type = "contract" + USER Type = "user" + GROUP Type = "group" + COLLECTION Type = "collection" + RESOURCE Type = "resource" + REQUEST Type = "request" REQUEST_STATUS Type = "request-status" - S3KEY Type = "s3key" - BACKUPUNIT Type = "backupunit" - LABEL Type = "label" - K8S Type = "k8s" - NODEPOOL Type = "nodepool" + S3KEY Type = "s3key" + BACKUPUNIT Type = "backupunit" + LABEL Type = "label" + K8S Type = "k8s" + NODEPOOL Type = "nodepool" ) func (v *Type) UnmarshalJSON(src []byte) error { @@ -53,7 +53,7 @@ func (v *Type) UnmarshalJSON(src []byte) error { return err } enumTypeValue := Type(value) - for _, existing := range []Type{ "datacenter", "server", "volume", "nic", "loadbalancer", "location", "firewall-rule", "image", "snapshot", "lan", "ipblock", "pcc", "contract", "user", "group", "collection", "resource", "request", "request-status", "s3key", "backupunit", "label", "k8s", "nodepool", } { + for _, existing := range []Type{"datacenter", "server", "volume", "nic", "loadbalancer", "location", "firewall-rule", "image", "snapshot", "lan", "ipblock", "pcc", "contract", "user", "group", "collection", "resource", "request", "request-status", "s3key", "backupunit", "label", "k8s", "nodepool"} { if existing == enumTypeValue { *v = enumTypeValue return nil @@ -103,4 +103,3 @@ func (v *NullableType) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_user.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_user.go index b4b195472d90..76646d2c038c 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_user.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_user.go @@ -21,14 +21,12 @@ type User struct { // The type of object that has been created Type *Type `json:"type,omitempty"` // URL to the object representation (absolute path) - Href *string `json:"href,omitempty"` - Metadata *UserMetadata `json:"metadata,omitempty"` + Href *string `json:"href,omitempty"` + Metadata *UserMetadata `json:"metadata,omitempty"` Properties *UserProperties `json:"properties"` - Entities *UsersEntities `json:"entities,omitempty"` + Entities *UsersEntities `json:"entities,omitempty"` } - - // GetId returns the Id field value // If the value is explicit nil, the zero value for string will be returned func (o *User) GetId() *string { @@ -63,8 +61,6 @@ func (o *User) HasId() bool { return false } - - // GetType returns the Type field value // If the value is explicit nil, the zero value for Type will be returned func (o *User) GetType() *Type { @@ -99,8 +95,6 @@ func (o *User) HasType() bool { return false } - - // GetHref returns the Href field value // If the value is explicit nil, the zero value for string will be returned func (o *User) GetHref() *string { @@ -135,8 +129,6 @@ func (o *User) HasHref() bool { return false } - - // GetMetadata returns the Metadata field value // If the value is explicit nil, the zero value for UserMetadata will be returned func (o *User) GetMetadata() *UserMetadata { @@ -171,8 +163,6 @@ func (o *User) HasMetadata() bool { return false } - - // GetProperties returns the Properties field value // If the value is explicit nil, the zero value for UserProperties will be returned func (o *User) GetProperties() *UserProperties { @@ -207,8 +197,6 @@ func (o *User) HasProperties() bool { return false } - - // GetEntities returns the Entities field value // If the value is explicit nil, the zero value for UsersEntities will be returned func (o *User) GetEntities() *UsersEntities { @@ -243,39 +231,33 @@ func (o *User) HasEntities() bool { return false } - func (o User) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.Id != nil { toSerialize["id"] = o.Id } - if o.Type != nil { toSerialize["type"] = o.Type } - if o.Href != nil { toSerialize["href"] = o.Href } - if o.Metadata != nil { toSerialize["metadata"] = o.Metadata } - if o.Properties != nil { toSerialize["properties"] = o.Properties } - if o.Entities != nil { toSerialize["entities"] = o.Entities } - + return json.Marshal(toSerialize) } @@ -314,5 +296,3 @@ func (v *NullableUser) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_user_metadata.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_user_metadata.go index 1cbb8e590718..f6d02208a3c6 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_user_metadata.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_user_metadata.go @@ -17,7 +17,7 @@ import ( // UserMetadata struct for UserMetadata type UserMetadata struct { - // Resource's Entity Tag as defined in http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.11 . Entity Tag is also added as an 'ETag response header to requests which don't use 'depth' parameter. + // Resource's Entity Tag as defined in http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.11 . Entity Tag is also added as an 'ETag response header to requests which don't use 'depth' parameter. Etag *string `json:"etag,omitempty"` // time of creation of the user CreatedDate *time.Time `json:"createdDate,omitempty"` @@ -25,8 +25,6 @@ type UserMetadata struct { LastLogin *time.Time `json:"lastLogin,omitempty"` } - - // GetEtag returns the Etag field value // If the value is explicit nil, the zero value for string will be returned func (o *UserMetadata) GetEtag() *string { @@ -61,8 +59,6 @@ func (o *UserMetadata) HasEtag() bool { return false } - - // GetCreatedDate returns the CreatedDate field value // If the value is explicit nil, the zero value for time.Time will be returned func (o *UserMetadata) GetCreatedDate() *time.Time { @@ -97,8 +93,6 @@ func (o *UserMetadata) HasCreatedDate() bool { return false } - - // GetLastLogin returns the LastLogin field value // If the value is explicit nil, the zero value for time.Time will be returned func (o *UserMetadata) GetLastLogin() *time.Time { @@ -133,24 +127,21 @@ func (o *UserMetadata) HasLastLogin() bool { return false } - func (o UserMetadata) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.Etag != nil { toSerialize["etag"] = o.Etag } - if o.CreatedDate != nil { toSerialize["createdDate"] = o.CreatedDate } - if o.LastLogin != nil { toSerialize["lastLogin"] = o.LastLogin } - + return json.Marshal(toSerialize) } @@ -189,5 +180,3 @@ func (v *NullableUserMetadata) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_user_properties.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_user_properties.go index 5bd16244081d..c27b14742a38 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_user_properties.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_user_properties.go @@ -34,8 +34,6 @@ type UserProperties struct { Password *string `json:"password,omitempty"` } - - // GetFirstname returns the Firstname field value // If the value is explicit nil, the zero value for string will be returned func (o *UserProperties) GetFirstname() *string { @@ -70,8 +68,6 @@ func (o *UserProperties) HasFirstname() bool { return false } - - // GetLastname returns the Lastname field value // If the value is explicit nil, the zero value for string will be returned func (o *UserProperties) GetLastname() *string { @@ -106,8 +102,6 @@ func (o *UserProperties) HasLastname() bool { return false } - - // GetEmail returns the Email field value // If the value is explicit nil, the zero value for string will be returned func (o *UserProperties) GetEmail() *string { @@ -142,8 +136,6 @@ func (o *UserProperties) HasEmail() bool { return false } - - // GetAdministrator returns the Administrator field value // If the value is explicit nil, the zero value for bool will be returned func (o *UserProperties) GetAdministrator() *bool { @@ -178,8 +170,6 @@ func (o *UserProperties) HasAdministrator() bool { return false } - - // GetForceSecAuth returns the ForceSecAuth field value // If the value is explicit nil, the zero value for bool will be returned func (o *UserProperties) GetForceSecAuth() *bool { @@ -214,8 +204,6 @@ func (o *UserProperties) HasForceSecAuth() bool { return false } - - // GetSecAuthActive returns the SecAuthActive field value // If the value is explicit nil, the zero value for bool will be returned func (o *UserProperties) GetSecAuthActive() *bool { @@ -250,8 +238,6 @@ func (o *UserProperties) HasSecAuthActive() bool { return false } - - // GetS3CanonicalUserId returns the S3CanonicalUserId field value // If the value is explicit nil, the zero value for string will be returned func (o *UserProperties) GetS3CanonicalUserId() *string { @@ -286,8 +272,6 @@ func (o *UserProperties) HasS3CanonicalUserId() bool { return false } - - // GetPassword returns the Password field value // If the value is explicit nil, the zero value for string will be returned func (o *UserProperties) GetPassword() *string { @@ -322,49 +306,41 @@ func (o *UserProperties) HasPassword() bool { return false } - func (o UserProperties) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.Firstname != nil { toSerialize["firstname"] = o.Firstname } - if o.Lastname != nil { toSerialize["lastname"] = o.Lastname } - if o.Email != nil { toSerialize["email"] = o.Email } - if o.Administrator != nil { toSerialize["administrator"] = o.Administrator } - if o.ForceSecAuth != nil { toSerialize["forceSecAuth"] = o.ForceSecAuth } - if o.SecAuthActive != nil { toSerialize["secAuthActive"] = o.SecAuthActive } - if o.S3CanonicalUserId != nil { toSerialize["s3CanonicalUserId"] = o.S3CanonicalUserId } - if o.Password != nil { toSerialize["password"] = o.Password } - + return json.Marshal(toSerialize) } @@ -403,5 +379,3 @@ func (v *NullableUserProperties) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_users.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_users.go index 9068d95b3293..9f586bebdd5c 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_users.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_users.go @@ -26,8 +26,6 @@ type Users struct { Items *[]User `json:"items,omitempty"` } - - // GetId returns the Id field value // If the value is explicit nil, the zero value for string will be returned func (o *Users) GetId() *string { @@ -62,8 +60,6 @@ func (o *Users) HasId() bool { return false } - - // GetType returns the Type field value // If the value is explicit nil, the zero value for Type will be returned func (o *Users) GetType() *Type { @@ -98,8 +94,6 @@ func (o *Users) HasType() bool { return false } - - // GetHref returns the Href field value // If the value is explicit nil, the zero value for string will be returned func (o *Users) GetHref() *string { @@ -134,8 +128,6 @@ func (o *Users) HasHref() bool { return false } - - // GetItems returns the Items field value // If the value is explicit nil, the zero value for []User will be returned func (o *Users) GetItems() *[]User { @@ -170,29 +162,25 @@ func (o *Users) HasItems() bool { return false } - func (o Users) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.Id != nil { toSerialize["id"] = o.Id } - if o.Type != nil { toSerialize["type"] = o.Type } - if o.Href != nil { toSerialize["href"] = o.Href } - if o.Items != nil { toSerialize["items"] = o.Items } - + return json.Marshal(toSerialize) } @@ -231,5 +219,3 @@ func (v *NullableUsers) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_users_entities.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_users_entities.go index 41d547aa10b3..69661628ed7f 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_users_entities.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_users_entities.go @@ -16,12 +16,10 @@ import ( // UsersEntities struct for UsersEntities type UsersEntities struct { - Owns *ResourcesUsers `json:"owns,omitempty"` - Groups *GroupUsers `json:"groups,omitempty"` + Owns *ResourcesUsers `json:"owns,omitempty"` + Groups *GroupUsers `json:"groups,omitempty"` } - - // GetOwns returns the Owns field value // If the value is explicit nil, the zero value for ResourcesUsers will be returned func (o *UsersEntities) GetOwns() *ResourcesUsers { @@ -56,8 +54,6 @@ func (o *UsersEntities) HasOwns() bool { return false } - - // GetGroups returns the Groups field value // If the value is explicit nil, the zero value for GroupUsers will be returned func (o *UsersEntities) GetGroups() *GroupUsers { @@ -92,19 +88,17 @@ func (o *UsersEntities) HasGroups() bool { return false } - func (o UsersEntities) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.Owns != nil { toSerialize["owns"] = o.Owns } - if o.Groups != nil { toSerialize["groups"] = o.Groups } - + return json.Marshal(toSerialize) } @@ -143,5 +137,3 @@ func (v *NullableUsersEntities) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_volume.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_volume.go index 15741a600bd9..b97bbad1e502 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_volume.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_volume.go @@ -21,13 +21,11 @@ type Volume struct { // The type of object that has been created Type *Type `json:"type,omitempty"` // URL to the object representation (absolute path) - Href *string `json:"href,omitempty"` - Metadata *DatacenterElementMetadata `json:"metadata,omitempty"` - Properties *VolumeProperties `json:"properties"` + Href *string `json:"href,omitempty"` + Metadata *DatacenterElementMetadata `json:"metadata,omitempty"` + Properties *VolumeProperties `json:"properties"` } - - // GetId returns the Id field value // If the value is explicit nil, the zero value for string will be returned func (o *Volume) GetId() *string { @@ -62,8 +60,6 @@ func (o *Volume) HasId() bool { return false } - - // GetType returns the Type field value // If the value is explicit nil, the zero value for Type will be returned func (o *Volume) GetType() *Type { @@ -98,8 +94,6 @@ func (o *Volume) HasType() bool { return false } - - // GetHref returns the Href field value // If the value is explicit nil, the zero value for string will be returned func (o *Volume) GetHref() *string { @@ -134,8 +128,6 @@ func (o *Volume) HasHref() bool { return false } - - // GetMetadata returns the Metadata field value // If the value is explicit nil, the zero value for DatacenterElementMetadata will be returned func (o *Volume) GetMetadata() *DatacenterElementMetadata { @@ -170,8 +162,6 @@ func (o *Volume) HasMetadata() bool { return false } - - // GetProperties returns the Properties field value // If the value is explicit nil, the zero value for VolumeProperties will be returned func (o *Volume) GetProperties() *VolumeProperties { @@ -206,34 +196,29 @@ func (o *Volume) HasProperties() bool { return false } - func (o Volume) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.Id != nil { toSerialize["id"] = o.Id } - if o.Type != nil { toSerialize["type"] = o.Type } - if o.Href != nil { toSerialize["href"] = o.Href } - if o.Metadata != nil { toSerialize["metadata"] = o.Metadata } - if o.Properties != nil { toSerialize["properties"] = o.Properties } - + return json.Marshal(toSerialize) } @@ -272,5 +257,3 @@ func (v *NullableVolume) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_volume_properties.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_volume_properties.go index 0539bb3ff461..78ed960d5742 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_volume_properties.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_volume_properties.go @@ -25,7 +25,7 @@ type VolumeProperties struct { // The availability zone in which the volume should exist. The storage volume will be provisioned on as less physical storages as possible but cannot guarantee upfront AvailabilityZone *string `json:"availabilityZone,omitempty"` // Image or snapshot ID to be used as template for this volume - Image *string `json:"image,omitempty"` + Image *string `json:"image,omitempty"` ImageAlias *string `json:"imageAlias,omitempty"` // Initial password to be set for installed OS. Works with public images only. Not modifiable, forbidden in update requests. Password rules allows all characters from a-z, A-Z, 0-9 ImagePassword *string `json:"imagePassword,omitempty"` @@ -53,8 +53,6 @@ type VolumeProperties struct { BackupunitId *string `json:"backupunitId,omitempty"` } - - // GetName returns the Name field value // If the value is explicit nil, the zero value for string will be returned func (o *VolumeProperties) GetName() *string { @@ -89,8 +87,6 @@ func (o *VolumeProperties) HasName() bool { return false } - - // GetType returns the Type field value // If the value is explicit nil, the zero value for string will be returned func (o *VolumeProperties) GetType() *string { @@ -125,8 +121,6 @@ func (o *VolumeProperties) HasType() bool { return false } - - // GetSize returns the Size field value // If the value is explicit nil, the zero value for float32 will be returned func (o *VolumeProperties) GetSize() *float32 { @@ -161,8 +155,6 @@ func (o *VolumeProperties) HasSize() bool { return false } - - // GetAvailabilityZone returns the AvailabilityZone field value // If the value is explicit nil, the zero value for string will be returned func (o *VolumeProperties) GetAvailabilityZone() *string { @@ -197,8 +189,6 @@ func (o *VolumeProperties) HasAvailabilityZone() bool { return false } - - // GetImage returns the Image field value // If the value is explicit nil, the zero value for string will be returned func (o *VolumeProperties) GetImage() *string { @@ -233,8 +223,6 @@ func (o *VolumeProperties) HasImage() bool { return false } - - // GetImageAlias returns the ImageAlias field value // If the value is explicit nil, the zero value for string will be returned func (o *VolumeProperties) GetImageAlias() *string { @@ -269,8 +257,6 @@ func (o *VolumeProperties) HasImageAlias() bool { return false } - - // GetImagePassword returns the ImagePassword field value // If the value is explicit nil, the zero value for string will be returned func (o *VolumeProperties) GetImagePassword() *string { @@ -305,8 +291,6 @@ func (o *VolumeProperties) HasImagePassword() bool { return false } - - // GetSshKeys returns the SshKeys field value // If the value is explicit nil, the zero value for []string will be returned func (o *VolumeProperties) GetSshKeys() *[]string { @@ -341,8 +325,6 @@ func (o *VolumeProperties) HasSshKeys() bool { return false } - - // GetBus returns the Bus field value // If the value is explicit nil, the zero value for string will be returned func (o *VolumeProperties) GetBus() *string { @@ -377,8 +359,6 @@ func (o *VolumeProperties) HasBus() bool { return false } - - // GetLicenceType returns the LicenceType field value // If the value is explicit nil, the zero value for string will be returned func (o *VolumeProperties) GetLicenceType() *string { @@ -413,8 +393,6 @@ func (o *VolumeProperties) HasLicenceType() bool { return false } - - // GetCpuHotPlug returns the CpuHotPlug field value // If the value is explicit nil, the zero value for bool will be returned func (o *VolumeProperties) GetCpuHotPlug() *bool { @@ -449,8 +427,6 @@ func (o *VolumeProperties) HasCpuHotPlug() bool { return false } - - // GetRamHotPlug returns the RamHotPlug field value // If the value is explicit nil, the zero value for bool will be returned func (o *VolumeProperties) GetRamHotPlug() *bool { @@ -485,8 +461,6 @@ func (o *VolumeProperties) HasRamHotPlug() bool { return false } - - // GetNicHotPlug returns the NicHotPlug field value // If the value is explicit nil, the zero value for bool will be returned func (o *VolumeProperties) GetNicHotPlug() *bool { @@ -521,8 +495,6 @@ func (o *VolumeProperties) HasNicHotPlug() bool { return false } - - // GetNicHotUnplug returns the NicHotUnplug field value // If the value is explicit nil, the zero value for bool will be returned func (o *VolumeProperties) GetNicHotUnplug() *bool { @@ -557,8 +529,6 @@ func (o *VolumeProperties) HasNicHotUnplug() bool { return false } - - // GetDiscVirtioHotPlug returns the DiscVirtioHotPlug field value // If the value is explicit nil, the zero value for bool will be returned func (o *VolumeProperties) GetDiscVirtioHotPlug() *bool { @@ -593,8 +563,6 @@ func (o *VolumeProperties) HasDiscVirtioHotPlug() bool { return false } - - // GetDiscVirtioHotUnplug returns the DiscVirtioHotUnplug field value // If the value is explicit nil, the zero value for bool will be returned func (o *VolumeProperties) GetDiscVirtioHotUnplug() *bool { @@ -629,8 +597,6 @@ func (o *VolumeProperties) HasDiscVirtioHotUnplug() bool { return false } - - // GetDeviceNumber returns the DeviceNumber field value // If the value is explicit nil, the zero value for int64 will be returned func (o *VolumeProperties) GetDeviceNumber() *int64 { @@ -665,8 +631,6 @@ func (o *VolumeProperties) HasDeviceNumber() bool { return false } - - // GetBackupunitId returns the BackupunitId field value // If the value is explicit nil, the zero value for string will be returned func (o *VolumeProperties) GetBackupunitId() *string { @@ -701,99 +665,81 @@ func (o *VolumeProperties) HasBackupunitId() bool { return false } - func (o VolumeProperties) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.Name != nil { toSerialize["name"] = o.Name } - if o.Type != nil { toSerialize["type"] = o.Type } - if o.Size != nil { toSerialize["size"] = o.Size } - if o.AvailabilityZone != nil { toSerialize["availabilityZone"] = o.AvailabilityZone } - if o.Image != nil { toSerialize["image"] = o.Image } - if o.ImageAlias != nil { toSerialize["imageAlias"] = o.ImageAlias } - if o.ImagePassword != nil { toSerialize["imagePassword"] = o.ImagePassword } - if o.SshKeys != nil { toSerialize["sshKeys"] = o.SshKeys } - if o.Bus != nil { toSerialize["bus"] = o.Bus } - if o.LicenceType != nil { toSerialize["licenceType"] = o.LicenceType } - if o.CpuHotPlug != nil { toSerialize["cpuHotPlug"] = o.CpuHotPlug } - if o.RamHotPlug != nil { toSerialize["ramHotPlug"] = o.RamHotPlug } - if o.NicHotPlug != nil { toSerialize["nicHotPlug"] = o.NicHotPlug } - if o.NicHotUnplug != nil { toSerialize["nicHotUnplug"] = o.NicHotUnplug } - if o.DiscVirtioHotPlug != nil { toSerialize["discVirtioHotPlug"] = o.DiscVirtioHotPlug } - if o.DiscVirtioHotUnplug != nil { toSerialize["discVirtioHotUnplug"] = o.DiscVirtioHotUnplug } - if o.DeviceNumber != nil { toSerialize["deviceNumber"] = o.DeviceNumber } - if o.BackupunitId != nil { toSerialize["backupunitId"] = o.BackupunitId } - + return json.Marshal(toSerialize) } @@ -832,5 +778,3 @@ func (v *NullableVolumeProperties) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_volumes.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_volumes.go index 6bfa6fc94b3d..5ffd72d576a5 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_volumes.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/model_volumes.go @@ -26,8 +26,6 @@ type Volumes struct { Items *[]Volume `json:"items,omitempty"` } - - // GetId returns the Id field value // If the value is explicit nil, the zero value for string will be returned func (o *Volumes) GetId() *string { @@ -62,8 +60,6 @@ func (o *Volumes) HasId() bool { return false } - - // GetType returns the Type field value // If the value is explicit nil, the zero value for Type will be returned func (o *Volumes) GetType() *Type { @@ -98,8 +94,6 @@ func (o *Volumes) HasType() bool { return false } - - // GetHref returns the Href field value // If the value is explicit nil, the zero value for string will be returned func (o *Volumes) GetHref() *string { @@ -134,8 +128,6 @@ func (o *Volumes) HasHref() bool { return false } - - // GetItems returns the Items field value // If the value is explicit nil, the zero value for []Volume will be returned func (o *Volumes) GetItems() *[]Volume { @@ -170,29 +162,25 @@ func (o *Volumes) HasItems() bool { return false } - func (o Volumes) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.Id != nil { toSerialize["id"] = o.Id } - if o.Type != nil { toSerialize["type"] = o.Type } - if o.Href != nil { toSerialize["href"] = o.Href } - if o.Items != nil { toSerialize["items"] = o.Items } - + return json.Marshal(toSerialize) } @@ -231,5 +219,3 @@ func (v *NullableVolumes) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/utils.go b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/utils.go index 50679f586580..bf95abcc8b59 100644 --- a/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/utils.go +++ b/cluster-autoscaler/cloudprovider/ionoscloud/ionos-cloud-sdk-go/utils.go @@ -75,7 +75,6 @@ func (v *NullableBool) UnmarshalJSON(src []byte) error { return json.Unmarshal(src, &v.value) } - type NullableInt struct { value *int isSet bool @@ -112,7 +111,6 @@ func (v *NullableInt) UnmarshalJSON(src []byte) error { return json.Unmarshal(src, &v.value) } - type NullableInt32 struct { value *int32 isSet bool @@ -149,7 +147,6 @@ func (v *NullableInt32) UnmarshalJSON(src []byte) error { return json.Unmarshal(src, &v.value) } - type NullableInt64 struct { value *int64 isSet bool @@ -186,7 +183,6 @@ func (v *NullableInt64) UnmarshalJSON(src []byte) error { return json.Unmarshal(src, &v.value) } - type NullableFloat32 struct { value *float32 isSet bool @@ -223,7 +219,6 @@ func (v *NullableFloat32) UnmarshalJSON(src []byte) error { return json.Unmarshal(src, &v.value) } - type NullableFloat64 struct { value *float64 isSet bool @@ -260,7 +255,6 @@ func (v *NullableFloat64) UnmarshalJSON(src []byte) error { return json.Unmarshal(src, &v.value) } - type NullableString struct { value *string isSet bool @@ -297,7 +291,6 @@ func (v *NullableString) UnmarshalJSON(src []byte) error { return json.Unmarshal(src, &v.value) } - type NullableTime struct { value *time.Time isSet bool diff --git a/cluster-autoscaler/cloudprovider/magnum/gophercloud/openstack/orchestration/v1/stacks/utils.go b/cluster-autoscaler/cloudprovider/magnum/gophercloud/openstack/orchestration/v1/stacks/utils.go index 1e30876fc628..2dab661729dc 100644 --- a/cluster-autoscaler/cloudprovider/magnum/gophercloud/openstack/orchestration/v1/stacks/utils.go +++ b/cluster-autoscaler/cloudprovider/magnum/gophercloud/openstack/orchestration/v1/stacks/utils.go @@ -9,8 +9,8 @@ import ( "reflect" "strings" - "k8s.io/autoscaler/cluster-autoscaler/cloudprovider/magnum/gophercloud" yaml "gopkg.in/yaml.v2" + "k8s.io/autoscaler/cluster-autoscaler/cloudprovider/magnum/gophercloud" ) // Client is an interface that expects a Get method similar to http.Get. This diff --git a/cluster-autoscaler/cloudprovider/magnum/gophercloud/pagination/linked.go b/cluster-autoscaler/cloudprovider/magnum/gophercloud/pagination/linked.go index b258bb6b4593..c66fb310fe68 100644 --- a/cluster-autoscaler/cloudprovider/magnum/gophercloud/pagination/linked.go +++ b/cluster-autoscaler/cloudprovider/magnum/gophercloud/pagination/linked.go @@ -40,7 +40,7 @@ func (current LinkedPageBase) NextPageURL() (string, error) { } for { - key, path = path[0], path[1:len(path)] + key, path = path[0], path[1:] value, ok := submap[key] if !ok { diff --git a/vertical-pod-autoscaler/pkg/apis/autoscaling.k8s.io/v1/zz_generated.deepcopy.go b/vertical-pod-autoscaler/pkg/apis/autoscaling.k8s.io/v1/zz_generated.deepcopy.go index 83691931cac4..9cea0376dd91 100644 --- a/vertical-pod-autoscaler/pkg/apis/autoscaling.k8s.io/v1/zz_generated.deepcopy.go +++ b/vertical-pod-autoscaler/pkg/apis/autoscaling.k8s.io/v1/zz_generated.deepcopy.go @@ -1,3 +1,4 @@ +//go:build !ignore_autogenerated // +build !ignore_autogenerated /* diff --git a/vertical-pod-autoscaler/pkg/apis/autoscaling.k8s.io/v1beta1/zz_generated.deepcopy.go b/vertical-pod-autoscaler/pkg/apis/autoscaling.k8s.io/v1beta1/zz_generated.deepcopy.go index 74a0f94d1be2..05f55dd59caa 100644 --- a/vertical-pod-autoscaler/pkg/apis/autoscaling.k8s.io/v1beta1/zz_generated.deepcopy.go +++ b/vertical-pod-autoscaler/pkg/apis/autoscaling.k8s.io/v1beta1/zz_generated.deepcopy.go @@ -1,3 +1,4 @@ +//go:build !ignore_autogenerated // +build !ignore_autogenerated /* diff --git a/vertical-pod-autoscaler/pkg/apis/autoscaling.k8s.io/v1beta2/zz_generated.deepcopy.go b/vertical-pod-autoscaler/pkg/apis/autoscaling.k8s.io/v1beta2/zz_generated.deepcopy.go index 255d419bd9e1..e6aac14e4b49 100644 --- a/vertical-pod-autoscaler/pkg/apis/autoscaling.k8s.io/v1beta2/zz_generated.deepcopy.go +++ b/vertical-pod-autoscaler/pkg/apis/autoscaling.k8s.io/v1beta2/zz_generated.deepcopy.go @@ -1,3 +1,4 @@ +//go:build !ignore_autogenerated // +build !ignore_autogenerated /* diff --git a/vertical-pod-autoscaler/pkg/apis/poc.autoscaling.k8s.io/v1alpha1/zz_generated.deepcopy.go b/vertical-pod-autoscaler/pkg/apis/poc.autoscaling.k8s.io/v1alpha1/zz_generated.deepcopy.go index f7c2b1640d7c..7733359e86db 100644 --- a/vertical-pod-autoscaler/pkg/apis/poc.autoscaling.k8s.io/v1alpha1/zz_generated.deepcopy.go +++ b/vertical-pod-autoscaler/pkg/apis/poc.autoscaling.k8s.io/v1alpha1/zz_generated.deepcopy.go @@ -1,3 +1,4 @@ +//go:build !ignore_autogenerated // +build !ignore_autogenerated /*