diff --git a/services/vnks/README.md b/services/vnks/README.md index a3e77681..041e86aa 100644 --- a/services/vnks/README.md +++ b/services/vnks/README.md @@ -44,6 +44,7 @@ Class | Method | HTTP request | Description *V2Api* | [**ClustersUuidNodesInstanceNoDelete**](docs/V2Api.md#clustersuuidnodesinstancenodelete) | **Delete** /clusters/{uuid}/nodes/{instanceNo} | *V2Api* | [**ClustersUuidOidcGet**](docs/V2Api.md#clustersuuidoidcget) | **Get** /clusters/{uuid}/oidc | *V2Api* | [**ClustersUuidOidcPatch**](docs/V2Api.md#clustersuuidoidcpatch) | **Patch** /clusters/{uuid}/oidc | +*V2Api* | [**ClustersUuidReturnProtectionPatch**](docs/V2Api.md#clustersuuidreturnprotectionpatch) | **Patch** /clusters/{uuid}/return-protection | *V2Api* | [**ClustersUuidUpgradePatch**](docs/V2Api.md#clustersuuidupgradepatch) | **Patch** /clusters/{uuid}/upgrade | *V2Api* | [**OptionServerImageGet**](docs/V2Api.md#optionserverimageget) | **Get** /option/server-image | *V2Api* | [**OptionServerProductCodeGet**](docs/V2Api.md#optionserverproductcodeget) | **Get** /option/server-product-code | @@ -81,6 +82,7 @@ Class | Method | HTTP request | Description - [OptionResForServerProduct](docs/OptionResForServerProduct.md) - [OptionsRes](docs/OptionsRes.md) - [OptionsResForServerProduct](docs/OptionsResForServerProduct.md) + - [ReturnProtectionDto](docs/ReturnProtectionDto.md) - [ServerProduct](docs/ServerProduct.md) - [SubnetDto](docs/SubnetDto.md) - [UpdateClusterLbSubnetRes](docs/UpdateClusterLbSubnetRes.md) diff --git a/services/vnks/cluster.go b/services/vnks/cluster.go index 4047d428..841ccddc 100644 --- a/services/vnks/cluster.go +++ b/services/vnks/cluster.go @@ -62,10 +62,10 @@ type Cluster struct { KubeNetworkPlugin *string `json:"kubeNetworkPlugin"` // 로드밸런서 전용 서브넷 이름 - SubnetLbName *string `json:"subnetLbName"` + SubnetLbName *string `json:"subnetLbName,omitempty"` // 로드밸런서 전용 Private Subnet No - SubnetLbNo *int32 `json:"subnetLbNo"` + SubnetLbNo *int32 `json:"subnetLbNo,omitempty"` // 로드밸런서 전용 Private Subnet No LbPrivateSubnetNo *int32 `json:"lbPrivateSubnetNo"` @@ -74,7 +74,7 @@ type Cluster struct { LbPublicSubnetNo *int32 `json:"lbPublicSubnetNo,omitempty"` // 서브넷 이름 - SubnetName *string `json:"subnetName"` + SubnetName *string `json:"subnetName,omitempty"` // 서브넷 No 목록 SubnetNoList []*int32 `json:"subnetNoList"` @@ -95,13 +95,13 @@ type Cluster struct { ZoneNo *int32 `json:"zoneNo"` // InitScript 번호 - InitScriptNo *int32 `json:"initScriptNo"` + InitScriptNo *int32 `json:"initScriptNo,omitempty"` // InitScript 이름 - InitScriptName *string `json:"initScriptName"` + InitScriptName *string `json:"initScriptName,omitempty"` // Pod Security Policy 설정 여부 - PodSecurityPolicyEnabled *bool `json:"podSecurityPolicyEnabled"` + PodSecurityPolicyEnabled *bool `json:"podSecurityPolicyEnabled,omitempty"` // 로그인 키 이름 LoginKeyName *string `json:"loginKeyName"` @@ -113,4 +113,6 @@ type Cluster struct { // Public Network PublicNetwork *bool `json:"publicNetwork"` + + ReturnProtection *bool `json:"returnProtection"` } diff --git a/services/vnks/cluster_input_body.go b/services/vnks/cluster_input_body.go index 3ee59ed9..f91efae4 100644 --- a/services/vnks/cluster_input_body.go +++ b/services/vnks/cluster_input_body.go @@ -52,15 +52,9 @@ type ClusterInputBody struct { // [로드밸런서 전용 Private Subnet 번호](/docs/networking-vpc-subnetmanagement-getsubnetlist) LbPrivateSubnetNo *int32 `json:"lbPrivateSubnetNo,omitempty"` - // [로드밸런서 전용 Public Subnet 번호(Singapore 리전만 지원)](/docs/networking-vpc-subnetmanagement-getsubnetlist) + // [로드밸런서 전용 Public Subnet 번호](/docs/networking-vpc-subnetmanagement-getsubnetlist) LbPublicSubnetNo *int32 `json:"lbPublicSubnetNo,omitempty"` - // InitScript 번호 - InitScriptNo *int32 `json:"initScriptNo,omitempty"` - - // Pod Security Policy 설정 여부 - PodSecurityPolicyEnabled *bool `json:"podSecurityPolicyEnabled,omitempty"` - // Log *ClusterLogInput `json:"log,omitempty"` diff --git a/services/vnks/default_node_pool_param.go b/services/vnks/default_node_pool_param.go index 199d1e11..0cdada41 100644 --- a/services/vnks/default_node_pool_param.go +++ b/services/vnks/default_node_pool_param.go @@ -28,9 +28,15 @@ type DefaultNodePoolParam struct { // 상품 코드 ProductCode *string `json:"productCode,omitempty"` + Labels []*NodePoolLabel `json:"labels,omitempty"` + + Taints []*NodePoolTaint `json:"taints,omitempty"` + // Server spec code ServerSpecCode *string `json:"serverSpecCode,omitempty"` // Storage size StorageSize *int32 `json:"storageSize,omitempty"` + + ServerRoleId *string `json:"serverRoleId,omitempty"` } diff --git a/services/vnks/docs/Cluster.md b/services/vnks/docs/Cluster.md index ce39ff6f..e1c14636 100644 --- a/services/vnks/docs/Cluster.md +++ b/services/vnks/docs/Cluster.md @@ -20,24 +20,25 @@ Name | Type | Description | Notes **RegionCode** | ***string** | region의 코드 | [default to null] **Status** | ***string** | 클러스터 상태 | [default to null] **KubeNetworkPlugin** | ***string** | CNI Plugin Code | [default to null] -**SubnetLbName** | ***string** | 로드밸런서 전용 서브넷 이름 | [default to null] -**SubnetLbNo** | ***int32** | 로드밸런서 전용 Private Subnet No | [default to null] +**SubnetLbName** | ***string** | 로드밸런서 전용 서브넷 이름 | [optional] [default to null] +**SubnetLbNo** | ***int32** | 로드밸런서 전용 Private Subnet No | [optional] [default to null] **LbPrivateSubnetNo** | ***int32** | 로드밸런서 전용 Private Subnet No | [default to null] **LbPublicSubnetNo** | ***int32** | 로드밸런서 전용 Public Subnet No | [optional] [default to null] -**SubnetName** | ***string** | 서브넷 이름 | [default to null] +**SubnetName** | ***string** | 서브넷 이름 | [optional] [default to null] **SubnetNoList** | **[]\*int32** | 서브넷 No 목록 | [default to null] **UpdatedAt** | ***string** | 최근 업데이트 일자 | [default to null] **VpcName** | ***string** | vpc 이름 | [default to null] **VpcNo** | ***int32** | vpc 번호 | [default to null] **ZoneCode** | ***string** | zone 코드 | [default to null] **ZoneNo** | ***int32** | zone 번호 | [default to null] -**InitScriptNo** | ***int32** | InitScript 번호 | [default to null] -**InitScriptName** | ***string** | InitScript 이름 | [default to null] -**PodSecurityPolicyEnabled** | ***bool** | Pod Security Policy 설정 여부 | [default to null] +**InitScriptNo** | ***int32** | InitScript 번호 | [optional] [default to null] +**InitScriptName** | ***string** | InitScript 이름 | [optional] [default to null] +**PodSecurityPolicyEnabled** | ***bool** | Pod Security Policy 설정 여부 | [optional] [default to null] **LoginKeyName** | ***string** | 로그인 키 이름 | [default to null] **NodePool** | **[[]\*NodePool](NodePool.md)** | 노드풀 | [default to null] **Log** | **[*ClusterLogInput](ClusterLogInput.md)** | | [default to null] **PublicNetwork** | ***bool** | Public Network | [default to null] +**ReturnProtection** | ***bool** | | [default to null] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/services/vnks/docs/ClusterInputBody.md b/services/vnks/docs/ClusterInputBody.md index 3175e91b..68cef881 100644 --- a/services/vnks/docs/ClusterInputBody.md +++ b/services/vnks/docs/ClusterInputBody.md @@ -17,9 +17,7 @@ Name | Type | Description | Notes **SubnetNoList** | **[]\*int32** | [서브넷 번호 목록](/docs/networking-vpc-subnetmanagement-getsubnetlist) | [default to null] **SubnetLbNo** | ***int32** | [로드밸런서 전용 Private Subnet 번호](/docs/networking-vpc-subnetmanagement-getsubnetlist) | [optional] [default to null] **LbPrivateSubnetNo** | ***int32** | [로드밸런서 전용 Private Subnet 번호](/docs/networking-vpc-subnetmanagement-getsubnetlist) | [optional] [default to null] -**LbPublicSubnetNo** | ***int32** | [로드밸런서 전용 Public Subnet 번호(Singapore 리전만 지원)](/docs/networking-vpc-subnetmanagement-getsubnetlist) | [optional] [default to null] -**InitScriptNo** | ***int32** | InitScript 번호 | [optional] [default to null] -**PodSecurityPolicyEnabled** | ***bool** | Pod Security Policy 설정 여부 | [optional] [default to null] +**LbPublicSubnetNo** | ***int32** | [로드밸런서 전용 Public Subnet 번호](/docs/networking-vpc-subnetmanagement-getsubnetlist) | [optional] [default to null] **Log** | **[*ClusterLogInput](ClusterLogInput.md)** | | [optional] [default to null] **DefaultNodePool** | **[*DefaultNodePoolParam](DefaultNodePoolParam.md)** | | [optional] [default to null] **NodePool** | **[[]\*NodePoolDto](NodePoolDto.md)** | 추가 노드풀 | [optional] [default to null] diff --git a/services/vnks/docs/DefaultNodePoolParam.md b/services/vnks/docs/DefaultNodePoolParam.md index a89aa358..5e15eb7b 100644 --- a/services/vnks/docs/DefaultNodePoolParam.md +++ b/services/vnks/docs/DefaultNodePoolParam.md @@ -9,8 +9,11 @@ Name | Type | Description | Notes **SubnetNoList** | **[]\*int32** | Subnet 번호 | [optional] [default to null] **SoftwareCode** | ***string** | Server image code | [optional] [default to null] **ProductCode** | ***string** | 상품 코드 | [optional] [default to null] +**Labels** | **[[]\*NodePoolLabel](NodePoolLabel.md)** | | [optional] [default to null] +**Taints** | **[[]\*NodePoolTaint](NodePoolTaint.md)** | | [optional] [default to null] **ServerSpecCode** | ***string** | Server spec code | [optional] [default to null] **StorageSize** | ***int32** | Storage size | [optional] [default to null] +**ServerRoleId** | ***string** | | [optional] [default to null] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/services/vnks/docs/NodePool.md b/services/vnks/docs/NodePool.md index 3dc0283f..ab5fca05 100644 --- a/services/vnks/docs/NodePool.md +++ b/services/vnks/docs/NodePool.md @@ -18,6 +18,7 @@ Name | Type | Description | Notes **StorageSize** | ***int32** | 스토리지 크기 | [optional] [default to null] **Labels** | **[[]\*NodePoolLabel](NodePoolLabel.md)** | | [default to null] **Taints** | **[[]\*NodePoolTaint](NodePoolTaint.md)** | | [default to null] +**ServerRoleId** | ***string** | | [optional] [default to null] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/services/vnks/docs/NodePoolCreationBody.md b/services/vnks/docs/NodePoolCreationBody.md index 16373604..93762593 100644 --- a/services/vnks/docs/NodePoolCreationBody.md +++ b/services/vnks/docs/NodePoolCreationBody.md @@ -12,6 +12,9 @@ Name | Type | Description | Notes **ServerSpecCode** | ***string** | Server spec code | [optional] [default to null] **StorageSize** | ***int32** | Storage size | [optional] [default to null] **Autoscale** | **[*AutoscalerUpdate](AutoscalerUpdate.md)** | | [optional] [default to null] +**Labels** | **[[]\*NodePoolLabel](NodePoolLabel.md)** | | [optional] [default to null] +**Taints** | **[[]\*NodePoolTaint](NodePoolTaint.md)** | | [optional] [default to null] +**ServerRoleId** | ***string** | | [optional] [default to null] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/services/vnks/docs/NodePoolDto.md b/services/vnks/docs/NodePoolDto.md index 4e33dfe3..af1f1084 100644 --- a/services/vnks/docs/NodePoolDto.md +++ b/services/vnks/docs/NodePoolDto.md @@ -9,8 +9,11 @@ Name | Type | Description | Notes **SubnetNoList** | **[]\*int32** | Subnet 번호 | [optional] [default to null] **SoftwareCode** | ***string** | Server image code | [optional] [default to null] **ProductCode** | ***string** | 상품 코드 | [optional] [default to null] +**Labels** | **[[]\*NodePoolLabel](NodePoolLabel.md)** | | [optional] [default to null] +**Taints** | **[[]\*NodePoolTaint](NodePoolTaint.md)** | | [optional] [default to null] **ServerSpecCode** | ***string** | Server spec code | [optional] [default to null] **StorageSize** | ***int32** | Storage size | [optional] [default to null] +**ServerRoleId** | ***string** | | [optional] [default to null] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/services/vnks/docs/ReturnProtectionDto.md b/services/vnks/docs/ReturnProtectionDto.md new file mode 100644 index 00000000..efd309c6 --- /dev/null +++ b/services/vnks/docs/ReturnProtectionDto.md @@ -0,0 +1,10 @@ +# ReturnProtectionDto + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ReturnProtection** | ***bool** | | [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/vnks/docs/V2Api.md b/services/vnks/docs/V2Api.md index 957c343b..cea7cec3 100644 --- a/services/vnks/docs/V2Api.md +++ b/services/vnks/docs/V2Api.md @@ -27,6 +27,7 @@ Method | HTTP request | Description [**ClustersUuidNodesInstanceNoDelete**](V2Api.md#ClustersUuidNodesInstanceNoDelete) | **Delete** /clusters/{uuid}/nodes/{instanceNo} | [**ClustersUuidOidcGet**](V2Api.md#ClustersUuidOidcGet) | **Get** /clusters/{uuid}/oidc | [**ClustersUuidOidcPatch**](V2Api.md#ClustersUuidOidcPatch) | **Patch** /clusters/{uuid}/oidc | +[**ClustersUuidReturnProtectionPatch**](V2Api.md#ClustersUuidReturnProtectionPatch) | **Patch** /clusters/{uuid}/return-protection | [**ClustersUuidUpgradePatch**](V2Api.md#ClustersUuidUpgradePatch) | **Patch** /clusters/{uuid}/upgrade | [**OptionServerImageGet**](V2Api.md#OptionServerImageGet) | **Get** /option/server-image | [**OptionServerProductCodeGet**](V2Api.md#OptionServerProductCodeGet) | **Get** /option/server-product-code | @@ -630,6 +631,31 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **ClustersUuidReturnProtectionPatch** +> UpdateClusterRes ClustersUuidReturnProtectionPatch(body, uuid) + + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**body** | **[\*ReturnProtectionDto](ReturnProtectionDto.md)** | | **uuid** | **string** | uuid | + +### Return type + +*[**UpdateClusterRes**](UpdateClusterRes.md) + +### Authorization + +[x-ncp-iam](../README.md#x-ncp-iam) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **ClustersUuidUpgradePatch** > UpdateClusterRes ClustersUuidUpgradePatch(uuid, k8sVersion, optional) @@ -671,7 +697,6 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **optional** | **map[string]interface{}** | optional parameters | nil if no parameters ### Optional Parameters @@ -737,7 +762,6 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **optional** | **map[string]interface{}** | optional parameters | nil if no parameters ### Optional Parameters @@ -745,7 +769,7 @@ Optional parameters are passed through a map[string]interface{}. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**from** | **string** | | **to** | **string** | | +**from** | **string** | | **hypervisorCode** | **string** | | **to** | **string** | | ### Return type diff --git a/services/vnks/node_pool.go b/services/vnks/node_pool.go index f3b0301e..93dd0d18 100644 --- a/services/vnks/node_pool.go +++ b/services/vnks/node_pool.go @@ -52,4 +52,6 @@ type NodePool struct { Labels []*NodePoolLabel `json:"labels"` Taints []*NodePoolTaint `json:"taints"` + + ServerRoleId *string `json:"serverRoleId,omitempty"` } diff --git a/services/vnks/node_pool_creation_body.go b/services/vnks/node_pool_creation_body.go index a19cbf6a..2e75455b 100644 --- a/services/vnks/node_pool_creation_body.go +++ b/services/vnks/node_pool_creation_body.go @@ -36,4 +36,10 @@ type NodePoolCreationBody struct { // Autoscale *AutoscalerUpdate `json:"autoscale,omitempty"` + + Labels []*NodePoolLabel `json:"labels,omitempty"` + + Taints []*NodePoolTaint `json:"taints,omitempty"` + + ServerRoleId *string `json:"serverRoleId,omitempty"` } diff --git a/services/vnks/node_pool_dto.go b/services/vnks/node_pool_dto.go index a1652298..d2528619 100644 --- a/services/vnks/node_pool_dto.go +++ b/services/vnks/node_pool_dto.go @@ -28,9 +28,15 @@ type NodePoolDto struct { // 상품 코드 ProductCode *string `json:"productCode,omitempty"` + Labels []*NodePoolLabel `json:"labels,omitempty"` + + Taints []*NodePoolTaint `json:"taints,omitempty"` + // Server spec code ServerSpecCode *string `json:"serverSpecCode,omitempty"` // Storage size StorageSize *int32 `json:"storageSize,omitempty"` + + ServerRoleId *string `json:"serverRoleId,omitempty"` } diff --git a/services/vnks/return_protection_dto.go b/services/vnks/return_protection_dto.go new file mode 100644 index 00000000..b87c2a98 --- /dev/null +++ b/services/vnks/return_protection_dto.go @@ -0,0 +1,13 @@ +/* + * vnks + * + *
https://nks.beta-apigw.ntruss.com/vnks/v2 + * + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package vnks + +type ReturnProtectionDto struct { + ReturnProtection *bool `json:"returnProtection"` +} diff --git a/services/vnks/v2_api.go b/services/vnks/v2_api.go index 9381d0d0..fc49371e 100644 --- a/services/vnks/v2_api.go +++ b/services/vnks/v2_api.go @@ -1314,13 +1314,6 @@ func (a *V2ApiService) ClustersUuidNodePoolPost(ctx context.Context, body *NodeP } // body params localVarPostBody = body - v := reflect.ValueOf(localVarPostBody).Elem().FieldByName("UserData") - if v.IsValid() && v.CanAddr() { - ptr := v.Addr().Interface().(**string) - if *ptr != nil { - **ptr = base64.StdEncoding.EncodeToString([]byte(**ptr)) - } - } r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) if err != nil { return &successPayload, err @@ -1615,6 +1608,80 @@ func (a *V2ApiService) ClustersUuidOidcPatch(ctx context.Context, body *UpdateOi return &successPayload, err } +/* V2ApiService +@param body +@param uuid uuid +@return *UpdateClusterRes*/ +func (a *V2ApiService) ClustersUuidReturnProtectionPatch(ctx context.Context, body *ReturnProtectionDto, uuid *string) (*UpdateClusterRes, error) { + var ( + localVarHttpMethod = strings.ToUpper("Patch") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + successPayload UpdateClusterRes + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/clusters/{uuid}/return-protection" + localVarPath = strings.Replace(localVarPath, "{"+"uuid"+"}", fmt.Sprintf("%v", *uuid), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{ + "application/json", + } + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + localVarPostBody = body + v := reflect.ValueOf(localVarPostBody).Elem().FieldByName("UserData") + if v.IsValid() && v.CanAddr() { + ptr := v.Addr().Interface().(**string) + if *ptr != nil { + **ptr = base64.StdEncoding.EncodeToString([]byte(**ptr)) + } + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return &successPayload, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return &successPayload, err + } + defer localVarHttpResponse.Body.Close() + bodyBytes, _ := ioutil.ReadAll(localVarHttpResponse.Body) + + if localVarHttpResponse.StatusCode >= 300 || (localVarHttpResponse.StatusCode < 300 && !(strings.HasPrefix(string(bodyBytes), `{`) || strings.HasPrefix(string(bodyBytes), `[`))) && localVarHttpResponse.StatusCode != 204 { + return &successPayload, reportError("Status: %v, Body: %s", localVarHttpResponse.Status, bodyBytes) + } + + if !strings.Contains(string(bodyBytes), `{"error"`) && (strings.HasPrefix(string(bodyBytes), `{`) || strings.HasPrefix(string(bodyBytes), `[`)) { + if err = json.Unmarshal(bodyBytes, &successPayload); err != nil { + return &successPayload, err + } + } + + return &successPayload, err +} + /* V2ApiService @param uuid uuid @param k8sVersion @@ -1697,6 +1764,8 @@ func (a *V2ApiService) ClustersUuidUpgradePatch(ctx context.Context, uuid *strin } /* V2ApiService +@param optional (nil or map[string]interface{}) with one or more of: + @param "hypervisorCode" (string) @return *OptionsRes*/ func (a *V2ApiService) OptionServerImageGet(ctx context.Context, localVarOptionals map[string]interface{}) (*OptionsRes, error) { var ( @@ -1872,6 +1941,9 @@ func (a *V2ApiService) OptionVersionGet(ctx context.Context, localVarOptionals m if err := typeCheckParameter(localVarOptionals["from"], "*string", "from"); err != nil { return &successPayload, err } + if err := typeCheckParameter(localVarOptionals["hypervisorCode"], "*string", "hypervisorCode"); err != nil { + return &successPayload, err + } if err := typeCheckParameter(localVarOptionals["to"], "*string", "to"); err != nil { return &successPayload, err } @@ -1879,6 +1951,9 @@ func (a *V2ApiService) OptionVersionGet(ctx context.Context, localVarOptionals m if localVarTempParam, localVarOk := localVarOptionals["from"].(*string); localVarOk { localVarQueryParams.Add("from", parameterToString(*localVarTempParam, "")) } + if localVarTempParam, localVarOk := localVarOptionals["hypervisorCode"].(*string); localVarOk { + localVarQueryParams.Add("hypervisorCode", parameterToString(*localVarTempParam, "")) + } if localVarTempParam, localVarOk := localVarOptionals["to"].(*string); localVarOk { localVarQueryParams.Add("to", parameterToString(*localVarTempParam, "")) }