Skip to content

Commit

Permalink
Merge pull request #65 from gimmetm/feature/vnks_version_hypervisor
Browse files Browse the repository at this point in the history
update: vnks
  • Loading branch information
jj41 authored Mar 22, 2024
2 parents 177f4b3 + 238fb85 commit b0986c1
Show file tree
Hide file tree
Showing 17 changed files with 181 additions and 32 deletions.
2 changes: 2 additions & 0 deletions services/vnks/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand Down Expand Up @@ -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)
Expand Down
14 changes: 8 additions & 6 deletions services/vnks/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand All @@ -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"`
Expand All @@ -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"`
Expand All @@ -113,4 +113,6 @@ type Cluster struct {

// Public Network
PublicNetwork *bool `json:"publicNetwork"`

ReturnProtection *bool `json:"returnProtection"`
}
8 changes: 1 addition & 7 deletions services/vnks/cluster_input_body.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`

Expand Down
6 changes: 6 additions & 0 deletions services/vnks/default_node_pool_param.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
}
13 changes: 7 additions & 6 deletions services/vnks/docs/Cluster.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
4 changes: 1 addition & 3 deletions services/vnks/docs/ClusterInputBody.md
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
3 changes: 3 additions & 0 deletions services/vnks/docs/DefaultNodePoolParam.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
1 change: 1 addition & 0 deletions services/vnks/docs/NodePool.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
3 changes: 3 additions & 0 deletions services/vnks/docs/NodePoolCreationBody.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
3 changes: 3 additions & 0 deletions services/vnks/docs/NodePoolDto.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
10 changes: 10 additions & 0 deletions services/vnks/docs/ReturnProtectionDto.md
Original file line number Diff line number Diff line change
@@ -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)


30 changes: 27 additions & 3 deletions services/vnks/docs/V2Api.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -671,7 +697,6 @@ Name | Type | Description | Notes

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------

**optional** | **map[string]interface{}** | optional parameters | nil if no parameters

### Optional Parameters
Expand Down Expand Up @@ -737,15 +762,14 @@ Name | Type | Description | Notes

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------

**optional** | **map[string]interface{}** | optional parameters | nil if no parameters

### Optional Parameters
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

Expand Down
2 changes: 2 additions & 0 deletions services/vnks/node_pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,6 @@ type NodePool struct {
Labels []*NodePoolLabel `json:"labels"`

Taints []*NodePoolTaint `json:"taints"`

ServerRoleId *string `json:"serverRoleId,omitempty"`
}
6 changes: 6 additions & 0 deletions services/vnks/node_pool_creation_body.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
}
6 changes: 6 additions & 0 deletions services/vnks/node_pool_dto.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
}
13 changes: 13 additions & 0 deletions services/vnks/return_protection_dto.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/*
* vnks
*
* <br/>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"`
}
Loading

0 comments on commit b0986c1

Please sign in to comment.