diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/server/change_block_storage_volume_size_request.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/server/change_block_storage_volume_size_request.go
new file mode 100644
index 000000000..ae3f0eb6a
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/server/change_block_storage_volume_size_request.go
@@ -0,0 +1,18 @@
+/*
+ * server
+ *
+ *
https://ncloud.apigw.ntruss.com/server/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package server
+
+type ChangeBlockStorageVolumeSizeRequest struct {
+
+ // 블록스토리지인스턴스번호
+BlockStorageInstanceNo *string `json:"blockStorageInstanceNo"`
+
+ // 블록스토리지사이즈
+BlockStorageSize *int64 `json:"blockStorageSize"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/server/change_block_storage_volume_size_response.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/server/change_block_storage_volume_size_response.go
new file mode 100644
index 000000000..348ce391b
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/server/change_block_storage_volume_size_response.go
@@ -0,0 +1,22 @@
+/*
+ * server
+ *
+ *
https://ncloud.apigw.ntruss.com/server/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package server
+
+type ChangeBlockStorageVolumeSizeResponse struct {
+
+RequestId *string `json:"requestId,omitempty"`
+
+ReturnCode *string `json:"returnCode,omitempty"`
+
+ReturnMessage *string `json:"returnMessage,omitempty"`
+
+TotalRows *int32 `json:"totalRows,omitempty"`
+
+BlockStorageInstanceList []*BlockStorageInstance `json:"blockStorageInstanceList,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/server/get_init_script_list_request.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/server/get_init_script_list_request.go
new file mode 100644
index 000000000..b95872394
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/server/get_init_script_list_request.go
@@ -0,0 +1,12 @@
+/*
+ * server
+ *
+ *
https://ncloud.apigw.ntruss.com/server/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package server
+
+type GetInitScriptListRequest struct {
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/server/get_init_script_list_response.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/server/get_init_script_list_response.go
new file mode 100644
index 000000000..664dd4286
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/server/get_init_script_list_response.go
@@ -0,0 +1,22 @@
+/*
+ * server
+ *
+ *
https://ncloud.apigw.ntruss.com/server/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package server
+
+type GetInitScriptListResponse struct {
+
+RequestId *string `json:"requestId,omitempty"`
+
+ReturnCode *string `json:"returnCode,omitempty"`
+
+ReturnMessage *string `json:"returnMessage,omitempty"`
+
+TotalRows *int32 `json:"totalRows,omitempty"`
+
+InitScriptList []*InitScript `json:"initScriptList,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/server/get_root_password_server_instance_list_request.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/server/get_root_password_server_instance_list_request.go
new file mode 100644
index 000000000..a193ac75c
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/server/get_root_password_server_instance_list_request.go
@@ -0,0 +1,15 @@
+/*
+ * server
+ *
+ *
https://ncloud.apigw.ntruss.com/server/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package server
+
+type GetRootPasswordServerInstanceListRequest struct {
+
+ // 인스턴스태그리스트
+RootPasswordServerInstanceList []*RootPasswordServerInstanceParameter `json:"rootPasswordServerInstanceList"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/server/get_root_password_server_instance_list_response.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/server/get_root_password_server_instance_list_response.go
new file mode 100644
index 000000000..8767e2083
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/server/get_root_password_server_instance_list_response.go
@@ -0,0 +1,22 @@
+/*
+ * server
+ *
+ *
https://ncloud.apigw.ntruss.com/server/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package server
+
+type GetRootPasswordServerInstanceListResponse struct {
+
+RequestId *string `json:"requestId,omitempty"`
+
+ReturnCode *string `json:"returnCode,omitempty"`
+
+ReturnMessage *string `json:"returnMessage,omitempty"`
+
+TotalRows *int32 `json:"totalRows,omitempty"`
+
+RootPasswordServerInstanceList []*RootPasswordServerInstance `json:"rootPasswordServerInstanceList,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/server/init_script.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/server/init_script.go
new file mode 100644
index 000000000..c589cd53d
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/server/init_script.go
@@ -0,0 +1,30 @@
+/*
+ * server
+ *
+ *
https://ncloud.apigw.ntruss.com/server/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package server
+
+type InitScript struct {
+
+ // 초기화스크립트번호
+InitScriptNo *string `json:"initScriptNo,omitempty"`
+
+ // 초기화스크립트명
+InitScriptName *string `json:"initScriptName,omitempty"`
+
+ // 생성일자
+CreateDate *string `json:"createDate,omitempty"`
+
+ // 초기화스크립트설명
+InitScriptDescription *string `json:"initScriptDescription,omitempty"`
+
+ // 초기화스크립트내용
+InitScriptContent *string `json:"initScriptContent,omitempty"`
+
+ // OS구분
+OsType *CommonCode `json:"osType,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/server/replace_server_instance_associated_with_public_ip_request.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/server/replace_server_instance_associated_with_public_ip_request.go
new file mode 100644
index 000000000..b545e0be8
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/server/replace_server_instance_associated_with_public_ip_request.go
@@ -0,0 +1,18 @@
+/*
+ * server
+ *
+ *
https://ncloud.apigw.ntruss.com/server/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package server
+
+type ReplaceServerInstanceAssociatedWithPublicIpRequest struct {
+
+ // 공인IP인스턴스번호
+PublicIpInstanceNo *string `json:"publicIpInstanceNo"`
+
+ // 서버인스턴스번호
+ServerInstanceNo *string `json:"serverInstanceNo"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/server/replace_server_instance_associated_with_public_ip_response.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/server/replace_server_instance_associated_with_public_ip_response.go
new file mode 100644
index 000000000..104b117f4
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/server/replace_server_instance_associated_with_public_ip_response.go
@@ -0,0 +1,22 @@
+/*
+ * server
+ *
+ *
https://ncloud.apigw.ntruss.com/server/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package server
+
+type ReplaceServerInstanceAssociatedWithPublicIpResponse struct {
+
+RequestId *string `json:"requestId,omitempty"`
+
+ReturnCode *string `json:"returnCode,omitempty"`
+
+ReturnMessage *string `json:"returnMessage,omitempty"`
+
+TotalRows *int32 `json:"totalRows,omitempty"`
+
+PublicIpInstanceList []*PublicIpInstance `json:"publicIpInstanceList,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/server/root_password_server_instance.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/server/root_password_server_instance.go
new file mode 100644
index 000000000..6251967dc
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/server/root_password_server_instance.go
@@ -0,0 +1,18 @@
+/*
+ * server
+ *
+ *
https://ncloud.apigw.ntruss.com/server/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package server
+
+type RootPasswordServerInstance struct {
+
+ // 서버인스턴스번호
+ServerInstanceNo *string `json:"serverInstanceNo,omitempty"`
+
+ // 루트패스워드
+RootPassword *string `json:"rootPassword,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/server/root_password_server_instance_parameter.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/server/root_password_server_instance_parameter.go
new file mode 100644
index 000000000..f382c53b2
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/server/root_password_server_instance_parameter.go
@@ -0,0 +1,18 @@
+/*
+ * server
+ *
+ *
https://ncloud.apigw.ntruss.com/server/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package server
+
+type RootPasswordServerInstanceParameter struct {
+
+ // 서버인스턴스번호
+ServerInstanceNo *string `json:"serverInstanceNo,omitempty"`
+
+ // 사설키
+PrivateKey *string `json:"privateKey,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/.travis.yml b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/.travis.yml
new file mode 100644
index 000000000..f5cb2ce9a
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/.travis.yml
@@ -0,0 +1,8 @@
+language: go
+
+install:
+ - go get -d -v .
+
+script:
+ - go build -v ./
+
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/LICENSE b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/LICENSE
new file mode 100644
index 000000000..12c4d078c
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/LICENSE
@@ -0,0 +1,7 @@
+Copyright 2018 NAVER BUSINESS PLATFORM Corp.
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/README.md b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/README.md
new file mode 100644
index 000000000..f9e07135b
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/README.md
@@ -0,0 +1,163 @@
+# Go API client for vpc
+
+ VPC Network 관련 API
https://ncloud.apigw.ntruss.com/vpc/v2
+
+## Overview
+This API client was generated by the [swagger-codegen](https://github.com/swagger-api/swagger-codegen) project. By using the [swagger-spec](https://github.com/swagger-api/swagger-spec) from a remote server, you can easily generate an API client.
+
+- API version: 2020-09-17T10:29:55Z
+- Package version: 1.0.0
+- Build package: io.swagger.codegen.languages.NcpGoForNcloudClientCodegen
+
+## Installation
+Put the package under your project folder and add the following in import:
+```
+"./vpc"
+```
+
+## Documentation for API Endpoints
+
+All URIs are relative to *https://ncloud.apigw.ntruss.com/vpc/v2*
+
+Class | Method | HTTP request | Description
+------------ | ------------- | ------------- | -------------
+*V2Api* | [**AcceptOrRejectVpcPeering**](docs/V2Api.md#acceptorrejectvpcpeering) | **Post** /acceptOrRejectVpcPeering |
+*V2Api* | [**AddNetworkAclInboundRule**](docs/V2Api.md#addnetworkaclinboundrule) | **Post** /addNetworkAclInboundRule |
+*V2Api* | [**AddNetworkAclOutboundRule**](docs/V2Api.md#addnetworkacloutboundrule) | **Post** /addNetworkAclOutboundRule |
+*V2Api* | [**AddRoute**](docs/V2Api.md#addroute) | **Post** /addRoute |
+*V2Api* | [**AddRouteTableSubnet**](docs/V2Api.md#addroutetablesubnet) | **Post** /addRouteTableSubnet |
+*V2Api* | [**CreateNatGatewayInstance**](docs/V2Api.md#createnatgatewayinstance) | **Post** /createNatGatewayInstance |
+*V2Api* | [**CreateNetworkAcl**](docs/V2Api.md#createnetworkacl) | **Post** /createNetworkAcl |
+*V2Api* | [**CreateRouteTable**](docs/V2Api.md#createroutetable) | **Post** /createRouteTable |
+*V2Api* | [**CreateSubnet**](docs/V2Api.md#createsubnet) | **Post** /createSubnet |
+*V2Api* | [**CreateVpc**](docs/V2Api.md#createvpc) | **Post** /createVpc |
+*V2Api* | [**CreateVpcPeeringInstance**](docs/V2Api.md#createvpcpeeringinstance) | **Post** /createVpcPeeringInstance |
+*V2Api* | [**DeleteNatGatewayInstance**](docs/V2Api.md#deletenatgatewayinstance) | **Post** /deleteNatGatewayInstance |
+*V2Api* | [**DeleteNetworkAcl**](docs/V2Api.md#deletenetworkacl) | **Post** /deleteNetworkAcl |
+*V2Api* | [**DeleteRouteTable**](docs/V2Api.md#deleteroutetable) | **Post** /deleteRouteTable |
+*V2Api* | [**DeleteSubnet**](docs/V2Api.md#deletesubnet) | **Post** /deleteSubnet |
+*V2Api* | [**DeleteVpc**](docs/V2Api.md#deletevpc) | **Post** /deleteVpc |
+*V2Api* | [**DeleteVpcPeeringInstance**](docs/V2Api.md#deletevpcpeeringinstance) | **Post** /deleteVpcPeeringInstance |
+*V2Api* | [**GetNatGatewayInstanceDetail**](docs/V2Api.md#getnatgatewayinstancedetail) | **Post** /getNatGatewayInstanceDetail |
+*V2Api* | [**GetNatGatewayInstanceList**](docs/V2Api.md#getnatgatewayinstancelist) | **Post** /getNatGatewayInstanceList |
+*V2Api* | [**GetNetworkAclDetail**](docs/V2Api.md#getnetworkacldetail) | **Post** /getNetworkAclDetail |
+*V2Api* | [**GetNetworkAclList**](docs/V2Api.md#getnetworkacllist) | **Post** /getNetworkAclList |
+*V2Api* | [**GetNetworkAclRuleList**](docs/V2Api.md#getnetworkaclrulelist) | **Post** /getNetworkAclRuleList |
+*V2Api* | [**GetRouteList**](docs/V2Api.md#getroutelist) | **Post** /getRouteList |
+*V2Api* | [**GetRouteTableDetail**](docs/V2Api.md#getroutetabledetail) | **Post** /getRouteTableDetail |
+*V2Api* | [**GetRouteTableList**](docs/V2Api.md#getroutetablelist) | **Post** /getRouteTableList |
+*V2Api* | [**GetRouteTableSubnetList**](docs/V2Api.md#getroutetablesubnetlist) | **Post** /getRouteTableSubnetList |
+*V2Api* | [**GetSubnetDetail**](docs/V2Api.md#getsubnetdetail) | **Post** /getSubnetDetail |
+*V2Api* | [**GetSubnetList**](docs/V2Api.md#getsubnetlist) | **Post** /getSubnetList |
+*V2Api* | [**GetVpcDetail**](docs/V2Api.md#getvpcdetail) | **Post** /getVpcDetail |
+*V2Api* | [**GetVpcList**](docs/V2Api.md#getvpclist) | **Post** /getVpcList |
+*V2Api* | [**GetVpcPeeringInstanceDetail**](docs/V2Api.md#getvpcpeeringinstancedetail) | **Post** /getVpcPeeringInstanceDetail |
+*V2Api* | [**GetVpcPeeringInstanceList**](docs/V2Api.md#getvpcpeeringinstancelist) | **Post** /getVpcPeeringInstanceList |
+*V2Api* | [**RemoveNetworkAclInboundRule**](docs/V2Api.md#removenetworkaclinboundrule) | **Post** /removeNetworkAclInboundRule |
+*V2Api* | [**RemoveNetworkAclOutboundRule**](docs/V2Api.md#removenetworkacloutboundrule) | **Post** /removeNetworkAclOutboundRule |
+*V2Api* | [**RemoveRoute**](docs/V2Api.md#removeroute) | **Post** /removeRoute |
+*V2Api* | [**RemoveRouteTableSubnet**](docs/V2Api.md#removeroutetablesubnet) | **Post** /removeRouteTableSubnet |
+*V2Api* | [**SetNatGatewayDescription**](docs/V2Api.md#setnatgatewaydescription) | **Post** /setNatGatewayDescription |
+*V2Api* | [**SetNetworkAclDescription**](docs/V2Api.md#setnetworkacldescription) | **Post** /setNetworkAclDescription |
+*V2Api* | [**SetRouteTableDescription**](docs/V2Api.md#setroutetabledescription) | **Post** /setRouteTableDescription |
+*V2Api* | [**SetSubnetNetworkAcl**](docs/V2Api.md#setsubnetnetworkacl) | **Post** /setSubnetNetworkAcl |
+*V2Api* | [**SetVpcPeeringDescription**](docs/V2Api.md#setvpcpeeringdescription) | **Post** /setVpcPeeringDescription |
+
+
+## Documentation For Models
+
+ - [AcceptOrRejectVpcPeeringRequest](docs/AcceptOrRejectVpcPeeringRequest.md)
+ - [AcceptOrRejectVpcPeeringResponse](docs/AcceptOrRejectVpcPeeringResponse.md)
+ - [AddNetworkAclInboundRuleRequest](docs/AddNetworkAclInboundRuleRequest.md)
+ - [AddNetworkAclInboundRuleResponse](docs/AddNetworkAclInboundRuleResponse.md)
+ - [AddNetworkAclOutboundRuleRequest](docs/AddNetworkAclOutboundRuleRequest.md)
+ - [AddNetworkAclOutboundRuleResponse](docs/AddNetworkAclOutboundRuleResponse.md)
+ - [AddNetworkAclRuleParameter](docs/AddNetworkAclRuleParameter.md)
+ - [AddRouteRequest](docs/AddRouteRequest.md)
+ - [AddRouteResponse](docs/AddRouteResponse.md)
+ - [AddRouteTableSubnetRequest](docs/AddRouteTableSubnetRequest.md)
+ - [AddRouteTableSubnetResponse](docs/AddRouteTableSubnetResponse.md)
+ - [CommonCode](docs/CommonCode.md)
+ - [CreateNatGatewayInstanceRequest](docs/CreateNatGatewayInstanceRequest.md)
+ - [CreateNatGatewayInstanceResponse](docs/CreateNatGatewayInstanceResponse.md)
+ - [CreateNetworkAclRequest](docs/CreateNetworkAclRequest.md)
+ - [CreateNetworkAclResponse](docs/CreateNetworkAclResponse.md)
+ - [CreateRouteTableRequest](docs/CreateRouteTableRequest.md)
+ - [CreateRouteTableResponse](docs/CreateRouteTableResponse.md)
+ - [CreateSubnetRequest](docs/CreateSubnetRequest.md)
+ - [CreateSubnetResponse](docs/CreateSubnetResponse.md)
+ - [CreateVpcPeeringInstanceRequest](docs/CreateVpcPeeringInstanceRequest.md)
+ - [CreateVpcPeeringInstanceResponse](docs/CreateVpcPeeringInstanceResponse.md)
+ - [CreateVpcRequest](docs/CreateVpcRequest.md)
+ - [CreateVpcResponse](docs/CreateVpcResponse.md)
+ - [DeleteNatGatewayInstanceRequest](docs/DeleteNatGatewayInstanceRequest.md)
+ - [DeleteNatGatewayInstanceResponse](docs/DeleteNatGatewayInstanceResponse.md)
+ - [DeleteNetworkAclRequest](docs/DeleteNetworkAclRequest.md)
+ - [DeleteNetworkAclResponse](docs/DeleteNetworkAclResponse.md)
+ - [DeleteRouteTableRequest](docs/DeleteRouteTableRequest.md)
+ - [DeleteRouteTableResponse](docs/DeleteRouteTableResponse.md)
+ - [DeleteSubnetRequest](docs/DeleteSubnetRequest.md)
+ - [DeleteSubnetResponse](docs/DeleteSubnetResponse.md)
+ - [DeleteVpcPeeringInstanceRequest](docs/DeleteVpcPeeringInstanceRequest.md)
+ - [DeleteVpcPeeringInstanceResponse](docs/DeleteVpcPeeringInstanceResponse.md)
+ - [DeleteVpcRequest](docs/DeleteVpcRequest.md)
+ - [DeleteVpcResponse](docs/DeleteVpcResponse.md)
+ - [GetNatGatewayInstanceDetailRequest](docs/GetNatGatewayInstanceDetailRequest.md)
+ - [GetNatGatewayInstanceDetailResponse](docs/GetNatGatewayInstanceDetailResponse.md)
+ - [GetNatGatewayInstanceListRequest](docs/GetNatGatewayInstanceListRequest.md)
+ - [GetNatGatewayInstanceListResponse](docs/GetNatGatewayInstanceListResponse.md)
+ - [GetNetworkAclDetailRequest](docs/GetNetworkAclDetailRequest.md)
+ - [GetNetworkAclDetailResponse](docs/GetNetworkAclDetailResponse.md)
+ - [GetNetworkAclListRequest](docs/GetNetworkAclListRequest.md)
+ - [GetNetworkAclListResponse](docs/GetNetworkAclListResponse.md)
+ - [GetNetworkAclRuleListRequest](docs/GetNetworkAclRuleListRequest.md)
+ - [GetNetworkAclRuleListResponse](docs/GetNetworkAclRuleListResponse.md)
+ - [GetRouteListRequest](docs/GetRouteListRequest.md)
+ - [GetRouteListResponse](docs/GetRouteListResponse.md)
+ - [GetRouteTableDetailRequest](docs/GetRouteTableDetailRequest.md)
+ - [GetRouteTableDetailResponse](docs/GetRouteTableDetailResponse.md)
+ - [GetRouteTableListRequest](docs/GetRouteTableListRequest.md)
+ - [GetRouteTableListResponse](docs/GetRouteTableListResponse.md)
+ - [GetRouteTableSubnetListRequest](docs/GetRouteTableSubnetListRequest.md)
+ - [GetRouteTableSubnetListResponse](docs/GetRouteTableSubnetListResponse.md)
+ - [GetSubnetDetailRequest](docs/GetSubnetDetailRequest.md)
+ - [GetSubnetDetailResponse](docs/GetSubnetDetailResponse.md)
+ - [GetSubnetListRequest](docs/GetSubnetListRequest.md)
+ - [GetSubnetListResponse](docs/GetSubnetListResponse.md)
+ - [GetVpcDetailRequest](docs/GetVpcDetailRequest.md)
+ - [GetVpcDetailResponse](docs/GetVpcDetailResponse.md)
+ - [GetVpcListRequest](docs/GetVpcListRequest.md)
+ - [GetVpcListResponse](docs/GetVpcListResponse.md)
+ - [GetVpcPeeringInstanceDetailRequest](docs/GetVpcPeeringInstanceDetailRequest.md)
+ - [GetVpcPeeringInstanceDetailResponse](docs/GetVpcPeeringInstanceDetailResponse.md)
+ - [GetVpcPeeringInstanceListRequest](docs/GetVpcPeeringInstanceListRequest.md)
+ - [GetVpcPeeringInstanceListResponse](docs/GetVpcPeeringInstanceListResponse.md)
+ - [NatGatewayInstance](docs/NatGatewayInstance.md)
+ - [NetworkAcl](docs/NetworkAcl.md)
+ - [NetworkAclRule](docs/NetworkAclRule.md)
+ - [RemoveNetworkAclInboundRuleRequest](docs/RemoveNetworkAclInboundRuleRequest.md)
+ - [RemoveNetworkAclInboundRuleResponse](docs/RemoveNetworkAclInboundRuleResponse.md)
+ - [RemoveNetworkAclOutboundRuleRequest](docs/RemoveNetworkAclOutboundRuleRequest.md)
+ - [RemoveNetworkAclOutboundRuleResponse](docs/RemoveNetworkAclOutboundRuleResponse.md)
+ - [RemoveNetworkAclRuleParameter](docs/RemoveNetworkAclRuleParameter.md)
+ - [RemoveRouteRequest](docs/RemoveRouteRequest.md)
+ - [RemoveRouteResponse](docs/RemoveRouteResponse.md)
+ - [RemoveRouteTableSubnetRequest](docs/RemoveRouteTableSubnetRequest.md)
+ - [RemoveRouteTableSubnetResponse](docs/RemoveRouteTableSubnetResponse.md)
+ - [Route](docs/Route.md)
+ - [RouteParameter](docs/RouteParameter.md)
+ - [RouteTable](docs/RouteTable.md)
+ - [SetNatGatewayDescriptionRequest](docs/SetNatGatewayDescriptionRequest.md)
+ - [SetNatGatewayDescriptionResponse](docs/SetNatGatewayDescriptionResponse.md)
+ - [SetNetworkAclDescriptionRequest](docs/SetNetworkAclDescriptionRequest.md)
+ - [SetNetworkAclDescriptionResponse](docs/SetNetworkAclDescriptionResponse.md)
+ - [SetRouteTableDescriptionRequest](docs/SetRouteTableDescriptionRequest.md)
+ - [SetRouteTableDescriptionResponse](docs/SetRouteTableDescriptionResponse.md)
+ - [SetSubnetNetworkAclRequest](docs/SetSubnetNetworkAclRequest.md)
+ - [SetSubnetNetworkAclResponse](docs/SetSubnetNetworkAclResponse.md)
+ - [SetVpcPeeringDescriptionRequest](docs/SetVpcPeeringDescriptionRequest.md)
+ - [SetVpcPeeringDescriptionResponse](docs/SetVpcPeeringDescriptionResponse.md)
+ - [Subnet](docs/Subnet.md)
+ - [Vpc](docs/Vpc.md)
+ - [VpcPeeringInstance](docs/VpcPeeringInstance.md)
+
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/accept_or_reject_vpc_peering_request.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/accept_or_reject_vpc_peering_request.go
new file mode 100644
index 000000000..a65dcad90
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/accept_or_reject_vpc_peering_request.go
@@ -0,0 +1,21 @@
+/*
+ * vpc
+ *
+ * VPC Network 관련 API
https://ncloud.apigw.ntruss.com/vpc/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vpc
+
+type AcceptOrRejectVpcPeeringRequest struct {
+
+ // REGION코드
+RegionCode *string `json:"regionCode,omitempty"`
+
+ // VPCPeering인스턴스번호
+VpcPeeringInstanceNo *string `json:"vpcPeeringInstanceNo"`
+
+ // 수락여부
+IsAccept *bool `json:"isAccept"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/accept_or_reject_vpc_peering_response.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/accept_or_reject_vpc_peering_response.go
new file mode 100644
index 000000000..6ec9b7d89
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/accept_or_reject_vpc_peering_response.go
@@ -0,0 +1,22 @@
+/*
+ * vpc
+ *
+ * VPC Network 관련 API
https://ncloud.apigw.ntruss.com/vpc/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vpc
+
+type AcceptOrRejectVpcPeeringResponse struct {
+
+RequestId *string `json:"requestId,omitempty"`
+
+ReturnCode *string `json:"returnCode,omitempty"`
+
+ReturnMessage *string `json:"returnMessage,omitempty"`
+
+TotalRows *int32 `json:"totalRows,omitempty"`
+
+VpcPeeringInstanceList []*VpcPeeringInstance `json:"vpcPeeringInstanceList,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/add_network_acl_inbound_rule_request.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/add_network_acl_inbound_rule_request.go
new file mode 100644
index 000000000..1ba34e45f
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/add_network_acl_inbound_rule_request.go
@@ -0,0 +1,21 @@
+/*
+ * vpc
+ *
+ * VPC Network 관련 API
https://ncloud.apigw.ntruss.com/vpc/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vpc
+
+type AddNetworkAclInboundRuleRequest struct {
+
+ // REGION코드
+RegionCode *string `json:"regionCode,omitempty"`
+
+ // 네트워크ACL번호
+NetworkAclNo *string `json:"networkAclNo"`
+
+ // 네트워크ACLRule리스트
+NetworkAclRuleList []*AddNetworkAclRuleParameter `json:"networkAclRuleList"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/add_network_acl_inbound_rule_response.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/add_network_acl_inbound_rule_response.go
new file mode 100644
index 000000000..4e3254856
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/add_network_acl_inbound_rule_response.go
@@ -0,0 +1,22 @@
+/*
+ * vpc
+ *
+ * VPC Network 관련 API
https://ncloud.apigw.ntruss.com/vpc/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vpc
+
+type AddNetworkAclInboundRuleResponse struct {
+
+RequestId *string `json:"requestId,omitempty"`
+
+ReturnCode *string `json:"returnCode,omitempty"`
+
+ReturnMessage *string `json:"returnMessage,omitempty"`
+
+TotalRows *int32 `json:"totalRows,omitempty"`
+
+NetworkAclRuleList []*NetworkAclRule `json:"networkAclRuleList,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/add_network_acl_outbound_rule_request.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/add_network_acl_outbound_rule_request.go
new file mode 100644
index 000000000..fd5441f8e
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/add_network_acl_outbound_rule_request.go
@@ -0,0 +1,21 @@
+/*
+ * vpc
+ *
+ * VPC Network 관련 API
https://ncloud.apigw.ntruss.com/vpc/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vpc
+
+type AddNetworkAclOutboundRuleRequest struct {
+
+ // REGION코드
+RegionCode *string `json:"regionCode,omitempty"`
+
+ // 네트워크ACL번호
+NetworkAclNo *string `json:"networkAclNo"`
+
+ // 네트워크ACLRule리스트
+NetworkAclRuleList []*AddNetworkAclRuleParameter `json:"networkAclRuleList"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/add_network_acl_outbound_rule_response.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/add_network_acl_outbound_rule_response.go
new file mode 100644
index 000000000..7ace9d4eb
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/add_network_acl_outbound_rule_response.go
@@ -0,0 +1,22 @@
+/*
+ * vpc
+ *
+ * VPC Network 관련 API
https://ncloud.apigw.ntruss.com/vpc/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vpc
+
+type AddNetworkAclOutboundRuleResponse struct {
+
+RequestId *string `json:"requestId,omitempty"`
+
+ReturnCode *string `json:"returnCode,omitempty"`
+
+ReturnMessage *string `json:"returnMessage,omitempty"`
+
+TotalRows *int32 `json:"totalRows,omitempty"`
+
+NetworkAclRuleList []*NetworkAclRule `json:"networkAclRuleList,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/add_network_acl_rule_parameter.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/add_network_acl_rule_parameter.go
new file mode 100644
index 000000000..9e660b76d
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/add_network_acl_rule_parameter.go
@@ -0,0 +1,30 @@
+/*
+ * vpc
+ *
+ * VPC Network 관련 API
https://ncloud.apigw.ntruss.com/vpc/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vpc
+
+type AddNetworkAclRuleParameter struct {
+
+ // 네트워크ACLRule설명
+NetworkAclRuleDescription *string `json:"networkAclRuleDescription,omitempty"`
+
+ // IP블록
+IpBlock *string `json:"ipBlock"`
+
+ // Rule액션코드
+RuleActionCode *string `json:"ruleActionCode"`
+
+ // 포트범위
+PortRange *string `json:"portRange,omitempty"`
+
+ // 우선순위
+Priority *int32 `json:"priority"`
+
+ // 프로토콜유형코드
+ProtocolTypeCode *string `json:"protocolTypeCode"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/add_route_request.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/add_route_request.go
new file mode 100644
index 000000000..5bd3cb982
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/add_route_request.go
@@ -0,0 +1,24 @@
+/*
+ * vpc
+ *
+ * VPC Network 관련 API
https://ncloud.apigw.ntruss.com/vpc/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vpc
+
+type AddRouteRequest struct {
+
+ // REGION코드
+RegionCode *string `json:"regionCode,omitempty"`
+
+ // 라우트리스트
+RouteList []*RouteParameter `json:"routeList"`
+
+ // 라우트테이블번호
+RouteTableNo *string `json:"routeTableNo"`
+
+ // VPC번호
+VpcNo *string `json:"vpcNo"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/add_route_response.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/add_route_response.go
new file mode 100644
index 000000000..6d58db88e
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/add_route_response.go
@@ -0,0 +1,22 @@
+/*
+ * vpc
+ *
+ * VPC Network 관련 API
https://ncloud.apigw.ntruss.com/vpc/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vpc
+
+type AddRouteResponse struct {
+
+RequestId *string `json:"requestId,omitempty"`
+
+ReturnCode *string `json:"returnCode,omitempty"`
+
+ReturnMessage *string `json:"returnMessage,omitempty"`
+
+TotalRows *int32 `json:"totalRows,omitempty"`
+
+RouteList []*Route `json:"routeList,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/add_route_table_subnet_request.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/add_route_table_subnet_request.go
new file mode 100644
index 000000000..ce8c65653
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/add_route_table_subnet_request.go
@@ -0,0 +1,24 @@
+/*
+ * vpc
+ *
+ * VPC Network 관련 API
https://ncloud.apigw.ntruss.com/vpc/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vpc
+
+type AddRouteTableSubnetRequest struct {
+
+ // REGION코드
+RegionCode *string `json:"regionCode,omitempty"`
+
+ // 라우트테이블번호
+RouteTableNo *string `json:"routeTableNo"`
+
+ // 서브넷번호리스트
+SubnetNoList []*string `json:"subnetNoList"`
+
+ // VPC번호
+VpcNo *string `json:"vpcNo"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/add_route_table_subnet_response.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/add_route_table_subnet_response.go
new file mode 100644
index 000000000..49bc79d0a
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/add_route_table_subnet_response.go
@@ -0,0 +1,22 @@
+/*
+ * vpc
+ *
+ * VPC Network 관련 API
https://ncloud.apigw.ntruss.com/vpc/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vpc
+
+type AddRouteTableSubnetResponse struct {
+
+RequestId *string `json:"requestId,omitempty"`
+
+ReturnCode *string `json:"returnCode,omitempty"`
+
+ReturnMessage *string `json:"returnMessage,omitempty"`
+
+TotalRows *int32 `json:"totalRows,omitempty"`
+
+SubnetList []*Subnet `json:"subnetList,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/api_client.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/api_client.go
new file mode 100644
index 000000000..687e1246b
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/api_client.go
@@ -0,0 +1,450 @@
+/*
+ * vpc
+ *
+ * VPC Network 관련 API
https://ncloud.apigw.ntruss.com/vpc/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vpc
+
+import (
+ "bytes"
+ "crypto"
+ "errors"
+ "fmt"
+ "io"
+ "mime/multipart"
+ "net/http"
+ "net/url"
+ "os"
+ "path/filepath"
+ "reflect"
+ "regexp"
+ "strconv"
+ "strings"
+ "time"
+ "unicode"
+ "unicode/utf8"
+
+ "github.com/NaverCloudPlatform/ncloud-sdk-go-v2/hmac"
+ "github.com/NaverCloudPlatform/ncloud-sdk-go-v2/ncloud"
+)
+
+var (
+ jsonCheck = regexp.MustCompile("(?i:[application|text]/json)")
+ xmlCheck = regexp.MustCompile("(?i:[application|text]/xml)")
+)
+
+// APIClient manages communication with the vpc API v2020-09-17T10:29:55Z
+// In most cases there should be only one, shared, APIClient.
+type APIClient struct {
+ cfg *ncloud.Configuration
+ common service // Reuse a single struct instead of allocating one for each service on the heap.
+
+ // API Services
+ V2Api *V2ApiService
+}
+
+type service struct {
+ client *APIClient
+}
+
+// NewAPIClient creates a new API client. Requires a userAgent string describing your application.
+// optionally a custom http.Client to allow for advanced features such as caching.
+func NewAPIClient(cfg *ncloud.Configuration) *APIClient {
+ if cfg.HTTPClient == nil {
+ cfg.HTTPClient = http.DefaultClient
+ }
+
+ c := &APIClient{}
+ c.cfg = cfg
+ c.common.client = c
+
+ // API Services
+ c.V2Api = (*V2ApiService)(&c.common)
+
+ return c
+}
+
+func atoi(in string) (int, error) {
+ return strconv.Atoi(in)
+}
+
+// selectHeaderContentType select a content type from the available list.
+func selectHeaderContentType(contentTypes []string) string {
+ if len(contentTypes) == 0 {
+ return ""
+ }
+ if contains(contentTypes, "application/json") {
+ return "application/json"
+ }
+ return contentTypes[0] // use the first content type specified in 'consumes'
+}
+
+// selectHeaderAccept join all accept types and return
+func selectHeaderAccept(accepts []string) string {
+ if len(accepts) == 0 {
+ return ""
+ }
+
+ if contains(accepts, "application/json") {
+ return "application/json"
+ }
+
+ return strings.Join(accepts, ",")
+}
+
+// contains is a case insenstive match, finding needle in a haystack
+func contains(haystack []string, needle string) bool {
+ for _, a := range haystack {
+ if strings.ToLower(a) == strings.ToLower(needle) {
+ return true
+ }
+ }
+ return false
+}
+
+// Verify optional parameters are of the correct type.
+func typeCheckParameter(obj interface{}, expected string, name string) error {
+ // Make sure there is an object.
+ if obj == nil {
+ return nil
+ }
+
+ // Check the type is as expected.
+ if reflect.TypeOf(obj).String() != expected {
+ return fmt.Errorf("Expected %s to be of type %s but received %s.", name, expected, reflect.TypeOf(obj).String())
+ }
+ return nil
+}
+
+// parameterToString convert interface{} parameters to string, using a delimiter if format is provided.
+func parameterToString(obj interface{}, collectionFormat string) string {
+ var delimiter string
+
+ switch collectionFormat {
+ case "pipes":
+ delimiter = "|"
+ case "ssv":
+ delimiter = " "
+ case "tsv":
+ delimiter = "\t"
+ case "csv":
+ delimiter = ","
+ }
+
+ if reflect.TypeOf(obj).Kind() == reflect.Slice {
+ return strings.Trim(strings.Replace(fmt.Sprint(obj), " ", delimiter, -1), "[]")
+ }
+
+ return fmt.Sprintf("%v", obj)
+}
+
+// callAPI do the request.
+func (c *APIClient) callAPI(request *http.Request) (*http.Response, error) {
+ return c.cfg.HTTPClient.Do(request)
+}
+
+// Change base path to allow switching to mocks
+func (c *APIClient) ChangeBasePath(path string) {
+ c.cfg.BasePath = path
+}
+
+// prepareRequest build the request
+func (c *APIClient) prepareRequest(
+ path string,
+ method string,
+ postBody interface{},
+ headerParams map[string]string,
+ queryParams url.Values,
+ formParams url.Values,
+ fileName string,
+ fileBytes []byte) (localVarRequest *http.Request, err error) {
+
+ var body *bytes.Buffer
+
+ // Detect postBody type and post.
+ if postBody != nil {
+ contentType := headerParams["Content-Type"]
+ if contentType == "" {
+ contentType = detectContentType(postBody)
+ headerParams["Content-Type"] = contentType
+ }
+
+ body, err = setBody(postBody, contentType)
+ if err != nil {
+ return nil, err
+ }
+ }
+
+ // add form parameters and file if available.
+ if len(formParams) > 0 || (len(fileBytes) > 0 && fileName != "") {
+ if body != nil {
+ return nil, errors.New("Cannot specify postBody and multipart form at the same time.")
+ }
+ body = &bytes.Buffer{}
+ w := multipart.NewWriter(body)
+
+ for k, v := range formParams {
+ for _, iv := range v {
+ if strings.HasPrefix(k, "@") { // file
+ err = addFile(w, k[1:], iv)
+ if err != nil {
+ return nil, err
+ }
+ } else { // form value
+ w.WriteField(k, iv)
+ }
+ }
+ }
+ if len(fileBytes) > 0 && fileName != "" {
+ w.Boundary()
+ //_, fileNm := filepath.Split(fileName)
+ part, err := w.CreateFormFile("file", filepath.Base(fileName))
+ if err != nil {
+ return nil, err
+ }
+ _, err = part.Write(fileBytes)
+ if err != nil {
+ return nil, err
+ }
+ // Set the Boundary in the Content-Type
+ headerParams["Content-Type"] = w.FormDataContentType()
+ }
+
+ // Set Content-Length
+ headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len())
+ w.Close()
+ }
+
+ // Setup path and query parameters
+ url, err := url.Parse(path)
+ if err != nil {
+ return nil, err
+ }
+
+ // Adding Query Param
+ query := url.Query()
+ for k, v := range queryParams {
+ for _, iv := range v {
+ query.Add(k, iv)
+ }
+ }
+
+ // Encode the parameters.
+ url.RawQuery = query.Encode()
+
+ // Generate a new request
+ if body != nil {
+ localVarRequest, err = http.NewRequest(method, url.String(), body)
+ } else {
+ localVarRequest, err = http.NewRequest(method, url.String(), nil)
+ }
+ if err != nil {
+ return nil, err
+ }
+
+ // add header parameters, if any
+ if len(headerParams) > 0 {
+ headers := http.Header{}
+ for h, v := range headerParams {
+ headers.Set(h, v)
+ }
+ localVarRequest.Header = headers
+ }
+
+ // Override request host, if applicable
+ if c.cfg.Host != "" {
+ localVarRequest.Host = c.cfg.Host
+ }
+
+ // Add the user agent to the request.
+ localVarRequest.Header.Add("User-Agent", c.cfg.UserAgent)
+
+ // APIKey Authentication
+ if auth := c.cfg.APIKey; auth != nil {
+ timestamp := strconv.FormatInt(time.Now().UnixNano()/int64(time.Millisecond), 10)
+ signer := hmac.NewSigner(auth.SecretKey, crypto.SHA256)
+ signature, _ := signer.Sign(method, path, auth.AccessKey, timestamp)
+
+ localVarRequest.Header.Add("x-ncp-apigw-timestamp", timestamp)
+ localVarRequest.Header.Add("x-ncp-iam-access-key", auth.AccessKey)
+ localVarRequest.Header.Add("x-ncp-apigw-signature-v1", signature)
+ }
+
+ for header, value := range c.cfg.DefaultHeader {
+ localVarRequest.Header.Add(header, value)
+ }
+
+ return localVarRequest, nil
+}
+
+// Add a file to the multipart request
+func addFile(w *multipart.Writer, fieldName, path string) error {
+ file, err := os.Open(path)
+ if err != nil {
+ return err
+ }
+ defer file.Close()
+
+ part, err := w.CreateFormFile(fieldName, filepath.Base(path))
+ if err != nil {
+ return err
+ }
+ _, err = io.Copy(part, file)
+
+ return err
+}
+
+// Prevent trying to import "fmt"
+func reportError(format string, a ...interface{}) error {
+ return fmt.Errorf(format, a...)
+}
+
+func toLowerFirstChar(s string) string {
+ a := []rune(s)
+ a[0] = unicode.ToLower(a[0])
+ return string(a)
+}
+
+// Set request body from an interface{}
+func setBody(body interface{}, contentType string) (bodyBuf *bytes.Buffer, err error) {
+ if bodyBuf == nil {
+ bodyBuf = &bytes.Buffer{}
+ }
+
+ bodyBuf.WriteString("responseFormatType=json")
+ s := reflect.ValueOf(body).Elem()
+ bodyBuf.WriteString(buildQueryString(s, ""))
+
+ if err != nil {
+ return nil, err
+ }
+
+ if bodyBuf.Len() == 0 {
+ err = fmt.Errorf("invalid body type %s", contentType)
+ return nil, err
+ }
+ return bodyBuf, nil
+}
+
+func buildQueryString(s reflect.Value, prefix string) string {
+ bodyBuf := &bytes.Buffer{}
+ if s.Kind() == reflect.Struct {
+ for i := 0; i < s.NumField(); i++ {
+ f := s.Field(i)
+ if !f.IsNil() {
+ name := toLowerFirstChar(s.Type().Field(i).Name)
+ if len(prefix) > 0 {
+ bodyBuf.WriteString(buildQueryString(f, fmt.Sprintf("%s.%s", prefix, name)))
+ } else {
+ bodyBuf.WriteString(buildQueryString(f, name))
+ }
+ }
+ }
+ } else if s.Kind() == reflect.Slice {
+ for i := 0; i < s.Len(); i++ {
+ item := s.Index(i)
+ bodyBuf.WriteString(buildQueryString(item.Elem(), fmt.Sprintf("%s.%d", prefix, i+1)))
+ }
+ } else if s.Kind() == reflect.Ptr {
+ bodyBuf.WriteString(fmt.Sprintf("&%s=%s", prefix, convertToString(s)))
+ } else if s.Kind() == reflect.String {
+ bodyBuf.WriteString(fmt.Sprintf("&%s=%s", prefix, s.Interface()))
+ }
+
+ return bodyBuf.String()
+}
+
+func convertToString(f reflect.Value) string {
+ switch f.Type().String() {
+ case "*string":
+ return url.QueryEscape(ncloud.StringValue(f.Interface().(*string)))
+ case "*bool":
+ return fmt.Sprintf("%t", *f.Interface().(*bool))
+ case "*int":
+ return fmt.Sprintf("%d", *f.Interface().(*int))
+ case "*int32":
+ return fmt.Sprintf("%d", *f.Interface().(*int32))
+ case "*int64":
+ return fmt.Sprintf("%d", *f.Interface().(*int64))
+ case "*float32":
+ return fmt.Sprintf("%f", *f.Interface().(*float32))
+ }
+ return ""
+}
+
+// detectContentType method is used to figure out `Request.Body` content type for request header
+func detectContentType(body interface{}) string {
+ contentType := "text/plain; charset=utf-8"
+ kind := reflect.TypeOf(body).Kind()
+
+ switch kind {
+ case reflect.Struct, reflect.Map, reflect.Ptr:
+ contentType = "application/json; charset=utf-8"
+ case reflect.String:
+ contentType = "text/plain; charset=utf-8"
+ default:
+ if b, ok := body.([]byte); ok {
+ contentType = http.DetectContentType(b)
+ } else if kind == reflect.Slice {
+ contentType = "application/json; charset=utf-8"
+ }
+ }
+
+ return contentType
+}
+
+// Ripped from https://github.com/gregjones/httpcache/blob/master/httpcache.go
+type cacheControl map[string]string
+
+func parseCacheControl(headers http.Header) cacheControl {
+ cc := cacheControl{}
+ ccHeader := headers.Get("Cache-Control")
+ for _, part := range strings.Split(ccHeader, ",") {
+ part = strings.Trim(part, " ")
+ if part == "" {
+ continue
+ }
+ if strings.ContainsRune(part, '=') {
+ keyval := strings.Split(part, "=")
+ cc[strings.Trim(keyval[0], " ")] = strings.Trim(keyval[1], ",")
+ } else {
+ cc[part] = ""
+ }
+ }
+ return cc
+}
+
+// CacheExpires helper function to determine remaining time before repeating a request.
+func CacheExpires(r *http.Response) time.Time {
+ // Figure out when the cache expires.
+ var expires time.Time
+ now, err := time.Parse(time.RFC1123, r.Header.Get("date"))
+ if err != nil {
+ return time.Now()
+ }
+ respCacheControl := parseCacheControl(r.Header)
+
+ if maxAge, ok := respCacheControl["max-age"]; ok {
+ lifetime, err := time.ParseDuration(maxAge + "s")
+ if err != nil {
+ expires = now
+ }
+ expires = now.Add(lifetime)
+ } else {
+ expiresHeader := r.Header.Get("Expires")
+ if expiresHeader != "" {
+ expires, err = time.Parse(time.RFC1123, expiresHeader)
+ if err != nil {
+ expires = now
+ }
+ }
+ }
+ return expires
+}
+
+func strlen(s string) int {
+ return utf8.RuneCountInString(s)
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/api_response.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/api_response.go
new file mode 100644
index 000000000..0b22041ee
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/api_response.go
@@ -0,0 +1,42 @@
+/*
+ * vpc
+ *
+ * VPC Network 관련 API
https://ncloud.apigw.ntruss.com/vpc/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vpc
+
+import (
+ "net/http"
+)
+
+type APIResponse struct {
+ *http.Response `json:"-"`
+ Message string `json:"message,omitempty"`
+ // Operation is the name of the swagger operation.
+ Operation string `json:"operation,omitempty"`
+ // RequestURL is the request URL. This value is always available, even if the
+ // embedded *http.Response is nil.
+ RequestURL string `json:"url,omitempty"`
+ // Method is the HTTP method used for the request. This value is always
+ // available, even if the embedded *http.Response is nil.
+ Method string `json:"method,omitempty"`
+ // Payload holds the contents of the response body (which may be nil or empty).
+ // This is provided here as the raw response.Body() reader will have already
+ // been drained.
+ Payload []byte `json:"-"`
+}
+
+func NewAPIResponse(r *http.Response) *APIResponse {
+
+ response := &APIResponse{Response: r}
+ return response
+}
+
+func NewAPIResponseWithError(errorMessage string) *APIResponse {
+
+ response := &APIResponse{Message: errorMessage}
+ return response
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/common_code.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/common_code.go
new file mode 100644
index 000000000..36d5df73c
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/common_code.go
@@ -0,0 +1,18 @@
+/*
+ * vpc
+ *
+ * VPC Network 관련 API
https://ncloud.apigw.ntruss.com/vpc/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vpc
+
+type CommonCode struct {
+
+ // 코드
+Code *string `json:"code,omitempty"`
+
+ // 코드명
+CodeName *string `json:"codeName,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/configuration.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/configuration.go
new file mode 100644
index 000000000..884d9d456
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/configuration.go
@@ -0,0 +1,37 @@
+/*
+ * vpc
+ *
+ * VPC Network 관련 API
https://ncloud.apigw.ntruss.com/vpc/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vpc
+
+import (
+ "github.com/NaverCloudPlatform/ncloud-sdk-go-v2/ncloud"
+ "os"
+)
+
+// contextKeys are used to identify the type of value in the context.
+// Since these are string, it is possible to get a short description of the
+// context key for logging and debugging using key.String().
+
+type contextKey string
+
+func (c contextKey) String() string {
+ return "auth " + string(c)
+}
+
+func NewConfiguration(apiKey *ncloud.APIKey) *ncloud.Configuration {
+ cfg := &ncloud.Configuration{
+ BasePath: "https://ncloud.apigw.ntruss.com/vpc/v2",
+ DefaultHeader: make(map[string]string),
+ UserAgent: "vpc/1.0.0/go",
+ APIKey: apiKey,
+ }
+ if os.Getenv("NCLOUD_API_GW") != "" {
+ cfg.BasePath = os.Getenv("NCLOUD_API_GW") + "/vpc/v2"
+ }
+ return cfg
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/create_nat_gateway_instance_request.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/create_nat_gateway_instance_request.go
new file mode 100644
index 000000000..4c2405e2d
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/create_nat_gateway_instance_request.go
@@ -0,0 +1,27 @@
+/*
+ * vpc
+ *
+ * VPC Network 관련 API
https://ncloud.apigw.ntruss.com/vpc/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vpc
+
+type CreateNatGatewayInstanceRequest struct {
+
+ // REGION코드
+RegionCode *string `json:"regionCode,omitempty"`
+
+ // NATGateway설명
+NatGatewayDescription *string `json:"natGatewayDescription,omitempty"`
+
+ // NATGateway이름
+NatGatewayName *string `json:"natGatewayName,omitempty"`
+
+ // VPC번호
+VpcNo *string `json:"vpcNo"`
+
+ // ZONE코드
+ZoneCode *string `json:"zoneCode"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/create_nat_gateway_instance_response.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/create_nat_gateway_instance_response.go
new file mode 100644
index 000000000..a732cf5dc
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/create_nat_gateway_instance_response.go
@@ -0,0 +1,22 @@
+/*
+ * vpc
+ *
+ * VPC Network 관련 API
https://ncloud.apigw.ntruss.com/vpc/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vpc
+
+type CreateNatGatewayInstanceResponse struct {
+
+RequestId *string `json:"requestId,omitempty"`
+
+ReturnCode *string `json:"returnCode,omitempty"`
+
+ReturnMessage *string `json:"returnMessage,omitempty"`
+
+TotalRows *int32 `json:"totalRows,omitempty"`
+
+NatGatewayInstanceList []*NatGatewayInstance `json:"natGatewayInstanceList,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/create_network_acl_request.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/create_network_acl_request.go
new file mode 100644
index 000000000..e67b89049
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/create_network_acl_request.go
@@ -0,0 +1,24 @@
+/*
+ * vpc
+ *
+ * VPC Network 관련 API
https://ncloud.apigw.ntruss.com/vpc/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vpc
+
+type CreateNetworkAclRequest struct {
+
+ // REGION코드
+RegionCode *string `json:"regionCode,omitempty"`
+
+ // 네트워크ACL설명
+NetworkAclDescription *string `json:"networkAclDescription,omitempty"`
+
+ // 네트워크ACL이름
+NetworkAclName *string `json:"networkAclName,omitempty"`
+
+ // VPC번호
+VpcNo *string `json:"vpcNo"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/create_network_acl_response.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/create_network_acl_response.go
new file mode 100644
index 000000000..fb00e5383
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/create_network_acl_response.go
@@ -0,0 +1,22 @@
+/*
+ * vpc
+ *
+ * VPC Network 관련 API
https://ncloud.apigw.ntruss.com/vpc/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vpc
+
+type CreateNetworkAclResponse struct {
+
+RequestId *string `json:"requestId,omitempty"`
+
+ReturnCode *string `json:"returnCode,omitempty"`
+
+ReturnMessage *string `json:"returnMessage,omitempty"`
+
+TotalRows *int32 `json:"totalRows,omitempty"`
+
+NetworkAclList []*NetworkAcl `json:"networkAclList,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/create_route_table_request.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/create_route_table_request.go
new file mode 100644
index 000000000..66ecfb59e
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/create_route_table_request.go
@@ -0,0 +1,27 @@
+/*
+ * vpc
+ *
+ * VPC Network 관련 API
https://ncloud.apigw.ntruss.com/vpc/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vpc
+
+type CreateRouteTableRequest struct {
+
+ // REGION코드
+RegionCode *string `json:"regionCode,omitempty"`
+
+ // 라우트테이블설명
+RouteTableDescription *string `json:"routeTableDescription,omitempty"`
+
+ // 지원하는서브넷유형코드
+SupportedSubnetTypeCode *string `json:"supportedSubnetTypeCode"`
+
+ // 라우트테이블이름
+RouteTableName *string `json:"routeTableName,omitempty"`
+
+ // VPC번호
+VpcNo *string `json:"vpcNo"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/create_route_table_response.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/create_route_table_response.go
new file mode 100644
index 000000000..e18b58e2b
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/create_route_table_response.go
@@ -0,0 +1,22 @@
+/*
+ * vpc
+ *
+ * VPC Network 관련 API
https://ncloud.apigw.ntruss.com/vpc/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vpc
+
+type CreateRouteTableResponse struct {
+
+RequestId *string `json:"requestId,omitempty"`
+
+ReturnCode *string `json:"returnCode,omitempty"`
+
+ReturnMessage *string `json:"returnMessage,omitempty"`
+
+TotalRows *int32 `json:"totalRows,omitempty"`
+
+RouteTableList []*RouteTable `json:"routeTableList,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/create_subnet_request.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/create_subnet_request.go
new file mode 100644
index 000000000..39bff1093
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/create_subnet_request.go
@@ -0,0 +1,36 @@
+/*
+ * vpc
+ *
+ * VPC Network 관련 API
https://ncloud.apigw.ntruss.com/vpc/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vpc
+
+type CreateSubnetRequest struct {
+
+ // REGION코드
+RegionCode *string `json:"regionCode,omitempty"`
+
+ // 서브넷유형코드
+SubnetTypeCode *string `json:"subnetTypeCode"`
+
+ // 용도유형코드
+UsageTypeCode *string `json:"usageTypeCode,omitempty"`
+
+ // 네트워크ACL번호
+NetworkAclNo *string `json:"networkAclNo"`
+
+ // 서브넷
+Subnet *string `json:"subnet"`
+
+ // 서브넷이름
+SubnetName *string `json:"subnetName,omitempty"`
+
+ // VPC번호
+VpcNo *string `json:"vpcNo"`
+
+ // ZONE코드
+ZoneCode *string `json:"zoneCode"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/create_subnet_response.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/create_subnet_response.go
new file mode 100644
index 000000000..2e540fa79
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/create_subnet_response.go
@@ -0,0 +1,22 @@
+/*
+ * vpc
+ *
+ * VPC Network 관련 API
https://ncloud.apigw.ntruss.com/vpc/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vpc
+
+type CreateSubnetResponse struct {
+
+RequestId *string `json:"requestId,omitempty"`
+
+ReturnCode *string `json:"returnCode,omitempty"`
+
+ReturnMessage *string `json:"returnMessage,omitempty"`
+
+TotalRows *int32 `json:"totalRows,omitempty"`
+
+SubnetList []*Subnet `json:"subnetList,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/create_vpc_peering_instance_request.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/create_vpc_peering_instance_request.go
new file mode 100644
index 000000000..e3b05bc82
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/create_vpc_peering_instance_request.go
@@ -0,0 +1,33 @@
+/*
+ * vpc
+ *
+ * VPC Network 관련 API
https://ncloud.apigw.ntruss.com/vpc/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vpc
+
+type CreateVpcPeeringInstanceRequest struct {
+
+ // REGION코드
+RegionCode *string `json:"regionCode,omitempty"`
+
+ // VPCPeering설명
+VpcPeeringDescription *string `json:"vpcPeeringDescription,omitempty"`
+
+ // 요청VPC번호
+SourceVpcNo *string `json:"sourceVpcNo"`
+
+ // 수락VPC소유자ID
+TargetVpcLoginId *string `json:"targetVpcLoginId,omitempty"`
+
+ // 수락VPC이름
+TargetVpcName *string `json:"targetVpcName,omitempty"`
+
+ // 수락VPC번호
+TargetVpcNo *string `json:"targetVpcNo"`
+
+ // VPCPeering이름
+VpcPeeringName *string `json:"vpcPeeringName,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/create_vpc_peering_instance_response.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/create_vpc_peering_instance_response.go
new file mode 100644
index 000000000..5ed9c72f9
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/create_vpc_peering_instance_response.go
@@ -0,0 +1,22 @@
+/*
+ * vpc
+ *
+ * VPC Network 관련 API
https://ncloud.apigw.ntruss.com/vpc/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vpc
+
+type CreateVpcPeeringInstanceResponse struct {
+
+RequestId *string `json:"requestId,omitempty"`
+
+ReturnCode *string `json:"returnCode,omitempty"`
+
+ReturnMessage *string `json:"returnMessage,omitempty"`
+
+TotalRows *int32 `json:"totalRows,omitempty"`
+
+VpcPeeringInstanceList []*VpcPeeringInstance `json:"vpcPeeringInstanceList,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/create_vpc_request.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/create_vpc_request.go
new file mode 100644
index 000000000..c24c0c31a
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/create_vpc_request.go
@@ -0,0 +1,21 @@
+/*
+ * vpc
+ *
+ * VPC Network 관련 API
https://ncloud.apigw.ntruss.com/vpc/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vpc
+
+type CreateVpcRequest struct {
+
+ // REGION코드
+RegionCode *string `json:"regionCode,omitempty"`
+
+ // IPv4 CIDR블록
+Ipv4CidrBlock *string `json:"ipv4CidrBlock"`
+
+ // VPC이름
+VpcName *string `json:"vpcName,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/create_vpc_response.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/create_vpc_response.go
new file mode 100644
index 000000000..3ce06eafc
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/create_vpc_response.go
@@ -0,0 +1,22 @@
+/*
+ * vpc
+ *
+ * VPC Network 관련 API
https://ncloud.apigw.ntruss.com/vpc/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vpc
+
+type CreateVpcResponse struct {
+
+RequestId *string `json:"requestId,omitempty"`
+
+ReturnCode *string `json:"returnCode,omitempty"`
+
+ReturnMessage *string `json:"returnMessage,omitempty"`
+
+TotalRows *int32 `json:"totalRows,omitempty"`
+
+VpcList []*Vpc `json:"vpcList,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/delete_nat_gateway_instance_request.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/delete_nat_gateway_instance_request.go
new file mode 100644
index 000000000..4058e6d73
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/delete_nat_gateway_instance_request.go
@@ -0,0 +1,18 @@
+/*
+ * vpc
+ *
+ * VPC Network 관련 API
https://ncloud.apigw.ntruss.com/vpc/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vpc
+
+type DeleteNatGatewayInstanceRequest struct {
+
+ // REGION코드
+RegionCode *string `json:"regionCode,omitempty"`
+
+ // NATGateway인스턴스번호
+NatGatewayInstanceNo *string `json:"natGatewayInstanceNo"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/delete_nat_gateway_instance_response.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/delete_nat_gateway_instance_response.go
new file mode 100644
index 000000000..612631f69
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/delete_nat_gateway_instance_response.go
@@ -0,0 +1,22 @@
+/*
+ * vpc
+ *
+ * VPC Network 관련 API
https://ncloud.apigw.ntruss.com/vpc/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vpc
+
+type DeleteNatGatewayInstanceResponse struct {
+
+RequestId *string `json:"requestId,omitempty"`
+
+ReturnCode *string `json:"returnCode,omitempty"`
+
+ReturnMessage *string `json:"returnMessage,omitempty"`
+
+TotalRows *int32 `json:"totalRows,omitempty"`
+
+NatGatewayInstanceList []*NatGatewayInstance `json:"natGatewayInstanceList,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/delete_network_acl_request.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/delete_network_acl_request.go
new file mode 100644
index 000000000..87e11131b
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/delete_network_acl_request.go
@@ -0,0 +1,18 @@
+/*
+ * vpc
+ *
+ * VPC Network 관련 API
https://ncloud.apigw.ntruss.com/vpc/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vpc
+
+type DeleteNetworkAclRequest struct {
+
+ // REGION코드
+RegionCode *string `json:"regionCode,omitempty"`
+
+ // 네트워크ACL번호
+NetworkAclNo *string `json:"networkAclNo"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/delete_network_acl_response.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/delete_network_acl_response.go
new file mode 100644
index 000000000..cd8e65743
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/delete_network_acl_response.go
@@ -0,0 +1,22 @@
+/*
+ * vpc
+ *
+ * VPC Network 관련 API
https://ncloud.apigw.ntruss.com/vpc/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vpc
+
+type DeleteNetworkAclResponse struct {
+
+RequestId *string `json:"requestId,omitempty"`
+
+ReturnCode *string `json:"returnCode,omitempty"`
+
+ReturnMessage *string `json:"returnMessage,omitempty"`
+
+TotalRows *int32 `json:"totalRows,omitempty"`
+
+NetworkAclList []*NetworkAcl `json:"networkAclList,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/delete_route_table_request.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/delete_route_table_request.go
new file mode 100644
index 000000000..92a56f90f
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/delete_route_table_request.go
@@ -0,0 +1,18 @@
+/*
+ * vpc
+ *
+ * VPC Network 관련 API
https://ncloud.apigw.ntruss.com/vpc/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vpc
+
+type DeleteRouteTableRequest struct {
+
+ // REGION코드
+RegionCode *string `json:"regionCode,omitempty"`
+
+ // 라우트테이블번호
+RouteTableNo *string `json:"routeTableNo"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/delete_route_table_response.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/delete_route_table_response.go
new file mode 100644
index 000000000..ca2a4c8fb
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/delete_route_table_response.go
@@ -0,0 +1,22 @@
+/*
+ * vpc
+ *
+ * VPC Network 관련 API
https://ncloud.apigw.ntruss.com/vpc/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vpc
+
+type DeleteRouteTableResponse struct {
+
+RequestId *string `json:"requestId,omitempty"`
+
+ReturnCode *string `json:"returnCode,omitempty"`
+
+ReturnMessage *string `json:"returnMessage,omitempty"`
+
+TotalRows *int32 `json:"totalRows,omitempty"`
+
+RouteTableList []*RouteTable `json:"routeTableList,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/delete_subnet_request.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/delete_subnet_request.go
new file mode 100644
index 000000000..46c40f87b
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/delete_subnet_request.go
@@ -0,0 +1,18 @@
+/*
+ * vpc
+ *
+ * VPC Network 관련 API
https://ncloud.apigw.ntruss.com/vpc/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vpc
+
+type DeleteSubnetRequest struct {
+
+ // REGION코드
+RegionCode *string `json:"regionCode,omitempty"`
+
+ // 서브넷번호
+SubnetNo *string `json:"subnetNo"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/delete_subnet_response.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/delete_subnet_response.go
new file mode 100644
index 000000000..d79ba2b8b
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/delete_subnet_response.go
@@ -0,0 +1,22 @@
+/*
+ * vpc
+ *
+ * VPC Network 관련 API
https://ncloud.apigw.ntruss.com/vpc/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vpc
+
+type DeleteSubnetResponse struct {
+
+RequestId *string `json:"requestId,omitempty"`
+
+ReturnCode *string `json:"returnCode,omitempty"`
+
+ReturnMessage *string `json:"returnMessage,omitempty"`
+
+TotalRows *int32 `json:"totalRows,omitempty"`
+
+SubnetList []*Subnet `json:"subnetList,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/delete_vpc_peering_instance_request.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/delete_vpc_peering_instance_request.go
new file mode 100644
index 000000000..71af1bca5
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/delete_vpc_peering_instance_request.go
@@ -0,0 +1,18 @@
+/*
+ * vpc
+ *
+ * VPC Network 관련 API
https://ncloud.apigw.ntruss.com/vpc/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vpc
+
+type DeleteVpcPeeringInstanceRequest struct {
+
+ // REGION코드
+RegionCode *string `json:"regionCode,omitempty"`
+
+ // VPCPeering인스턴스번호
+VpcPeeringInstanceNo *string `json:"vpcPeeringInstanceNo"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/delete_vpc_peering_instance_response.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/delete_vpc_peering_instance_response.go
new file mode 100644
index 000000000..6c40aed92
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/delete_vpc_peering_instance_response.go
@@ -0,0 +1,22 @@
+/*
+ * vpc
+ *
+ * VPC Network 관련 API
https://ncloud.apigw.ntruss.com/vpc/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vpc
+
+type DeleteVpcPeeringInstanceResponse struct {
+
+RequestId *string `json:"requestId,omitempty"`
+
+ReturnCode *string `json:"returnCode,omitempty"`
+
+ReturnMessage *string `json:"returnMessage,omitempty"`
+
+TotalRows *int32 `json:"totalRows,omitempty"`
+
+VpcPeeringInstanceList []*VpcPeeringInstance `json:"vpcPeeringInstanceList,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/delete_vpc_request.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/delete_vpc_request.go
new file mode 100644
index 000000000..184d0190a
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/delete_vpc_request.go
@@ -0,0 +1,18 @@
+/*
+ * vpc
+ *
+ * VPC Network 관련 API
https://ncloud.apigw.ntruss.com/vpc/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vpc
+
+type DeleteVpcRequest struct {
+
+ // REGION코드
+RegionCode *string `json:"regionCode,omitempty"`
+
+ // VPC번호
+VpcNo *string `json:"vpcNo"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/delete_vpc_response.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/delete_vpc_response.go
new file mode 100644
index 000000000..9e28554d6
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/delete_vpc_response.go
@@ -0,0 +1,22 @@
+/*
+ * vpc
+ *
+ * VPC Network 관련 API
https://ncloud.apigw.ntruss.com/vpc/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vpc
+
+type DeleteVpcResponse struct {
+
+RequestId *string `json:"requestId,omitempty"`
+
+ReturnCode *string `json:"returnCode,omitempty"`
+
+ReturnMessage *string `json:"returnMessage,omitempty"`
+
+TotalRows *int32 `json:"totalRows,omitempty"`
+
+VpcList []*Vpc `json:"VpcList,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/get_nat_gateway_instance_detail_request.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/get_nat_gateway_instance_detail_request.go
new file mode 100644
index 000000000..e66fd1719
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/get_nat_gateway_instance_detail_request.go
@@ -0,0 +1,18 @@
+/*
+ * vpc
+ *
+ * VPC Network 관련 API
https://ncloud.apigw.ntruss.com/vpc/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vpc
+
+type GetNatGatewayInstanceDetailRequest struct {
+
+ // REGION코드
+RegionCode *string `json:"regionCode,omitempty"`
+
+ // NATGatway인스턴스번호
+NatGatewayInstanceNo *string `json:"natGatewayInstanceNo,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/get_nat_gateway_instance_detail_response.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/get_nat_gateway_instance_detail_response.go
new file mode 100644
index 000000000..e1070adf5
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/get_nat_gateway_instance_detail_response.go
@@ -0,0 +1,22 @@
+/*
+ * vpc
+ *
+ * VPC Network 관련 API
https://ncloud.apigw.ntruss.com/vpc/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vpc
+
+type GetNatGatewayInstanceDetailResponse struct {
+
+RequestId *string `json:"requestId,omitempty"`
+
+ReturnCode *string `json:"returnCode,omitempty"`
+
+ReturnMessage *string `json:"returnMessage,omitempty"`
+
+TotalRows *int32 `json:"totalRows,omitempty"`
+
+NatGatewayInstanceList []*NatGatewayInstance `json:"natGatewayInstanceList,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/get_nat_gateway_instance_list_request.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/get_nat_gateway_instance_list_request.go
new file mode 100644
index 000000000..b5e504540
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/get_nat_gateway_instance_list_request.go
@@ -0,0 +1,39 @@
+/*
+ * vpc
+ *
+ * VPC Network 관련 API
https://ncloud.apigw.ntruss.com/vpc/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vpc
+
+type GetNatGatewayInstanceListRequest struct {
+
+ // REGION코드
+RegionCode *string `json:"regionCode,omitempty"`
+
+ // ZONE코드
+ZoneCode *string `json:"zoneCode,omitempty"`
+
+ // NATGateway인스턴스번호리스트
+NatGatewayInstanceNoList []*string `json:"natGatewayInstanceNoList,omitempty"`
+
+ // 공인IP주소
+PublicIp *string `json:"publicIp,omitempty"`
+
+ // VPC이름
+VpcName *string `json:"vpcName,omitempty"`
+
+ // natGatewayName
+NatGatewayName *string `json:"natGatewayName,omitempty"`
+
+ // NATGateway인스턴스상태코드
+NatGatewayInstanceStatusCode *string `json:"natGatewayInstanceStatusCode,omitempty"`
+
+ // 페이지번호
+PageNo *int32 `json:"pageNo,omitempty"`
+
+ // 페이지사이즈
+PageSize *int32 `json:"pageSize,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/get_nat_gateway_instance_list_response.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/get_nat_gateway_instance_list_response.go
new file mode 100644
index 000000000..b8a073598
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/get_nat_gateway_instance_list_response.go
@@ -0,0 +1,22 @@
+/*
+ * vpc
+ *
+ * VPC Network 관련 API
https://ncloud.apigw.ntruss.com/vpc/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vpc
+
+type GetNatGatewayInstanceListResponse struct {
+
+RequestId *string `json:"requestId,omitempty"`
+
+ReturnCode *string `json:"returnCode,omitempty"`
+
+ReturnMessage *string `json:"returnMessage,omitempty"`
+
+TotalRows *int32 `json:"totalRows,omitempty"`
+
+NatGatewayInstanceList []*NatGatewayInstance `json:"natGatewayInstanceList,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/get_network_acl_detail_request.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/get_network_acl_detail_request.go
new file mode 100644
index 000000000..495ea5f8e
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/get_network_acl_detail_request.go
@@ -0,0 +1,18 @@
+/*
+ * vpc
+ *
+ * VPC Network 관련 API
https://ncloud.apigw.ntruss.com/vpc/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vpc
+
+type GetNetworkAclDetailRequest struct {
+
+ // REGION코드
+RegionCode *string `json:"regionCode,omitempty"`
+
+ // 네트워크ACL번호
+NetworkAclNo *string `json:"networkAclNo"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/get_network_acl_detail_response.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/get_network_acl_detail_response.go
new file mode 100644
index 000000000..06d6df95d
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/get_network_acl_detail_response.go
@@ -0,0 +1,22 @@
+/*
+ * vpc
+ *
+ * VPC Network 관련 API
https://ncloud.apigw.ntruss.com/vpc/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vpc
+
+type GetNetworkAclDetailResponse struct {
+
+RequestId *string `json:"requestId,omitempty"`
+
+ReturnCode *string `json:"returnCode,omitempty"`
+
+ReturnMessage *string `json:"returnMessage,omitempty"`
+
+TotalRows *int32 `json:"totalRows,omitempty"`
+
+NetworkAclList []*NetworkAcl `json:"networkAclList,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/get_network_acl_list_request.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/get_network_acl_list_request.go
new file mode 100644
index 000000000..43394ff46
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/get_network_acl_list_request.go
@@ -0,0 +1,33 @@
+/*
+ * vpc
+ *
+ * VPC Network 관련 API
https://ncloud.apigw.ntruss.com/vpc/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vpc
+
+type GetNetworkAclListRequest struct {
+
+ // REGION코드
+RegionCode *string `json:"regionCode,omitempty"`
+
+ // 네트워크ACL이름
+NetworkAclName *string `json:"networkAclName,omitempty"`
+
+ // 네트워크ACL상태코드
+NetworkAclStatusCode *string `json:"networkAclStatusCode,omitempty"`
+
+ // 네트워크ACL번호리스트
+NetworkAclNoList []*string `json:"networkAclNoList,omitempty"`
+
+ // 페이지번호
+PageNo *int32 `json:"pageNo,omitempty"`
+
+ // 페이지사이즈
+PageSize *int32 `json:"pageSize,omitempty"`
+
+ // VPC번호
+VpcNo *string `json:"vpcNo,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/get_network_acl_list_response.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/get_network_acl_list_response.go
new file mode 100644
index 000000000..9fa34b3c8
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/get_network_acl_list_response.go
@@ -0,0 +1,22 @@
+/*
+ * vpc
+ *
+ * VPC Network 관련 API
https://ncloud.apigw.ntruss.com/vpc/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vpc
+
+type GetNetworkAclListResponse struct {
+
+RequestId *string `json:"requestId,omitempty"`
+
+ReturnCode *string `json:"returnCode,omitempty"`
+
+ReturnMessage *string `json:"returnMessage,omitempty"`
+
+TotalRows *int32 `json:"totalRows,omitempty"`
+
+NetworkAclList []*NetworkAcl `json:"networkAclList,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/get_network_acl_rule_list_request.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/get_network_acl_rule_list_request.go
new file mode 100644
index 000000000..dc09d3db1
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/get_network_acl_rule_list_request.go
@@ -0,0 +1,21 @@
+/*
+ * vpc
+ *
+ * VPC Network 관련 API
https://ncloud.apigw.ntruss.com/vpc/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vpc
+
+type GetNetworkAclRuleListRequest struct {
+
+ // REGION코드
+RegionCode *string `json:"regionCode,omitempty"`
+
+ // 네트워크ACL번호
+NetworkAclNo *string `json:"networkAclNo"`
+
+ // 네트워크ACLRule유형코드
+NetworkAclRuleTypeCode *string `json:"networkAclRuleTypeCode,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/get_network_acl_rule_list_response.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/get_network_acl_rule_list_response.go
new file mode 100644
index 000000000..b154de479
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/get_network_acl_rule_list_response.go
@@ -0,0 +1,22 @@
+/*
+ * vpc
+ *
+ * VPC Network 관련 API
https://ncloud.apigw.ntruss.com/vpc/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vpc
+
+type GetNetworkAclRuleListResponse struct {
+
+RequestId *string `json:"requestId,omitempty"`
+
+ReturnCode *string `json:"returnCode,omitempty"`
+
+ReturnMessage *string `json:"returnMessage,omitempty"`
+
+TotalRows *int32 `json:"totalRows,omitempty"`
+
+NetworkAclRuleList []*NetworkAclRule `json:"networkAclRuleList,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/get_route_list_request.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/get_route_list_request.go
new file mode 100644
index 000000000..ab2abbc50
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/get_route_list_request.go
@@ -0,0 +1,21 @@
+/*
+ * vpc
+ *
+ * VPC Network 관련 API
https://ncloud.apigw.ntruss.com/vpc/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vpc
+
+type GetRouteListRequest struct {
+
+ // REGION코드
+RegionCode *string `json:"regionCode,omitempty"`
+
+ // 라우트테이블번호
+RouteTableNo *string `json:"routeTableNo"`
+
+ // VPC번호
+VpcNo *string `json:"vpcNo"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/get_route_list_response.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/get_route_list_response.go
new file mode 100644
index 000000000..c515724c7
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/get_route_list_response.go
@@ -0,0 +1,22 @@
+/*
+ * vpc
+ *
+ * VPC Network 관련 API
https://ncloud.apigw.ntruss.com/vpc/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vpc
+
+type GetRouteListResponse struct {
+
+RequestId *string `json:"requestId,omitempty"`
+
+ReturnCode *string `json:"returnCode,omitempty"`
+
+ReturnMessage *string `json:"returnMessage,omitempty"`
+
+TotalRows *int32 `json:"totalRows,omitempty"`
+
+RouteList []*Route `json:"routeList,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/get_route_table_detail_request.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/get_route_table_detail_request.go
new file mode 100644
index 000000000..5f747aabe
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/get_route_table_detail_request.go
@@ -0,0 +1,18 @@
+/*
+ * vpc
+ *
+ * VPC Network 관련 API
https://ncloud.apigw.ntruss.com/vpc/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vpc
+
+type GetRouteTableDetailRequest struct {
+
+ // REGION코드
+RegionCode *string `json:"regionCode,omitempty"`
+
+ // 라우트테이블번호
+RouteTableNo *string `json:"routeTableNo"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/get_route_table_detail_response.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/get_route_table_detail_response.go
new file mode 100644
index 000000000..f746e0ff4
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/get_route_table_detail_response.go
@@ -0,0 +1,22 @@
+/*
+ * vpc
+ *
+ * VPC Network 관련 API
https://ncloud.apigw.ntruss.com/vpc/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vpc
+
+type GetRouteTableDetailResponse struct {
+
+RequestId *string `json:"requestId,omitempty"`
+
+ReturnCode *string `json:"returnCode,omitempty"`
+
+ReturnMessage *string `json:"returnMessage,omitempty"`
+
+TotalRows *int32 `json:"totalRows,omitempty"`
+
+RouteTableList []*RouteTable `json:"routeTableList,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/get_route_table_list_request.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/get_route_table_list_request.go
new file mode 100644
index 000000000..eb312764b
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/get_route_table_list_request.go
@@ -0,0 +1,39 @@
+/*
+ * vpc
+ *
+ * VPC Network 관련 API
https://ncloud.apigw.ntruss.com/vpc/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vpc
+
+type GetRouteTableListRequest struct {
+
+ // REGION코드
+RegionCode *string `json:"regionCode,omitempty"`
+
+ // 라우트테이블번호리스트
+RouteTableNoList []*string `json:"routeTableNoList,omitempty"`
+
+ // 라우트테이블이름
+RouteTableName *string `json:"routeTableName,omitempty"`
+
+ // 지원하는서브넷유형코드
+SupportedSubnetTypeCode *string `json:"supportedSubnetTypeCode,omitempty"`
+
+ // 페이지번호
+PageNo *int32 `json:"pageNo,omitempty"`
+
+ // 페이지사이즈
+PageSize *int32 `json:"pageSize,omitempty"`
+
+ // 정렬대상
+SortedBy *string `json:"sortedBy,omitempty"`
+
+ // 정렬순서
+SortingOrder *string `json:"sortingOrder,omitempty"`
+
+ // VPC번호
+VpcNo *string `json:"vpcNo,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/get_route_table_list_response.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/get_route_table_list_response.go
new file mode 100644
index 000000000..a27418ab4
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/get_route_table_list_response.go
@@ -0,0 +1,22 @@
+/*
+ * vpc
+ *
+ * VPC Network 관련 API
https://ncloud.apigw.ntruss.com/vpc/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vpc
+
+type GetRouteTableListResponse struct {
+
+RequestId *string `json:"requestId,omitempty"`
+
+ReturnCode *string `json:"returnCode,omitempty"`
+
+ReturnMessage *string `json:"returnMessage,omitempty"`
+
+TotalRows *int32 `json:"totalRows,omitempty"`
+
+RouteTableList []*RouteTable `json:"routeTableList,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/get_route_table_subnet_list_request.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/get_route_table_subnet_list_request.go
new file mode 100644
index 000000000..9fe820276
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/get_route_table_subnet_list_request.go
@@ -0,0 +1,18 @@
+/*
+ * vpc
+ *
+ * VPC Network 관련 API
https://ncloud.apigw.ntruss.com/vpc/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vpc
+
+type GetRouteTableSubnetListRequest struct {
+
+ // REGION코드
+RegionCode *string `json:"regionCode,omitempty"`
+
+ // 라우트테이블번호
+RouteTableNo *string `json:"routeTableNo"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/get_route_table_subnet_list_response.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/get_route_table_subnet_list_response.go
new file mode 100644
index 000000000..ddf61e875
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/get_route_table_subnet_list_response.go
@@ -0,0 +1,22 @@
+/*
+ * vpc
+ *
+ * VPC Network 관련 API
https://ncloud.apigw.ntruss.com/vpc/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vpc
+
+type GetRouteTableSubnetListResponse struct {
+
+RequestId *string `json:"requestId,omitempty"`
+
+ReturnCode *string `json:"returnCode,omitempty"`
+
+ReturnMessage *string `json:"returnMessage,omitempty"`
+
+TotalRows *int32 `json:"totalRows,omitempty"`
+
+SubnetList []*Subnet `json:"subnetList,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/get_subnet_detail_request.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/get_subnet_detail_request.go
new file mode 100644
index 000000000..6afca90ac
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/get_subnet_detail_request.go
@@ -0,0 +1,18 @@
+/*
+ * vpc
+ *
+ * VPC Network 관련 API
https://ncloud.apigw.ntruss.com/vpc/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vpc
+
+type GetSubnetDetailRequest struct {
+
+ // REGION코드
+RegionCode *string `json:"regionCode,omitempty"`
+
+ // 서브넷번호
+SubnetNo *string `json:"subnetNo"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/get_subnet_detail_response.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/get_subnet_detail_response.go
new file mode 100644
index 000000000..af457d1cb
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/get_subnet_detail_response.go
@@ -0,0 +1,22 @@
+/*
+ * vpc
+ *
+ * VPC Network 관련 API
https://ncloud.apigw.ntruss.com/vpc/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vpc
+
+type GetSubnetDetailResponse struct {
+
+RequestId *string `json:"requestId,omitempty"`
+
+ReturnCode *string `json:"returnCode,omitempty"`
+
+ReturnMessage *string `json:"returnMessage,omitempty"`
+
+TotalRows *int32 `json:"totalRows,omitempty"`
+
+SubnetList []*Subnet `json:"subnetList,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/get_subnet_list_request.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/get_subnet_list_request.go
new file mode 100644
index 000000000..8ac79b951
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/get_subnet_list_request.go
@@ -0,0 +1,45 @@
+/*
+ * vpc
+ *
+ * VPC Network 관련 API
https://ncloud.apigw.ntruss.com/vpc/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vpc
+
+type GetSubnetListRequest struct {
+
+ // REGION코드
+RegionCode *string `json:"regionCode,omitempty"`
+
+ // 서브넷번호리스트
+SubnetNoList []*string `json:"subnetNoList,omitempty"`
+
+ // 서브넷
+Subnet *string `json:"subnet,omitempty"`
+
+ // 서브넷유형코드
+SubnetTypeCode *string `json:"subnetTypeCode,omitempty"`
+
+ // 용도유형코드
+UsageTypeCode *string `json:"usageTypeCode,omitempty"`
+
+ // 네트워크ACL번호
+NetworkAclNo *string `json:"networkAclNo,omitempty"`
+
+ // 페이지번호
+PageNo *int32 `json:"pageNo,omitempty"`
+
+ // 페이지사이즈
+PageSize *int32 `json:"pageSize,omitempty"`
+
+ // 서브넷상태코드
+SubnetStatusCode *string `json:"subnetStatusCode,omitempty"`
+
+ // VPC번호
+VpcNo *string `json:"vpcNo,omitempty"`
+
+ // ZONE코드
+ZoneCode *string `json:"zoneCode,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/get_subnet_list_response.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/get_subnet_list_response.go
new file mode 100644
index 000000000..9fa609753
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/get_subnet_list_response.go
@@ -0,0 +1,22 @@
+/*
+ * vpc
+ *
+ * VPC Network 관련 API
https://ncloud.apigw.ntruss.com/vpc/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vpc
+
+type GetSubnetListResponse struct {
+
+RequestId *string `json:"requestId,omitempty"`
+
+ReturnCode *string `json:"returnCode,omitempty"`
+
+ReturnMessage *string `json:"returnMessage,omitempty"`
+
+TotalRows *int32 `json:"totalRows,omitempty"`
+
+SubnetList []*Subnet `json:"subnetList,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/get_vpc_detail_request.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/get_vpc_detail_request.go
new file mode 100644
index 000000000..c398bd03a
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/get_vpc_detail_request.go
@@ -0,0 +1,18 @@
+/*
+ * vpc
+ *
+ * VPC Network 관련 API
https://ncloud.apigw.ntruss.com/vpc/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vpc
+
+type GetVpcDetailRequest struct {
+
+ // REGION코드
+RegionCode *string `json:"regionCode,omitempty"`
+
+ // VPC번호
+VpcNo *string `json:"vpcNo"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/get_vpc_detail_response.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/get_vpc_detail_response.go
new file mode 100644
index 000000000..02e192be2
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/get_vpc_detail_response.go
@@ -0,0 +1,22 @@
+/*
+ * vpc
+ *
+ * VPC Network 관련 API
https://ncloud.apigw.ntruss.com/vpc/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vpc
+
+type GetVpcDetailResponse struct {
+
+RequestId *string `json:"requestId,omitempty"`
+
+ReturnCode *string `json:"returnCode,omitempty"`
+
+ReturnMessage *string `json:"returnMessage,omitempty"`
+
+TotalRows *int32 `json:"totalRows,omitempty"`
+
+VpcList []*Vpc `json:"vpcList,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/get_vpc_list_request.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/get_vpc_list_request.go
new file mode 100644
index 000000000..008e7bd5a
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/get_vpc_list_request.go
@@ -0,0 +1,24 @@
+/*
+ * vpc
+ *
+ * VPC Network 관련 API
https://ncloud.apigw.ntruss.com/vpc/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vpc
+
+type GetVpcListRequest struct {
+
+ // REGION코드
+RegionCode *string `json:"regionCode,omitempty"`
+
+ // VPC이름
+VpcName *string `json:"vpcName,omitempty"`
+
+ // VPC상태코드
+VpcStatusCode *string `json:"vpcStatusCode,omitempty"`
+
+ // VPC번호리스트
+VpcNoList []*string `json:"vpcNoList,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/get_vpc_list_response.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/get_vpc_list_response.go
new file mode 100644
index 000000000..7f0934478
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/get_vpc_list_response.go
@@ -0,0 +1,22 @@
+/*
+ * vpc
+ *
+ * VPC Network 관련 API
https://ncloud.apigw.ntruss.com/vpc/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vpc
+
+type GetVpcListResponse struct {
+
+RequestId *string `json:"requestId,omitempty"`
+
+ReturnCode *string `json:"returnCode,omitempty"`
+
+ReturnMessage *string `json:"returnMessage,omitempty"`
+
+TotalRows *int32 `json:"totalRows,omitempty"`
+
+VpcList []*Vpc `json:"vpcList,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/get_vpc_peering_instance_detail_request.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/get_vpc_peering_instance_detail_request.go
new file mode 100644
index 000000000..ccd55c37d
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/get_vpc_peering_instance_detail_request.go
@@ -0,0 +1,18 @@
+/*
+ * vpc
+ *
+ * VPC Network 관련 API
https://ncloud.apigw.ntruss.com/vpc/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vpc
+
+type GetVpcPeeringInstanceDetailRequest struct {
+
+ // REGION코드
+RegionCode *string `json:"regionCode,omitempty"`
+
+ // VPCPeering인스턴스번호
+VpcPeeringInstanceNo *string `json:"vpcPeeringInstanceNo"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/get_vpc_peering_instance_detail_response.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/get_vpc_peering_instance_detail_response.go
new file mode 100644
index 000000000..8377956fb
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/get_vpc_peering_instance_detail_response.go
@@ -0,0 +1,22 @@
+/*
+ * vpc
+ *
+ * VPC Network 관련 API
https://ncloud.apigw.ntruss.com/vpc/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vpc
+
+type GetVpcPeeringInstanceDetailResponse struct {
+
+RequestId *string `json:"requestId,omitempty"`
+
+ReturnCode *string `json:"returnCode,omitempty"`
+
+ReturnMessage *string `json:"returnMessage,omitempty"`
+
+TotalRows *int32 `json:"totalRows,omitempty"`
+
+VpcPeeringInstanceList []*VpcPeeringInstance `json:"vpcPeeringInstanceList,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/get_vpc_peering_instance_list_request.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/get_vpc_peering_instance_list_request.go
new file mode 100644
index 000000000..e651cf16c
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/get_vpc_peering_instance_list_request.go
@@ -0,0 +1,42 @@
+/*
+ * vpc
+ *
+ * VPC Network 관련 API
https://ncloud.apigw.ntruss.com/vpc/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vpc
+
+type GetVpcPeeringInstanceListRequest struct {
+
+ // REGION코드
+RegionCode *string `json:"regionCode,omitempty"`
+
+ // VPCPeering인스턴스번호리스트
+VpcPeeringInstanceNoList []*string `json:"vpcPeeringInstanceNoList,omitempty"`
+
+ // 요청VPC이름
+SourceVpcName *string `json:"sourceVpcName,omitempty"`
+
+ // VPCPeering이름
+VpcPeeringName *string `json:"vpcPeeringName,omitempty"`
+
+ // 수락VPC이름
+TargetVpcName *string `json:"targetVpcName,omitempty"`
+
+ // VPCPeering인스턴스상태코드
+VpcPeeringInstanceStatusCode *string `json:"vpcPeeringInstanceStatusCode,omitempty"`
+
+ // 페이지번호
+PageNo *int32 `json:"pageNo,omitempty"`
+
+ // 페이지사이즈
+PageSize *int32 `json:"pageSize,omitempty"`
+
+ // 정렬대상
+SortedBy *string `json:"sortedBy,omitempty"`
+
+ // 정렬순서
+SortingOrder *string `json:"sortingOrder,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/get_vpc_peering_instance_list_response.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/get_vpc_peering_instance_list_response.go
new file mode 100644
index 000000000..e8aa9c8cb
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/get_vpc_peering_instance_list_response.go
@@ -0,0 +1,22 @@
+/*
+ * vpc
+ *
+ * VPC Network 관련 API
https://ncloud.apigw.ntruss.com/vpc/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vpc
+
+type GetVpcPeeringInstanceListResponse struct {
+
+RequestId *string `json:"requestId,omitempty"`
+
+ReturnCode *string `json:"returnCode,omitempty"`
+
+ReturnMessage *string `json:"returnMessage,omitempty"`
+
+TotalRows *int32 `json:"totalRows,omitempty"`
+
+VpcPeeringInstanceList []*VpcPeeringInstance `json:"vpcPeeringInstanceList,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/nat_gateway_instance.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/nat_gateway_instance.go
new file mode 100644
index 000000000..08fab5cb3
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/nat_gateway_instance.go
@@ -0,0 +1,45 @@
+/*
+ * vpc
+ *
+ * VPC Network 관련 API
https://ncloud.apigw.ntruss.com/vpc/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vpc
+
+type NatGatewayInstance struct {
+
+ // VPC번호
+VpcNo *string `json:"vpcNo,omitempty"`
+
+ // VPC이름
+VpcName *string `json:"vpcName,omitempty"`
+
+ // NATGateway인스턴스번호
+NatGatewayInstanceNo *string `json:"natGatewayInstanceNo,omitempty"`
+
+ // NATGateway이름
+NatGatewayName *string `json:"natGatewayName,omitempty"`
+
+ // 공인IP주소
+PublicIp *string `json:"publicIp,omitempty"`
+
+ // NATGateway인스턴스상태
+NatGatewayInstanceStatus *CommonCode `json:"natGatewayInstanceStatus,omitempty"`
+
+ // NATGateway인스턴스상태이름
+NatGatewayInstanceStatusName *string `json:"natGatewayInstanceStatusName,omitempty"`
+
+ // NATGateway인스턴스OP
+NatGatewayInstanceOperation *CommonCode `json:"natGatewayInstanceOperation,omitempty"`
+
+ // 생성일시
+CreateDate *string `json:"createDate,omitempty"`
+
+ // NATGateway설명
+NatGatewayDescription *string `json:"natGatewayDescription,omitempty"`
+
+ // ZONE코드
+ZoneCode *string `json:"zoneCode,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/network_acl.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/network_acl.go
new file mode 100644
index 000000000..20dd288e3
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/network_acl.go
@@ -0,0 +1,33 @@
+/*
+ * vpc
+ *
+ * VPC Network 관련 API
https://ncloud.apigw.ntruss.com/vpc/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vpc
+
+type NetworkAcl struct {
+
+ // 네트워크ACL번호
+NetworkAclNo *string `json:"networkAclNo,omitempty"`
+
+ // 네트워크ACL이름
+NetworkAclName *string `json:"networkAclName,omitempty"`
+
+ // VPC번호
+VpcNo *string `json:"vpcNo,omitempty"`
+
+ // 네트워크ACL상태
+NetworkAclStatus *CommonCode `json:"networkAclStatus,omitempty"`
+
+ // 네트워크ACL설명
+NetworkAclDescription *string `json:"networkAclDescription,omitempty"`
+
+ // 생성일시
+CreateDate *string `json:"createDate,omitempty"`
+
+ // Default여부
+IsDefault *bool `json:"isDefault,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/network_acl_rule.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/network_acl_rule.go
new file mode 100644
index 000000000..098283ca1
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/network_acl_rule.go
@@ -0,0 +1,39 @@
+/*
+ * vpc
+ *
+ * VPC Network 관련 API
https://ncloud.apigw.ntruss.com/vpc/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vpc
+
+type NetworkAclRule struct {
+
+ // 네트워크ACL번호
+NetworkAclNo *string `json:"networkAclNo,omitempty"`
+
+ // 우선순위
+Priority *int32 `json:"priority,omitempty"`
+
+ // 프로토콜유형
+ProtocolType *CommonCode `json:"protocolType,omitempty"`
+
+ // 포트범위
+PortRange *string `json:"portRange,omitempty"`
+
+ // Rule액션
+RuleAction *CommonCode `json:"ruleAction,omitempty"`
+
+ // 생성일시
+CreateDate *string `json:"createDate,omitempty"`
+
+ // IP블록
+IpBlock *string `json:"ipBlock,omitempty"`
+
+ // 네트워크ACLRule유형
+NetworkAclRuleType *CommonCode `json:"networkAclRuleType,omitempty"`
+
+ // 네트워크ACLRule설명
+NetworkAclRuleDescription *string `json:"networkAclRuleDescription,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/remove_network_acl_inbound_rule_request.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/remove_network_acl_inbound_rule_request.go
new file mode 100644
index 000000000..4b6b789fc
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/remove_network_acl_inbound_rule_request.go
@@ -0,0 +1,21 @@
+/*
+ * vpc
+ *
+ * VPC Network 관련 API
https://ncloud.apigw.ntruss.com/vpc/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vpc
+
+type RemoveNetworkAclInboundRuleRequest struct {
+
+ // REGION코드
+RegionCode *string `json:"regionCode,omitempty"`
+
+ // 네트워크ACL번호
+NetworkAclNo *string `json:"networkAclNo"`
+
+ // 네트워크ACLRule리스트
+NetworkAclRuleList []*RemoveNetworkAclRuleParameter `json:"networkAclRuleList"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/remove_network_acl_inbound_rule_response.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/remove_network_acl_inbound_rule_response.go
new file mode 100644
index 000000000..f9721255f
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/remove_network_acl_inbound_rule_response.go
@@ -0,0 +1,22 @@
+/*
+ * vpc
+ *
+ * VPC Network 관련 API
https://ncloud.apigw.ntruss.com/vpc/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vpc
+
+type RemoveNetworkAclInboundRuleResponse struct {
+
+RequestId *string `json:"requestId,omitempty"`
+
+ReturnCode *string `json:"returnCode,omitempty"`
+
+ReturnMessage *string `json:"returnMessage,omitempty"`
+
+TotalRows *int32 `json:"totalRows,omitempty"`
+
+NetworkAclRuleList []*NetworkAclRule `json:"networkAclRuleList,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/remove_network_acl_outbound_rule_request.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/remove_network_acl_outbound_rule_request.go
new file mode 100644
index 000000000..cccb3607b
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/remove_network_acl_outbound_rule_request.go
@@ -0,0 +1,21 @@
+/*
+ * vpc
+ *
+ * VPC Network 관련 API
https://ncloud.apigw.ntruss.com/vpc/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vpc
+
+type RemoveNetworkAclOutboundRuleRequest struct {
+
+ // REGION코드
+RegionCode *string `json:"regionCode,omitempty"`
+
+ // 네트워크ACL번호
+NetworkAclNo *string `json:"networkAclNo"`
+
+ // 네트워크ACLRule리스트
+NetworkAclRuleList []*RemoveNetworkAclRuleParameter `json:"networkAclRuleList"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/remove_network_acl_outbound_rule_response.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/remove_network_acl_outbound_rule_response.go
new file mode 100644
index 000000000..6f3f55438
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/remove_network_acl_outbound_rule_response.go
@@ -0,0 +1,22 @@
+/*
+ * vpc
+ *
+ * VPC Network 관련 API
https://ncloud.apigw.ntruss.com/vpc/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vpc
+
+type RemoveNetworkAclOutboundRuleResponse struct {
+
+RequestId *string `json:"requestId,omitempty"`
+
+ReturnCode *string `json:"returnCode,omitempty"`
+
+ReturnMessage *string `json:"returnMessage,omitempty"`
+
+TotalRows *int32 `json:"totalRows,omitempty"`
+
+NetworkAclRuleList []*NetworkAclRule `json:"networkAclRuleList,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/remove_network_acl_rule_parameter.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/remove_network_acl_rule_parameter.go
new file mode 100644
index 000000000..e4f02ac54
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/remove_network_acl_rule_parameter.go
@@ -0,0 +1,27 @@
+/*
+ * vpc
+ *
+ * VPC Network 관련 API
https://ncloud.apigw.ntruss.com/vpc/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vpc
+
+type RemoveNetworkAclRuleParameter struct {
+
+ // IP블록
+IpBlock *string `json:"ipBlock"`
+
+ // Rule액션코드
+RuleActionCode *string `json:"ruleActionCode"`
+
+ // 포트범위
+PortRange *string `json:"portRange,omitempty"`
+
+ // 우선순위
+Priority *int32 `json:"priority"`
+
+ // 프로토콜유형코드
+ProtocolTypeCode *string `json:"protocolTypeCode"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/remove_route_request.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/remove_route_request.go
new file mode 100644
index 000000000..8c7901564
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/remove_route_request.go
@@ -0,0 +1,24 @@
+/*
+ * vpc
+ *
+ * VPC Network 관련 API
https://ncloud.apigw.ntruss.com/vpc/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vpc
+
+type RemoveRouteRequest struct {
+
+ // REGION코드
+RegionCode *string `json:"regionCode,omitempty"`
+
+ // 라우트리스트
+RouteList []*RouteParameter `json:"routeList"`
+
+ // 라우트테이블번호
+RouteTableNo *string `json:"routeTableNo"`
+
+ // VPC번호
+VpcNo *string `json:"vpcNo"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/remove_route_response.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/remove_route_response.go
new file mode 100644
index 000000000..a186dc9ca
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/remove_route_response.go
@@ -0,0 +1,22 @@
+/*
+ * vpc
+ *
+ * VPC Network 관련 API
https://ncloud.apigw.ntruss.com/vpc/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vpc
+
+type RemoveRouteResponse struct {
+
+RequestId *string `json:"requestId,omitempty"`
+
+ReturnCode *string `json:"returnCode,omitempty"`
+
+ReturnMessage *string `json:"returnMessage,omitempty"`
+
+TotalRows *int32 `json:"totalRows,omitempty"`
+
+RouteList []*Route `json:"routeList,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/remove_route_table_subnet_request.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/remove_route_table_subnet_request.go
new file mode 100644
index 000000000..0034bcc1a
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/remove_route_table_subnet_request.go
@@ -0,0 +1,24 @@
+/*
+ * vpc
+ *
+ * VPC Network 관련 API
https://ncloud.apigw.ntruss.com/vpc/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vpc
+
+type RemoveRouteTableSubnetRequest struct {
+
+ // REGION코드
+RegionCode *string `json:"regionCode,omitempty"`
+
+ // 라우트테이블번호
+RouteTableNo *string `json:"routeTableNo"`
+
+ // 서브넷번호리스트
+SubnetNoList []*string `json:"subnetNoList"`
+
+ // VPC번호
+VpcNo *string `json:"vpcNo"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/remove_route_table_subnet_response.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/remove_route_table_subnet_response.go
new file mode 100644
index 000000000..4ebd6aac1
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/remove_route_table_subnet_response.go
@@ -0,0 +1,22 @@
+/*
+ * vpc
+ *
+ * VPC Network 관련 API
https://ncloud.apigw.ntruss.com/vpc/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vpc
+
+type RemoveRouteTableSubnetResponse struct {
+
+RequestId *string `json:"requestId,omitempty"`
+
+ReturnCode *string `json:"returnCode,omitempty"`
+
+ReturnMessage *string `json:"returnMessage,omitempty"`
+
+TotalRows *int32 `json:"totalRows,omitempty"`
+
+SubnetList []*Subnet `json:"subnetList,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/route.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/route.go
new file mode 100644
index 000000000..a5ce5d2d5
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/route.go
@@ -0,0 +1,30 @@
+/*
+ * vpc
+ *
+ * VPC Network 관련 API
https://ncloud.apigw.ntruss.com/vpc/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vpc
+
+type Route struct {
+
+ // 목적지CIDR블록
+DestinationCidrBlock *string `json:"destinationCidrBlock,omitempty"`
+
+ // 목적지이름
+TargetName *string `json:"targetName,omitempty"`
+
+ // 라우트테이블번호
+RouteTableNo *string `json:"routeTableNo,omitempty"`
+
+ // 목적지유형
+TargetType *CommonCode `json:"targetType,omitempty"`
+
+ // 목적지번호
+TargetNo *string `json:"targetNo,omitempty"`
+
+ // Default여부
+IsDefault *bool `json:"isDefault,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/route_parameter.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/route_parameter.go
new file mode 100644
index 000000000..a9e87daa1
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/route_parameter.go
@@ -0,0 +1,24 @@
+/*
+ * vpc
+ *
+ * VPC Network 관련 API
https://ncloud.apigw.ntruss.com/vpc/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vpc
+
+type RouteParameter struct {
+
+ // 목적지CIDR블록
+DestinationCidrBlock *string `json:"destinationCidrBlock"`
+
+ // 목적지유형코드
+TargetTypeCode *string `json:"targetTypeCode"`
+
+ // 목적지번호
+TargetNo *string `json:"targetNo,omitempty"`
+
+ // 목적지이름
+TargetName *string `json:"targetName,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/route_table.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/route_table.go
new file mode 100644
index 000000000..10d81396d
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/route_table.go
@@ -0,0 +1,36 @@
+/*
+ * vpc
+ *
+ * VPC Network 관련 API
https://ncloud.apigw.ntruss.com/vpc/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vpc
+
+type RouteTable struct {
+
+ // 라우트테이블번호
+RouteTableNo *string `json:"routeTableNo,omitempty"`
+
+ // 라우트테이블이름
+RouteTableName *string `json:"routeTableName,omitempty"`
+
+ // REGION코드
+RegionCode *string `json:"regionCode,omitempty"`
+
+ // VPC번호
+VpcNo *string `json:"vpcNo,omitempty"`
+
+ // 지원하는서브넷유형
+SupportedSubnetType *CommonCode `json:"supportedSubnetType,omitempty"`
+
+ // Default여부
+IsDefault *bool `json:"isDefault,omitempty"`
+
+ // 라우트테이블상태
+RouteTableStatus *CommonCode `json:"routeTableStatus,omitempty"`
+
+ // 라우트테이블설명
+RouteTableDescription *string `json:"routeTableDescription,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/set_nat_gateway_description_request.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/set_nat_gateway_description_request.go
new file mode 100644
index 000000000..bb073ff49
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/set_nat_gateway_description_request.go
@@ -0,0 +1,21 @@
+/*
+ * vpc
+ *
+ * VPC Network 관련 API
https://ncloud.apigw.ntruss.com/vpc/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vpc
+
+type SetNatGatewayDescriptionRequest struct {
+
+ // REGION코드
+RegionCode *string `json:"regionCode,omitempty"`
+
+ // NATGateway인스턴스번호
+NatGatewayInstanceNo *string `json:"natGatewayInstanceNo"`
+
+ // NATGateway설명
+NatGatewayDescription *string `json:"natGatewayDescription,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/set_nat_gateway_description_response.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/set_nat_gateway_description_response.go
new file mode 100644
index 000000000..286bcffc6
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/set_nat_gateway_description_response.go
@@ -0,0 +1,22 @@
+/*
+ * vpc
+ *
+ * VPC Network 관련 API
https://ncloud.apigw.ntruss.com/vpc/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vpc
+
+type SetNatGatewayDescriptionResponse struct {
+
+RequestId *string `json:"requestId,omitempty"`
+
+ReturnCode *string `json:"returnCode,omitempty"`
+
+ReturnMessage *string `json:"returnMessage,omitempty"`
+
+TotalRows *int32 `json:"totalRows,omitempty"`
+
+NatGatewayInstanceList []*NatGatewayInstance `json:"natGatewayInstanceList,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/set_network_acl_description_request.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/set_network_acl_description_request.go
new file mode 100644
index 000000000..5d7e13c08
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/set_network_acl_description_request.go
@@ -0,0 +1,21 @@
+/*
+ * vpc
+ *
+ * VPC Network 관련 API
https://ncloud.apigw.ntruss.com/vpc/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vpc
+
+type SetNetworkAclDescriptionRequest struct {
+
+ // REGION코드
+RegionCode *string `json:"regionCode,omitempty"`
+
+ // 네트워크ACL번호
+NetworkAclNo *string `json:"networkAclNo"`
+
+ // 네트워크ACL설명
+NetworkAclDescription *string `json:"networkAclDescription,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/set_network_acl_description_response.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/set_network_acl_description_response.go
new file mode 100644
index 000000000..ad791bf62
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/set_network_acl_description_response.go
@@ -0,0 +1,22 @@
+/*
+ * vpc
+ *
+ * VPC Network 관련 API
https://ncloud.apigw.ntruss.com/vpc/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vpc
+
+type SetNetworkAclDescriptionResponse struct {
+
+RequestId *string `json:"requestId,omitempty"`
+
+ReturnCode *string `json:"returnCode,omitempty"`
+
+ReturnMessage *string `json:"returnMessage,omitempty"`
+
+TotalRows *int32 `json:"totalRows,omitempty"`
+
+NetworkAclList []*NetworkAcl `json:"networkAclList,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/set_route_table_description_request.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/set_route_table_description_request.go
new file mode 100644
index 000000000..d6723527f
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/set_route_table_description_request.go
@@ -0,0 +1,21 @@
+/*
+ * vpc
+ *
+ * VPC Network 관련 API
https://ncloud.apigw.ntruss.com/vpc/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vpc
+
+type SetRouteTableDescriptionRequest struct {
+
+ // REGION코드
+RegionCode *string `json:"regionCode,omitempty"`
+
+ // 라우트테이블번호
+RouteTableNo *string `json:"routeTableNo"`
+
+ // 라우트테이블설명
+RouteTableDescription *string `json:"routeTableDescription,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/set_route_table_description_response.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/set_route_table_description_response.go
new file mode 100644
index 000000000..179a45cfe
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/set_route_table_description_response.go
@@ -0,0 +1,22 @@
+/*
+ * vpc
+ *
+ * VPC Network 관련 API
https://ncloud.apigw.ntruss.com/vpc/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vpc
+
+type SetRouteTableDescriptionResponse struct {
+
+RequestId *string `json:"requestId,omitempty"`
+
+ReturnCode *string `json:"returnCode,omitempty"`
+
+ReturnMessage *string `json:"returnMessage,omitempty"`
+
+TotalRows *int32 `json:"totalRows,omitempty"`
+
+RouteTableList []*RouteTable `json:"routeTableList,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/set_subnet_network_acl_request.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/set_subnet_network_acl_request.go
new file mode 100644
index 000000000..2476edb22
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/set_subnet_network_acl_request.go
@@ -0,0 +1,21 @@
+/*
+ * vpc
+ *
+ * VPC Network 관련 API
https://ncloud.apigw.ntruss.com/vpc/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vpc
+
+type SetSubnetNetworkAclRequest struct {
+
+ // REGION코드
+RegionCode *string `json:"regionCode,omitempty"`
+
+ // 네트워크ACL번호
+NetworkAclNo *string `json:"networkAclNo"`
+
+ // 서브넷번호
+SubnetNo *string `json:"subnetNo"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/set_subnet_network_acl_response.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/set_subnet_network_acl_response.go
new file mode 100644
index 000000000..c84ab5d5e
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/set_subnet_network_acl_response.go
@@ -0,0 +1,22 @@
+/*
+ * vpc
+ *
+ * VPC Network 관련 API
https://ncloud.apigw.ntruss.com/vpc/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vpc
+
+type SetSubnetNetworkAclResponse struct {
+
+RequestId *string `json:"requestId,omitempty"`
+
+ReturnCode *string `json:"returnCode,omitempty"`
+
+ReturnMessage *string `json:"returnMessage,omitempty"`
+
+TotalRows *int32 `json:"totalRows,omitempty"`
+
+NetworkAclList []*NetworkAcl `json:"networkAclList,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/set_vpc_peering_description_request.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/set_vpc_peering_description_request.go
new file mode 100644
index 000000000..ace1da432
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/set_vpc_peering_description_request.go
@@ -0,0 +1,21 @@
+/*
+ * vpc
+ *
+ * VPC Network 관련 API
https://ncloud.apigw.ntruss.com/vpc/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vpc
+
+type SetVpcPeeringDescriptionRequest struct {
+
+ // REGION코드
+RegionCode *string `json:"regionCode,omitempty"`
+
+ // VPCPeering인스턴스번호
+VpcPeeringInstanceNo *string `json:"vpcPeeringInstanceNo"`
+
+ // VPCPeering설명
+VpcPeeringDescription *string `json:"vpcPeeringDescription,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/set_vpc_peering_description_response.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/set_vpc_peering_description_response.go
new file mode 100644
index 000000000..4dfecfb9b
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/set_vpc_peering_description_response.go
@@ -0,0 +1,22 @@
+/*
+ * vpc
+ *
+ * VPC Network 관련 API
https://ncloud.apigw.ntruss.com/vpc/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vpc
+
+type SetVpcPeeringDescriptionResponse struct {
+
+RequestId *string `json:"requestId,omitempty"`
+
+ReturnCode *string `json:"returnCode,omitempty"`
+
+ReturnMessage *string `json:"returnMessage,omitempty"`
+
+TotalRows *int32 `json:"totalRows,omitempty"`
+
+VpcPeeringInstanceList []*VpcPeeringInstance `json:"vpcPeeringInstanceList,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/subnet.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/subnet.go
new file mode 100644
index 000000000..d26c2d719
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/subnet.go
@@ -0,0 +1,42 @@
+/*
+ * vpc
+ *
+ * VPC Network 관련 API
https://ncloud.apigw.ntruss.com/vpc/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vpc
+
+type Subnet struct {
+
+ // 서브넷번호
+SubnetNo *string `json:"subnetNo,omitempty"`
+
+ // VPC번호
+VpcNo *string `json:"vpcNo,omitempty"`
+
+ // ZONE코드
+ZoneCode *string `json:"zoneCode,omitempty"`
+
+ // 서브넷이름
+SubnetName *string `json:"subnetName,omitempty"`
+
+ // 서브넷
+Subnet *string `json:"subnet,omitempty"`
+
+ // 서브넷상태
+SubnetStatus *CommonCode `json:"subnetStatus,omitempty"`
+
+ // 생성일시
+CreateDate *string `json:"createDate,omitempty"`
+
+ // 서브넷유형
+SubnetType *CommonCode `json:"subnetType,omitempty"`
+
+ // 용도유형
+UsageType *CommonCode `json:"usageType,omitempty"`
+
+ // 네트워크ACL번호
+NetworkAclNo *string `json:"networkAclNo,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/v2_api.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/v2_api.go
new file mode 100644
index 000000000..8fa7241eb
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/v2_api.go
@@ -0,0 +1,3064 @@
+/*
+ * vpc
+ *
+ * VPC Network 관련 API
https://ncloud.apigw.ntruss.com/vpc/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vpc
+
+import (
+ "encoding/base64"
+ "encoding/json"
+ "io/ioutil"
+ "net/url"
+ "reflect"
+ "strings"
+ "bytes"
+
+ "golang.org/x/net/context"
+)
+
+// Linger please
+var (
+ _ context.Context
+)
+
+type V2ApiService service
+
+
+/* V2ApiService
+ VPCPeering요청수락거절
+ @param acceptOrRejectVpcPeeringRequest acceptOrRejectVpcPeeringRequest
+ @return *AcceptOrRejectVpcPeeringResponse*/
+func (a *V2ApiService) AcceptOrRejectVpcPeering(acceptOrRejectVpcPeeringRequest *AcceptOrRejectVpcPeeringRequest) (*AcceptOrRejectVpcPeeringResponse, error) {
+ var (
+ localVarHttpMethod = strings.ToUpper("Post")
+ localVarPostBody interface{}
+ localVarFileName string
+ localVarFileBytes []byte
+ successPayload AcceptOrRejectVpcPeeringResponse
+ )
+
+ // create path and map variables
+ localVarPath := a.client.cfg.BasePath + "/acceptOrRejectVpcPeering"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+
+ // to determine the Content-Type header
+ localVarHttpContentTypes := []string{ "application/x-www-form-urlencoded", }
+
+ // set Content-Type header
+ localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
+ if localVarHttpContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHttpContentType
+ }
+
+ // to determine the Accept header
+ localVarHttpHeaderAccepts := []string{
+ }
+
+ // set Accept header
+ localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts)
+ if localVarHttpHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
+ }
+ // body params
+ localVarPostBody = acceptOrRejectVpcPeeringRequest
+ 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(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), `{`)) {
+ return &successPayload, reportError("Status: %v, Body: %s", localVarHttpResponse.Status, bodyBytes)
+ }
+
+ if !strings.Contains(string(bodyBytes), `{"error"`) && strings.HasPrefix(string(bodyBytes), `{`) {
+ if err = json.Unmarshal(bodyBytes[bytes.IndexAny(bytes.Trim(bodyBytes, "{"), "{"):len(bodyBytes)-1], &successPayload); err != nil {
+ return &successPayload, err
+ }
+ }
+
+
+ return &successPayload, err
+}
+
+/* V2ApiService
+ 네트워크ACLInboundRule추가
+ @param addNetworkAclInboundRuleRequest addNetworkAclInboundRuleRequest
+ @return *AddNetworkAclInboundRuleResponse*/
+func (a *V2ApiService) AddNetworkAclInboundRule(addNetworkAclInboundRuleRequest *AddNetworkAclInboundRuleRequest) (*AddNetworkAclInboundRuleResponse, error) {
+ var (
+ localVarHttpMethod = strings.ToUpper("Post")
+ localVarPostBody interface{}
+ localVarFileName string
+ localVarFileBytes []byte
+ successPayload AddNetworkAclInboundRuleResponse
+ )
+
+ // create path and map variables
+ localVarPath := a.client.cfg.BasePath + "/addNetworkAclInboundRule"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+
+ // to determine the Content-Type header
+ localVarHttpContentTypes := []string{ "application/x-www-form-urlencoded", }
+
+ // set Content-Type header
+ localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
+ if localVarHttpContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHttpContentType
+ }
+
+ // to determine the Accept header
+ localVarHttpHeaderAccepts := []string{
+ }
+
+ // set Accept header
+ localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts)
+ if localVarHttpHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
+ }
+ // body params
+ localVarPostBody = addNetworkAclInboundRuleRequest
+ 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(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), `{`)) {
+ return &successPayload, reportError("Status: %v, Body: %s", localVarHttpResponse.Status, bodyBytes)
+ }
+
+ if !strings.Contains(string(bodyBytes), `{"error"`) && strings.HasPrefix(string(bodyBytes), `{`) {
+ if err = json.Unmarshal(bodyBytes[bytes.IndexAny(bytes.Trim(bodyBytes, "{"), "{"):len(bodyBytes)-1], &successPayload); err != nil {
+ return &successPayload, err
+ }
+ }
+
+
+ return &successPayload, err
+}
+
+/* V2ApiService
+ 네트워크ACLOutboundRule추가
+ @param addNetworkAclOutboundRuleRequest addNetworkAclOutboundRuleRequest
+ @return *AddNetworkAclOutboundRuleResponse*/
+func (a *V2ApiService) AddNetworkAclOutboundRule(addNetworkAclOutboundRuleRequest *AddNetworkAclOutboundRuleRequest) (*AddNetworkAclOutboundRuleResponse, error) {
+ var (
+ localVarHttpMethod = strings.ToUpper("Post")
+ localVarPostBody interface{}
+ localVarFileName string
+ localVarFileBytes []byte
+ successPayload AddNetworkAclOutboundRuleResponse
+ )
+
+ // create path and map variables
+ localVarPath := a.client.cfg.BasePath + "/addNetworkAclOutboundRule"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+
+ // to determine the Content-Type header
+ localVarHttpContentTypes := []string{ "application/x-www-form-urlencoded", }
+
+ // set Content-Type header
+ localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
+ if localVarHttpContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHttpContentType
+ }
+
+ // to determine the Accept header
+ localVarHttpHeaderAccepts := []string{
+ }
+
+ // set Accept header
+ localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts)
+ if localVarHttpHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
+ }
+ // body params
+ localVarPostBody = addNetworkAclOutboundRuleRequest
+ 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(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), `{`)) {
+ return &successPayload, reportError("Status: %v, Body: %s", localVarHttpResponse.Status, bodyBytes)
+ }
+
+ if !strings.Contains(string(bodyBytes), `{"error"`) && strings.HasPrefix(string(bodyBytes), `{`) {
+ if err = json.Unmarshal(bodyBytes[bytes.IndexAny(bytes.Trim(bodyBytes, "{"), "{"):len(bodyBytes)-1], &successPayload); err != nil {
+ return &successPayload, err
+ }
+ }
+
+
+ return &successPayload, err
+}
+
+/* V2ApiService
+ 라우트추가
+ @param addRouteRequest addRouteRequest
+ @return *AddRouteResponse*/
+func (a *V2ApiService) AddRoute(addRouteRequest *AddRouteRequest) (*AddRouteResponse, error) {
+ var (
+ localVarHttpMethod = strings.ToUpper("Post")
+ localVarPostBody interface{}
+ localVarFileName string
+ localVarFileBytes []byte
+ successPayload AddRouteResponse
+ )
+
+ // create path and map variables
+ localVarPath := a.client.cfg.BasePath + "/addRoute"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+
+ // to determine the Content-Type header
+ localVarHttpContentTypes := []string{ "application/x-www-form-urlencoded", }
+
+ // set Content-Type header
+ localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
+ if localVarHttpContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHttpContentType
+ }
+
+ // to determine the Accept header
+ localVarHttpHeaderAccepts := []string{
+ }
+
+ // set Accept header
+ localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts)
+ if localVarHttpHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
+ }
+ // body params
+ localVarPostBody = addRouteRequest
+ 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(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), `{`)) {
+ return &successPayload, reportError("Status: %v, Body: %s", localVarHttpResponse.Status, bodyBytes)
+ }
+
+ if !strings.Contains(string(bodyBytes), `{"error"`) && strings.HasPrefix(string(bodyBytes), `{`) {
+ if err = json.Unmarshal(bodyBytes[bytes.IndexAny(bytes.Trim(bodyBytes, "{"), "{"):len(bodyBytes)-1], &successPayload); err != nil {
+ return &successPayload, err
+ }
+ }
+
+
+ return &successPayload, err
+}
+
+/* V2ApiService
+ 라우트테이블의연관서브넷추가
+ @param addRouteTableSubnetRequest addRouteTableSubnetRequest
+ @return *AddRouteTableSubnetResponse*/
+func (a *V2ApiService) AddRouteTableSubnet(addRouteTableSubnetRequest *AddRouteTableSubnetRequest) (*AddRouteTableSubnetResponse, error) {
+ var (
+ localVarHttpMethod = strings.ToUpper("Post")
+ localVarPostBody interface{}
+ localVarFileName string
+ localVarFileBytes []byte
+ successPayload AddRouteTableSubnetResponse
+ )
+
+ // create path and map variables
+ localVarPath := a.client.cfg.BasePath + "/addRouteTableSubnet"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+
+ // to determine the Content-Type header
+ localVarHttpContentTypes := []string{ "application/x-www-form-urlencoded", }
+
+ // set Content-Type header
+ localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
+ if localVarHttpContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHttpContentType
+ }
+
+ // to determine the Accept header
+ localVarHttpHeaderAccepts := []string{
+ }
+
+ // set Accept header
+ localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts)
+ if localVarHttpHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
+ }
+ // body params
+ localVarPostBody = addRouteTableSubnetRequest
+ 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(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), `{`)) {
+ return &successPayload, reportError("Status: %v, Body: %s", localVarHttpResponse.Status, bodyBytes)
+ }
+
+ if !strings.Contains(string(bodyBytes), `{"error"`) && strings.HasPrefix(string(bodyBytes), `{`) {
+ if err = json.Unmarshal(bodyBytes[bytes.IndexAny(bytes.Trim(bodyBytes, "{"), "{"):len(bodyBytes)-1], &successPayload); err != nil {
+ return &successPayload, err
+ }
+ }
+
+
+ return &successPayload, err
+}
+
+/* V2ApiService
+ NATGateway인스턴스생성
+ @param createNatGatewayInstanceRequest createNatGatewayInstanceRequest
+ @return *CreateNatGatewayInstanceResponse*/
+func (a *V2ApiService) CreateNatGatewayInstance(createNatGatewayInstanceRequest *CreateNatGatewayInstanceRequest) (*CreateNatGatewayInstanceResponse, error) {
+ var (
+ localVarHttpMethod = strings.ToUpper("Post")
+ localVarPostBody interface{}
+ localVarFileName string
+ localVarFileBytes []byte
+ successPayload CreateNatGatewayInstanceResponse
+ )
+
+ // create path and map variables
+ localVarPath := a.client.cfg.BasePath + "/createNatGatewayInstance"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+
+ // to determine the Content-Type header
+ localVarHttpContentTypes := []string{ "application/x-www-form-urlencoded", }
+
+ // set Content-Type header
+ localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
+ if localVarHttpContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHttpContentType
+ }
+
+ // to determine the Accept header
+ localVarHttpHeaderAccepts := []string{
+ }
+
+ // set Accept header
+ localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts)
+ if localVarHttpHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
+ }
+ // body params
+ localVarPostBody = createNatGatewayInstanceRequest
+ 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(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), `{`)) {
+ return &successPayload, reportError("Status: %v, Body: %s", localVarHttpResponse.Status, bodyBytes)
+ }
+
+ if !strings.Contains(string(bodyBytes), `{"error"`) && strings.HasPrefix(string(bodyBytes), `{`) {
+ if err = json.Unmarshal(bodyBytes[bytes.IndexAny(bytes.Trim(bodyBytes, "{"), "{"):len(bodyBytes)-1], &successPayload); err != nil {
+ return &successPayload, err
+ }
+ }
+
+
+ return &successPayload, err
+}
+
+/* V2ApiService
+ 네트워크ACL생성
+ @param createNetworkAclRequest createNetworkAclRequest
+ @return *CreateNetworkAclResponse*/
+func (a *V2ApiService) CreateNetworkAcl(createNetworkAclRequest *CreateNetworkAclRequest) (*CreateNetworkAclResponse, error) {
+ var (
+ localVarHttpMethod = strings.ToUpper("Post")
+ localVarPostBody interface{}
+ localVarFileName string
+ localVarFileBytes []byte
+ successPayload CreateNetworkAclResponse
+ )
+
+ // create path and map variables
+ localVarPath := a.client.cfg.BasePath + "/createNetworkAcl"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+
+ // to determine the Content-Type header
+ localVarHttpContentTypes := []string{ "application/x-www-form-urlencoded", }
+
+ // set Content-Type header
+ localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
+ if localVarHttpContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHttpContentType
+ }
+
+ // to determine the Accept header
+ localVarHttpHeaderAccepts := []string{
+ }
+
+ // set Accept header
+ localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts)
+ if localVarHttpHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
+ }
+ // body params
+ localVarPostBody = createNetworkAclRequest
+ 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(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), `{`)) {
+ return &successPayload, reportError("Status: %v, Body: %s", localVarHttpResponse.Status, bodyBytes)
+ }
+
+ if !strings.Contains(string(bodyBytes), `{"error"`) && strings.HasPrefix(string(bodyBytes), `{`) {
+ if err = json.Unmarshal(bodyBytes[bytes.IndexAny(bytes.Trim(bodyBytes, "{"), "{"):len(bodyBytes)-1], &successPayload); err != nil {
+ return &successPayload, err
+ }
+ }
+
+
+ return &successPayload, err
+}
+
+/* V2ApiService
+ 라우트테이블생성
+ @param createRouteTableRequest createRouteTableRequest
+ @return *CreateRouteTableResponse*/
+func (a *V2ApiService) CreateRouteTable(createRouteTableRequest *CreateRouteTableRequest) (*CreateRouteTableResponse, error) {
+ var (
+ localVarHttpMethod = strings.ToUpper("Post")
+ localVarPostBody interface{}
+ localVarFileName string
+ localVarFileBytes []byte
+ successPayload CreateRouteTableResponse
+ )
+
+ // create path and map variables
+ localVarPath := a.client.cfg.BasePath + "/createRouteTable"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+
+ // to determine the Content-Type header
+ localVarHttpContentTypes := []string{ "application/x-www-form-urlencoded", }
+
+ // set Content-Type header
+ localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
+ if localVarHttpContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHttpContentType
+ }
+
+ // to determine the Accept header
+ localVarHttpHeaderAccepts := []string{
+ }
+
+ // set Accept header
+ localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts)
+ if localVarHttpHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
+ }
+ // body params
+ localVarPostBody = createRouteTableRequest
+ 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(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), `{`)) {
+ return &successPayload, reportError("Status: %v, Body: %s", localVarHttpResponse.Status, bodyBytes)
+ }
+
+ if !strings.Contains(string(bodyBytes), `{"error"`) && strings.HasPrefix(string(bodyBytes), `{`) {
+ if err = json.Unmarshal(bodyBytes[bytes.IndexAny(bytes.Trim(bodyBytes, "{"), "{"):len(bodyBytes)-1], &successPayload); err != nil {
+ return &successPayload, err
+ }
+ }
+
+
+ return &successPayload, err
+}
+
+/* V2ApiService
+ 서브넷생성
+ @param createSubnetRequest createSubnetRequest
+ @return *CreateSubnetResponse*/
+func (a *V2ApiService) CreateSubnet(createSubnetRequest *CreateSubnetRequest) (*CreateSubnetResponse, error) {
+ var (
+ localVarHttpMethod = strings.ToUpper("Post")
+ localVarPostBody interface{}
+ localVarFileName string
+ localVarFileBytes []byte
+ successPayload CreateSubnetResponse
+ )
+
+ // create path and map variables
+ localVarPath := a.client.cfg.BasePath + "/createSubnet"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+
+ // to determine the Content-Type header
+ localVarHttpContentTypes := []string{ "application/x-www-form-urlencoded", }
+
+ // set Content-Type header
+ localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
+ if localVarHttpContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHttpContentType
+ }
+
+ // to determine the Accept header
+ localVarHttpHeaderAccepts := []string{
+ }
+
+ // set Accept header
+ localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts)
+ if localVarHttpHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
+ }
+ // body params
+ localVarPostBody = createSubnetRequest
+ 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(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), `{`)) {
+ return &successPayload, reportError("Status: %v, Body: %s", localVarHttpResponse.Status, bodyBytes)
+ }
+
+ if !strings.Contains(string(bodyBytes), `{"error"`) && strings.HasPrefix(string(bodyBytes), `{`) {
+ if err = json.Unmarshal(bodyBytes[bytes.IndexAny(bytes.Trim(bodyBytes, "{"), "{"):len(bodyBytes)-1], &successPayload); err != nil {
+ return &successPayload, err
+ }
+ }
+
+
+ return &successPayload, err
+}
+
+/* V2ApiService
+ VPC생성
+ @param createVpcRequest createVpcRequest
+ @return *CreateVpcResponse*/
+func (a *V2ApiService) CreateVpc(createVpcRequest *CreateVpcRequest) (*CreateVpcResponse, error) {
+ var (
+ localVarHttpMethod = strings.ToUpper("Post")
+ localVarPostBody interface{}
+ localVarFileName string
+ localVarFileBytes []byte
+ successPayload CreateVpcResponse
+ )
+
+ // create path and map variables
+ localVarPath := a.client.cfg.BasePath + "/createVpc"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+
+ // to determine the Content-Type header
+ localVarHttpContentTypes := []string{ "application/x-www-form-urlencoded", }
+
+ // set Content-Type header
+ localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
+ if localVarHttpContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHttpContentType
+ }
+
+ // to determine the Accept header
+ localVarHttpHeaderAccepts := []string{
+ }
+
+ // set Accept header
+ localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts)
+ if localVarHttpHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
+ }
+ // body params
+ localVarPostBody = createVpcRequest
+ 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(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), `{`)) {
+ return &successPayload, reportError("Status: %v, Body: %s", localVarHttpResponse.Status, bodyBytes)
+ }
+
+ if !strings.Contains(string(bodyBytes), `{"error"`) && strings.HasPrefix(string(bodyBytes), `{`) {
+ if err = json.Unmarshal(bodyBytes[bytes.IndexAny(bytes.Trim(bodyBytes, "{"), "{"):len(bodyBytes)-1], &successPayload); err != nil {
+ return &successPayload, err
+ }
+ }
+
+
+ return &successPayload, err
+}
+
+/* V2ApiService
+ VPCPeering인스턴스생성
+ @param createVpcPeeringInstanceRequest createVpcPeeringInstanceRequest
+ @return *CreateVpcPeeringInstanceResponse*/
+func (a *V2ApiService) CreateVpcPeeringInstance(createVpcPeeringInstanceRequest *CreateVpcPeeringInstanceRequest) (*CreateVpcPeeringInstanceResponse, error) {
+ var (
+ localVarHttpMethod = strings.ToUpper("Post")
+ localVarPostBody interface{}
+ localVarFileName string
+ localVarFileBytes []byte
+ successPayload CreateVpcPeeringInstanceResponse
+ )
+
+ // create path and map variables
+ localVarPath := a.client.cfg.BasePath + "/createVpcPeeringInstance"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+
+ // to determine the Content-Type header
+ localVarHttpContentTypes := []string{ "application/x-www-form-urlencoded", }
+
+ // set Content-Type header
+ localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
+ if localVarHttpContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHttpContentType
+ }
+
+ // to determine the Accept header
+ localVarHttpHeaderAccepts := []string{
+ }
+
+ // set Accept header
+ localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts)
+ if localVarHttpHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
+ }
+ // body params
+ localVarPostBody = createVpcPeeringInstanceRequest
+ 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(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), `{`)) {
+ return &successPayload, reportError("Status: %v, Body: %s", localVarHttpResponse.Status, bodyBytes)
+ }
+
+ if !strings.Contains(string(bodyBytes), `{"error"`) && strings.HasPrefix(string(bodyBytes), `{`) {
+ if err = json.Unmarshal(bodyBytes[bytes.IndexAny(bytes.Trim(bodyBytes, "{"), "{"):len(bodyBytes)-1], &successPayload); err != nil {
+ return &successPayload, err
+ }
+ }
+
+
+ return &successPayload, err
+}
+
+/* V2ApiService
+ NATGateway인스턴스삭제
+ @param deleteNatGatewayInstanceRequest deleteNatGatewayInstanceRequest
+ @return *DeleteNatGatewayInstanceResponse*/
+func (a *V2ApiService) DeleteNatGatewayInstance(deleteNatGatewayInstanceRequest *DeleteNatGatewayInstanceRequest) (*DeleteNatGatewayInstanceResponse, error) {
+ var (
+ localVarHttpMethod = strings.ToUpper("Post")
+ localVarPostBody interface{}
+ localVarFileName string
+ localVarFileBytes []byte
+ successPayload DeleteNatGatewayInstanceResponse
+ )
+
+ // create path and map variables
+ localVarPath := a.client.cfg.BasePath + "/deleteNatGatewayInstance"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+
+ // to determine the Content-Type header
+ localVarHttpContentTypes := []string{ "application/x-www-form-urlencoded", }
+
+ // set Content-Type header
+ localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
+ if localVarHttpContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHttpContentType
+ }
+
+ // to determine the Accept header
+ localVarHttpHeaderAccepts := []string{
+ }
+
+ // set Accept header
+ localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts)
+ if localVarHttpHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
+ }
+ // body params
+ localVarPostBody = deleteNatGatewayInstanceRequest
+ 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(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), `{`)) {
+ return &successPayload, reportError("Status: %v, Body: %s", localVarHttpResponse.Status, bodyBytes)
+ }
+
+ if !strings.Contains(string(bodyBytes), `{"error"`) && strings.HasPrefix(string(bodyBytes), `{`) {
+ if err = json.Unmarshal(bodyBytes[bytes.IndexAny(bytes.Trim(bodyBytes, "{"), "{"):len(bodyBytes)-1], &successPayload); err != nil {
+ return &successPayload, err
+ }
+ }
+
+
+ return &successPayload, err
+}
+
+/* V2ApiService
+ 네트워크ACL삭제
+ @param deleteNetworkAclRequest deleteNetworkAclRequest
+ @return *DeleteNetworkAclResponse*/
+func (a *V2ApiService) DeleteNetworkAcl(deleteNetworkAclRequest *DeleteNetworkAclRequest) (*DeleteNetworkAclResponse, error) {
+ var (
+ localVarHttpMethod = strings.ToUpper("Post")
+ localVarPostBody interface{}
+ localVarFileName string
+ localVarFileBytes []byte
+ successPayload DeleteNetworkAclResponse
+ )
+
+ // create path and map variables
+ localVarPath := a.client.cfg.BasePath + "/deleteNetworkAcl"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+
+ // to determine the Content-Type header
+ localVarHttpContentTypes := []string{ "application/x-www-form-urlencoded", }
+
+ // set Content-Type header
+ localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
+ if localVarHttpContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHttpContentType
+ }
+
+ // to determine the Accept header
+ localVarHttpHeaderAccepts := []string{
+ }
+
+ // set Accept header
+ localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts)
+ if localVarHttpHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
+ }
+ // body params
+ localVarPostBody = deleteNetworkAclRequest
+ 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(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), `{`)) {
+ return &successPayload, reportError("Status: %v, Body: %s", localVarHttpResponse.Status, bodyBytes)
+ }
+
+ if !strings.Contains(string(bodyBytes), `{"error"`) && strings.HasPrefix(string(bodyBytes), `{`) {
+ if err = json.Unmarshal(bodyBytes[bytes.IndexAny(bytes.Trim(bodyBytes, "{"), "{"):len(bodyBytes)-1], &successPayload); err != nil {
+ return &successPayload, err
+ }
+ }
+
+
+ return &successPayload, err
+}
+
+/* V2ApiService
+ 라우트테이블삭제
+ @param deleteRouteTableRequest deleteRouteTableRequest
+ @return *DeleteRouteTableResponse*/
+func (a *V2ApiService) DeleteRouteTable(deleteRouteTableRequest *DeleteRouteTableRequest) (*DeleteRouteTableResponse, error) {
+ var (
+ localVarHttpMethod = strings.ToUpper("Post")
+ localVarPostBody interface{}
+ localVarFileName string
+ localVarFileBytes []byte
+ successPayload DeleteRouteTableResponse
+ )
+
+ // create path and map variables
+ localVarPath := a.client.cfg.BasePath + "/deleteRouteTable"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+
+ // to determine the Content-Type header
+ localVarHttpContentTypes := []string{ "application/x-www-form-urlencoded", }
+
+ // set Content-Type header
+ localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
+ if localVarHttpContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHttpContentType
+ }
+
+ // to determine the Accept header
+ localVarHttpHeaderAccepts := []string{
+ }
+
+ // set Accept header
+ localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts)
+ if localVarHttpHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
+ }
+ // body params
+ localVarPostBody = deleteRouteTableRequest
+ 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(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), `{`)) {
+ return &successPayload, reportError("Status: %v, Body: %s", localVarHttpResponse.Status, bodyBytes)
+ }
+
+ if !strings.Contains(string(bodyBytes), `{"error"`) && strings.HasPrefix(string(bodyBytes), `{`) {
+ if err = json.Unmarshal(bodyBytes[bytes.IndexAny(bytes.Trim(bodyBytes, "{"), "{"):len(bodyBytes)-1], &successPayload); err != nil {
+ return &successPayload, err
+ }
+ }
+
+
+ return &successPayload, err
+}
+
+/* V2ApiService
+ 서브넷삭제
+ @param deleteSubnetRequest deleteSubnetRequest
+ @return *DeleteSubnetResponse*/
+func (a *V2ApiService) DeleteSubnet(deleteSubnetRequest *DeleteSubnetRequest) (*DeleteSubnetResponse, error) {
+ var (
+ localVarHttpMethod = strings.ToUpper("Post")
+ localVarPostBody interface{}
+ localVarFileName string
+ localVarFileBytes []byte
+ successPayload DeleteSubnetResponse
+ )
+
+ // create path and map variables
+ localVarPath := a.client.cfg.BasePath + "/deleteSubnet"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+
+ // to determine the Content-Type header
+ localVarHttpContentTypes := []string{ "application/x-www-form-urlencoded", }
+
+ // set Content-Type header
+ localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
+ if localVarHttpContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHttpContentType
+ }
+
+ // to determine the Accept header
+ localVarHttpHeaderAccepts := []string{
+ }
+
+ // set Accept header
+ localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts)
+ if localVarHttpHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
+ }
+ // body params
+ localVarPostBody = deleteSubnetRequest
+ 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(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), `{`)) {
+ return &successPayload, reportError("Status: %v, Body: %s", localVarHttpResponse.Status, bodyBytes)
+ }
+
+ if !strings.Contains(string(bodyBytes), `{"error"`) && strings.HasPrefix(string(bodyBytes), `{`) {
+ if err = json.Unmarshal(bodyBytes[bytes.IndexAny(bytes.Trim(bodyBytes, "{"), "{"):len(bodyBytes)-1], &successPayload); err != nil {
+ return &successPayload, err
+ }
+ }
+
+
+ return &successPayload, err
+}
+
+/* V2ApiService
+ VPC삭제
+ @param deleteVpcRequest deleteVpcRequest
+ @return *DeleteVpcResponse*/
+func (a *V2ApiService) DeleteVpc(deleteVpcRequest *DeleteVpcRequest) (*DeleteVpcResponse, error) {
+ var (
+ localVarHttpMethod = strings.ToUpper("Post")
+ localVarPostBody interface{}
+ localVarFileName string
+ localVarFileBytes []byte
+ successPayload DeleteVpcResponse
+ )
+
+ // create path and map variables
+ localVarPath := a.client.cfg.BasePath + "/deleteVpc"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+
+ // to determine the Content-Type header
+ localVarHttpContentTypes := []string{ "application/x-www-form-urlencoded", }
+
+ // set Content-Type header
+ localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
+ if localVarHttpContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHttpContentType
+ }
+
+ // to determine the Accept header
+ localVarHttpHeaderAccepts := []string{
+ }
+
+ // set Accept header
+ localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts)
+ if localVarHttpHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
+ }
+ // body params
+ localVarPostBody = deleteVpcRequest
+ 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(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), `{`)) {
+ return &successPayload, reportError("Status: %v, Body: %s", localVarHttpResponse.Status, bodyBytes)
+ }
+
+ if !strings.Contains(string(bodyBytes), `{"error"`) && strings.HasPrefix(string(bodyBytes), `{`) {
+ if err = json.Unmarshal(bodyBytes[bytes.IndexAny(bytes.Trim(bodyBytes, "{"), "{"):len(bodyBytes)-1], &successPayload); err != nil {
+ return &successPayload, err
+ }
+ }
+
+
+ return &successPayload, err
+}
+
+/* V2ApiService
+ VPCPeering인스턴스삭제
+ @param deleteVpcPeeringInstanceRequest deleteVpcPeeringInstanceRequest
+ @return *DeleteVpcPeeringInstanceResponse*/
+func (a *V2ApiService) DeleteVpcPeeringInstance(deleteVpcPeeringInstanceRequest *DeleteVpcPeeringInstanceRequest) (*DeleteVpcPeeringInstanceResponse, error) {
+ var (
+ localVarHttpMethod = strings.ToUpper("Post")
+ localVarPostBody interface{}
+ localVarFileName string
+ localVarFileBytes []byte
+ successPayload DeleteVpcPeeringInstanceResponse
+ )
+
+ // create path and map variables
+ localVarPath := a.client.cfg.BasePath + "/deleteVpcPeeringInstance"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+
+ // to determine the Content-Type header
+ localVarHttpContentTypes := []string{ "application/x-www-form-urlencoded", }
+
+ // set Content-Type header
+ localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
+ if localVarHttpContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHttpContentType
+ }
+
+ // to determine the Accept header
+ localVarHttpHeaderAccepts := []string{
+ }
+
+ // set Accept header
+ localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts)
+ if localVarHttpHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
+ }
+ // body params
+ localVarPostBody = deleteVpcPeeringInstanceRequest
+ 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(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), `{`)) {
+ return &successPayload, reportError("Status: %v, Body: %s", localVarHttpResponse.Status, bodyBytes)
+ }
+
+ if !strings.Contains(string(bodyBytes), `{"error"`) && strings.HasPrefix(string(bodyBytes), `{`) {
+ if err = json.Unmarshal(bodyBytes[bytes.IndexAny(bytes.Trim(bodyBytes, "{"), "{"):len(bodyBytes)-1], &successPayload); err != nil {
+ return &successPayload, err
+ }
+ }
+
+
+ return &successPayload, err
+}
+
+/* V2ApiService
+ NATGateway인스턴스상세조회
+ @param getNatGatewayInstanceDetailRequest getNatGatewayInstanceDetailRequest
+ @return *GetNatGatewayInstanceDetailResponse*/
+func (a *V2ApiService) GetNatGatewayInstanceDetail(getNatGatewayInstanceDetailRequest *GetNatGatewayInstanceDetailRequest) (*GetNatGatewayInstanceDetailResponse, error) {
+ var (
+ localVarHttpMethod = strings.ToUpper("Post")
+ localVarPostBody interface{}
+ localVarFileName string
+ localVarFileBytes []byte
+ successPayload GetNatGatewayInstanceDetailResponse
+ )
+
+ // create path and map variables
+ localVarPath := a.client.cfg.BasePath + "/getNatGatewayInstanceDetail"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+
+ // to determine the Content-Type header
+ localVarHttpContentTypes := []string{ "application/x-www-form-urlencoded", }
+
+ // set Content-Type header
+ localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
+ if localVarHttpContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHttpContentType
+ }
+
+ // to determine the Accept header
+ localVarHttpHeaderAccepts := []string{
+ }
+
+ // set Accept header
+ localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts)
+ if localVarHttpHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
+ }
+ // body params
+ localVarPostBody = getNatGatewayInstanceDetailRequest
+ 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(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), `{`)) {
+ return &successPayload, reportError("Status: %v, Body: %s", localVarHttpResponse.Status, bodyBytes)
+ }
+
+ if !strings.Contains(string(bodyBytes), `{"error"`) && strings.HasPrefix(string(bodyBytes), `{`) {
+ if err = json.Unmarshal(bodyBytes[bytes.IndexAny(bytes.Trim(bodyBytes, "{"), "{"):len(bodyBytes)-1], &successPayload); err != nil {
+ return &successPayload, err
+ }
+ }
+
+
+ return &successPayload, err
+}
+
+/* V2ApiService
+ NATGateway인스턴스리스트조회
+ @param getNatGatewayInstanceListRequest getNatGatewayInstanceListRequest
+ @return *GetNatGatewayInstanceListResponse*/
+func (a *V2ApiService) GetNatGatewayInstanceList(getNatGatewayInstanceListRequest *GetNatGatewayInstanceListRequest) (*GetNatGatewayInstanceListResponse, error) {
+ var (
+ localVarHttpMethod = strings.ToUpper("Post")
+ localVarPostBody interface{}
+ localVarFileName string
+ localVarFileBytes []byte
+ successPayload GetNatGatewayInstanceListResponse
+ )
+
+ // create path and map variables
+ localVarPath := a.client.cfg.BasePath + "/getNatGatewayInstanceList"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+
+ // to determine the Content-Type header
+ localVarHttpContentTypes := []string{ "application/x-www-form-urlencoded", }
+
+ // set Content-Type header
+ localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
+ if localVarHttpContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHttpContentType
+ }
+
+ // to determine the Accept header
+ localVarHttpHeaderAccepts := []string{
+ }
+
+ // set Accept header
+ localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts)
+ if localVarHttpHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
+ }
+ // body params
+ localVarPostBody = getNatGatewayInstanceListRequest
+ 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(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), `{`)) {
+ return &successPayload, reportError("Status: %v, Body: %s", localVarHttpResponse.Status, bodyBytes)
+ }
+
+ if !strings.Contains(string(bodyBytes), `{"error"`) && strings.HasPrefix(string(bodyBytes), `{`) {
+ if err = json.Unmarshal(bodyBytes[bytes.IndexAny(bytes.Trim(bodyBytes, "{"), "{"):len(bodyBytes)-1], &successPayload); err != nil {
+ return &successPayload, err
+ }
+ }
+
+
+ return &successPayload, err
+}
+
+/* V2ApiService
+ 네트워크ACL상세조회
+ @param getNetworkAclDetailRequest getNetworkAclDetailRequest
+ @return *GetNetworkAclDetailResponse*/
+func (a *V2ApiService) GetNetworkAclDetail(getNetworkAclDetailRequest *GetNetworkAclDetailRequest) (*GetNetworkAclDetailResponse, error) {
+ var (
+ localVarHttpMethod = strings.ToUpper("Post")
+ localVarPostBody interface{}
+ localVarFileName string
+ localVarFileBytes []byte
+ successPayload GetNetworkAclDetailResponse
+ )
+
+ // create path and map variables
+ localVarPath := a.client.cfg.BasePath + "/getNetworkAclDetail"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+
+ // to determine the Content-Type header
+ localVarHttpContentTypes := []string{ "application/x-www-form-urlencoded", }
+
+ // set Content-Type header
+ localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
+ if localVarHttpContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHttpContentType
+ }
+
+ // to determine the Accept header
+ localVarHttpHeaderAccepts := []string{
+ }
+
+ // set Accept header
+ localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts)
+ if localVarHttpHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
+ }
+ // body params
+ localVarPostBody = getNetworkAclDetailRequest
+ 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(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), `{`)) {
+ return &successPayload, reportError("Status: %v, Body: %s", localVarHttpResponse.Status, bodyBytes)
+ }
+
+ if !strings.Contains(string(bodyBytes), `{"error"`) && strings.HasPrefix(string(bodyBytes), `{`) {
+ if err = json.Unmarshal(bodyBytes[bytes.IndexAny(bytes.Trim(bodyBytes, "{"), "{"):len(bodyBytes)-1], &successPayload); err != nil {
+ return &successPayload, err
+ }
+ }
+
+
+ return &successPayload, err
+}
+
+/* V2ApiService
+ 네트워크ACL리스트조회
+ @param getNetworkAclListRequest getNetworkAclListRequest
+ @return *GetNetworkAclListResponse*/
+func (a *V2ApiService) GetNetworkAclList(getNetworkAclListRequest *GetNetworkAclListRequest) (*GetNetworkAclListResponse, error) {
+ var (
+ localVarHttpMethod = strings.ToUpper("Post")
+ localVarPostBody interface{}
+ localVarFileName string
+ localVarFileBytes []byte
+ successPayload GetNetworkAclListResponse
+ )
+
+ // create path and map variables
+ localVarPath := a.client.cfg.BasePath + "/getNetworkAclList"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+
+ // to determine the Content-Type header
+ localVarHttpContentTypes := []string{ "application/x-www-form-urlencoded", }
+
+ // set Content-Type header
+ localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
+ if localVarHttpContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHttpContentType
+ }
+
+ // to determine the Accept header
+ localVarHttpHeaderAccepts := []string{
+ }
+
+ // set Accept header
+ localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts)
+ if localVarHttpHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
+ }
+ // body params
+ localVarPostBody = getNetworkAclListRequest
+ 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(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), `{`)) {
+ return &successPayload, reportError("Status: %v, Body: %s", localVarHttpResponse.Status, bodyBytes)
+ }
+
+ if !strings.Contains(string(bodyBytes), `{"error"`) && strings.HasPrefix(string(bodyBytes), `{`) {
+ if err = json.Unmarshal(bodyBytes[bytes.IndexAny(bytes.Trim(bodyBytes, "{"), "{"):len(bodyBytes)-1], &successPayload); err != nil {
+ return &successPayload, err
+ }
+ }
+
+
+ return &successPayload, err
+}
+
+/* V2ApiService
+ 네트워크ACLRule리스트조회
+ @param getNetworkAclRuleListRequest getNetworkAclRuleListRequest
+ @return *GetNetworkAclRuleListResponse*/
+func (a *V2ApiService) GetNetworkAclRuleList(getNetworkAclRuleListRequest *GetNetworkAclRuleListRequest) (*GetNetworkAclRuleListResponse, error) {
+ var (
+ localVarHttpMethod = strings.ToUpper("Post")
+ localVarPostBody interface{}
+ localVarFileName string
+ localVarFileBytes []byte
+ successPayload GetNetworkAclRuleListResponse
+ )
+
+ // create path and map variables
+ localVarPath := a.client.cfg.BasePath + "/getNetworkAclRuleList"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+
+ // to determine the Content-Type header
+ localVarHttpContentTypes := []string{ "application/x-www-form-urlencoded", }
+
+ // set Content-Type header
+ localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
+ if localVarHttpContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHttpContentType
+ }
+
+ // to determine the Accept header
+ localVarHttpHeaderAccepts := []string{
+ }
+
+ // set Accept header
+ localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts)
+ if localVarHttpHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
+ }
+ // body params
+ localVarPostBody = getNetworkAclRuleListRequest
+ 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(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), `{`)) {
+ return &successPayload, reportError("Status: %v, Body: %s", localVarHttpResponse.Status, bodyBytes)
+ }
+
+ if !strings.Contains(string(bodyBytes), `{"error"`) && strings.HasPrefix(string(bodyBytes), `{`) {
+ if err = json.Unmarshal(bodyBytes[bytes.IndexAny(bytes.Trim(bodyBytes, "{"), "{"):len(bodyBytes)-1], &successPayload); err != nil {
+ return &successPayload, err
+ }
+ }
+
+
+ return &successPayload, err
+}
+
+/* V2ApiService
+ 라우트리스트조회
+ @param getRouteListRequest getRouteListRequest
+ @return *GetRouteListResponse*/
+func (a *V2ApiService) GetRouteList(getRouteListRequest *GetRouteListRequest) (*GetRouteListResponse, error) {
+ var (
+ localVarHttpMethod = strings.ToUpper("Post")
+ localVarPostBody interface{}
+ localVarFileName string
+ localVarFileBytes []byte
+ successPayload GetRouteListResponse
+ )
+
+ // create path and map variables
+ localVarPath := a.client.cfg.BasePath + "/getRouteList"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+
+ // to determine the Content-Type header
+ localVarHttpContentTypes := []string{ "application/x-www-form-urlencoded", }
+
+ // set Content-Type header
+ localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
+ if localVarHttpContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHttpContentType
+ }
+
+ // to determine the Accept header
+ localVarHttpHeaderAccepts := []string{
+ }
+
+ // set Accept header
+ localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts)
+ if localVarHttpHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
+ }
+ // body params
+ localVarPostBody = getRouteListRequest
+ 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(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), `{`)) {
+ return &successPayload, reportError("Status: %v, Body: %s", localVarHttpResponse.Status, bodyBytes)
+ }
+
+ if !strings.Contains(string(bodyBytes), `{"error"`) && strings.HasPrefix(string(bodyBytes), `{`) {
+ if err = json.Unmarshal(bodyBytes[bytes.IndexAny(bytes.Trim(bodyBytes, "{"), "{"):len(bodyBytes)-1], &successPayload); err != nil {
+ return &successPayload, err
+ }
+ }
+
+
+ return &successPayload, err
+}
+
+/* V2ApiService
+ 라우트테이블상세조회
+ @param getRouteTableDetailRequest getRouteTableDetailRequest
+ @return *GetRouteTableDetailResponse*/
+func (a *V2ApiService) GetRouteTableDetail(getRouteTableDetailRequest *GetRouteTableDetailRequest) (*GetRouteTableDetailResponse, error) {
+ var (
+ localVarHttpMethod = strings.ToUpper("Post")
+ localVarPostBody interface{}
+ localVarFileName string
+ localVarFileBytes []byte
+ successPayload GetRouteTableDetailResponse
+ )
+
+ // create path and map variables
+ localVarPath := a.client.cfg.BasePath + "/getRouteTableDetail"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+
+ // to determine the Content-Type header
+ localVarHttpContentTypes := []string{ "application/x-www-form-urlencoded", }
+
+ // set Content-Type header
+ localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
+ if localVarHttpContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHttpContentType
+ }
+
+ // to determine the Accept header
+ localVarHttpHeaderAccepts := []string{
+ }
+
+ // set Accept header
+ localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts)
+ if localVarHttpHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
+ }
+ // body params
+ localVarPostBody = getRouteTableDetailRequest
+ 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(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), `{`)) {
+ return &successPayload, reportError("Status: %v, Body: %s", localVarHttpResponse.Status, bodyBytes)
+ }
+
+ if !strings.Contains(string(bodyBytes), `{"error"`) && strings.HasPrefix(string(bodyBytes), `{`) {
+ if err = json.Unmarshal(bodyBytes[bytes.IndexAny(bytes.Trim(bodyBytes, "{"), "{"):len(bodyBytes)-1], &successPayload); err != nil {
+ return &successPayload, err
+ }
+ }
+
+
+ return &successPayload, err
+}
+
+/* V2ApiService
+ 라우트테이블리스트조회
+ @param getRouteTableListRequest getRouteTableListRequest
+ @return *GetRouteTableListResponse*/
+func (a *V2ApiService) GetRouteTableList(getRouteTableListRequest *GetRouteTableListRequest) (*GetRouteTableListResponse, error) {
+ var (
+ localVarHttpMethod = strings.ToUpper("Post")
+ localVarPostBody interface{}
+ localVarFileName string
+ localVarFileBytes []byte
+ successPayload GetRouteTableListResponse
+ )
+
+ // create path and map variables
+ localVarPath := a.client.cfg.BasePath + "/getRouteTableList"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+
+ // to determine the Content-Type header
+ localVarHttpContentTypes := []string{ "application/x-www-form-urlencoded", }
+
+ // set Content-Type header
+ localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
+ if localVarHttpContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHttpContentType
+ }
+
+ // to determine the Accept header
+ localVarHttpHeaderAccepts := []string{
+ }
+
+ // set Accept header
+ localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts)
+ if localVarHttpHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
+ }
+ // body params
+ localVarPostBody = getRouteTableListRequest
+ 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(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), `{`)) {
+ return &successPayload, reportError("Status: %v, Body: %s", localVarHttpResponse.Status, bodyBytes)
+ }
+
+ if !strings.Contains(string(bodyBytes), `{"error"`) && strings.HasPrefix(string(bodyBytes), `{`) {
+ if err = json.Unmarshal(bodyBytes[bytes.IndexAny(bytes.Trim(bodyBytes, "{"), "{"):len(bodyBytes)-1], &successPayload); err != nil {
+ return &successPayload, err
+ }
+ }
+
+
+ return &successPayload, err
+}
+
+/* V2ApiService
+ 라우트테이블에연관된서브넷리스트조회
+ @param getRouteTableSubnetListRequest getRouteTableSubnetListRequest
+ @return *GetRouteTableSubnetListResponse*/
+func (a *V2ApiService) GetRouteTableSubnetList(getRouteTableSubnetListRequest *GetRouteTableSubnetListRequest) (*GetRouteTableSubnetListResponse, error) {
+ var (
+ localVarHttpMethod = strings.ToUpper("Post")
+ localVarPostBody interface{}
+ localVarFileName string
+ localVarFileBytes []byte
+ successPayload GetRouteTableSubnetListResponse
+ )
+
+ // create path and map variables
+ localVarPath := a.client.cfg.BasePath + "/getRouteTableSubnetList"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+
+ // to determine the Content-Type header
+ localVarHttpContentTypes := []string{ "application/x-www-form-urlencoded", }
+
+ // set Content-Type header
+ localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
+ if localVarHttpContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHttpContentType
+ }
+
+ // to determine the Accept header
+ localVarHttpHeaderAccepts := []string{
+ }
+
+ // set Accept header
+ localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts)
+ if localVarHttpHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
+ }
+ // body params
+ localVarPostBody = getRouteTableSubnetListRequest
+ 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(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), `{`)) {
+ return &successPayload, reportError("Status: %v, Body: %s", localVarHttpResponse.Status, bodyBytes)
+ }
+
+ if !strings.Contains(string(bodyBytes), `{"error"`) && strings.HasPrefix(string(bodyBytes), `{`) {
+ if err = json.Unmarshal(bodyBytes[bytes.IndexAny(bytes.Trim(bodyBytes, "{"), "{"):len(bodyBytes)-1], &successPayload); err != nil {
+ return &successPayload, err
+ }
+ }
+
+
+ return &successPayload, err
+}
+
+/* V2ApiService
+ 서브넷상세조회
+ @param getSubnetDetailRequest getSubnetDetailRequest
+ @return *GetSubnetDetailResponse*/
+func (a *V2ApiService) GetSubnetDetail(getSubnetDetailRequest *GetSubnetDetailRequest) (*GetSubnetDetailResponse, error) {
+ var (
+ localVarHttpMethod = strings.ToUpper("Post")
+ localVarPostBody interface{}
+ localVarFileName string
+ localVarFileBytes []byte
+ successPayload GetSubnetDetailResponse
+ )
+
+ // create path and map variables
+ localVarPath := a.client.cfg.BasePath + "/getSubnetDetail"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+
+ // to determine the Content-Type header
+ localVarHttpContentTypes := []string{ "application/x-www-form-urlencoded", }
+
+ // set Content-Type header
+ localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
+ if localVarHttpContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHttpContentType
+ }
+
+ // to determine the Accept header
+ localVarHttpHeaderAccepts := []string{
+ }
+
+ // set Accept header
+ localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts)
+ if localVarHttpHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
+ }
+ // body params
+ localVarPostBody = getSubnetDetailRequest
+ 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(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), `{`)) {
+ return &successPayload, reportError("Status: %v, Body: %s", localVarHttpResponse.Status, bodyBytes)
+ }
+
+ if !strings.Contains(string(bodyBytes), `{"error"`) && strings.HasPrefix(string(bodyBytes), `{`) {
+ if err = json.Unmarshal(bodyBytes[bytes.IndexAny(bytes.Trim(bodyBytes, "{"), "{"):len(bodyBytes)-1], &successPayload); err != nil {
+ return &successPayload, err
+ }
+ }
+
+
+ return &successPayload, err
+}
+
+/* V2ApiService
+ 서브넷리스트조회
+ @param getSubnetListRequest getSubnetListRequest
+ @return *GetSubnetListResponse*/
+func (a *V2ApiService) GetSubnetList(getSubnetListRequest *GetSubnetListRequest) (*GetSubnetListResponse, error) {
+ var (
+ localVarHttpMethod = strings.ToUpper("Post")
+ localVarPostBody interface{}
+ localVarFileName string
+ localVarFileBytes []byte
+ successPayload GetSubnetListResponse
+ )
+
+ // create path and map variables
+ localVarPath := a.client.cfg.BasePath + "/getSubnetList"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+
+ // to determine the Content-Type header
+ localVarHttpContentTypes := []string{ "application/x-www-form-urlencoded", }
+
+ // set Content-Type header
+ localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
+ if localVarHttpContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHttpContentType
+ }
+
+ // to determine the Accept header
+ localVarHttpHeaderAccepts := []string{
+ }
+
+ // set Accept header
+ localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts)
+ if localVarHttpHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
+ }
+ // body params
+ localVarPostBody = getSubnetListRequest
+ 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(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), `{`)) {
+ return &successPayload, reportError("Status: %v, Body: %s", localVarHttpResponse.Status, bodyBytes)
+ }
+
+ if !strings.Contains(string(bodyBytes), `{"error"`) && strings.HasPrefix(string(bodyBytes), `{`) {
+ if err = json.Unmarshal(bodyBytes[bytes.IndexAny(bytes.Trim(bodyBytes, "{"), "{"):len(bodyBytes)-1], &successPayload); err != nil {
+ return &successPayload, err
+ }
+ }
+
+
+ return &successPayload, err
+}
+
+/* V2ApiService
+ VPC상세조회
+ @param getVpcDetailRequest getVpcDetailRequest
+ @return *GetVpcDetailResponse*/
+func (a *V2ApiService) GetVpcDetail(getVpcDetailRequest *GetVpcDetailRequest) (*GetVpcDetailResponse, error) {
+ var (
+ localVarHttpMethod = strings.ToUpper("Post")
+ localVarPostBody interface{}
+ localVarFileName string
+ localVarFileBytes []byte
+ successPayload GetVpcDetailResponse
+ )
+
+ // create path and map variables
+ localVarPath := a.client.cfg.BasePath + "/getVpcDetail"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+
+ // to determine the Content-Type header
+ localVarHttpContentTypes := []string{ "application/x-www-form-urlencoded", }
+
+ // set Content-Type header
+ localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
+ if localVarHttpContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHttpContentType
+ }
+
+ // to determine the Accept header
+ localVarHttpHeaderAccepts := []string{
+ }
+
+ // set Accept header
+ localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts)
+ if localVarHttpHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
+ }
+ // body params
+ localVarPostBody = getVpcDetailRequest
+ 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(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), `{`)) {
+ return &successPayload, reportError("Status: %v, Body: %s", localVarHttpResponse.Status, bodyBytes)
+ }
+
+ if !strings.Contains(string(bodyBytes), `{"error"`) && strings.HasPrefix(string(bodyBytes), `{`) {
+ if err = json.Unmarshal(bodyBytes[bytes.IndexAny(bytes.Trim(bodyBytes, "{"), "{"):len(bodyBytes)-1], &successPayload); err != nil {
+ return &successPayload, err
+ }
+ }
+
+
+ return &successPayload, err
+}
+
+/* V2ApiService
+ VPC리스트조회
+ @param getVpcListRequest getVpcListRequest
+ @return *GetVpcListResponse*/
+func (a *V2ApiService) GetVpcList(getVpcListRequest *GetVpcListRequest) (*GetVpcListResponse, error) {
+ var (
+ localVarHttpMethod = strings.ToUpper("Post")
+ localVarPostBody interface{}
+ localVarFileName string
+ localVarFileBytes []byte
+ successPayload GetVpcListResponse
+ )
+
+ // create path and map variables
+ localVarPath := a.client.cfg.BasePath + "/getVpcList"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+
+ // to determine the Content-Type header
+ localVarHttpContentTypes := []string{ "application/x-www-form-urlencoded", }
+
+ // set Content-Type header
+ localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
+ if localVarHttpContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHttpContentType
+ }
+
+ // to determine the Accept header
+ localVarHttpHeaderAccepts := []string{
+ }
+
+ // set Accept header
+ localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts)
+ if localVarHttpHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
+ }
+ // body params
+ localVarPostBody = getVpcListRequest
+ 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(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), `{`)) {
+ return &successPayload, reportError("Status: %v, Body: %s", localVarHttpResponse.Status, bodyBytes)
+ }
+
+ if !strings.Contains(string(bodyBytes), `{"error"`) && strings.HasPrefix(string(bodyBytes), `{`) {
+ if err = json.Unmarshal(bodyBytes[bytes.IndexAny(bytes.Trim(bodyBytes, "{"), "{"):len(bodyBytes)-1], &successPayload); err != nil {
+ return &successPayload, err
+ }
+ }
+
+
+ return &successPayload, err
+}
+
+/* V2ApiService
+ VPCPeering인스턴스상세조회
+ @param getVpcPeeringInstanceDetailRequest getVpcPeeringInstanceDetailRequest
+ @return *GetVpcPeeringInstanceDetailResponse*/
+func (a *V2ApiService) GetVpcPeeringInstanceDetail(getVpcPeeringInstanceDetailRequest *GetVpcPeeringInstanceDetailRequest) (*GetVpcPeeringInstanceDetailResponse, error) {
+ var (
+ localVarHttpMethod = strings.ToUpper("Post")
+ localVarPostBody interface{}
+ localVarFileName string
+ localVarFileBytes []byte
+ successPayload GetVpcPeeringInstanceDetailResponse
+ )
+
+ // create path and map variables
+ localVarPath := a.client.cfg.BasePath + "/getVpcPeeringInstanceDetail"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+
+ // to determine the Content-Type header
+ localVarHttpContentTypes := []string{ "application/x-www-form-urlencoded", }
+
+ // set Content-Type header
+ localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
+ if localVarHttpContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHttpContentType
+ }
+
+ // to determine the Accept header
+ localVarHttpHeaderAccepts := []string{
+ }
+
+ // set Accept header
+ localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts)
+ if localVarHttpHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
+ }
+ // body params
+ localVarPostBody = getVpcPeeringInstanceDetailRequest
+ 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(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), `{`)) {
+ return &successPayload, reportError("Status: %v, Body: %s", localVarHttpResponse.Status, bodyBytes)
+ }
+
+ if !strings.Contains(string(bodyBytes), `{"error"`) && strings.HasPrefix(string(bodyBytes), `{`) {
+ if err = json.Unmarshal(bodyBytes[bytes.IndexAny(bytes.Trim(bodyBytes, "{"), "{"):len(bodyBytes)-1], &successPayload); err != nil {
+ return &successPayload, err
+ }
+ }
+
+
+ return &successPayload, err
+}
+
+/* V2ApiService
+ VPCPeering인스턴스리스트조회
+ @param getVpcPeeringInstanceListRequest getVpcPeeringInstanceListRequest
+ @return *GetVpcPeeringInstanceListResponse*/
+func (a *V2ApiService) GetVpcPeeringInstanceList(getVpcPeeringInstanceListRequest *GetVpcPeeringInstanceListRequest) (*GetVpcPeeringInstanceListResponse, error) {
+ var (
+ localVarHttpMethod = strings.ToUpper("Post")
+ localVarPostBody interface{}
+ localVarFileName string
+ localVarFileBytes []byte
+ successPayload GetVpcPeeringInstanceListResponse
+ )
+
+ // create path and map variables
+ localVarPath := a.client.cfg.BasePath + "/getVpcPeeringInstanceList"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+
+ // to determine the Content-Type header
+ localVarHttpContentTypes := []string{ "application/x-www-form-urlencoded", }
+
+ // set Content-Type header
+ localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
+ if localVarHttpContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHttpContentType
+ }
+
+ // to determine the Accept header
+ localVarHttpHeaderAccepts := []string{
+ }
+
+ // set Accept header
+ localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts)
+ if localVarHttpHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
+ }
+ // body params
+ localVarPostBody = getVpcPeeringInstanceListRequest
+ 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(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), `{`)) {
+ return &successPayload, reportError("Status: %v, Body: %s", localVarHttpResponse.Status, bodyBytes)
+ }
+
+ if !strings.Contains(string(bodyBytes), `{"error"`) && strings.HasPrefix(string(bodyBytes), `{`) {
+ if err = json.Unmarshal(bodyBytes[bytes.IndexAny(bytes.Trim(bodyBytes, "{"), "{"):len(bodyBytes)-1], &successPayload); err != nil {
+ return &successPayload, err
+ }
+ }
+
+
+ return &successPayload, err
+}
+
+/* V2ApiService
+ 네트워크ACLInboundRule제거
+ @param removeNetworkAclInboundRuleRequest removeNetworkAclInboundRuleRequest
+ @return *RemoveNetworkAclInboundRuleResponse*/
+func (a *V2ApiService) RemoveNetworkAclInboundRule(removeNetworkAclInboundRuleRequest *RemoveNetworkAclInboundRuleRequest) (*RemoveNetworkAclInboundRuleResponse, error) {
+ var (
+ localVarHttpMethod = strings.ToUpper("Post")
+ localVarPostBody interface{}
+ localVarFileName string
+ localVarFileBytes []byte
+ successPayload RemoveNetworkAclInboundRuleResponse
+ )
+
+ // create path and map variables
+ localVarPath := a.client.cfg.BasePath + "/removeNetworkAclInboundRule"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+
+ // to determine the Content-Type header
+ localVarHttpContentTypes := []string{ "application/x-www-form-urlencoded", }
+
+ // set Content-Type header
+ localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
+ if localVarHttpContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHttpContentType
+ }
+
+ // to determine the Accept header
+ localVarHttpHeaderAccepts := []string{
+ }
+
+ // set Accept header
+ localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts)
+ if localVarHttpHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
+ }
+ // body params
+ localVarPostBody = removeNetworkAclInboundRuleRequest
+ 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(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), `{`)) {
+ return &successPayload, reportError("Status: %v, Body: %s", localVarHttpResponse.Status, bodyBytes)
+ }
+
+ if !strings.Contains(string(bodyBytes), `{"error"`) && strings.HasPrefix(string(bodyBytes), `{`) {
+ if err = json.Unmarshal(bodyBytes[bytes.IndexAny(bytes.Trim(bodyBytes, "{"), "{"):len(bodyBytes)-1], &successPayload); err != nil {
+ return &successPayload, err
+ }
+ }
+
+
+ return &successPayload, err
+}
+
+/* V2ApiService
+ 네트워크ACLOutboundRule제거
+ @param removeNetworkAclOutboundRuleRequest removeNetworkAclOutboundRuleRequest
+ @return *RemoveNetworkAclOutboundRuleResponse*/
+func (a *V2ApiService) RemoveNetworkAclOutboundRule(removeNetworkAclOutboundRuleRequest *RemoveNetworkAclOutboundRuleRequest) (*RemoveNetworkAclOutboundRuleResponse, error) {
+ var (
+ localVarHttpMethod = strings.ToUpper("Post")
+ localVarPostBody interface{}
+ localVarFileName string
+ localVarFileBytes []byte
+ successPayload RemoveNetworkAclOutboundRuleResponse
+ )
+
+ // create path and map variables
+ localVarPath := a.client.cfg.BasePath + "/removeNetworkAclOutboundRule"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+
+ // to determine the Content-Type header
+ localVarHttpContentTypes := []string{ "application/x-www-form-urlencoded", }
+
+ // set Content-Type header
+ localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
+ if localVarHttpContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHttpContentType
+ }
+
+ // to determine the Accept header
+ localVarHttpHeaderAccepts := []string{
+ }
+
+ // set Accept header
+ localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts)
+ if localVarHttpHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
+ }
+ // body params
+ localVarPostBody = removeNetworkAclOutboundRuleRequest
+ 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(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), `{`)) {
+ return &successPayload, reportError("Status: %v, Body: %s", localVarHttpResponse.Status, bodyBytes)
+ }
+
+ if !strings.Contains(string(bodyBytes), `{"error"`) && strings.HasPrefix(string(bodyBytes), `{`) {
+ if err = json.Unmarshal(bodyBytes[bytes.IndexAny(bytes.Trim(bodyBytes, "{"), "{"):len(bodyBytes)-1], &successPayload); err != nil {
+ return &successPayload, err
+ }
+ }
+
+
+ return &successPayload, err
+}
+
+/* V2ApiService
+ 라우트제거
+ @param removeRouteRequest removeRouteRequest
+ @return *RemoveRouteResponse*/
+func (a *V2ApiService) RemoveRoute(removeRouteRequest *RemoveRouteRequest) (*RemoveRouteResponse, error) {
+ var (
+ localVarHttpMethod = strings.ToUpper("Post")
+ localVarPostBody interface{}
+ localVarFileName string
+ localVarFileBytes []byte
+ successPayload RemoveRouteResponse
+ )
+
+ // create path and map variables
+ localVarPath := a.client.cfg.BasePath + "/removeRoute"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+
+ // to determine the Content-Type header
+ localVarHttpContentTypes := []string{ "application/x-www-form-urlencoded", }
+
+ // set Content-Type header
+ localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
+ if localVarHttpContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHttpContentType
+ }
+
+ // to determine the Accept header
+ localVarHttpHeaderAccepts := []string{
+ }
+
+ // set Accept header
+ localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts)
+ if localVarHttpHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
+ }
+ // body params
+ localVarPostBody = removeRouteRequest
+ 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(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), `{`)) {
+ return &successPayload, reportError("Status: %v, Body: %s", localVarHttpResponse.Status, bodyBytes)
+ }
+
+ if !strings.Contains(string(bodyBytes), `{"error"`) && strings.HasPrefix(string(bodyBytes), `{`) {
+ if err = json.Unmarshal(bodyBytes[bytes.IndexAny(bytes.Trim(bodyBytes, "{"), "{"):len(bodyBytes)-1], &successPayload); err != nil {
+ return &successPayload, err
+ }
+ }
+
+
+ return &successPayload, err
+}
+
+/* V2ApiService
+ 라우트테이블의연관서브넷제거
+ @param removeRouteTableSubnetRequest removeRouteTableSubnetRequest
+ @return *RemoveRouteTableSubnetResponse*/
+func (a *V2ApiService) RemoveRouteTableSubnet(removeRouteTableSubnetRequest *RemoveRouteTableSubnetRequest) (*RemoveRouteTableSubnetResponse, error) {
+ var (
+ localVarHttpMethod = strings.ToUpper("Post")
+ localVarPostBody interface{}
+ localVarFileName string
+ localVarFileBytes []byte
+ successPayload RemoveRouteTableSubnetResponse
+ )
+
+ // create path and map variables
+ localVarPath := a.client.cfg.BasePath + "/removeRouteTableSubnet"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+
+ // to determine the Content-Type header
+ localVarHttpContentTypes := []string{ "application/x-www-form-urlencoded", }
+
+ // set Content-Type header
+ localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
+ if localVarHttpContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHttpContentType
+ }
+
+ // to determine the Accept header
+ localVarHttpHeaderAccepts := []string{
+ }
+
+ // set Accept header
+ localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts)
+ if localVarHttpHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
+ }
+ // body params
+ localVarPostBody = removeRouteTableSubnetRequest
+ 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(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), `{`)) {
+ return &successPayload, reportError("Status: %v, Body: %s", localVarHttpResponse.Status, bodyBytes)
+ }
+
+ if !strings.Contains(string(bodyBytes), `{"error"`) && strings.HasPrefix(string(bodyBytes), `{`) {
+ if err = json.Unmarshal(bodyBytes[bytes.IndexAny(bytes.Trim(bodyBytes, "{"), "{"):len(bodyBytes)-1], &successPayload); err != nil {
+ return &successPayload, err
+ }
+ }
+
+
+ return &successPayload, err
+}
+
+/* V2ApiService
+ NATGateway설명설정
+ @param setNatGatewayDescriptionRequest setNatGatewayDescriptionRequest
+ @return *SetNatGatewayDescriptionResponse*/
+func (a *V2ApiService) SetNatGatewayDescription(setNatGatewayDescriptionRequest *SetNatGatewayDescriptionRequest) (*SetNatGatewayDescriptionResponse, error) {
+ var (
+ localVarHttpMethod = strings.ToUpper("Post")
+ localVarPostBody interface{}
+ localVarFileName string
+ localVarFileBytes []byte
+ successPayload SetNatGatewayDescriptionResponse
+ )
+
+ // create path and map variables
+ localVarPath := a.client.cfg.BasePath + "/setNatGatewayDescription"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+
+ // to determine the Content-Type header
+ localVarHttpContentTypes := []string{ "application/x-www-form-urlencoded", }
+
+ // set Content-Type header
+ localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
+ if localVarHttpContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHttpContentType
+ }
+
+ // to determine the Accept header
+ localVarHttpHeaderAccepts := []string{
+ }
+
+ // set Accept header
+ localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts)
+ if localVarHttpHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
+ }
+ // body params
+ localVarPostBody = setNatGatewayDescriptionRequest
+ 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(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), `{`)) {
+ return &successPayload, reportError("Status: %v, Body: %s", localVarHttpResponse.Status, bodyBytes)
+ }
+
+ if !strings.Contains(string(bodyBytes), `{"error"`) && strings.HasPrefix(string(bodyBytes), `{`) {
+ if err = json.Unmarshal(bodyBytes[bytes.IndexAny(bytes.Trim(bodyBytes, "{"), "{"):len(bodyBytes)-1], &successPayload); err != nil {
+ return &successPayload, err
+ }
+ }
+
+
+ return &successPayload, err
+}
+
+/* V2ApiService
+ 네트워크ACL설명설정
+ @param setNetworkAclDescriptionRequest setNetworkAclDescriptionRequest
+ @return *SetNetworkAclDescriptionResponse*/
+func (a *V2ApiService) SetNetworkAclDescription(setNetworkAclDescriptionRequest *SetNetworkAclDescriptionRequest) (*SetNetworkAclDescriptionResponse, error) {
+ var (
+ localVarHttpMethod = strings.ToUpper("Post")
+ localVarPostBody interface{}
+ localVarFileName string
+ localVarFileBytes []byte
+ successPayload SetNetworkAclDescriptionResponse
+ )
+
+ // create path and map variables
+ localVarPath := a.client.cfg.BasePath + "/setNetworkAclDescription"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+
+ // to determine the Content-Type header
+ localVarHttpContentTypes := []string{ "application/x-www-form-urlencoded", }
+
+ // set Content-Type header
+ localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
+ if localVarHttpContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHttpContentType
+ }
+
+ // to determine the Accept header
+ localVarHttpHeaderAccepts := []string{
+ }
+
+ // set Accept header
+ localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts)
+ if localVarHttpHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
+ }
+ // body params
+ localVarPostBody = setNetworkAclDescriptionRequest
+ 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(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), `{`)) {
+ return &successPayload, reportError("Status: %v, Body: %s", localVarHttpResponse.Status, bodyBytes)
+ }
+
+ if !strings.Contains(string(bodyBytes), `{"error"`) && strings.HasPrefix(string(bodyBytes), `{`) {
+ if err = json.Unmarshal(bodyBytes[bytes.IndexAny(bytes.Trim(bodyBytes, "{"), "{"):len(bodyBytes)-1], &successPayload); err != nil {
+ return &successPayload, err
+ }
+ }
+
+
+ return &successPayload, err
+}
+
+/* V2ApiService
+ 라우트테이블설명설정
+ @param setRouteTableDescriptionRequest setRouteTableDescriptionRequest
+ @return *SetRouteTableDescriptionResponse*/
+func (a *V2ApiService) SetRouteTableDescription(setRouteTableDescriptionRequest *SetRouteTableDescriptionRequest) (*SetRouteTableDescriptionResponse, error) {
+ var (
+ localVarHttpMethod = strings.ToUpper("Post")
+ localVarPostBody interface{}
+ localVarFileName string
+ localVarFileBytes []byte
+ successPayload SetRouteTableDescriptionResponse
+ )
+
+ // create path and map variables
+ localVarPath := a.client.cfg.BasePath + "/setRouteTableDescription"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+
+ // to determine the Content-Type header
+ localVarHttpContentTypes := []string{ "application/x-www-form-urlencoded", }
+
+ // set Content-Type header
+ localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
+ if localVarHttpContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHttpContentType
+ }
+
+ // to determine the Accept header
+ localVarHttpHeaderAccepts := []string{
+ }
+
+ // set Accept header
+ localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts)
+ if localVarHttpHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
+ }
+ // body params
+ localVarPostBody = setRouteTableDescriptionRequest
+ 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(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), `{`)) {
+ return &successPayload, reportError("Status: %v, Body: %s", localVarHttpResponse.Status, bodyBytes)
+ }
+
+ if !strings.Contains(string(bodyBytes), `{"error"`) && strings.HasPrefix(string(bodyBytes), `{`) {
+ if err = json.Unmarshal(bodyBytes[bytes.IndexAny(bytes.Trim(bodyBytes, "{"), "{"):len(bodyBytes)-1], &successPayload); err != nil {
+ return &successPayload, err
+ }
+ }
+
+
+ return &successPayload, err
+}
+
+/* V2ApiService
+ 서브넷의네트워크ACL설정
+ @param setSubnetNetworkAclRequest setSubnetNetworkAclRequest
+ @return *SetSubnetNetworkAclResponse*/
+func (a *V2ApiService) SetSubnetNetworkAcl(setSubnetNetworkAclRequest *SetSubnetNetworkAclRequest) (*SetSubnetNetworkAclResponse, error) {
+ var (
+ localVarHttpMethod = strings.ToUpper("Post")
+ localVarPostBody interface{}
+ localVarFileName string
+ localVarFileBytes []byte
+ successPayload SetSubnetNetworkAclResponse
+ )
+
+ // create path and map variables
+ localVarPath := a.client.cfg.BasePath + "/setSubnetNetworkAcl"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+
+ // to determine the Content-Type header
+ localVarHttpContentTypes := []string{ "application/x-www-form-urlencoded", }
+
+ // set Content-Type header
+ localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
+ if localVarHttpContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHttpContentType
+ }
+
+ // to determine the Accept header
+ localVarHttpHeaderAccepts := []string{
+ }
+
+ // set Accept header
+ localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts)
+ if localVarHttpHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
+ }
+ // body params
+ localVarPostBody = setSubnetNetworkAclRequest
+ 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(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), `{`)) {
+ return &successPayload, reportError("Status: %v, Body: %s", localVarHttpResponse.Status, bodyBytes)
+ }
+
+ if !strings.Contains(string(bodyBytes), `{"error"`) && strings.HasPrefix(string(bodyBytes), `{`) {
+ if err = json.Unmarshal(bodyBytes[bytes.IndexAny(bytes.Trim(bodyBytes, "{"), "{"):len(bodyBytes)-1], &successPayload); err != nil {
+ return &successPayload, err
+ }
+ }
+
+
+ return &successPayload, err
+}
+
+/* V2ApiService
+ VPCPeering설명설정
+ @param setVpcPeeringDescriptionRequest setVpcPeeringDescriptionRequest
+ @return *SetVpcPeeringDescriptionResponse*/
+func (a *V2ApiService) SetVpcPeeringDescription(setVpcPeeringDescriptionRequest *SetVpcPeeringDescriptionRequest) (*SetVpcPeeringDescriptionResponse, error) {
+ var (
+ localVarHttpMethod = strings.ToUpper("Post")
+ localVarPostBody interface{}
+ localVarFileName string
+ localVarFileBytes []byte
+ successPayload SetVpcPeeringDescriptionResponse
+ )
+
+ // create path and map variables
+ localVarPath := a.client.cfg.BasePath + "/setVpcPeeringDescription"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+
+ // to determine the Content-Type header
+ localVarHttpContentTypes := []string{ "application/x-www-form-urlencoded", }
+
+ // set Content-Type header
+ localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
+ if localVarHttpContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHttpContentType
+ }
+
+ // to determine the Accept header
+ localVarHttpHeaderAccepts := []string{
+ }
+
+ // set Accept header
+ localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts)
+ if localVarHttpHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
+ }
+ // body params
+ localVarPostBody = setVpcPeeringDescriptionRequest
+ 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(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), `{`)) {
+ return &successPayload, reportError("Status: %v, Body: %s", localVarHttpResponse.Status, bodyBytes)
+ }
+
+ if !strings.Contains(string(bodyBytes), `{"error"`) && strings.HasPrefix(string(bodyBytes), `{`) {
+ if err = json.Unmarshal(bodyBytes[bytes.IndexAny(bytes.Trim(bodyBytes, "{"), "{"):len(bodyBytes)-1], &successPayload); err != nil {
+ return &successPayload, err
+ }
+ }
+
+
+ return &successPayload, err
+}
+
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/vpc.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/vpc.go
new file mode 100644
index 000000000..d86a3b4c1
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/vpc.go
@@ -0,0 +1,30 @@
+/*
+ * vpc
+ *
+ * VPC Network 관련 API
https://ncloud.apigw.ntruss.com/vpc/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vpc
+
+type Vpc struct {
+
+ // VPC번호
+VpcNo *string `json:"vpcNo,omitempty"`
+
+ // VPC이름
+VpcName *string `json:"vpcName,omitempty"`
+
+ // IPv4 CIDR블록
+Ipv4CidrBlock *string `json:"ipv4CidrBlock,omitempty"`
+
+ // VPC상태
+VpcStatus *CommonCode `json:"vpcStatus,omitempty"`
+
+ // REGION코드
+RegionCode *string `json:"regionCode,omitempty"`
+
+ // 생성일시
+CreateDate *string `json:"createDate,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/vpc_peering_instance.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/vpc_peering_instance.go
new file mode 100644
index 000000000..5148e2d3b
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vpc/vpc_peering_instance.go
@@ -0,0 +1,72 @@
+/*
+ * vpc
+ *
+ * VPC Network 관련 API
https://ncloud.apigw.ntruss.com/vpc/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vpc
+
+type VpcPeeringInstance struct {
+
+ // VPCPeering인스턴스번호
+VpcPeeringInstanceNo *string `json:"vpcPeeringInstanceNo,omitempty"`
+
+ // VPCPeering이름
+VpcPeeringName *string `json:"vpcPeeringName,omitempty"`
+
+ // REGION코드
+RegionCode *string `json:"regionCode,omitempty"`
+
+ // 생성일시
+CreateDate *string `json:"createDate,omitempty"`
+
+ // 마지막수정일시
+LastModifiyDate *string `json:"lastModifiyDate,omitempty"`
+
+ // VPCPeering인스턴스상태
+VpcPeeringInstanceStatus *CommonCode `json:"vpcPeeringInstanceStatus,omitempty"`
+
+ // VPCPeering인스턴스상태이름
+VpcPeeringInstanceStatusName *string `json:"vpcPeeringInstanceStatusName,omitempty"`
+
+ // VPCPeering인스턴스OP
+VpcPeeringInstanceOperation *CommonCode `json:"vpcPeeringInstanceOperation,omitempty"`
+
+ // 요청VPC번호
+SourceVpcNo *string `json:"sourceVpcNo,omitempty"`
+
+ // 요청VPC이름
+SourceVpcName *string `json:"sourceVpcName,omitempty"`
+
+ // 요청VPC IPv4 CIDR블록
+SourceVpcIpv4CidrBlock *string `json:"sourceVpcIpv4CidrBlock,omitempty"`
+
+ // 요청VPC소유자ID
+SourceVpcLoginId *string `json:"sourceVpcLoginId,omitempty"`
+
+ // 수락VPC번호
+TargetVpcNo *string `json:"targetVpcNo,omitempty"`
+
+ // 수락VPC이름
+TargetVpcName *string `json:"targetVpcName,omitempty"`
+
+ // 수락VPC IPv4 CIDR블록
+TargetVpcIpv4CidrBlock *string `json:"targetVpcIpv4CidrBlock,omitempty"`
+
+ // 수락VPC소유자ID
+TargetVpcLoginId *string `json:"targetVpcLoginId,omitempty"`
+
+ // VPCPeering설명
+VpcPeeringDescription *string `json:"vpcPeeringDescription,omitempty"`
+
+ // 역방향VPCPeering존재여부
+HasReverseVpcPeering *bool `json:"hasReverseVpcPeering,omitempty"`
+
+ // 계정간의VPCPeering여부
+IsBetweenAccounts *bool `json:"isBetweenAccounts,omitempty"`
+
+ // 역방향VPCPeering인스턴스번호
+ReverseVpcPeeringInstanceNo *string `json:"reverseVpcPeeringInstanceNo,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/.travis.yml b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/.travis.yml
new file mode 100644
index 000000000..f5cb2ce9a
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/.travis.yml
@@ -0,0 +1,8 @@
+language: go
+
+install:
+ - go get -d -v .
+
+script:
+ - go build -v ./
+
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/LICENSE b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/LICENSE
new file mode 100644
index 000000000..12c4d078c
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/LICENSE
@@ -0,0 +1,7 @@
+Copyright 2018 NAVER BUSINESS PLATFORM Corp.
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/README.md b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/README.md
new file mode 100644
index 000000000..3ad5bff39
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/README.md
@@ -0,0 +1,249 @@
+# Go API client for vserver
+
+ VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+
+## Overview
+This API client was generated by the [swagger-codegen](https://github.com/swagger-api/swagger-codegen) project. By using the [swagger-spec](https://github.com/swagger-api/swagger-spec) from a remote server, you can easily generate an API client.
+
+- API version: 2020-09-17T10:30:17Z
+- Package version: 1.0.0
+- Build package: io.swagger.codegen.languages.NcpGoForNcloudClientCodegen
+
+## Installation
+Put the package under your project folder and add the following in import:
+```
+"./vserver"
+```
+
+## Documentation for API Endpoints
+
+All URIs are relative to *https://ncloud.apigw.ntruss.com/vserver/v2*
+
+Class | Method | HTTP request | Description
+------------ | ------------- | ------------- | -------------
+*V2Api* | [**AddAccessControlGroupInboundRule**](docs/V2Api.md#addaccesscontrolgroupinboundrule) | **Post** /addAccessControlGroupInboundRule |
+*V2Api* | [**AddAccessControlGroupOutboundRule**](docs/V2Api.md#addaccesscontrolgroupoutboundrule) | **Post** /addAccessControlGroupOutboundRule |
+*V2Api* | [**AddNetworkInterfaceAccessControlGroup**](docs/V2Api.md#addnetworkinterfaceaccesscontrolgroup) | **Post** /addNetworkInterfaceAccessControlGroup |
+*V2Api* | [**AddPlacementGroupServerInstance**](docs/V2Api.md#addplacementgroupserverinstance) | **Post** /addPlacementGroupServerInstance |
+*V2Api* | [**AssociatePublicIpWithServerInstance**](docs/V2Api.md#associatepublicipwithserverinstance) | **Post** /associatePublicIpWithServerInstance |
+*V2Api* | [**AttachBlockStorageInstance**](docs/V2Api.md#attachblockstorageinstance) | **Post** /attachBlockStorageInstance |
+*V2Api* | [**AttachNetworkInterface**](docs/V2Api.md#attachnetworkinterface) | **Post** /attachNetworkInterface |
+*V2Api* | [**ChangeBlockStorageVolumeSize**](docs/V2Api.md#changeblockstoragevolumesize) | **Post** /changeBlockStorageVolumeSize |
+*V2Api* | [**ChangeServerInstanceSpec**](docs/V2Api.md#changeserverinstancespec) | **Post** /changeServerInstanceSpec |
+*V2Api* | [**CreateAccessControlGroup**](docs/V2Api.md#createaccesscontrolgroup) | **Post** /createAccessControlGroup |
+*V2Api* | [**CreateBlockStorageInstance**](docs/V2Api.md#createblockstorageinstance) | **Post** /createBlockStorageInstance |
+*V2Api* | [**CreateBlockStorageSnapshotInstance**](docs/V2Api.md#createblockstoragesnapshotinstance) | **Post** /createBlockStorageSnapshotInstance |
+*V2Api* | [**CreateInitScript**](docs/V2Api.md#createinitscript) | **Post** /createInitScript |
+*V2Api* | [**CreateLoginKey**](docs/V2Api.md#createloginkey) | **Post** /createLoginKey |
+*V2Api* | [**CreateMemberServerImageInstance**](docs/V2Api.md#creatememberserverimageinstance) | **Post** /createMemberServerImageInstance |
+*V2Api* | [**CreateNetworkInterface**](docs/V2Api.md#createnetworkinterface) | **Post** /createNetworkInterface |
+*V2Api* | [**CreatePlacementGroup**](docs/V2Api.md#createplacementgroup) | **Post** /createPlacementGroup |
+*V2Api* | [**CreatePublicIpInstance**](docs/V2Api.md#createpublicipinstance) | **Post** /createPublicIpInstance |
+*V2Api* | [**CreateServerInstances**](docs/V2Api.md#createserverinstances) | **Post** /createServerInstances |
+*V2Api* | [**DeleteAccessControlGroup**](docs/V2Api.md#deleteaccesscontrolgroup) | **Post** /deleteAccessControlGroup |
+*V2Api* | [**DeleteBlockStorageInstances**](docs/V2Api.md#deleteblockstorageinstances) | **Post** /deleteBlockStorageInstances |
+*V2Api* | [**DeleteBlockStorageSnapshotInstances**](docs/V2Api.md#deleteblockstoragesnapshotinstances) | **Post** /deleteBlockStorageSnapshotInstances |
+*V2Api* | [**DeleteInitScripts**](docs/V2Api.md#deleteinitscripts) | **Post** /deleteInitScripts |
+*V2Api* | [**DeleteLoginKeys**](docs/V2Api.md#deleteloginkeys) | **Post** /deleteLoginKeys |
+*V2Api* | [**DeleteMemberServerImageInstances**](docs/V2Api.md#deletememberserverimageinstances) | **Post** /deleteMemberServerImageInstances |
+*V2Api* | [**DeleteNetworkInterface**](docs/V2Api.md#deletenetworkinterface) | **Post** /deleteNetworkInterface |
+*V2Api* | [**DeletePlacementGroup**](docs/V2Api.md#deleteplacementgroup) | **Post** /deletePlacementGroup |
+*V2Api* | [**DeletePublicIpInstance**](docs/V2Api.md#deletepublicipinstance) | **Post** /deletePublicIpInstance |
+*V2Api* | [**DetachBlockStorageInstances**](docs/V2Api.md#detachblockstorageinstances) | **Post** /detachBlockStorageInstances |
+*V2Api* | [**DetachNetworkInterface**](docs/V2Api.md#detachnetworkinterface) | **Post** /detachNetworkInterface |
+*V2Api* | [**DisassociatePublicIpFromServerInstance**](docs/V2Api.md#disassociatepublicipfromserverinstance) | **Post** /disassociatePublicIpFromServerInstance |
+*V2Api* | [**GetAccessControlGroupDetail**](docs/V2Api.md#getaccesscontrolgroupdetail) | **Post** /getAccessControlGroupDetail |
+*V2Api* | [**GetAccessControlGroupList**](docs/V2Api.md#getaccesscontrolgrouplist) | **Post** /getAccessControlGroupList |
+*V2Api* | [**GetAccessControlGroupRuleList**](docs/V2Api.md#getaccesscontrolgrouprulelist) | **Post** /getAccessControlGroupRuleList |
+*V2Api* | [**GetBlockStorageInstanceDetail**](docs/V2Api.md#getblockstorageinstancedetail) | **Post** /getBlockStorageInstanceDetail |
+*V2Api* | [**GetBlockStorageInstanceList**](docs/V2Api.md#getblockstorageinstancelist) | **Post** /getBlockStorageInstanceList |
+*V2Api* | [**GetBlockStorageSnapshotInstanceDetail**](docs/V2Api.md#getblockstoragesnapshotinstancedetail) | **Post** /getBlockStorageSnapshotInstanceDetail |
+*V2Api* | [**GetBlockStorageSnapshotInstanceList**](docs/V2Api.md#getblockstoragesnapshotinstancelist) | **Post** /getBlockStorageSnapshotInstanceList |
+*V2Api* | [**GetInitScriptDetail**](docs/V2Api.md#getinitscriptdetail) | **Post** /getInitScriptDetail |
+*V2Api* | [**GetInitScriptList**](docs/V2Api.md#getinitscriptlist) | **Post** /getInitScriptList |
+*V2Api* | [**GetLoginKeyList**](docs/V2Api.md#getloginkeylist) | **Post** /getLoginKeyList |
+*V2Api* | [**GetMemberServerImageInstanceDetail**](docs/V2Api.md#getmemberserverimageinstancedetail) | **Post** /getMemberServerImageInstanceDetail |
+*V2Api* | [**GetMemberServerImageInstanceList**](docs/V2Api.md#getmemberserverimageinstancelist) | **Post** /getMemberServerImageInstanceList |
+*V2Api* | [**GetNetworkInterfaceDetail**](docs/V2Api.md#getnetworkinterfacedetail) | **Post** /getNetworkInterfaceDetail |
+*V2Api* | [**GetNetworkInterfaceList**](docs/V2Api.md#getnetworkinterfacelist) | **Post** /getNetworkInterfaceList |
+*V2Api* | [**GetPlacementGroupDetail**](docs/V2Api.md#getplacementgroupdetail) | **Post** /getPlacementGroupDetail |
+*V2Api* | [**GetPlacementGroupList**](docs/V2Api.md#getplacementgrouplist) | **Post** /getPlacementGroupList |
+*V2Api* | [**GetPublicIpInstanceDetail**](docs/V2Api.md#getpublicipinstancedetail) | **Post** /getPublicIpInstanceDetail |
+*V2Api* | [**GetPublicIpInstanceList**](docs/V2Api.md#getpublicipinstancelist) | **Post** /getPublicIpInstanceList |
+*V2Api* | [**GetPublicIpTargetServerInstanceList**](docs/V2Api.md#getpubliciptargetserverinstancelist) | **Post** /getPublicIpTargetServerInstanceList |
+*V2Api* | [**GetRegionList**](docs/V2Api.md#getregionlist) | **Post** /getRegionList |
+*V2Api* | [**GetRootPassword**](docs/V2Api.md#getrootpassword) | **Post** /getRootPassword |
+*V2Api* | [**GetRootPasswordServerInstanceList**](docs/V2Api.md#getrootpasswordserverinstancelist) | **Post** /getRootPasswordServerInstanceList |
+*V2Api* | [**GetServerImageProductList**](docs/V2Api.md#getserverimageproductlist) | **Post** /getServerImageProductList |
+*V2Api* | [**GetServerInstanceDetail**](docs/V2Api.md#getserverinstancedetail) | **Post** /getServerInstanceDetail |
+*V2Api* | [**GetServerInstanceList**](docs/V2Api.md#getserverinstancelist) | **Post** /getServerInstanceList |
+*V2Api* | [**GetServerProductList**](docs/V2Api.md#getserverproductlist) | **Post** /getServerProductList |
+*V2Api* | [**GetZoneList**](docs/V2Api.md#getzonelist) | **Post** /getZoneList |
+*V2Api* | [**ImportLoginKey**](docs/V2Api.md#importloginkey) | **Post** /importLoginKey |
+*V2Api* | [**RebootServerInstances**](docs/V2Api.md#rebootserverinstances) | **Post** /rebootServerInstances |
+*V2Api* | [**RemoveAccessControlGroupInboundRule**](docs/V2Api.md#removeaccesscontrolgroupinboundrule) | **Post** /removeAccessControlGroupInboundRule |
+*V2Api* | [**RemoveAccessControlGroupOutboundRule**](docs/V2Api.md#removeaccesscontrolgroupoutboundrule) | **Post** /removeAccessControlGroupOutboundRule |
+*V2Api* | [**RemoveNetworkInterfaceAccessControlGroup**](docs/V2Api.md#removenetworkinterfaceaccesscontrolgroup) | **Post** /removeNetworkInterfaceAccessControlGroup |
+*V2Api* | [**RemovePlacementGroupServerInstance**](docs/V2Api.md#removeplacementgroupserverinstance) | **Post** /removePlacementGroupServerInstance |
+*V2Api* | [**StartServerInstances**](docs/V2Api.md#startserverinstances) | **Post** /startServerInstances |
+*V2Api* | [**StopServerInstances**](docs/V2Api.md#stopserverinstances) | **Post** /stopServerInstances |
+*V2Api* | [**TerminateServerInstances**](docs/V2Api.md#terminateserverinstances) | **Post** /terminateServerInstances |
+
+
+## Documentation For Models
+
+ - [AccessControlGroup](docs/AccessControlGroup.md)
+ - [AccessControlGroupRule](docs/AccessControlGroupRule.md)
+ - [AddAccessControlGroupInboundRuleRequest](docs/AddAccessControlGroupInboundRuleRequest.md)
+ - [AddAccessControlGroupInboundRuleResponse](docs/AddAccessControlGroupInboundRuleResponse.md)
+ - [AddAccessControlGroupOutboundRuleRequest](docs/AddAccessControlGroupOutboundRuleRequest.md)
+ - [AddAccessControlGroupOutboundRuleResponse](docs/AddAccessControlGroupOutboundRuleResponse.md)
+ - [AddAccessControlGroupRuleParameter](docs/AddAccessControlGroupRuleParameter.md)
+ - [AddNetworkInterfaceAccessControlGroupRequest](docs/AddNetworkInterfaceAccessControlGroupRequest.md)
+ - [AddNetworkInterfaceAccessControlGroupResponse](docs/AddNetworkInterfaceAccessControlGroupResponse.md)
+ - [AddPlacementGroupServerInstanceRequest](docs/AddPlacementGroupServerInstanceRequest.md)
+ - [AddPlacementGroupServerInstanceResponse](docs/AddPlacementGroupServerInstanceResponse.md)
+ - [AssociatePublicIpWithServerInstanceRequest](docs/AssociatePublicIpWithServerInstanceRequest.md)
+ - [AssociatePublicIpWithServerInstanceResponse](docs/AssociatePublicIpWithServerInstanceResponse.md)
+ - [AttachBlockStorageInstanceRequest](docs/AttachBlockStorageInstanceRequest.md)
+ - [AttachBlockStorageInstanceResponse](docs/AttachBlockStorageInstanceResponse.md)
+ - [AttachNetworkInterfaceRequest](docs/AttachNetworkInterfaceRequest.md)
+ - [AttachNetworkInterfaceResponse](docs/AttachNetworkInterfaceResponse.md)
+ - [BlockStorageInstance](docs/BlockStorageInstance.md)
+ - [BlockStorageSnapshotInstance](docs/BlockStorageSnapshotInstance.md)
+ - [ChangeBlockStorageVolumeSizeRequest](docs/ChangeBlockStorageVolumeSizeRequest.md)
+ - [ChangeBlockStorageVolumeSizeResponse](docs/ChangeBlockStorageVolumeSizeResponse.md)
+ - [ChangeServerInstanceSpecRequest](docs/ChangeServerInstanceSpecRequest.md)
+ - [ChangeServerInstanceSpecResponse](docs/ChangeServerInstanceSpecResponse.md)
+ - [CommonCode](docs/CommonCode.md)
+ - [CreateAccessControlGroupRequest](docs/CreateAccessControlGroupRequest.md)
+ - [CreateAccessControlGroupResponse](docs/CreateAccessControlGroupResponse.md)
+ - [CreateBlockStorageInstanceRequest](docs/CreateBlockStorageInstanceRequest.md)
+ - [CreateBlockStorageInstanceResponse](docs/CreateBlockStorageInstanceResponse.md)
+ - [CreateBlockStorageSnapshotInstanceRequest](docs/CreateBlockStorageSnapshotInstanceRequest.md)
+ - [CreateBlockStorageSnapshotInstanceResponse](docs/CreateBlockStorageSnapshotInstanceResponse.md)
+ - [CreateInitScriptRequest](docs/CreateInitScriptRequest.md)
+ - [CreateInitScriptResponse](docs/CreateInitScriptResponse.md)
+ - [CreateLoginKeyRequest](docs/CreateLoginKeyRequest.md)
+ - [CreateLoginKeyResponse](docs/CreateLoginKeyResponse.md)
+ - [CreateMemberServerImageInstanceRequest](docs/CreateMemberServerImageInstanceRequest.md)
+ - [CreateMemberServerImageInstanceResponse](docs/CreateMemberServerImageInstanceResponse.md)
+ - [CreateNetworkInterfaceRequest](docs/CreateNetworkInterfaceRequest.md)
+ - [CreateNetworkInterfaceResponse](docs/CreateNetworkInterfaceResponse.md)
+ - [CreatePlacementGroupRequest](docs/CreatePlacementGroupRequest.md)
+ - [CreatePlacementGroupResponse](docs/CreatePlacementGroupResponse.md)
+ - [CreatePublicIpInstanceRequest](docs/CreatePublicIpInstanceRequest.md)
+ - [CreatePublicIpInstanceResponse](docs/CreatePublicIpInstanceResponse.md)
+ - [CreateServerInstancesRequest](docs/CreateServerInstancesRequest.md)
+ - [CreateServerInstancesResponse](docs/CreateServerInstancesResponse.md)
+ - [DeleteAccessControlGroupRequest](docs/DeleteAccessControlGroupRequest.md)
+ - [DeleteAccessControlGroupResponse](docs/DeleteAccessControlGroupResponse.md)
+ - [DeleteBlockStorageInstancesRequest](docs/DeleteBlockStorageInstancesRequest.md)
+ - [DeleteBlockStorageInstancesResponse](docs/DeleteBlockStorageInstancesResponse.md)
+ - [DeleteBlockStorageSnapshotInstancesRequest](docs/DeleteBlockStorageSnapshotInstancesRequest.md)
+ - [DeleteBlockStorageSnapshotInstancesResponse](docs/DeleteBlockStorageSnapshotInstancesResponse.md)
+ - [DeleteInitScriptsRequest](docs/DeleteInitScriptsRequest.md)
+ - [DeleteInitScriptsResponse](docs/DeleteInitScriptsResponse.md)
+ - [DeleteLoginKeysRequest](docs/DeleteLoginKeysRequest.md)
+ - [DeleteLoginKeysResponse](docs/DeleteLoginKeysResponse.md)
+ - [DeleteMemberServerImageInstancesRequest](docs/DeleteMemberServerImageInstancesRequest.md)
+ - [DeleteMemberServerImageInstancesResponse](docs/DeleteMemberServerImageInstancesResponse.md)
+ - [DeleteNetworkInterfaceRequest](docs/DeleteNetworkInterfaceRequest.md)
+ - [DeleteNetworkInterfaceResponse](docs/DeleteNetworkInterfaceResponse.md)
+ - [DeletePlacementGroupRequest](docs/DeletePlacementGroupRequest.md)
+ - [DeletePlacementGroupResponse](docs/DeletePlacementGroupResponse.md)
+ - [DeletePublicIpInstanceRequest](docs/DeletePublicIpInstanceRequest.md)
+ - [DeletePublicIpInstanceResponse](docs/DeletePublicIpInstanceResponse.md)
+ - [DetachBlockStorageInstancesRequest](docs/DetachBlockStorageInstancesRequest.md)
+ - [DetachBlockStorageInstancesResponse](docs/DetachBlockStorageInstancesResponse.md)
+ - [DetachNetworkInterfaceRequest](docs/DetachNetworkInterfaceRequest.md)
+ - [DetachNetworkInterfaceResponse](docs/DetachNetworkInterfaceResponse.md)
+ - [DisassociatePublicIpFromServerInstanceRequest](docs/DisassociatePublicIpFromServerInstanceRequest.md)
+ - [DisassociatePublicIpFromServerInstanceResponse](docs/DisassociatePublicIpFromServerInstanceResponse.md)
+ - [GetAccessControlGroupDetailRequest](docs/GetAccessControlGroupDetailRequest.md)
+ - [GetAccessControlGroupDetailResponse](docs/GetAccessControlGroupDetailResponse.md)
+ - [GetAccessControlGroupListRequest](docs/GetAccessControlGroupListRequest.md)
+ - [GetAccessControlGroupListResponse](docs/GetAccessControlGroupListResponse.md)
+ - [GetAccessControlGroupRuleListRequest](docs/GetAccessControlGroupRuleListRequest.md)
+ - [GetAccessControlGroupRuleListResponse](docs/GetAccessControlGroupRuleListResponse.md)
+ - [GetBlockStorageInstanceDetailRequest](docs/GetBlockStorageInstanceDetailRequest.md)
+ - [GetBlockStorageInstanceDetailResponse](docs/GetBlockStorageInstanceDetailResponse.md)
+ - [GetBlockStorageInstanceListRequest](docs/GetBlockStorageInstanceListRequest.md)
+ - [GetBlockStorageInstanceListResponse](docs/GetBlockStorageInstanceListResponse.md)
+ - [GetBlockStorageSnapshotInstanceDetailRequest](docs/GetBlockStorageSnapshotInstanceDetailRequest.md)
+ - [GetBlockStorageSnapshotInstanceDetailResponse](docs/GetBlockStorageSnapshotInstanceDetailResponse.md)
+ - [GetBlockStorageSnapshotInstanceListRequest](docs/GetBlockStorageSnapshotInstanceListRequest.md)
+ - [GetBlockStorageSnapshotInstanceListResponse](docs/GetBlockStorageSnapshotInstanceListResponse.md)
+ - [GetInitScriptDetailRequest](docs/GetInitScriptDetailRequest.md)
+ - [GetInitScriptDetailResponse](docs/GetInitScriptDetailResponse.md)
+ - [GetInitScriptListRequest](docs/GetInitScriptListRequest.md)
+ - [GetInitScriptListResponse](docs/GetInitScriptListResponse.md)
+ - [GetLoginKeyListRequest](docs/GetLoginKeyListRequest.md)
+ - [GetLoginKeyListResponse](docs/GetLoginKeyListResponse.md)
+ - [GetMemberServerImageInstanceDetailRequest](docs/GetMemberServerImageInstanceDetailRequest.md)
+ - [GetMemberServerImageInstanceDetailResponse](docs/GetMemberServerImageInstanceDetailResponse.md)
+ - [GetMemberServerImageInstanceListRequest](docs/GetMemberServerImageInstanceListRequest.md)
+ - [GetMemberServerImageInstanceListResponse](docs/GetMemberServerImageInstanceListResponse.md)
+ - [GetNetworkInterfaceDetailRequest](docs/GetNetworkInterfaceDetailRequest.md)
+ - [GetNetworkInterfaceDetailResponse](docs/GetNetworkInterfaceDetailResponse.md)
+ - [GetNetworkInterfaceListRequest](docs/GetNetworkInterfaceListRequest.md)
+ - [GetNetworkInterfaceListResponse](docs/GetNetworkInterfaceListResponse.md)
+ - [GetPlacementGroupDetailRequest](docs/GetPlacementGroupDetailRequest.md)
+ - [GetPlacementGroupDetailResponse](docs/GetPlacementGroupDetailResponse.md)
+ - [GetPlacementGroupListRequest](docs/GetPlacementGroupListRequest.md)
+ - [GetPlacementGroupListResponse](docs/GetPlacementGroupListResponse.md)
+ - [GetPublicIpInstanceDetailRequest](docs/GetPublicIpInstanceDetailRequest.md)
+ - [GetPublicIpInstanceDetailResponse](docs/GetPublicIpInstanceDetailResponse.md)
+ - [GetPublicIpInstanceListRequest](docs/GetPublicIpInstanceListRequest.md)
+ - [GetPublicIpInstanceListResponse](docs/GetPublicIpInstanceListResponse.md)
+ - [GetPublicIpTargetServerInstanceListRequest](docs/GetPublicIpTargetServerInstanceListRequest.md)
+ - [GetPublicIpTargetServerInstanceListResponse](docs/GetPublicIpTargetServerInstanceListResponse.md)
+ - [GetRegionListRequest](docs/GetRegionListRequest.md)
+ - [GetRegionListResponse](docs/GetRegionListResponse.md)
+ - [GetRootPasswordRequest](docs/GetRootPasswordRequest.md)
+ - [GetRootPasswordResponse](docs/GetRootPasswordResponse.md)
+ - [GetRootPasswordServerInstanceListRequest](docs/GetRootPasswordServerInstanceListRequest.md)
+ - [GetRootPasswordServerInstanceListResponse](docs/GetRootPasswordServerInstanceListResponse.md)
+ - [GetServerImageProductListRequest](docs/GetServerImageProductListRequest.md)
+ - [GetServerImageProductListResponse](docs/GetServerImageProductListResponse.md)
+ - [GetServerInstanceDetailRequest](docs/GetServerInstanceDetailRequest.md)
+ - [GetServerInstanceDetailResponse](docs/GetServerInstanceDetailResponse.md)
+ - [GetServerInstanceListRequest](docs/GetServerInstanceListRequest.md)
+ - [GetServerInstanceListResponse](docs/GetServerInstanceListResponse.md)
+ - [GetServerProductListRequest](docs/GetServerProductListRequest.md)
+ - [GetServerProductListResponse](docs/GetServerProductListResponse.md)
+ - [GetZoneListRequest](docs/GetZoneListRequest.md)
+ - [GetZoneListResponse](docs/GetZoneListResponse.md)
+ - [ImportLoginKeyRequest](docs/ImportLoginKeyRequest.md)
+ - [ImportLoginKeyResponse](docs/ImportLoginKeyResponse.md)
+ - [InitScript](docs/InitScript.md)
+ - [LoginKey](docs/LoginKey.md)
+ - [MemberServerImageInstance](docs/MemberServerImageInstance.md)
+ - [NetworkInterface](docs/NetworkInterface.md)
+ - [NetworkInterfaceParameter](docs/NetworkInterfaceParameter.md)
+ - [PlacementGroup](docs/PlacementGroup.md)
+ - [Product](docs/Product.md)
+ - [PublicIpInstance](docs/PublicIpInstance.md)
+ - [RebootServerInstancesRequest](docs/RebootServerInstancesRequest.md)
+ - [RebootServerInstancesResponse](docs/RebootServerInstancesResponse.md)
+ - [Region](docs/Region.md)
+ - [RemoveAccessControlGroupInboundRuleRequest](docs/RemoveAccessControlGroupInboundRuleRequest.md)
+ - [RemoveAccessControlGroupInboundRuleResponse](docs/RemoveAccessControlGroupInboundRuleResponse.md)
+ - [RemoveAccessControlGroupOutboundRuleRequest](docs/RemoveAccessControlGroupOutboundRuleRequest.md)
+ - [RemoveAccessControlGroupOutboundRuleResponse](docs/RemoveAccessControlGroupOutboundRuleResponse.md)
+ - [RemoveAccessControlGroupRuleParameter](docs/RemoveAccessControlGroupRuleParameter.md)
+ - [RemoveNetworkInterfaceAccessControlGroupRequest](docs/RemoveNetworkInterfaceAccessControlGroupRequest.md)
+ - [RemoveNetworkInterfaceAccessControlGroupResponse](docs/RemoveNetworkInterfaceAccessControlGroupResponse.md)
+ - [RemovePlacementGroupServerInstanceRequest](docs/RemovePlacementGroupServerInstanceRequest.md)
+ - [RemovePlacementGroupServerInstanceResponse](docs/RemovePlacementGroupServerInstanceResponse.md)
+ - [RootPasswordServerInstance](docs/RootPasswordServerInstance.md)
+ - [RootPasswordServerInstanceParameter](docs/RootPasswordServerInstanceParameter.md)
+ - [ServerInstance](docs/ServerInstance.md)
+ - [StartServerInstancesRequest](docs/StartServerInstancesRequest.md)
+ - [StartServerInstancesResponse](docs/StartServerInstancesResponse.md)
+ - [StopServerInstancesRequest](docs/StopServerInstancesRequest.md)
+ - [StopServerInstancesResponse](docs/StopServerInstancesResponse.md)
+ - [TerminateServerInstancesRequest](docs/TerminateServerInstancesRequest.md)
+ - [TerminateServerInstancesResponse](docs/TerminateServerInstancesResponse.md)
+ - [Zone](docs/Zone.md)
+
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/access_control_group.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/access_control_group.go
new file mode 100644
index 000000000..f199d34be
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/access_control_group.go
@@ -0,0 +1,30 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type AccessControlGroup struct {
+
+ // ACG번호
+AccessControlGroupNo *string `json:"accessControlGroupNo,omitempty"`
+
+ // ACG이름
+AccessControlGroupName *string `json:"accessControlGroupName,omitempty"`
+
+ // Default여부
+IsDefault *bool `json:"isDefault,omitempty"`
+
+ // VPC번호
+VpcNo *string `json:"vpcNo,omitempty"`
+
+ // ACG상태
+AccessControlGroupStatus *CommonCode `json:"accessControlGroupStatus,omitempty"`
+
+ // ACG설명
+AccessControlGroupDescription *string `json:"accessControlGroupDescription,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/access_control_group_rule.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/access_control_group_rule.go
new file mode 100644
index 000000000..cbf6f6934
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/access_control_group_rule.go
@@ -0,0 +1,33 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type AccessControlGroupRule struct {
+
+ // ACG번호
+AccessControlGroupNo *string `json:"accessControlGroupNo,omitempty"`
+
+ // 프로토콜유형
+ProtocolType *CommonCode `json:"protocolType,omitempty"`
+
+ // IP블록
+IpBlock *string `json:"ipBlock,omitempty"`
+
+ // 포트범위
+PortRange *string `json:"portRange,omitempty"`
+
+ // 접근소스ACG
+AccessControlGroupSequence *string `json:"accessControlGroupSequence,omitempty"`
+
+ // ACGRule유형
+AccessControlGroupRuleType *CommonCode `json:"accessControlGroupRuleType,omitempty"`
+
+ // ACGRule설명
+AccessControlGroupRuleDescription *string `json:"accessControlGroupRuleDescription,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/add_access_control_group_inbound_rule_request.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/add_access_control_group_inbound_rule_request.go
new file mode 100644
index 000000000..2dc9fe8d9
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/add_access_control_group_inbound_rule_request.go
@@ -0,0 +1,24 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type AddAccessControlGroupInboundRuleRequest struct {
+
+ // REGION코드
+RegionCode *string `json:"regionCode,omitempty"`
+
+ // ACG번호
+AccessControlGroupNo *string `json:"accessControlGroupNo"`
+
+ // VPC번호
+VpcNo *string `json:"vpcNo"`
+
+ // ACGRule리스트
+AccessControlGroupRuleList []*AddAccessControlGroupRuleParameter `json:"accessControlGroupRuleList"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/add_access_control_group_inbound_rule_response.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/add_access_control_group_inbound_rule_response.go
new file mode 100644
index 000000000..6a68a8007
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/add_access_control_group_inbound_rule_response.go
@@ -0,0 +1,22 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type AddAccessControlGroupInboundRuleResponse struct {
+
+RequestId *string `json:"requestId,omitempty"`
+
+ReturnCode *string `json:"returnCode,omitempty"`
+
+ReturnMessage *string `json:"returnMessage,omitempty"`
+
+TotalRows *int32 `json:"totalRows,omitempty"`
+
+AccessControlGroupRuleList []*AccessControlGroupRule `json:"accessControlGroupRuleList,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/add_access_control_group_outbound_rule_request.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/add_access_control_group_outbound_rule_request.go
new file mode 100644
index 000000000..04d6e7576
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/add_access_control_group_outbound_rule_request.go
@@ -0,0 +1,24 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type AddAccessControlGroupOutboundRuleRequest struct {
+
+ // REGION코드
+RegionCode *string `json:"regionCode,omitempty"`
+
+ // ACG번호
+AccessControlGroupNo *string `json:"accessControlGroupNo"`
+
+ // VPC번호
+VpcNo *string `json:"vpcNo"`
+
+ // ACGRule리스트
+AccessControlGroupRuleList []*AddAccessControlGroupRuleParameter `json:"accessControlGroupRuleList"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/add_access_control_group_outbound_rule_response.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/add_access_control_group_outbound_rule_response.go
new file mode 100644
index 000000000..5d99849f8
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/add_access_control_group_outbound_rule_response.go
@@ -0,0 +1,22 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type AddAccessControlGroupOutboundRuleResponse struct {
+
+RequestId *string `json:"requestId,omitempty"`
+
+ReturnCode *string `json:"returnCode,omitempty"`
+
+ReturnMessage *string `json:"returnMessage,omitempty"`
+
+TotalRows *int32 `json:"totalRows,omitempty"`
+
+AccessControlGroupRuleList []*AccessControlGroupRule `json:"accessControlGroupRuleList,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/add_access_control_group_rule_parameter.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/add_access_control_group_rule_parameter.go
new file mode 100644
index 000000000..56a8c96ff
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/add_access_control_group_rule_parameter.go
@@ -0,0 +1,27 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type AddAccessControlGroupRuleParameter struct {
+
+ // ACGRule설명
+AccessControlGroupRuleDescription *string `json:"accessControlGroupRuleDescription,omitempty"`
+
+ // IP블록
+IpBlock *string `json:"ipBlock,omitempty"`
+
+ // 접근소스ACG
+AccessControlGroupSequence *string `json:"accessControlGroupSequence,omitempty"`
+
+ // 포트범위
+PortRange *string `json:"portRange,omitempty"`
+
+ // 프로토콜유형코드
+ProtocolTypeCode *string `json:"protocolTypeCode"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/add_network_interface_access_control_group_request.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/add_network_interface_access_control_group_request.go
new file mode 100644
index 000000000..8bad29eb5
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/add_network_interface_access_control_group_request.go
@@ -0,0 +1,21 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type AddNetworkInterfaceAccessControlGroupRequest struct {
+
+ // REGION코드
+RegionCode *string `json:"regionCode,omitempty"`
+
+ // ACG번호리스트
+AccessControlGroupNoList []*string `json:"accessControlGroupNoList"`
+
+ // 네트워크인터페이스번호
+NetworkInterfaceNo *string `json:"networkInterfaceNo"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/add_network_interface_access_control_group_response.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/add_network_interface_access_control_group_response.go
new file mode 100644
index 000000000..c1b3d6dca
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/add_network_interface_access_control_group_response.go
@@ -0,0 +1,22 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type AddNetworkInterfaceAccessControlGroupResponse struct {
+
+RequestId *string `json:"requestId,omitempty"`
+
+ReturnCode *string `json:"returnCode,omitempty"`
+
+ReturnMessage *string `json:"returnMessage,omitempty"`
+
+TotalRows *int32 `json:"totalRows,omitempty"`
+
+NetworkInterfaceList []*NetworkInterface `json:"networkInterfaceList,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/add_placement_group_server_instance_request.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/add_placement_group_server_instance_request.go
new file mode 100644
index 000000000..a3bb47459
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/add_placement_group_server_instance_request.go
@@ -0,0 +1,21 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type AddPlacementGroupServerInstanceRequest struct {
+
+ // REGION코드
+RegionCode *string `json:"regionCode,omitempty"`
+
+ // 물리배치그룹번호
+PlacementGroupNo *string `json:"placementGroupNo"`
+
+ // 서버인스턴스번호
+ServerInstanceNo *string `json:"serverInstanceNo"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/add_placement_group_server_instance_response.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/add_placement_group_server_instance_response.go
new file mode 100644
index 000000000..297e1af91
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/add_placement_group_server_instance_response.go
@@ -0,0 +1,22 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type AddPlacementGroupServerInstanceResponse struct {
+
+RequestId *string `json:"requestId,omitempty"`
+
+ReturnCode *string `json:"returnCode,omitempty"`
+
+ReturnMessage *string `json:"returnMessage,omitempty"`
+
+TotalRows *int32 `json:"totalRows,omitempty"`
+
+ServerInstanceList []*ServerInstance `json:"serverInstanceList,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/api_client.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/api_client.go
new file mode 100644
index 000000000..23d03d6f0
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/api_client.go
@@ -0,0 +1,450 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+import (
+ "bytes"
+ "crypto"
+ "errors"
+ "fmt"
+ "io"
+ "mime/multipart"
+ "net/http"
+ "net/url"
+ "os"
+ "path/filepath"
+ "reflect"
+ "regexp"
+ "strconv"
+ "strings"
+ "time"
+ "unicode"
+ "unicode/utf8"
+
+ "github.com/NaverCloudPlatform/ncloud-sdk-go-v2/hmac"
+ "github.com/NaverCloudPlatform/ncloud-sdk-go-v2/ncloud"
+)
+
+var (
+ jsonCheck = regexp.MustCompile("(?i:[application|text]/json)")
+ xmlCheck = regexp.MustCompile("(?i:[application|text]/xml)")
+)
+
+// APIClient manages communication with the vserver API v2020-09-17T10:30:17Z
+// In most cases there should be only one, shared, APIClient.
+type APIClient struct {
+ cfg *ncloud.Configuration
+ common service // Reuse a single struct instead of allocating one for each service on the heap.
+
+ // API Services
+ V2Api *V2ApiService
+}
+
+type service struct {
+ client *APIClient
+}
+
+// NewAPIClient creates a new API client. Requires a userAgent string describing your application.
+// optionally a custom http.Client to allow for advanced features such as caching.
+func NewAPIClient(cfg *ncloud.Configuration) *APIClient {
+ if cfg.HTTPClient == nil {
+ cfg.HTTPClient = http.DefaultClient
+ }
+
+ c := &APIClient{}
+ c.cfg = cfg
+ c.common.client = c
+
+ // API Services
+ c.V2Api = (*V2ApiService)(&c.common)
+
+ return c
+}
+
+func atoi(in string) (int, error) {
+ return strconv.Atoi(in)
+}
+
+// selectHeaderContentType select a content type from the available list.
+func selectHeaderContentType(contentTypes []string) string {
+ if len(contentTypes) == 0 {
+ return ""
+ }
+ if contains(contentTypes, "application/json") {
+ return "application/json"
+ }
+ return contentTypes[0] // use the first content type specified in 'consumes'
+}
+
+// selectHeaderAccept join all accept types and return
+func selectHeaderAccept(accepts []string) string {
+ if len(accepts) == 0 {
+ return ""
+ }
+
+ if contains(accepts, "application/json") {
+ return "application/json"
+ }
+
+ return strings.Join(accepts, ",")
+}
+
+// contains is a case insenstive match, finding needle in a haystack
+func contains(haystack []string, needle string) bool {
+ for _, a := range haystack {
+ if strings.ToLower(a) == strings.ToLower(needle) {
+ return true
+ }
+ }
+ return false
+}
+
+// Verify optional parameters are of the correct type.
+func typeCheckParameter(obj interface{}, expected string, name string) error {
+ // Make sure there is an object.
+ if obj == nil {
+ return nil
+ }
+
+ // Check the type is as expected.
+ if reflect.TypeOf(obj).String() != expected {
+ return fmt.Errorf("Expected %s to be of type %s but received %s.", name, expected, reflect.TypeOf(obj).String())
+ }
+ return nil
+}
+
+// parameterToString convert interface{} parameters to string, using a delimiter if format is provided.
+func parameterToString(obj interface{}, collectionFormat string) string {
+ var delimiter string
+
+ switch collectionFormat {
+ case "pipes":
+ delimiter = "|"
+ case "ssv":
+ delimiter = " "
+ case "tsv":
+ delimiter = "\t"
+ case "csv":
+ delimiter = ","
+ }
+
+ if reflect.TypeOf(obj).Kind() == reflect.Slice {
+ return strings.Trim(strings.Replace(fmt.Sprint(obj), " ", delimiter, -1), "[]")
+ }
+
+ return fmt.Sprintf("%v", obj)
+}
+
+// callAPI do the request.
+func (c *APIClient) callAPI(request *http.Request) (*http.Response, error) {
+ return c.cfg.HTTPClient.Do(request)
+}
+
+// Change base path to allow switching to mocks
+func (c *APIClient) ChangeBasePath(path string) {
+ c.cfg.BasePath = path
+}
+
+// prepareRequest build the request
+func (c *APIClient) prepareRequest(
+ path string,
+ method string,
+ postBody interface{},
+ headerParams map[string]string,
+ queryParams url.Values,
+ formParams url.Values,
+ fileName string,
+ fileBytes []byte) (localVarRequest *http.Request, err error) {
+
+ var body *bytes.Buffer
+
+ // Detect postBody type and post.
+ if postBody != nil {
+ contentType := headerParams["Content-Type"]
+ if contentType == "" {
+ contentType = detectContentType(postBody)
+ headerParams["Content-Type"] = contentType
+ }
+
+ body, err = setBody(postBody, contentType)
+ if err != nil {
+ return nil, err
+ }
+ }
+
+ // add form parameters and file if available.
+ if len(formParams) > 0 || (len(fileBytes) > 0 && fileName != "") {
+ if body != nil {
+ return nil, errors.New("Cannot specify postBody and multipart form at the same time.")
+ }
+ body = &bytes.Buffer{}
+ w := multipart.NewWriter(body)
+
+ for k, v := range formParams {
+ for _, iv := range v {
+ if strings.HasPrefix(k, "@") { // file
+ err = addFile(w, k[1:], iv)
+ if err != nil {
+ return nil, err
+ }
+ } else { // form value
+ w.WriteField(k, iv)
+ }
+ }
+ }
+ if len(fileBytes) > 0 && fileName != "" {
+ w.Boundary()
+ //_, fileNm := filepath.Split(fileName)
+ part, err := w.CreateFormFile("file", filepath.Base(fileName))
+ if err != nil {
+ return nil, err
+ }
+ _, err = part.Write(fileBytes)
+ if err != nil {
+ return nil, err
+ }
+ // Set the Boundary in the Content-Type
+ headerParams["Content-Type"] = w.FormDataContentType()
+ }
+
+ // Set Content-Length
+ headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len())
+ w.Close()
+ }
+
+ // Setup path and query parameters
+ url, err := url.Parse(path)
+ if err != nil {
+ return nil, err
+ }
+
+ // Adding Query Param
+ query := url.Query()
+ for k, v := range queryParams {
+ for _, iv := range v {
+ query.Add(k, iv)
+ }
+ }
+
+ // Encode the parameters.
+ url.RawQuery = query.Encode()
+
+ // Generate a new request
+ if body != nil {
+ localVarRequest, err = http.NewRequest(method, url.String(), body)
+ } else {
+ localVarRequest, err = http.NewRequest(method, url.String(), nil)
+ }
+ if err != nil {
+ return nil, err
+ }
+
+ // add header parameters, if any
+ if len(headerParams) > 0 {
+ headers := http.Header{}
+ for h, v := range headerParams {
+ headers.Set(h, v)
+ }
+ localVarRequest.Header = headers
+ }
+
+ // Override request host, if applicable
+ if c.cfg.Host != "" {
+ localVarRequest.Host = c.cfg.Host
+ }
+
+ // Add the user agent to the request.
+ localVarRequest.Header.Add("User-Agent", c.cfg.UserAgent)
+
+ // APIKey Authentication
+ if auth := c.cfg.APIKey; auth != nil {
+ timestamp := strconv.FormatInt(time.Now().UnixNano()/int64(time.Millisecond), 10)
+ signer := hmac.NewSigner(auth.SecretKey, crypto.SHA256)
+ signature, _ := signer.Sign(method, path, auth.AccessKey, timestamp)
+
+ localVarRequest.Header.Add("x-ncp-apigw-timestamp", timestamp)
+ localVarRequest.Header.Add("x-ncp-iam-access-key", auth.AccessKey)
+ localVarRequest.Header.Add("x-ncp-apigw-signature-v1", signature)
+ }
+
+ for header, value := range c.cfg.DefaultHeader {
+ localVarRequest.Header.Add(header, value)
+ }
+
+ return localVarRequest, nil
+}
+
+// Add a file to the multipart request
+func addFile(w *multipart.Writer, fieldName, path string) error {
+ file, err := os.Open(path)
+ if err != nil {
+ return err
+ }
+ defer file.Close()
+
+ part, err := w.CreateFormFile(fieldName, filepath.Base(path))
+ if err != nil {
+ return err
+ }
+ _, err = io.Copy(part, file)
+
+ return err
+}
+
+// Prevent trying to import "fmt"
+func reportError(format string, a ...interface{}) error {
+ return fmt.Errorf(format, a...)
+}
+
+func toLowerFirstChar(s string) string {
+ a := []rune(s)
+ a[0] = unicode.ToLower(a[0])
+ return string(a)
+}
+
+// Set request body from an interface{}
+func setBody(body interface{}, contentType string) (bodyBuf *bytes.Buffer, err error) {
+ if bodyBuf == nil {
+ bodyBuf = &bytes.Buffer{}
+ }
+
+ bodyBuf.WriteString("responseFormatType=json")
+ s := reflect.ValueOf(body).Elem()
+ bodyBuf.WriteString(buildQueryString(s, ""))
+
+ if err != nil {
+ return nil, err
+ }
+
+ if bodyBuf.Len() == 0 {
+ err = fmt.Errorf("invalid body type %s", contentType)
+ return nil, err
+ }
+ return bodyBuf, nil
+}
+
+func buildQueryString(s reflect.Value, prefix string) string {
+ bodyBuf := &bytes.Buffer{}
+ if s.Kind() == reflect.Struct {
+ for i := 0; i < s.NumField(); i++ {
+ f := s.Field(i)
+ if !f.IsNil() {
+ name := toLowerFirstChar(s.Type().Field(i).Name)
+ if len(prefix) > 0 {
+ bodyBuf.WriteString(buildQueryString(f, fmt.Sprintf("%s.%s", prefix, name)))
+ } else {
+ bodyBuf.WriteString(buildQueryString(f, name))
+ }
+ }
+ }
+ } else if s.Kind() == reflect.Slice {
+ for i := 0; i < s.Len(); i++ {
+ item := s.Index(i)
+ bodyBuf.WriteString(buildQueryString(item.Elem(), fmt.Sprintf("%s.%d", prefix, i+1)))
+ }
+ } else if s.Kind() == reflect.Ptr {
+ bodyBuf.WriteString(fmt.Sprintf("&%s=%s", prefix, convertToString(s)))
+ } else if s.Kind() == reflect.String {
+ bodyBuf.WriteString(fmt.Sprintf("&%s=%s", prefix, s.Interface()))
+ }
+
+ return bodyBuf.String()
+}
+
+func convertToString(f reflect.Value) string {
+ switch f.Type().String() {
+ case "*string":
+ return url.QueryEscape(ncloud.StringValue(f.Interface().(*string)))
+ case "*bool":
+ return fmt.Sprintf("%t", *f.Interface().(*bool))
+ case "*int":
+ return fmt.Sprintf("%d", *f.Interface().(*int))
+ case "*int32":
+ return fmt.Sprintf("%d", *f.Interface().(*int32))
+ case "*int64":
+ return fmt.Sprintf("%d", *f.Interface().(*int64))
+ case "*float32":
+ return fmt.Sprintf("%f", *f.Interface().(*float32))
+ }
+ return ""
+}
+
+// detectContentType method is used to figure out `Request.Body` content type for request header
+func detectContentType(body interface{}) string {
+ contentType := "text/plain; charset=utf-8"
+ kind := reflect.TypeOf(body).Kind()
+
+ switch kind {
+ case reflect.Struct, reflect.Map, reflect.Ptr:
+ contentType = "application/json; charset=utf-8"
+ case reflect.String:
+ contentType = "text/plain; charset=utf-8"
+ default:
+ if b, ok := body.([]byte); ok {
+ contentType = http.DetectContentType(b)
+ } else if kind == reflect.Slice {
+ contentType = "application/json; charset=utf-8"
+ }
+ }
+
+ return contentType
+}
+
+// Ripped from https://github.com/gregjones/httpcache/blob/master/httpcache.go
+type cacheControl map[string]string
+
+func parseCacheControl(headers http.Header) cacheControl {
+ cc := cacheControl{}
+ ccHeader := headers.Get("Cache-Control")
+ for _, part := range strings.Split(ccHeader, ",") {
+ part = strings.Trim(part, " ")
+ if part == "" {
+ continue
+ }
+ if strings.ContainsRune(part, '=') {
+ keyval := strings.Split(part, "=")
+ cc[strings.Trim(keyval[0], " ")] = strings.Trim(keyval[1], ",")
+ } else {
+ cc[part] = ""
+ }
+ }
+ return cc
+}
+
+// CacheExpires helper function to determine remaining time before repeating a request.
+func CacheExpires(r *http.Response) time.Time {
+ // Figure out when the cache expires.
+ var expires time.Time
+ now, err := time.Parse(time.RFC1123, r.Header.Get("date"))
+ if err != nil {
+ return time.Now()
+ }
+ respCacheControl := parseCacheControl(r.Header)
+
+ if maxAge, ok := respCacheControl["max-age"]; ok {
+ lifetime, err := time.ParseDuration(maxAge + "s")
+ if err != nil {
+ expires = now
+ }
+ expires = now.Add(lifetime)
+ } else {
+ expiresHeader := r.Header.Get("Expires")
+ if expiresHeader != "" {
+ expires, err = time.Parse(time.RFC1123, expiresHeader)
+ if err != nil {
+ expires = now
+ }
+ }
+ }
+ return expires
+}
+
+func strlen(s string) int {
+ return utf8.RuneCountInString(s)
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/api_response.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/api_response.go
new file mode 100644
index 000000000..d420a6ac5
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/api_response.go
@@ -0,0 +1,42 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+import (
+ "net/http"
+)
+
+type APIResponse struct {
+ *http.Response `json:"-"`
+ Message string `json:"message,omitempty"`
+ // Operation is the name of the swagger operation.
+ Operation string `json:"operation,omitempty"`
+ // RequestURL is the request URL. This value is always available, even if the
+ // embedded *http.Response is nil.
+ RequestURL string `json:"url,omitempty"`
+ // Method is the HTTP method used for the request. This value is always
+ // available, even if the embedded *http.Response is nil.
+ Method string `json:"method,omitempty"`
+ // Payload holds the contents of the response body (which may be nil or empty).
+ // This is provided here as the raw response.Body() reader will have already
+ // been drained.
+ Payload []byte `json:"-"`
+}
+
+func NewAPIResponse(r *http.Response) *APIResponse {
+
+ response := &APIResponse{Response: r}
+ return response
+}
+
+func NewAPIResponseWithError(errorMessage string) *APIResponse {
+
+ response := &APIResponse{Message: errorMessage}
+ return response
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/associate_public_ip_with_server_instance_request.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/associate_public_ip_with_server_instance_request.go
new file mode 100644
index 000000000..7a93cb7e9
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/associate_public_ip_with_server_instance_request.go
@@ -0,0 +1,21 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type AssociatePublicIpWithServerInstanceRequest struct {
+
+ // REGION코드
+RegionCode *string `json:"regionCode,omitempty"`
+
+ // 공인IP인스턴스번호
+PublicIpInstanceNo *string `json:"publicIpInstanceNo"`
+
+ // 서버인스턴스번호
+ServerInstanceNo *string `json:"serverInstanceNo"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/associate_public_ip_with_server_instance_response.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/associate_public_ip_with_server_instance_response.go
new file mode 100644
index 000000000..5761e1194
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/associate_public_ip_with_server_instance_response.go
@@ -0,0 +1,22 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type AssociatePublicIpWithServerInstanceResponse struct {
+
+RequestId *string `json:"requestId,omitempty"`
+
+ReturnCode *string `json:"returnCode,omitempty"`
+
+ReturnMessage *string `json:"returnMessage,omitempty"`
+
+TotalRows *int32 `json:"totalRows,omitempty"`
+
+PublicIpInstanceList []*PublicIpInstance `json:"publicIpInstanceList,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/attach_block_storage_instance_request.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/attach_block_storage_instance_request.go
new file mode 100644
index 000000000..18f474693
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/attach_block_storage_instance_request.go
@@ -0,0 +1,21 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type AttachBlockStorageInstanceRequest struct {
+
+ // REGION코드
+RegionCode *string `json:"regionCode,omitempty"`
+
+ // 서버인스턴스번호
+ServerInstanceNo *string `json:"serverInstanceNo"`
+
+ // 블록스토리지인스턴스번호
+BlockStorageInstanceNo *string `json:"blockStorageInstanceNo"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/attach_block_storage_instance_response.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/attach_block_storage_instance_response.go
new file mode 100644
index 000000000..93569dbcc
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/attach_block_storage_instance_response.go
@@ -0,0 +1,22 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type AttachBlockStorageInstanceResponse struct {
+
+RequestId *string `json:"requestId,omitempty"`
+
+ReturnCode *string `json:"returnCode,omitempty"`
+
+ReturnMessage *string `json:"returnMessage,omitempty"`
+
+TotalRows *int32 `json:"totalRows,omitempty"`
+
+BlockStorageInstanceList []*BlockStorageInstance `json:"blockStorageInstanceList,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/attach_network_interface_request.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/attach_network_interface_request.go
new file mode 100644
index 000000000..35e614f6c
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/attach_network_interface_request.go
@@ -0,0 +1,24 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type AttachNetworkInterfaceRequest struct {
+
+ // REGION코드
+RegionCode *string `json:"regionCode,omitempty"`
+
+ // 서버인스턴스번호
+ServerInstanceNo *string `json:"serverInstanceNo"`
+
+ // 네트워크인터페이스번호
+NetworkInterfaceNo *string `json:"networkInterfaceNo"`
+
+ // 서브넷번호
+SubnetNo *string `json:"subnetNo"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/attach_network_interface_response.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/attach_network_interface_response.go
new file mode 100644
index 000000000..90d5c5c36
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/attach_network_interface_response.go
@@ -0,0 +1,22 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type AttachNetworkInterfaceResponse struct {
+
+RequestId *string `json:"requestId,omitempty"`
+
+ReturnCode *string `json:"returnCode,omitempty"`
+
+ReturnMessage *string `json:"returnMessage,omitempty"`
+
+TotalRows *int32 `json:"totalRows,omitempty"`
+
+NetworkInterfaceList []*NetworkInterface `json:"networkInterfaceList,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/block_storage_instance.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/block_storage_instance.go
new file mode 100644
index 000000000..b45bf4340
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/block_storage_instance.go
@@ -0,0 +1,66 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type BlockStorageInstance struct {
+
+ // 블록스토리지인스턴스번호
+BlockStorageInstanceNo *string `json:"blockStorageInstanceNo,omitempty"`
+
+ // 서버인스턴스번호
+ServerInstanceNo *string `json:"serverInstanceNo,omitempty"`
+
+ // 블록스토리지이름
+BlockStorageName *string `json:"blockStorageName,omitempty"`
+
+ // 블록스토리지유형
+BlockStorageType *CommonCode `json:"blockStorageType,omitempty"`
+
+ // 블록스토리지사이즈
+BlockStorageSize *int64 `json:"blockStorageSize,omitempty"`
+
+ // 디바이스이름
+DeviceName *string `json:"deviceName,omitempty"`
+
+ // 블록스토리지상품코드
+BlockStorageProductCode *string `json:"blockStorageProductCode,omitempty"`
+
+ // 블록스토리지인스턴스상태
+BlockStorageInstanceStatus *CommonCode `json:"blockStorageInstanceStatus,omitempty"`
+
+ // 블록스토리지인스턴스OP
+BlockStorageInstanceOperation *CommonCode `json:"blockStorageInstanceOperation,omitempty"`
+
+ // 블록스토리지인스턴스상태이름
+BlockStorageInstanceStatusName *string `json:"blockStorageInstanceStatusName,omitempty"`
+
+ // 생성일시
+CreateDate *string `json:"createDate,omitempty"`
+
+ // 블록스토리지설명
+BlockStorageDescription *string `json:"blockStorageDescription,omitempty"`
+
+ // 블록스토리지디스크유형
+BlockStorageDiskType *CommonCode `json:"blockStorageDiskType,omitempty"`
+
+ // 블록스토리지디스크상세유형
+BlockStorageDiskDetailType *CommonCode `json:"blockStorageDiskDetailType,omitempty"`
+
+ // 최대IOPS
+MaxIopsThroughput *int32 `json:"maxIopsThroughput,omitempty"`
+
+ // 볼륨암호화여부
+IsEncryptedVolume *bool `json:"isEncryptedVolume,omitempty"`
+
+ // ZONE코드
+ZoneCode *string `json:"zoneCode,omitempty"`
+
+ // REGION코드
+RegionCode *string `json:"regionCode,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/block_storage_snapshot_instance.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/block_storage_snapshot_instance.go
new file mode 100644
index 000000000..843d2f5f9
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/block_storage_snapshot_instance.go
@@ -0,0 +1,42 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type BlockStorageSnapshotInstance struct {
+
+ // 블록스토리지스냅샷인스턴스번호
+BlockStorageSnapshotInstanceNo *string `json:"blockStorageSnapshotInstanceNo,omitempty"`
+
+ // 블록스토리지스냅샷이름
+BlockStorageSnapshotName *string `json:"blockStorageSnapshotName,omitempty"`
+
+ // 블록스토리지스냅샷볼륨사이즈
+BlockStorageSnapshotVolumeSize *int64 `json:"blockStorageSnapshotVolumeSize,omitempty"`
+
+ // 원본블록스토리지인스턴스번호
+OriginalBlockStorageInstanceNo *string `json:"originalBlockStorageInstanceNo,omitempty"`
+
+ // 블록스토리지스냅샷인스턴스상태
+BlockStorageSnapshotInstanceStatus *CommonCode `json:"blockStorageSnapshotInstanceStatus,omitempty"`
+
+ // 블록스토리지스냅샷인스턴스OP
+BlockStorageSnapshotInstanceOperation *CommonCode `json:"blockStorageSnapshotInstanceOperation,omitempty"`
+
+ // 블록스토리지스냅샷인스턴스상태이름
+BlockStorageSnapshotInstanceStatusName *string `json:"blockStorageSnapshotInstanceStatusName,omitempty"`
+
+ // 생성일시
+CreateDate *string `json:"createDate,omitempty"`
+
+ // 원본블록스토리지볼륨암호화여부
+IsEncryptedOriginalBlockStorageVolume *bool `json:"isEncryptedOriginalBlockStorageVolume,omitempty"`
+
+ // 블록스토리지스냅샷설명
+BlockStorageSnapshotDescription *string `json:"blockStorageSnapshotDescription,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/change_block_storage_volume_size_request.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/change_block_storage_volume_size_request.go
new file mode 100644
index 000000000..c124a3b29
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/change_block_storage_volume_size_request.go
@@ -0,0 +1,21 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type ChangeBlockStorageVolumeSizeRequest struct {
+
+ // REGION코드
+RegionCode *string `json:"regionCode,omitempty"`
+
+ // 블록스토리지인스턴스번호
+BlockStorageInstanceNo *string `json:"blockStorageInstanceNo"`
+
+ // 블록스토리지사이즈
+BlockStorageSize *int32 `json:"blockStorageSize"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/change_block_storage_volume_size_response.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/change_block_storage_volume_size_response.go
new file mode 100644
index 000000000..404af9af1
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/change_block_storage_volume_size_response.go
@@ -0,0 +1,22 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type ChangeBlockStorageVolumeSizeResponse struct {
+
+RequestId *string `json:"requestId,omitempty"`
+
+ReturnCode *string `json:"returnCode,omitempty"`
+
+ReturnMessage *string `json:"returnMessage,omitempty"`
+
+TotalRows *int32 `json:"totalRows,omitempty"`
+
+BlockStorageInstanceList []*BlockStorageInstance `json:"blockStorageInstanceList,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/change_server_instance_spec_request.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/change_server_instance_spec_request.go
new file mode 100644
index 000000000..2db5e434e
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/change_server_instance_spec_request.go
@@ -0,0 +1,21 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type ChangeServerInstanceSpecRequest struct {
+
+ // REGION코드
+RegionCode *string `json:"regionCode,omitempty"`
+
+ // 서버인스턴스번호
+ServerInstanceNo *string `json:"serverInstanceNo"`
+
+ // 서버상품코드
+ServerProductCode *string `json:"serverProductCode"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/change_server_instance_spec_response.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/change_server_instance_spec_response.go
new file mode 100644
index 000000000..aef05a48b
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/change_server_instance_spec_response.go
@@ -0,0 +1,22 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type ChangeServerInstanceSpecResponse struct {
+
+RequestId *string `json:"requestId,omitempty"`
+
+ReturnCode *string `json:"returnCode,omitempty"`
+
+ReturnMessage *string `json:"returnMessage,omitempty"`
+
+TotalRows *int32 `json:"totalRows,omitempty"`
+
+ServerInstanceList []*ServerInstance `json:"serverInstanceList,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/common_code.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/common_code.go
new file mode 100644
index 000000000..e9f1a4d7f
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/common_code.go
@@ -0,0 +1,18 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type CommonCode struct {
+
+ // 코드
+Code *string `json:"code,omitempty"`
+
+ // 코드명
+CodeName *string `json:"codeName,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/configuration.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/configuration.go
new file mode 100644
index 000000000..e97db128a
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/configuration.go
@@ -0,0 +1,37 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+import (
+ "github.com/NaverCloudPlatform/ncloud-sdk-go-v2/ncloud"
+ "os"
+)
+
+// contextKeys are used to identify the type of value in the context.
+// Since these are string, it is possible to get a short description of the
+// context key for logging and debugging using key.String().
+
+type contextKey string
+
+func (c contextKey) String() string {
+ return "auth " + string(c)
+}
+
+func NewConfiguration(apiKey *ncloud.APIKey) *ncloud.Configuration {
+ cfg := &ncloud.Configuration{
+ BasePath: "https://ncloud.apigw.ntruss.com/vserver/v2",
+ DefaultHeader: make(map[string]string),
+ UserAgent: "vserver/1.0.0/go",
+ APIKey: apiKey,
+ }
+ if os.Getenv("NCLOUD_API_GW") != "" {
+ cfg.BasePath = os.Getenv("NCLOUD_API_GW") + "/vserver/v2"
+ }
+ return cfg
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/create_access_control_group_request.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/create_access_control_group_request.go
new file mode 100644
index 000000000..ace817e29
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/create_access_control_group_request.go
@@ -0,0 +1,24 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type CreateAccessControlGroupRequest struct {
+
+ // REGION코드
+RegionCode *string `json:"regionCode,omitempty"`
+
+ // ACG이름
+AccessControlGroupName *string `json:"accessControlGroupName,omitempty"`
+
+ // ACG설명
+AccessControlGroupDescription *string `json:"accessControlGroupDescription,omitempty"`
+
+ // VPC번호
+VpcNo *string `json:"vpcNo"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/create_access_control_group_response.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/create_access_control_group_response.go
new file mode 100644
index 000000000..177ba33b5
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/create_access_control_group_response.go
@@ -0,0 +1,22 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type CreateAccessControlGroupResponse struct {
+
+RequestId *string `json:"requestId,omitempty"`
+
+ReturnCode *string `json:"returnCode,omitempty"`
+
+ReturnMessage *string `json:"returnMessage,omitempty"`
+
+TotalRows *int32 `json:"totalRows,omitempty"`
+
+AccessControlGroupList []*AccessControlGroup `json:"accessControlGroupList,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/create_block_storage_instance_request.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/create_block_storage_instance_request.go
new file mode 100644
index 000000000..b6d9f7e70
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/create_block_storage_instance_request.go
@@ -0,0 +1,36 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type CreateBlockStorageInstanceRequest struct {
+
+ // REGION코드
+RegionCode *string `json:"regionCode,omitempty"`
+
+ // 블록스토리지이름
+BlockStorageName *string `json:"blockStorageName,omitempty"`
+
+ // 블록스토리지사이즈
+BlockStorageSize *int32 `json:"blockStorageSize"`
+
+ // 블록스토리지디스크상세유형코드
+BlockStorageDiskDetailTypeCode *string `json:"blockStorageDiskDetailTypeCode,omitempty"`
+
+ // 블록스토리지설명
+BlockStorageDescription *string `json:"blockStorageDescription,omitempty"`
+
+ // 서버인스턴스번호
+ServerInstanceNo *string `json:"serverInstanceNo"`
+
+ // 블록스토리지스냅샷인스턴스번호
+BlockStorageSnapshotInstanceNo *string `json:"blockStorageSnapshotInstanceNo,omitempty"`
+
+ // ZONE코드
+ZoneCode *string `json:"zoneCode,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/create_block_storage_instance_response.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/create_block_storage_instance_response.go
new file mode 100644
index 000000000..462e3ee53
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/create_block_storage_instance_response.go
@@ -0,0 +1,22 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type CreateBlockStorageInstanceResponse struct {
+
+RequestId *string `json:"requestId,omitempty"`
+
+ReturnCode *string `json:"returnCode,omitempty"`
+
+ReturnMessage *string `json:"returnMessage,omitempty"`
+
+TotalRows *int32 `json:"totalRows,omitempty"`
+
+BlockStorageInstanceList []*BlockStorageInstance `json:"blockStorageInstanceList,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/create_block_storage_snapshot_instance_request.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/create_block_storage_snapshot_instance_request.go
new file mode 100644
index 000000000..c26d9f04e
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/create_block_storage_snapshot_instance_request.go
@@ -0,0 +1,24 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type CreateBlockStorageSnapshotInstanceRequest struct {
+
+ // REGION코드
+RegionCode *string `json:"regionCode,omitempty"`
+
+ // 블록스토리지스냅샷이름
+BlockStorageSnapshotName *string `json:"blockStorageSnapshotName,omitempty"`
+
+ // 블록스토리지스냅샷설명
+BlockStorageSnapshotDescription *string `json:"blockStorageSnapshotDescription,omitempty"`
+
+ // 원본블록스토리지인스턴스번호
+OriginalBlockStorageInstanceNo *string `json:"originalBlockStorageInstanceNo"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/create_block_storage_snapshot_instance_response.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/create_block_storage_snapshot_instance_response.go
new file mode 100644
index 000000000..8649c8db4
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/create_block_storage_snapshot_instance_response.go
@@ -0,0 +1,22 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type CreateBlockStorageSnapshotInstanceResponse struct {
+
+RequestId *string `json:"requestId,omitempty"`
+
+ReturnCode *string `json:"returnCode,omitempty"`
+
+ReturnMessage *string `json:"returnMessage,omitempty"`
+
+TotalRows *int32 `json:"totalRows,omitempty"`
+
+BlockStorageSnapshotInstanceList []*BlockStorageSnapshotInstance `json:"blockStorageSnapshotInstanceList,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/create_init_script_request.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/create_init_script_request.go
new file mode 100644
index 000000000..be52227e6
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/create_init_script_request.go
@@ -0,0 +1,27 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type CreateInitScriptRequest struct {
+
+ // REGION코드
+RegionCode *string `json:"regionCode,omitempty"`
+
+ // 초기화스크립트내용
+InitScriptContent *string `json:"initScriptContent"`
+
+ // 초기화스크립트이름
+InitScriptName *string `json:"initScriptName,omitempty"`
+
+ // 초기화스크립트설명
+InitScriptDescription *string `json:"initScriptDescription,omitempty"`
+
+ // OS유형코드
+OsTypeCode *string `json:"osTypeCode"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/create_init_script_response.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/create_init_script_response.go
new file mode 100644
index 000000000..d0fe796d1
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/create_init_script_response.go
@@ -0,0 +1,22 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type CreateInitScriptResponse struct {
+
+RequestId *string `json:"requestId,omitempty"`
+
+ReturnCode *string `json:"returnCode,omitempty"`
+
+ReturnMessage *string `json:"returnMessage,omitempty"`
+
+TotalRows *int32 `json:"totalRows,omitempty"`
+
+InitScriptList []*InitScript `json:"initScriptList,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/create_login_key_request.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/create_login_key_request.go
new file mode 100644
index 000000000..f04aa50cd
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/create_login_key_request.go
@@ -0,0 +1,15 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type CreateLoginKeyRequest struct {
+
+ // 키이름
+KeyName *string `json:"keyName,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/create_login_key_response.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/create_login_key_response.go
new file mode 100644
index 000000000..3a5122e2e
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/create_login_key_response.go
@@ -0,0 +1,26 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type CreateLoginKeyResponse struct {
+
+RequestId *string `json:"requestId,omitempty"`
+
+ReturnCode *string `json:"returnCode,omitempty"`
+
+ReturnMessage *string `json:"returnMessage,omitempty"`
+
+TotalRows *int32 `json:"totalRows,omitempty"`
+
+ // 키이름
+KeyName *string `json:"keyName,omitempty"`
+
+ // 개인키
+PrivateKey *string `json:"privateKey,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/create_member_server_image_instance_request.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/create_member_server_image_instance_request.go
new file mode 100644
index 000000000..55d85dda1
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/create_member_server_image_instance_request.go
@@ -0,0 +1,24 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type CreateMemberServerImageInstanceRequest struct {
+
+ // REGION코드
+RegionCode *string `json:"regionCode,omitempty"`
+
+ // 회원서버이미지이름
+MemberServerImageName *string `json:"memberServerImageName,omitempty"`
+
+ // 회원서버이미지설명
+MemberServerImageDescription *string `json:"memberServerImageDescription,omitempty"`
+
+ // 서버인스턴스번호
+ServerInstanceNo *string `json:"serverInstanceNo"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/create_member_server_image_instance_response.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/create_member_server_image_instance_response.go
new file mode 100644
index 000000000..4152110ef
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/create_member_server_image_instance_response.go
@@ -0,0 +1,22 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type CreateMemberServerImageInstanceResponse struct {
+
+RequestId *string `json:"requestId,omitempty"`
+
+ReturnCode *string `json:"returnCode,omitempty"`
+
+ReturnMessage *string `json:"returnMessage,omitempty"`
+
+TotalRows *int32 `json:"totalRows,omitempty"`
+
+MemberServerImageInstanceList []*MemberServerImageInstance `json:"memberServerImageInstanceList,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/create_network_interface_request.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/create_network_interface_request.go
new file mode 100644
index 000000000..f45391434
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/create_network_interface_request.go
@@ -0,0 +1,36 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type CreateNetworkInterfaceRequest struct {
+
+ // REGION코드
+RegionCode *string `json:"regionCode,omitempty"`
+
+ // ACG번호리스트
+AccessControlGroupNoList []*string `json:"accessControlGroupNoList"`
+
+ // 네트워크인터페이스설명
+NetworkInterfaceDescription *string `json:"networkInterfaceDescription,omitempty"`
+
+ // 네트워크인터페이스이름
+NetworkInterfaceName *string `json:"networkInterfaceName,omitempty"`
+
+ // 서브넷번호
+SubnetNo *string `json:"subnetNo"`
+
+ // VPC번호
+VpcNo *string `json:"vpcNo"`
+
+ // 서버인스턴스번호
+ServerInstanceNo *string `json:"serverInstanceNo,omitempty"`
+
+ // IP주소
+Ip *string `json:"ip,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/create_network_interface_response.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/create_network_interface_response.go
new file mode 100644
index 000000000..8868a4ffe
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/create_network_interface_response.go
@@ -0,0 +1,22 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type CreateNetworkInterfaceResponse struct {
+
+RequestId *string `json:"requestId,omitempty"`
+
+ReturnCode *string `json:"returnCode,omitempty"`
+
+ReturnMessage *string `json:"returnMessage,omitempty"`
+
+TotalRows *int32 `json:"totalRows,omitempty"`
+
+NetworkInterfaceList []*NetworkInterface `json:"networkInterfaceList,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/create_placement_group_request.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/create_placement_group_request.go
new file mode 100644
index 000000000..d466d8254
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/create_placement_group_request.go
@@ -0,0 +1,21 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type CreatePlacementGroupRequest struct {
+
+ // REGION코드
+RegionCode *string `json:"regionCode,omitempty"`
+
+ // 물리배치그룹이름
+PlacementGroupName *string `json:"placementGroupName,omitempty"`
+
+ // 물리배치그룹유형코드
+PlacementGroupTypeCode *string `json:"placementGroupTypeCode,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/create_placement_group_response.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/create_placement_group_response.go
new file mode 100644
index 000000000..e3a0884d4
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/create_placement_group_response.go
@@ -0,0 +1,22 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type CreatePlacementGroupResponse struct {
+
+RequestId *string `json:"requestId,omitempty"`
+
+ReturnCode *string `json:"returnCode,omitempty"`
+
+ReturnMessage *string `json:"returnMessage,omitempty"`
+
+TotalRows *int32 `json:"totalRows,omitempty"`
+
+PlacementGroupList []*PlacementGroup `json:"placementGroupList,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/create_public_ip_instance_request.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/create_public_ip_instance_request.go
new file mode 100644
index 000000000..388969529
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/create_public_ip_instance_request.go
@@ -0,0 +1,21 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type CreatePublicIpInstanceRequest struct {
+
+ // REGION코드
+RegionCode *string `json:"regionCode,omitempty"`
+
+ // 공인IP설명
+PublicIpDescription *string `json:"publicIpDescription,omitempty"`
+
+ // 서버인스턴스번호
+ServerInstanceNo *string `json:"serverInstanceNo,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/create_public_ip_instance_response.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/create_public_ip_instance_response.go
new file mode 100644
index 000000000..5130c6932
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/create_public_ip_instance_response.go
@@ -0,0 +1,22 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type CreatePublicIpInstanceResponse struct {
+
+RequestId *string `json:"requestId,omitempty"`
+
+ReturnCode *string `json:"returnCode,omitempty"`
+
+ReturnMessage *string `json:"returnMessage,omitempty"`
+
+TotalRows *int32 `json:"totalRows,omitempty"`
+
+PublicIpInstanceList []*PublicIpInstance `json:"publicIpInstanceList,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/create_server_instances_request.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/create_server_instances_request.go
new file mode 100644
index 000000000..184c233b3
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/create_server_instances_request.go
@@ -0,0 +1,63 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type CreateServerInstancesRequest struct {
+
+ // REGION코드
+RegionCode *string `json:"regionCode,omitempty"`
+
+ // 서버상품코드
+ServerProductCode *string `json:"serverProductCode,omitempty"`
+
+ // 서버이미지상품코드
+ServerImageProductCode *string `json:"serverImageProductCode,omitempty"`
+
+ // 회원서버이미지인스턴스번호
+MemberServerImageInstanceNo *string `json:"memberServerImageInstanceNo,omitempty"`
+
+ // 서버이름
+ServerName *string `json:"serverName,omitempty"`
+
+ // 서버설명
+ServerDescription *string `json:"serverDescription,omitempty"`
+
+ // 로그인키이름
+LoginKeyName *string `json:"loginKeyName,omitempty"`
+
+ // 반납보호여부
+IsProtectServerTermination *bool `json:"isProtectServerTermination,omitempty"`
+
+ // 서버생성개수
+ServerCreateCount *int32 `json:"serverCreateCount,omitempty"`
+
+ // 서버생성시작번호
+ServerCreateStartNo *int32 `json:"serverCreateStartNo,omitempty"`
+
+ // 요금제유형코드
+FeeSystemTypeCode *string `json:"feeSystemTypeCode,omitempty"`
+
+ // 초기화스크립트번호
+InitScriptNo *string `json:"initScriptNo,omitempty"`
+
+ // VPC번호
+VpcNo *string `json:"vpcNo"`
+
+ // 서브넷번호
+SubnetNo *string `json:"subnetNo"`
+
+ // 네트워크인터페이스리스트
+NetworkInterfaceList []*NetworkInterfaceParameter `json:"networkInterfaceList"`
+
+ // 물리배치그룹번호
+PlacementGroupNo *string `json:"placementGroupNo,omitempty"`
+
+ // 기본블록스토리지볼륨암호화여부
+IsEncryptedBaseBlockStorageVolume *bool `json:"isEncryptedBaseBlockStorageVolume,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/create_server_instances_response.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/create_server_instances_response.go
new file mode 100644
index 000000000..d276db07b
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/create_server_instances_response.go
@@ -0,0 +1,22 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type CreateServerInstancesResponse struct {
+
+RequestId *string `json:"requestId,omitempty"`
+
+ReturnCode *string `json:"returnCode,omitempty"`
+
+ReturnMessage *string `json:"returnMessage,omitempty"`
+
+TotalRows *int32 `json:"totalRows,omitempty"`
+
+ServerInstanceList []*ServerInstance `json:"serverInstanceList,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/delete_access_control_group_request.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/delete_access_control_group_request.go
new file mode 100644
index 000000000..f43eeb373
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/delete_access_control_group_request.go
@@ -0,0 +1,21 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type DeleteAccessControlGroupRequest struct {
+
+ // REGION코드
+RegionCode *string `json:"regionCode,omitempty"`
+
+ // VPC번호
+VpcNo *string `json:"vpcNo"`
+
+ // ACG번호
+AccessControlGroupNo *string `json:"accessControlGroupNo"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/delete_access_control_group_response.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/delete_access_control_group_response.go
new file mode 100644
index 000000000..dd61c6a7d
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/delete_access_control_group_response.go
@@ -0,0 +1,22 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type DeleteAccessControlGroupResponse struct {
+
+RequestId *string `json:"requestId,omitempty"`
+
+ReturnCode *string `json:"returnCode,omitempty"`
+
+ReturnMessage *string `json:"returnMessage,omitempty"`
+
+TotalRows *int32 `json:"totalRows,omitempty"`
+
+AccessControlGroupList []*AccessControlGroup `json:"accessControlGroupList,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/delete_block_storage_instances_request.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/delete_block_storage_instances_request.go
new file mode 100644
index 000000000..9f20bd3ca
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/delete_block_storage_instances_request.go
@@ -0,0 +1,18 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type DeleteBlockStorageInstancesRequest struct {
+
+ // REGION코드
+RegionCode *string `json:"regionCode,omitempty"`
+
+ // 블록스토리지인스턴스번호리스트
+BlockStorageInstanceNoList []*string `json:"blockStorageInstanceNoList"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/delete_block_storage_instances_response.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/delete_block_storage_instances_response.go
new file mode 100644
index 000000000..c18580d8c
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/delete_block_storage_instances_response.go
@@ -0,0 +1,22 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type DeleteBlockStorageInstancesResponse struct {
+
+RequestId *string `json:"requestId,omitempty"`
+
+ReturnCode *string `json:"returnCode,omitempty"`
+
+ReturnMessage *string `json:"returnMessage,omitempty"`
+
+TotalRows *int32 `json:"totalRows,omitempty"`
+
+BlockStorageInstanceList []*BlockStorageInstance `json:"blockStorageInstanceList,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/delete_block_storage_snapshot_instances_request.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/delete_block_storage_snapshot_instances_request.go
new file mode 100644
index 000000000..2bdec6cbe
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/delete_block_storage_snapshot_instances_request.go
@@ -0,0 +1,18 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type DeleteBlockStorageSnapshotInstancesRequest struct {
+
+ // REGION코드
+RegionCode *string `json:"regionCode,omitempty"`
+
+ // 블록스토리지스냅샷인스턴스번호리스트
+BlockStorageSnapshotInstanceNoList []*string `json:"blockStorageSnapshotInstanceNoList"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/delete_block_storage_snapshot_instances_response.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/delete_block_storage_snapshot_instances_response.go
new file mode 100644
index 000000000..79150213a
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/delete_block_storage_snapshot_instances_response.go
@@ -0,0 +1,22 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type DeleteBlockStorageSnapshotInstancesResponse struct {
+
+RequestId *string `json:"requestId,omitempty"`
+
+ReturnCode *string `json:"returnCode,omitempty"`
+
+ReturnMessage *string `json:"returnMessage,omitempty"`
+
+TotalRows *int32 `json:"totalRows,omitempty"`
+
+BlockStorageSnapshotInstanceList []*BlockStorageSnapshotInstance `json:"blockStorageSnapshotInstanceList,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/delete_init_scripts_request.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/delete_init_scripts_request.go
new file mode 100644
index 000000000..83d71f05f
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/delete_init_scripts_request.go
@@ -0,0 +1,18 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type DeleteInitScriptsRequest struct {
+
+ // REGION코드
+RegionCode *string `json:"regionCode,omitempty"`
+
+ // 초기화스크립트번호리스트
+InitScriptNoList []*string `json:"initScriptNoList"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/delete_init_scripts_response.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/delete_init_scripts_response.go
new file mode 100644
index 000000000..ee00e6f0b
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/delete_init_scripts_response.go
@@ -0,0 +1,22 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type DeleteInitScriptsResponse struct {
+
+RequestId *string `json:"requestId,omitempty"`
+
+ReturnCode *string `json:"returnCode,omitempty"`
+
+ReturnMessage *string `json:"returnMessage,omitempty"`
+
+TotalRows *int32 `json:"totalRows,omitempty"`
+
+InitScriptList []*InitScript `json:"initScriptList,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/delete_login_keys_request.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/delete_login_keys_request.go
new file mode 100644
index 000000000..b7cbf3226
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/delete_login_keys_request.go
@@ -0,0 +1,15 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type DeleteLoginKeysRequest struct {
+
+ // 키이름리스트
+KeyNameList []*string `json:"keyNameList"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/delete_login_keys_response.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/delete_login_keys_response.go
new file mode 100644
index 000000000..76cd14927
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/delete_login_keys_response.go
@@ -0,0 +1,20 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type DeleteLoginKeysResponse struct {
+
+RequestId *string `json:"requestId,omitempty"`
+
+ReturnCode *string `json:"returnCode,omitempty"`
+
+ReturnMessage *string `json:"returnMessage,omitempty"`
+
+TotalRows *int32 `json:"totalRows,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/delete_member_server_image_instances_request.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/delete_member_server_image_instances_request.go
new file mode 100644
index 000000000..ffdaecd44
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/delete_member_server_image_instances_request.go
@@ -0,0 +1,18 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type DeleteMemberServerImageInstancesRequest struct {
+
+ // REGION코드
+RegionCode *string `json:"regionCode,omitempty"`
+
+ // 회원서버이미지인스턴스번호리스트
+MemberServerImageInstanceNoList []*string `json:"memberServerImageInstanceNoList"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/delete_member_server_image_instances_response.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/delete_member_server_image_instances_response.go
new file mode 100644
index 000000000..2a5206f2f
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/delete_member_server_image_instances_response.go
@@ -0,0 +1,22 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type DeleteMemberServerImageInstancesResponse struct {
+
+RequestId *string `json:"requestId,omitempty"`
+
+ReturnCode *string `json:"returnCode,omitempty"`
+
+ReturnMessage *string `json:"returnMessage,omitempty"`
+
+TotalRows *int32 `json:"totalRows,omitempty"`
+
+MemberServerImageInstanceList []*MemberServerImageInstance `json:"memberServerImageInstanceList,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/delete_network_interface_request.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/delete_network_interface_request.go
new file mode 100644
index 000000000..e8b9609fc
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/delete_network_interface_request.go
@@ -0,0 +1,18 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type DeleteNetworkInterfaceRequest struct {
+
+ // REGION코드
+RegionCode *string `json:"regionCode,omitempty"`
+
+ // 네트워크인터페이스번호
+NetworkInterfaceNo *string `json:"networkInterfaceNo"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/delete_network_interface_response.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/delete_network_interface_response.go
new file mode 100644
index 000000000..b07534464
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/delete_network_interface_response.go
@@ -0,0 +1,22 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type DeleteNetworkInterfaceResponse struct {
+
+RequestId *string `json:"requestId,omitempty"`
+
+ReturnCode *string `json:"returnCode,omitempty"`
+
+ReturnMessage *string `json:"returnMessage,omitempty"`
+
+TotalRows *int32 `json:"totalRows,omitempty"`
+
+NetworkInterfaceList []*NetworkInterface `json:"networkInterfaceList,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/delete_placement_group_request.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/delete_placement_group_request.go
new file mode 100644
index 000000000..3b8f23263
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/delete_placement_group_request.go
@@ -0,0 +1,18 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type DeletePlacementGroupRequest struct {
+
+ // REGION코드
+RegionCode *string `json:"regionCode,omitempty"`
+
+ // 물리배치그룹번호
+PlacementGroupNo *string `json:"placementGroupNo"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/delete_placement_group_response.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/delete_placement_group_response.go
new file mode 100644
index 000000000..7804fee45
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/delete_placement_group_response.go
@@ -0,0 +1,22 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type DeletePlacementGroupResponse struct {
+
+RequestId *string `json:"requestId,omitempty"`
+
+ReturnCode *string `json:"returnCode,omitempty"`
+
+ReturnMessage *string `json:"returnMessage,omitempty"`
+
+TotalRows *int32 `json:"totalRows,omitempty"`
+
+PlacementGroupList []*PlacementGroup `json:"placementGroupList,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/delete_public_ip_instance_request.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/delete_public_ip_instance_request.go
new file mode 100644
index 000000000..55ae00dad
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/delete_public_ip_instance_request.go
@@ -0,0 +1,18 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type DeletePublicIpInstanceRequest struct {
+
+ // REGION코드
+RegionCode *string `json:"regionCode,omitempty"`
+
+ // 공인IP인스턴스번호
+PublicIpInstanceNo *string `json:"publicIpInstanceNo"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/delete_public_ip_instance_response.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/delete_public_ip_instance_response.go
new file mode 100644
index 000000000..f2b295a68
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/delete_public_ip_instance_response.go
@@ -0,0 +1,22 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type DeletePublicIpInstanceResponse struct {
+
+RequestId *string `json:"requestId,omitempty"`
+
+ReturnCode *string `json:"returnCode,omitempty"`
+
+ReturnMessage *string `json:"returnMessage,omitempty"`
+
+TotalRows *int32 `json:"totalRows,omitempty"`
+
+PublicIpInstanceList []*PublicIpInstance `json:"publicIpInstanceList,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/detach_block_storage_instances_request.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/detach_block_storage_instances_request.go
new file mode 100644
index 000000000..74f61bfff
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/detach_block_storage_instances_request.go
@@ -0,0 +1,18 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type DetachBlockStorageInstancesRequest struct {
+
+ // REGION코드
+RegionCode *string `json:"regionCode,omitempty"`
+
+ // 블록스토리지인스턴스번호리스트
+BlockStorageInstanceNoList []*string `json:"blockStorageInstanceNoList"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/detach_block_storage_instances_response.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/detach_block_storage_instances_response.go
new file mode 100644
index 000000000..ef87655e2
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/detach_block_storage_instances_response.go
@@ -0,0 +1,22 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type DetachBlockStorageInstancesResponse struct {
+
+RequestId *string `json:"requestId,omitempty"`
+
+ReturnCode *string `json:"returnCode,omitempty"`
+
+ReturnMessage *string `json:"returnMessage,omitempty"`
+
+TotalRows *int32 `json:"totalRows,omitempty"`
+
+BlockStorageInstanceList []*BlockStorageInstance `json:"blockStorageInstanceList,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/detach_network_interface_request.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/detach_network_interface_request.go
new file mode 100644
index 000000000..1518bd9be
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/detach_network_interface_request.go
@@ -0,0 +1,24 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type DetachNetworkInterfaceRequest struct {
+
+ // REGION코드
+RegionCode *string `json:"regionCode,omitempty"`
+
+ // 서버인스턴스번호
+ServerInstanceNo *string `json:"serverInstanceNo"`
+
+ // 네트워크인터페이스번호
+NetworkInterfaceNo *string `json:"networkInterfaceNo"`
+
+ // 서브넷번호
+SubnetNo *string `json:"subnetNo"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/detach_network_interface_response.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/detach_network_interface_response.go
new file mode 100644
index 000000000..b51d0495a
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/detach_network_interface_response.go
@@ -0,0 +1,22 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type DetachNetworkInterfaceResponse struct {
+
+RequestId *string `json:"requestId,omitempty"`
+
+ReturnCode *string `json:"returnCode,omitempty"`
+
+ReturnMessage *string `json:"returnMessage,omitempty"`
+
+TotalRows *int32 `json:"totalRows,omitempty"`
+
+NetworkInterfaceList []*NetworkInterface `json:"networkInterfaceList,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/disassociate_public_ip_from_server_instance_request.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/disassociate_public_ip_from_server_instance_request.go
new file mode 100644
index 000000000..c7916052d
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/disassociate_public_ip_from_server_instance_request.go
@@ -0,0 +1,21 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type DisassociatePublicIpFromServerInstanceRequest struct {
+
+ // REGION코드
+RegionCode *string `json:"regionCode,omitempty"`
+
+ // 공인IP인스턴스번호
+PublicIpInstanceNo *string `json:"publicIpInstanceNo,omitempty"`
+
+ // 서버인스턴스번호
+ServerInstanceNo *string `json:"serverInstanceNo,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/disassociate_public_ip_from_server_instance_response.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/disassociate_public_ip_from_server_instance_response.go
new file mode 100644
index 000000000..3a0833354
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/disassociate_public_ip_from_server_instance_response.go
@@ -0,0 +1,22 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type DisassociatePublicIpFromServerInstanceResponse struct {
+
+RequestId *string `json:"requestId,omitempty"`
+
+ReturnCode *string `json:"returnCode,omitempty"`
+
+ReturnMessage *string `json:"returnMessage,omitempty"`
+
+TotalRows *int32 `json:"totalRows,omitempty"`
+
+PublicIpInstanceList []*PublicIpInstance `json:"publicIpInstanceList,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_access_control_group_detail_request.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_access_control_group_detail_request.go
new file mode 100644
index 000000000..3c82dbdd5
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_access_control_group_detail_request.go
@@ -0,0 +1,18 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type GetAccessControlGroupDetailRequest struct {
+
+ // REGION코드
+RegionCode *string `json:"regionCode,omitempty"`
+
+ // ACG번호
+AccessControlGroupNo *string `json:"accessControlGroupNo"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_access_control_group_detail_response.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_access_control_group_detail_response.go
new file mode 100644
index 000000000..17dd1efd3
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_access_control_group_detail_response.go
@@ -0,0 +1,22 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type GetAccessControlGroupDetailResponse struct {
+
+RequestId *string `json:"requestId,omitempty"`
+
+ReturnCode *string `json:"returnCode,omitempty"`
+
+ReturnMessage *string `json:"returnMessage,omitempty"`
+
+TotalRows *int32 `json:"totalRows,omitempty"`
+
+AccessControlGroupList []*AccessControlGroup `json:"accessControlGroupList,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_access_control_group_list_request.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_access_control_group_list_request.go
new file mode 100644
index 000000000..fc22f218a
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_access_control_group_list_request.go
@@ -0,0 +1,33 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type GetAccessControlGroupListRequest struct {
+
+ // REGION코드
+RegionCode *string `json:"regionCode,omitempty"`
+
+ // ACG번호리스트
+AccessControlGroupNoList []*string `json:"accessControlGroupNoList,omitempty"`
+
+ // ACG이름
+AccessControlGroupName *string `json:"accessControlGroupName,omitempty"`
+
+ // ACG상태코드
+AccessControlGroupStatusCode *string `json:"accessControlGroupStatusCode,omitempty"`
+
+ // 페이지번호
+PageNo *int32 `json:"pageNo,omitempty"`
+
+ // 페이지사이즈
+PageSize *int32 `json:"pageSize,omitempty"`
+
+ // VPC번호
+VpcNo *string `json:"vpcNo,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_access_control_group_list_response.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_access_control_group_list_response.go
new file mode 100644
index 000000000..0d90fe228
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_access_control_group_list_response.go
@@ -0,0 +1,22 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type GetAccessControlGroupListResponse struct {
+
+RequestId *string `json:"requestId,omitempty"`
+
+ReturnCode *string `json:"returnCode,omitempty"`
+
+ReturnMessage *string `json:"returnMessage,omitempty"`
+
+TotalRows *int32 `json:"totalRows,omitempty"`
+
+AccessControlGroupList []*AccessControlGroup `json:"accessControlGroupList,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_access_control_group_rule_list_request.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_access_control_group_rule_list_request.go
new file mode 100644
index 000000000..a85b75f8d
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_access_control_group_rule_list_request.go
@@ -0,0 +1,21 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type GetAccessControlGroupRuleListRequest struct {
+
+ // REGION코드
+RegionCode *string `json:"regionCode,omitempty"`
+
+ // ACG번호
+AccessControlGroupNo *string `json:"accessControlGroupNo"`
+
+ // ACGRule유형코드
+AccessControlGroupRuleTypeCode *string `json:"accessControlGroupRuleTypeCode,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_access_control_group_rule_list_response.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_access_control_group_rule_list_response.go
new file mode 100644
index 000000000..fc5bbfcff
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_access_control_group_rule_list_response.go
@@ -0,0 +1,22 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type GetAccessControlGroupRuleListResponse struct {
+
+RequestId *string `json:"requestId,omitempty"`
+
+ReturnCode *string `json:"returnCode,omitempty"`
+
+ReturnMessage *string `json:"returnMessage,omitempty"`
+
+TotalRows *int32 `json:"totalRows,omitempty"`
+
+AccessControlGroupRuleList []*AccessControlGroupRule `json:"accessControlGroupRuleList,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_block_storage_instance_detail_request.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_block_storage_instance_detail_request.go
new file mode 100644
index 000000000..ef29a1bd4
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_block_storage_instance_detail_request.go
@@ -0,0 +1,18 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type GetBlockStorageInstanceDetailRequest struct {
+
+ // REGION코드
+RegionCode *string `json:"regionCode,omitempty"`
+
+ // 블록스토리지인스턴스번호
+BlockStorageInstanceNo *string `json:"blockStorageInstanceNo"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_block_storage_instance_detail_response.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_block_storage_instance_detail_response.go
new file mode 100644
index 000000000..369f7b91d
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_block_storage_instance_detail_response.go
@@ -0,0 +1,22 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type GetBlockStorageInstanceDetailResponse struct {
+
+RequestId *string `json:"requestId,omitempty"`
+
+ReturnCode *string `json:"returnCode,omitempty"`
+
+ReturnMessage *string `json:"returnMessage,omitempty"`
+
+TotalRows *int32 `json:"totalRows,omitempty"`
+
+BlockStorageInstanceList []*BlockStorageInstance `json:"blockStorageInstanceList,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_block_storage_instance_list_request.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_block_storage_instance_list_request.go
new file mode 100644
index 000000000..c10d46bd9
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_block_storage_instance_list_request.go
@@ -0,0 +1,51 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type GetBlockStorageInstanceListRequest struct {
+
+ // REGION코드
+RegionCode *string `json:"regionCode,omitempty"`
+
+ // 서버인스턴스번호
+ServerInstanceNo *string `json:"serverInstanceNo,omitempty"`
+
+ // 블록스토리지유형코드리스트
+BlockStorageTypeCodeList []*string `json:"blockStorageTypeCodeList,omitempty"`
+
+ // 블록스토리지인스턴스상태코드
+BlockStorageInstanceStatusCode *string `json:"blockStorageInstanceStatusCode,omitempty"`
+
+ // 페이지번호
+PageNo *int32 `json:"pageNo,omitempty"`
+
+ // 페이지사이즈
+PageSize *int32 `json:"pageSize,omitempty"`
+
+ // 블록스토리지사이즈
+BlockStorageSize *int32 `json:"blockStorageSize,omitempty"`
+
+ // 블록스토리지인스턴스번호리스트
+BlockStorageInstanceNoList []*string `json:"blockStorageInstanceNoList,omitempty"`
+
+ // 블록스토리지이름
+BlockStorageName *string `json:"blockStorageName,omitempty"`
+
+ // 서버이름
+ServerName *string `json:"serverName,omitempty"`
+
+ // 연결정보
+ConnectionInfo *string `json:"connectionInfo,omitempty"`
+
+ // 블록스토리지디스크유형코드
+BlockStorageDiskTypeCode *string `json:"blockStorageDiskTypeCode,omitempty"`
+
+ // 블록스토리지디스크상세유형코드
+BlockStorageDiskDetailTypeCode *string `json:"blockStorageDiskDetailTypeCode,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_block_storage_instance_list_response.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_block_storage_instance_list_response.go
new file mode 100644
index 000000000..d7067f275
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_block_storage_instance_list_response.go
@@ -0,0 +1,22 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type GetBlockStorageInstanceListResponse struct {
+
+RequestId *string `json:"requestId,omitempty"`
+
+ReturnCode *string `json:"returnCode,omitempty"`
+
+ReturnMessage *string `json:"returnMessage,omitempty"`
+
+TotalRows *int32 `json:"totalRows,omitempty"`
+
+BlockStorageInstanceList []*BlockStorageInstance `json:"blockStorageInstanceList,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_block_storage_snapshot_instance_detail_request.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_block_storage_snapshot_instance_detail_request.go
new file mode 100644
index 000000000..5f0ab522f
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_block_storage_snapshot_instance_detail_request.go
@@ -0,0 +1,18 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type GetBlockStorageSnapshotInstanceDetailRequest struct {
+
+ // REGION코드
+RegionCode *string `json:"regionCode,omitempty"`
+
+ // 블록스토리지스냅샷인스턴스번호
+BlockStorageSnapshotInstanceNo *string `json:"blockStorageSnapshotInstanceNo"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_block_storage_snapshot_instance_detail_response.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_block_storage_snapshot_instance_detail_response.go
new file mode 100644
index 000000000..31e6f5af0
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_block_storage_snapshot_instance_detail_response.go
@@ -0,0 +1,22 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type GetBlockStorageSnapshotInstanceDetailResponse struct {
+
+RequestId *string `json:"requestId,omitempty"`
+
+ReturnCode *string `json:"returnCode,omitempty"`
+
+ReturnMessage *string `json:"returnMessage,omitempty"`
+
+TotalRows *int32 `json:"totalRows,omitempty"`
+
+BlockStorageSnapshotInstanceList []*BlockStorageSnapshotInstance `json:"blockStorageSnapshotInstanceList,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_block_storage_snapshot_instance_list_request.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_block_storage_snapshot_instance_list_request.go
new file mode 100644
index 000000000..ff5ce8c9a
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_block_storage_snapshot_instance_list_request.go
@@ -0,0 +1,45 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type GetBlockStorageSnapshotInstanceListRequest struct {
+
+ // REGION코드
+RegionCode *string `json:"regionCode,omitempty"`
+
+ // 블록스토리지스냅샷인스턴스번호리스트
+BlockStorageSnapshotInstanceNoList []*string `json:"blockStorageSnapshotInstanceNoList,omitempty"`
+
+ // 원본블록스토리지인스턴스번호리스트
+OriginalBlockStorageInstanceNoList []*string `json:"originalBlockStorageInstanceNoList,omitempty"`
+
+ // 블록스토리지스냅샷인스턴스상태코드
+BlockStorageSnapshotInstanceStatusCode *string `json:"blockStorageSnapshotInstanceStatusCode,omitempty"`
+
+ // 페이지번호
+PageNo *int32 `json:"pageNo,omitempty"`
+
+ // 페이지사이즈
+PageSize *int32 `json:"pageSize,omitempty"`
+
+ // 블록스토리지스냅샷볼륨사이즈
+BlockStorageSnapshotVolumeSize *int64 `json:"blockStorageSnapshotVolumeSize,omitempty"`
+
+ // 원본블록스토리지볼륨암호화여부
+IsEncryptedOriginalBlockStorageVolume *bool `json:"isEncryptedOriginalBlockStorageVolume,omitempty"`
+
+ // 블록스토리지스냅샷이름
+BlockStorageSnapshotName *string `json:"blockStorageSnapshotName,omitempty"`
+
+ // 정렬대상
+SortedBy *string `json:"sortedBy,omitempty"`
+
+ // 정렬순서
+SortingOrder *string `json:"sortingOrder,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_block_storage_snapshot_instance_list_response.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_block_storage_snapshot_instance_list_response.go
new file mode 100644
index 000000000..258ceeb3a
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_block_storage_snapshot_instance_list_response.go
@@ -0,0 +1,22 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type GetBlockStorageSnapshotInstanceListResponse struct {
+
+RequestId *string `json:"requestId,omitempty"`
+
+ReturnCode *string `json:"returnCode,omitempty"`
+
+ReturnMessage *string `json:"returnMessage,omitempty"`
+
+TotalRows *int32 `json:"totalRows,omitempty"`
+
+BlockStorageSnapshotInstanceList []*BlockStorageSnapshotInstance `json:"blockStorageSnapshotInstanceList,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_init_script_detail_request.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_init_script_detail_request.go
new file mode 100644
index 000000000..afe6c2b13
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_init_script_detail_request.go
@@ -0,0 +1,18 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type GetInitScriptDetailRequest struct {
+
+ // REGION코드
+RegionCode *string `json:"regionCode,omitempty"`
+
+ // 초기화스크립트번호
+InitScriptNo *string `json:"initScriptNo"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_init_script_detail_response.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_init_script_detail_response.go
new file mode 100644
index 000000000..d01db91fa
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_init_script_detail_response.go
@@ -0,0 +1,22 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type GetInitScriptDetailResponse struct {
+
+RequestId *string `json:"requestId,omitempty"`
+
+ReturnCode *string `json:"returnCode,omitempty"`
+
+ReturnMessage *string `json:"returnMessage,omitempty"`
+
+TotalRows *int32 `json:"totalRows,omitempty"`
+
+InitScriptList []*InitScript `json:"initScriptList,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_init_script_list_request.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_init_script_list_request.go
new file mode 100644
index 000000000..ca1dd66d7
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_init_script_list_request.go
@@ -0,0 +1,36 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type GetInitScriptListRequest struct {
+
+ // REGION코드
+RegionCode *string `json:"regionCode,omitempty"`
+
+ // OS유형코드
+OsTypeCode *string `json:"osTypeCode,omitempty"`
+
+ // 페이지번호
+PageNo *int32 `json:"pageNo,omitempty"`
+
+ // 페이지사이즈
+PageSize *int32 `json:"pageSize,omitempty"`
+
+ // 정렬대상
+SortedBy *string `json:"sortedBy,omitempty"`
+
+ // 정렬순서
+SortingOrder *string `json:"sortingOrder,omitempty"`
+
+ // 초기화스크립트이름
+InitScriptName *string `json:"initScriptName,omitempty"`
+
+ // 초기화스크립트번호리스트
+InitScriptNoList []*string `json:"initScriptNoList,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_init_script_list_response.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_init_script_list_response.go
new file mode 100644
index 000000000..b58f76a6d
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_init_script_list_response.go
@@ -0,0 +1,22 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type GetInitScriptListResponse struct {
+
+RequestId *string `json:"requestId,omitempty"`
+
+ReturnCode *string `json:"returnCode,omitempty"`
+
+ReturnMessage *string `json:"returnMessage,omitempty"`
+
+TotalRows *int32 `json:"totalRows,omitempty"`
+
+InitScriptList []*InitScript `json:"initScriptList,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_login_key_list_request.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_login_key_list_request.go
new file mode 100644
index 000000000..48df6146c
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_login_key_list_request.go
@@ -0,0 +1,21 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type GetLoginKeyListRequest struct {
+
+ // 키이름
+KeyName *string `json:"keyName,omitempty"`
+
+ // 페이지번호
+PageNo *int32 `json:"pageNo,omitempty"`
+
+ // 페이지사이즈
+PageSize *int32 `json:"pageSize,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_login_key_list_response.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_login_key_list_response.go
new file mode 100644
index 000000000..eba1de51a
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_login_key_list_response.go
@@ -0,0 +1,22 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type GetLoginKeyListResponse struct {
+
+RequestId *string `json:"requestId,omitempty"`
+
+ReturnCode *string `json:"returnCode,omitempty"`
+
+ReturnMessage *string `json:"returnMessage,omitempty"`
+
+TotalRows *int32 `json:"totalRows,omitempty"`
+
+LoginKeyList []*LoginKey `json:"loginKeyList,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_member_server_image_instance_detail_request.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_member_server_image_instance_detail_request.go
new file mode 100644
index 000000000..2aa09905e
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_member_server_image_instance_detail_request.go
@@ -0,0 +1,18 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type GetMemberServerImageInstanceDetailRequest struct {
+
+ // REGION코드
+RegionCode *string `json:"regionCode,omitempty"`
+
+ // 회원서버이미지인스턴스번호
+MemberServerImageInstanceNo *string `json:"memberServerImageInstanceNo,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_member_server_image_instance_detail_response.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_member_server_image_instance_detail_response.go
new file mode 100644
index 000000000..d0252ffa1
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_member_server_image_instance_detail_response.go
@@ -0,0 +1,22 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type GetMemberServerImageInstanceDetailResponse struct {
+
+RequestId *string `json:"requestId,omitempty"`
+
+ReturnCode *string `json:"returnCode,omitempty"`
+
+ReturnMessage *string `json:"returnMessage,omitempty"`
+
+TotalRows *int32 `json:"totalRows,omitempty"`
+
+MemberServerImageInstanceList []*MemberServerImageInstance `json:"memberServerImageInstanceList,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_member_server_image_instance_list_request.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_member_server_image_instance_list_request.go
new file mode 100644
index 000000000..2e1ce5b1b
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_member_server_image_instance_list_request.go
@@ -0,0 +1,39 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type GetMemberServerImageInstanceListRequest struct {
+
+ // REGION코드
+RegionCode *string `json:"regionCode,omitempty"`
+
+ // 회원서버이미지이름
+MemberServerImageName *string `json:"memberServerImageName,omitempty"`
+
+ // 회원서버이미지인스턴스상태코드
+MemberServerImageInstanceStatusCode *string `json:"memberServerImageInstanceStatusCode,omitempty"`
+
+ // 회원서버이미지인스턴스번호리스트
+MemberServerImageInstanceNoList []*string `json:"memberServerImageInstanceNoList,omitempty"`
+
+ // 플랫폼유형코드리스트
+PlatformTypeCodeList []*string `json:"platformTypeCodeList,omitempty"`
+
+ // 페이지번호
+PageNo *int32 `json:"pageNo,omitempty"`
+
+ // 페이지사이즈
+PageSize *int32 `json:"pageSize,omitempty"`
+
+ // 정렬대상
+SortedBy *string `json:"sortedBy,omitempty"`
+
+ // 정렬순서
+SortingOrder *string `json:"sortingOrder,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_member_server_image_instance_list_response.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_member_server_image_instance_list_response.go
new file mode 100644
index 000000000..063d9a65c
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_member_server_image_instance_list_response.go
@@ -0,0 +1,22 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type GetMemberServerImageInstanceListResponse struct {
+
+RequestId *string `json:"requestId,omitempty"`
+
+ReturnCode *string `json:"returnCode,omitempty"`
+
+ReturnMessage *string `json:"returnMessage,omitempty"`
+
+TotalRows *int32 `json:"totalRows,omitempty"`
+
+MemberServerImageInstanceList []*MemberServerImageInstance `json:"memberServerImageInstanceList,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_network_interface_detail_request.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_network_interface_detail_request.go
new file mode 100644
index 000000000..ca9238e34
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_network_interface_detail_request.go
@@ -0,0 +1,18 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type GetNetworkInterfaceDetailRequest struct {
+
+ // REGION코드
+RegionCode *string `json:"regionCode,omitempty"`
+
+ // 네트워크인터페이스번호
+NetworkInterfaceNo *string `json:"networkInterfaceNo"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_network_interface_detail_response.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_network_interface_detail_response.go
new file mode 100644
index 000000000..dc84b40d3
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_network_interface_detail_response.go
@@ -0,0 +1,22 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type GetNetworkInterfaceDetailResponse struct {
+
+RequestId *string `json:"requestId,omitempty"`
+
+ReturnCode *string `json:"returnCode,omitempty"`
+
+ReturnMessage *string `json:"returnMessage,omitempty"`
+
+TotalRows *int32 `json:"totalRows,omitempty"`
+
+NetworkInterfaceList []*NetworkInterface `json:"networkInterfaceList,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_network_interface_list_request.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_network_interface_list_request.go
new file mode 100644
index 000000000..fb54789e2
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_network_interface_list_request.go
@@ -0,0 +1,36 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type GetNetworkInterfaceListRequest struct {
+
+ // REGION코드
+RegionCode *string `json:"regionCode,omitempty"`
+
+ // 네트워크인터페이스번호리스트
+NetworkInterfaceNoList []*string `json:"networkInterfaceNoList,omitempty"`
+
+ // IP주소
+Ip *string `json:"ip,omitempty"`
+
+ // 네트워크인터페이스이름
+NetworkInterfaceName *string `json:"networkInterfaceName,omitempty"`
+
+ // 서버이름
+ServerName *string `json:"serverName,omitempty"`
+
+ // 서브넷이름
+SubnetName *string `json:"subnetName,omitempty"`
+
+ // 페이지번호
+PageNo *int32 `json:"pageNo,omitempty"`
+
+ // 페이지사이즈
+PageSize *int32 `json:"pageSize,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_network_interface_list_response.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_network_interface_list_response.go
new file mode 100644
index 000000000..6354f6b3a
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_network_interface_list_response.go
@@ -0,0 +1,22 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type GetNetworkInterfaceListResponse struct {
+
+RequestId *string `json:"requestId,omitempty"`
+
+ReturnCode *string `json:"returnCode,omitempty"`
+
+ReturnMessage *string `json:"returnMessage,omitempty"`
+
+TotalRows *int32 `json:"totalRows,omitempty"`
+
+NetworkInterfaceList []*NetworkInterface `json:"networkInterfaceList,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_placement_group_detail_request.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_placement_group_detail_request.go
new file mode 100644
index 000000000..a78d54db8
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_placement_group_detail_request.go
@@ -0,0 +1,18 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type GetPlacementGroupDetailRequest struct {
+
+ // REGION코드
+RegionCode *string `json:"regionCode,omitempty"`
+
+ // 물리배치그룹번호리스트
+PlacementGroupNo *string `json:"placementGroupNo"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_placement_group_detail_response.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_placement_group_detail_response.go
new file mode 100644
index 000000000..59fb5d795
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_placement_group_detail_response.go
@@ -0,0 +1,22 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type GetPlacementGroupDetailResponse struct {
+
+RequestId *string `json:"requestId,omitempty"`
+
+ReturnCode *string `json:"returnCode,omitempty"`
+
+ReturnMessage *string `json:"returnMessage,omitempty"`
+
+TotalRows *int32 `json:"totalRows,omitempty"`
+
+PlacementGroupList []*PlacementGroup `json:"placementGroupList,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_placement_group_list_request.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_placement_group_list_request.go
new file mode 100644
index 000000000..0161aba85
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_placement_group_list_request.go
@@ -0,0 +1,21 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type GetPlacementGroupListRequest struct {
+
+ // REGION코드
+RegionCode *string `json:"regionCode,omitempty"`
+
+ // 물리배치그룹이름
+PlacementGroupName *string `json:"placementGroupName,omitempty"`
+
+ // 물리배치그룹번호리스트
+PlacementGroupNoList []*string `json:"placementGroupNoList,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_placement_group_list_response.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_placement_group_list_response.go
new file mode 100644
index 000000000..48f279f9d
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_placement_group_list_response.go
@@ -0,0 +1,22 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type GetPlacementGroupListResponse struct {
+
+RequestId *string `json:"requestId,omitempty"`
+
+ReturnCode *string `json:"returnCode,omitempty"`
+
+ReturnMessage *string `json:"returnMessage,omitempty"`
+
+TotalRows *int32 `json:"totalRows,omitempty"`
+
+PlacementGroupList []*PlacementGroup `json:"placementGroupList,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_public_ip_instance_detail_request.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_public_ip_instance_detail_request.go
new file mode 100644
index 000000000..811d21c21
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_public_ip_instance_detail_request.go
@@ -0,0 +1,18 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type GetPublicIpInstanceDetailRequest struct {
+
+ // REGION코드
+RegionCode *string `json:"regionCode,omitempty"`
+
+ // 공인IP인스턴스번호
+PublicIpInstanceNo *string `json:"publicIpInstanceNo"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_public_ip_instance_detail_response.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_public_ip_instance_detail_response.go
new file mode 100644
index 000000000..fd9f963dd
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_public_ip_instance_detail_response.go
@@ -0,0 +1,22 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type GetPublicIpInstanceDetailResponse struct {
+
+RequestId *string `json:"requestId,omitempty"`
+
+ReturnCode *string `json:"returnCode,omitempty"`
+
+ReturnMessage *string `json:"returnMessage,omitempty"`
+
+TotalRows *int32 `json:"totalRows,omitempty"`
+
+PublicIpInstanceList []*PublicIpInstance `json:"publicIpInstanceList,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_public_ip_instance_list_request.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_public_ip_instance_list_request.go
new file mode 100644
index 000000000..434da59c4
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_public_ip_instance_list_request.go
@@ -0,0 +1,42 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type GetPublicIpInstanceListRequest struct {
+
+ // REGION코드
+RegionCode *string `json:"regionCode,omitempty"`
+
+ // 공인IP인스턴스번호리스트
+PublicIpInstanceNoList []*string `json:"publicIpInstanceNoList,omitempty"`
+
+ // 공인IP주소
+PublicIp *string `json:"publicIp,omitempty"`
+
+ // 비공인IP주소
+PrivateIp *string `json:"privateIp,omitempty"`
+
+ // 할당여부
+IsAssociated *bool `json:"isAssociated,omitempty"`
+
+ // 서버이름
+ServerName *string `json:"serverName,omitempty"`
+
+ // 공인IP인스턴스상태코드
+PublicIpInstanceStatusCode *string `json:"publicIpInstanceStatusCode,omitempty"`
+
+ // 페이지번호
+PageNo *int32 `json:"pageNo,omitempty"`
+
+ // 페이지사이즈
+PageSize *int32 `json:"pageSize,omitempty"`
+
+ // VPC번호
+VpcNo *string `json:"vpcNo,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_public_ip_instance_list_response.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_public_ip_instance_list_response.go
new file mode 100644
index 000000000..b2674beb3
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_public_ip_instance_list_response.go
@@ -0,0 +1,22 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type GetPublicIpInstanceListResponse struct {
+
+RequestId *string `json:"requestId,omitempty"`
+
+ReturnCode *string `json:"returnCode,omitempty"`
+
+ReturnMessage *string `json:"returnMessage,omitempty"`
+
+TotalRows *int32 `json:"totalRows,omitempty"`
+
+PublicIpInstanceList []*PublicIpInstance `json:"publicIpInstanceList,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_public_ip_target_server_instance_list_request.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_public_ip_target_server_instance_list_request.go
new file mode 100644
index 000000000..1509715a4
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_public_ip_target_server_instance_list_request.go
@@ -0,0 +1,15 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type GetPublicIpTargetServerInstanceListRequest struct {
+
+ // REGION코드
+RegionCode *string `json:"regionCode,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_public_ip_target_server_instance_list_response.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_public_ip_target_server_instance_list_response.go
new file mode 100644
index 000000000..b1266dd67
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_public_ip_target_server_instance_list_response.go
@@ -0,0 +1,22 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type GetPublicIpTargetServerInstanceListResponse struct {
+
+RequestId *string `json:"requestId,omitempty"`
+
+ReturnCode *string `json:"returnCode,omitempty"`
+
+ReturnMessage *string `json:"returnMessage,omitempty"`
+
+TotalRows *int32 `json:"totalRows,omitempty"`
+
+ServerInstanceList []*ServerInstance `json:"serverInstanceList,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_region_list_request.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_region_list_request.go
new file mode 100644
index 000000000..eb05eb509
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_region_list_request.go
@@ -0,0 +1,12 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type GetRegionListRequest struct {
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_region_list_response.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_region_list_response.go
new file mode 100644
index 000000000..71c76d67f
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_region_list_response.go
@@ -0,0 +1,22 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type GetRegionListResponse struct {
+
+RequestId *string `json:"requestId,omitempty"`
+
+ReturnCode *string `json:"returnCode,omitempty"`
+
+ReturnMessage *string `json:"returnMessage,omitempty"`
+
+TotalRows *int32 `json:"totalRows,omitempty"`
+
+RegionList []*Region `json:"regionList,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_root_password_request.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_root_password_request.go
new file mode 100644
index 000000000..e586d09a6
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_root_password_request.go
@@ -0,0 +1,21 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type GetRootPasswordRequest struct {
+
+ // REGION코드
+RegionCode *string `json:"regionCode,omitempty"`
+
+ // 서버인스턴스번호
+ServerInstanceNo *string `json:"serverInstanceNo"`
+
+ // 개인키
+PrivateKey *string `json:"privateKey,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_root_password_response.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_root_password_response.go
new file mode 100644
index 000000000..eaa49c0a2
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_root_password_response.go
@@ -0,0 +1,23 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type GetRootPasswordResponse struct {
+
+RequestId *string `json:"requestId,omitempty"`
+
+ReturnCode *string `json:"returnCode,omitempty"`
+
+ReturnMessage *string `json:"returnMessage,omitempty"`
+
+TotalRows *int32 `json:"totalRows,omitempty"`
+
+ // 루트패스워드
+RootPassword *string `json:"rootPassword,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_root_password_server_instance_list_request.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_root_password_server_instance_list_request.go
new file mode 100644
index 000000000..814250cc4
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_root_password_server_instance_list_request.go
@@ -0,0 +1,18 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type GetRootPasswordServerInstanceListRequest struct {
+
+ // REGION코드
+RegionCode *string `json:"regionCode,omitempty"`
+
+ // 루트패스워드서버인스턴스리스트
+RootPasswordServerInstanceList []*RootPasswordServerInstanceParameter `json:"rootPasswordServerInstanceList"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_root_password_server_instance_list_response.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_root_password_server_instance_list_response.go
new file mode 100644
index 000000000..4f0c98ac9
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_root_password_server_instance_list_response.go
@@ -0,0 +1,22 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type GetRootPasswordServerInstanceListResponse struct {
+
+RequestId *string `json:"requestId,omitempty"`
+
+ReturnCode *string `json:"returnCode,omitempty"`
+
+ReturnMessage *string `json:"returnMessage,omitempty"`
+
+TotalRows *int32 `json:"totalRows,omitempty"`
+
+RootPasswordServerInstanceList []*RootPasswordServerInstance `json:"rootPasswordServerInstanceList,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_server_image_product_list_request.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_server_image_product_list_request.go
new file mode 100644
index 000000000..6104029ba
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_server_image_product_list_request.go
@@ -0,0 +1,27 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type GetServerImageProductListRequest struct {
+
+ // REGION코드
+RegionCode *string `json:"regionCode,omitempty"`
+
+ // REGION코드
+BlockStorageSize *int32 `json:"blockStorageSize,omitempty"`
+
+ // 제외할상품코드
+ExclusionProductCode *string `json:"exclusionProductCode,omitempty"`
+
+ // 상품코드
+ProductCode *string `json:"productCode,omitempty"`
+
+ // 플랫폼유형코드리스트
+PlatformTypeCodeList []*string `json:"platformTypeCodeList,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_server_image_product_list_response.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_server_image_product_list_response.go
new file mode 100644
index 000000000..bf2fbf32a
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_server_image_product_list_response.go
@@ -0,0 +1,22 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type GetServerImageProductListResponse struct {
+
+RequestId *string `json:"requestId,omitempty"`
+
+ReturnCode *string `json:"returnCode,omitempty"`
+
+ReturnMessage *string `json:"returnMessage,omitempty"`
+
+ProductList []*Product `json:"productList,omitempty"`
+
+TotalRows *int32 `json:"totalRows,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_server_instance_detail_request.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_server_instance_detail_request.go
new file mode 100644
index 000000000..aade6d2b2
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_server_instance_detail_request.go
@@ -0,0 +1,18 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type GetServerInstanceDetailRequest struct {
+
+ // REGION코드
+RegionCode *string `json:"regionCode,omitempty"`
+
+ // 서버인스턴스번호
+ServerInstanceNo *string `json:"serverInstanceNo"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_server_instance_detail_response.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_server_instance_detail_response.go
new file mode 100644
index 000000000..53467d59f
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_server_instance_detail_response.go
@@ -0,0 +1,22 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type GetServerInstanceDetailResponse struct {
+
+RequestId *string `json:"requestId,omitempty"`
+
+ReturnCode *string `json:"returnCode,omitempty"`
+
+ReturnMessage *string `json:"returnMessage,omitempty"`
+
+TotalRows *int32 `json:"totalRows,omitempty"`
+
+ServerInstanceList []*ServerInstance `json:"serverInstanceList,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_server_instance_list_request.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_server_instance_list_request.go
new file mode 100644
index 000000000..8b4777b92
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_server_instance_list_request.go
@@ -0,0 +1,51 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type GetServerInstanceListRequest struct {
+
+ // REGION코드
+RegionCode *string `json:"regionCode,omitempty"`
+
+ // 서버인스턴스번호리스트
+ServerInstanceNoList []*string `json:"serverInstanceNoList,omitempty"`
+
+ // VPC번호
+VpcNo *string `json:"vpcNo,omitempty"`
+
+ // 페이지번호
+PageNo *int32 `json:"pageNo,omitempty"`
+
+ // 페이지사이즈
+PageSize *int32 `json:"pageSize,omitempty"`
+
+ // 서버인스턴스상태코드
+ServerInstanceStatusCode *string `json:"serverInstanceStatusCode,omitempty"`
+
+ // 기본블록스토리지디스크유형코드
+BaseBlockStorageDiskTypeCode *string `json:"baseBlockStorageDiskTypeCode,omitempty"`
+
+ // 기본블록스토리지디스크상세유형코드
+BaseBlockStorageDiskDetailTypeCode *string `json:"baseBlockStorageDiskDetailTypeCode,omitempty"`
+
+ // 서버인스턴스이름
+ServerName *string `json:"serverName,omitempty"`
+
+ // IP주소
+Ip *string `json:"ip,omitempty"`
+
+ // 정렬대상
+SortedBy *string `json:"sortedBy,omitempty"`
+
+ // 정렬순서
+SortingOrder *string `json:"sortingOrder,omitempty"`
+
+ // 물리배치그룹번호리스트
+PlacementGroupNoList []*string `json:"placementGroupNoList,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_server_instance_list_response.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_server_instance_list_response.go
new file mode 100644
index 000000000..172436b36
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_server_instance_list_response.go
@@ -0,0 +1,22 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type GetServerInstanceListResponse struct {
+
+RequestId *string `json:"requestId,omitempty"`
+
+ReturnCode *string `json:"returnCode,omitempty"`
+
+ReturnMessage *string `json:"returnMessage,omitempty"`
+
+TotalRows *int32 `json:"totalRows,omitempty"`
+
+ServerInstanceList []*ServerInstance `json:"serverInstanceList,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_server_product_list_request.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_server_product_list_request.go
new file mode 100644
index 000000000..bd32e95bf
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_server_product_list_request.go
@@ -0,0 +1,27 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type GetServerProductListRequest struct {
+
+ // REGION코드
+RegionCode *string `json:"regionCode,omitempty"`
+
+ // ZONE코드
+ZoneCode *string `json:"zoneCode,omitempty"`
+
+ // 서버이미지상품코드
+ServerImageProductCode *string `json:"serverImageProductCode"`
+
+ // 제외할상품코드
+ExclusionProductCode *string `json:"exclusionProductCode,omitempty"`
+
+ // 상품코드
+ProductCode *string `json:"productCode,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_server_product_list_response.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_server_product_list_response.go
new file mode 100644
index 000000000..d20987616
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_server_product_list_response.go
@@ -0,0 +1,22 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type GetServerProductListResponse struct {
+
+RequestId *string `json:"requestId,omitempty"`
+
+ReturnCode *string `json:"returnCode,omitempty"`
+
+ReturnMessage *string `json:"returnMessage,omitempty"`
+
+ProductList []*Product `json:"productList,omitempty"`
+
+TotalRows *int32 `json:"totalRows,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_zone_list_request.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_zone_list_request.go
new file mode 100644
index 000000000..3fe6305ec
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_zone_list_request.go
@@ -0,0 +1,15 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type GetZoneListRequest struct {
+
+ // REGION코드
+RegionCode *string `json:"regionCode,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_zone_list_response.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_zone_list_response.go
new file mode 100644
index 000000000..829be4905
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/get_zone_list_response.go
@@ -0,0 +1,22 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type GetZoneListResponse struct {
+
+RequestId *string `json:"requestId,omitempty"`
+
+ReturnCode *string `json:"returnCode,omitempty"`
+
+ReturnMessage *string `json:"returnMessage,omitempty"`
+
+TotalRows *int32 `json:"totalRows,omitempty"`
+
+ZoneList []*Zone `json:"zoneList,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/import_login_key_request.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/import_login_key_request.go
new file mode 100644
index 000000000..c206f1c90
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/import_login_key_request.go
@@ -0,0 +1,18 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type ImportLoginKeyRequest struct {
+
+ // 키이름
+KeyName *string `json:"keyName,omitempty"`
+
+ // 공개키
+PublicKey *string `json:"publicKey"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/import_login_key_response.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/import_login_key_response.go
new file mode 100644
index 000000000..04c0fe3a9
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/import_login_key_response.go
@@ -0,0 +1,22 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type ImportLoginKeyResponse struct {
+
+RequestId *string `json:"requestId,omitempty"`
+
+ReturnCode *string `json:"returnCode,omitempty"`
+
+ReturnMessage *string `json:"returnMessage,omitempty"`
+
+TotalRows *int32 `json:"totalRows,omitempty"`
+
+LoginKeyList []*LoginKey `json:"loginKeyList,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/init_script.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/init_script.go
new file mode 100644
index 000000000..b923572e3
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/init_script.go
@@ -0,0 +1,30 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type InitScript struct {
+
+ // 초기화스크립트번호
+InitScriptNo *string `json:"initScriptNo,omitempty"`
+
+ // 초기화스크립트이름
+InitScriptName *string `json:"initScriptName,omitempty"`
+
+ // 생성일시
+CreateDate *string `json:"createDate,omitempty"`
+
+ // 초기화스크립트설명
+InitScriptDescription *string `json:"initScriptDescription,omitempty"`
+
+ // 초기화스크립트내용
+InitScriptContent *string `json:"initScriptContent,omitempty"`
+
+ // OS유형
+OsType *CommonCode `json:"osType,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/login_key.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/login_key.go
new file mode 100644
index 000000000..02d37e300
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/login_key.go
@@ -0,0 +1,24 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type LoginKey struct {
+
+ // 키이름
+KeyName *string `json:"keyName,omitempty"`
+
+ // 핑거프린트
+Fingerprint *string `json:"fingerprint,omitempty"`
+
+ // 공개키
+PublicKey *string `json:"publicKey,omitempty"`
+
+ // 생성일시
+CreateDate *string `json:"createDate,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/member_server_image_instance.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/member_server_image_instance.go
new file mode 100644
index 000000000..475cfd894
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/member_server_image_instance.go
@@ -0,0 +1,45 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type MemberServerImageInstance struct {
+
+ // 회원서버이미지인스턴스번호
+MemberServerImageInstanceNo *string `json:"memberServerImageInstanceNo,omitempty"`
+
+ // 회원서버이미지이름
+MemberServerImageName *string `json:"memberServerImageName,omitempty"`
+
+ // 회원서버이미지설명
+MemberServerImageDescription *string `json:"memberServerImageDescription,omitempty"`
+
+ // 원본서버인스턴스번호
+OriginalServerInstanceNo *string `json:"originalServerInstanceNo,omitempty"`
+
+ // 원본서버이미지상품코드
+OriginalServerImageProductCode *string `json:"originalServerImageProductCode,omitempty"`
+
+ // 회원서버이미지인스턴스상태
+MemberServerImageInstanceStatus *CommonCode `json:"memberServerImageInstanceStatus,omitempty"`
+
+ // 회원서버이미지인스턴스OP
+MemberServerImageInstanceOperation *CommonCode `json:"memberServerImageInstanceOperation,omitempty"`
+
+ // 회원서버이미지인스턴스상태이름
+MemberServerImageInstanceStatusName *string `json:"memberServerImageInstanceStatusName,omitempty"`
+
+ // 생성일시
+CreateDate *string `json:"createDate,omitempty"`
+
+ // 회원서버이미지블록스토리지총개수
+MemberServerImageBlockStorageTotalRows *int32 `json:"memberServerImageBlockStorageTotalRows,omitempty"`
+
+ // 회원서버이미지블록스토리지총사이즈
+MemberServerImageBlockStorageTotalSize *int64 `json:"memberServerImageBlockStorageTotalSize,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/network_interface.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/network_interface.go
new file mode 100644
index 000000000..b152d734c
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/network_interface.go
@@ -0,0 +1,48 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type NetworkInterface struct {
+
+ // 네트워크인터페이스번호
+NetworkInterfaceNo *string `json:"networkInterfaceNo,omitempty"`
+
+ // 네트워크인터페이스이름
+NetworkInterfaceName *string `json:"networkInterfaceName,omitempty"`
+
+ // 서브넷번호
+SubnetNo *string `json:"subnetNo,omitempty"`
+
+ // 디바이스반납시자동반납여부
+DeleteOnTermination *bool `json:"deleteOnTermination,omitempty"`
+
+ // Default여부
+IsDefault *bool `json:"isDefault,omitempty"`
+
+ // 디바이스이름
+DeviceName *string `json:"deviceName,omitempty"`
+
+ // 네트워크인터페이스상태
+NetworkInterfaceStatus *CommonCode `json:"networkInterfaceStatus,omitempty"`
+
+ // 인스턴스유형
+InstanceType *CommonCode `json:"instanceType,omitempty"`
+
+ // 인스턴스번호
+InstanceNo *string `json:"instanceNo,omitempty"`
+
+ // IP주소
+Ip *string `json:"ip,omitempty"`
+
+ // ACG번호리스트
+AccessControlGroupNoList []*string `json:"accessControlGroupNoList,omitempty"`
+
+ // 네트워크인터페이스설명
+NetworkInterfaceDescription *string `json:"networkInterfaceDescription,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/network_interface_parameter.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/network_interface_parameter.go
new file mode 100644
index 000000000..2d3a46f2f
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/network_interface_parameter.go
@@ -0,0 +1,27 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type NetworkInterfaceParameter struct {
+
+ // 네트워크인터페이스순서
+NetworkInterfaceOrder *int32 `json:"networkInterfaceOrder"`
+
+ // 네트워크인터페이스번호
+NetworkInterfaceNo *string `json:"networkInterfaceNo,omitempty"`
+
+ // 서브넷번호
+SubnetNo *string `json:"subnetNo,omitempty"`
+
+ // IP주소
+Ip *string `json:"ip,omitempty"`
+
+ // ACG번호리스트
+AccessControlGroupNoList []*string `json:"accessControlGroupNoList"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/placement_group.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/placement_group.go
new file mode 100644
index 000000000..e4025791a
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/placement_group.go
@@ -0,0 +1,21 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type PlacementGroup struct {
+
+ // 물리배치그룹번호
+PlacementGroupNo *string `json:"placementGroupNo,omitempty"`
+
+ // 물리배치그룹이름
+PlacementGroupName *string `json:"placementGroupName,omitempty"`
+
+ // 물리배치그룹유형
+PlacementGroupType *CommonCode `json:"placementGroupType,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/product.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/product.go
new file mode 100644
index 000000000..8e57f52b2
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/product.go
@@ -0,0 +1,57 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type Product struct {
+
+ // 상품코드
+ProductCode *string `json:"productCode,omitempty"`
+
+ // 상품이름
+ProductName *string `json:"productName,omitempty"`
+
+ // 상품유형
+ProductType *CommonCode `json:"productType,omitempty"`
+
+ // 상품설명
+ProductDescription *string `json:"productDescription,omitempty"`
+
+ // 인프라자원유형
+InfraResourceType *CommonCode `json:"infraResourceType,omitempty"`
+
+ // 인프라자원상세유형
+InfraResourceDetailType *CommonCode `json:"infraResourceDetailType,omitempty"`
+
+ // CPU개수
+CpuCount *int32 `json:"cpuCount,omitempty"`
+
+ // 메모리사이즈
+MemorySize *int64 `json:"memorySize,omitempty"`
+
+ // 기본블록스토리지사이즈
+BaseBlockStorageSize *int64 `json:"baseBlockStorageSize,omitempty"`
+
+ // 플랫폼유형
+PlatformType *CommonCode `json:"platformType,omitempty"`
+
+ // OS정보
+OsInformation *string `json:"osInformation,omitempty"`
+
+ // 디스크유형
+DiskType *CommonCode `json:"diskType,omitempty"`
+
+ // DB유형코드
+DbKindCode *string `json:"dbKindCode,omitempty"`
+
+ // 추가블록스토리지사이즈
+AddBlockStorageSize *int64 `json:"addBlockStorageSize,omitempty"`
+
+ // 세대코드
+GenerationCode *string `json:"generationCode,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/public_ip_instance.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/public_ip_instance.go
new file mode 100644
index 000000000..22dfc1ed1
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/public_ip_instance.go
@@ -0,0 +1,45 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type PublicIpInstance struct {
+
+ // 공인IP인스턴스번호
+PublicIpInstanceNo *string `json:"publicIpInstanceNo,omitempty"`
+
+ // 공인IP주소
+PublicIp *string `json:"publicIp,omitempty"`
+
+ // 공인IP설명
+PublicIpDescription *string `json:"publicIpDescription,omitempty"`
+
+ // 생성일시
+CreateDate *string `json:"createDate,omitempty"`
+
+ // 공인IP인스턴스상태이름
+PublicIpInstanceStatusName *string `json:"publicIpInstanceStatusName,omitempty"`
+
+ // 공인IP인스턴스상태
+PublicIpInstanceStatus *CommonCode `json:"publicIpInstanceStatus,omitempty"`
+
+ // 서버인스턴스번호
+ServerInstanceNo *string `json:"serverInstanceNo,omitempty"`
+
+ // 서버이름
+ServerName *string `json:"serverName,omitempty"`
+
+ // 사설IP주소
+PrivateIp *string `json:"privateIp,omitempty"`
+
+ // 마지막수정일시
+LastModifyDate *string `json:"lastModifyDate,omitempty"`
+
+ // 공인IP인스턴스OP
+PublicIpInstanceOperation *CommonCode `json:"publicIpInstanceOperation,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/reboot_server_instances_request.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/reboot_server_instances_request.go
new file mode 100644
index 000000000..879c7c6a0
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/reboot_server_instances_request.go
@@ -0,0 +1,18 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type RebootServerInstancesRequest struct {
+
+ // REGION코드
+RegionCode *string `json:"regionCode,omitempty"`
+
+ // 서버인스턴스번호리스트
+ServerInstanceNoList []*string `json:"serverInstanceNoList"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/reboot_server_instances_response.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/reboot_server_instances_response.go
new file mode 100644
index 000000000..e46f8b3ae
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/reboot_server_instances_response.go
@@ -0,0 +1,22 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type RebootServerInstancesResponse struct {
+
+RequestId *string `json:"requestId,omitempty"`
+
+ReturnCode *string `json:"returnCode,omitempty"`
+
+ReturnMessage *string `json:"returnMessage,omitempty"`
+
+TotalRows *int32 `json:"totalRows,omitempty"`
+
+ServerInstanceList []*ServerInstance `json:"serverInstanceList,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/region.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/region.go
new file mode 100644
index 000000000..6ca87516e
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/region.go
@@ -0,0 +1,18 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type Region struct {
+
+ // REGION코드
+RegionCode *string `json:"regionCode,omitempty"`
+
+ // REGION이름
+RegionName *string `json:"regionName,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/remove_access_control_group_inbound_rule_request.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/remove_access_control_group_inbound_rule_request.go
new file mode 100644
index 000000000..c129a17cb
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/remove_access_control_group_inbound_rule_request.go
@@ -0,0 +1,24 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type RemoveAccessControlGroupInboundRuleRequest struct {
+
+ // REGION코드
+RegionCode *string `json:"regionCode,omitempty"`
+
+ // ACG번호
+AccessControlGroupNo *string `json:"accessControlGroupNo"`
+
+ // VPC번호
+VpcNo *string `json:"vpcNo"`
+
+ // ACGRule리스트
+AccessControlGroupRuleList []*RemoveAccessControlGroupRuleParameter `json:"accessControlGroupRuleList"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/remove_access_control_group_inbound_rule_response.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/remove_access_control_group_inbound_rule_response.go
new file mode 100644
index 000000000..d387fa4e4
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/remove_access_control_group_inbound_rule_response.go
@@ -0,0 +1,22 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type RemoveAccessControlGroupInboundRuleResponse struct {
+
+RequestId *string `json:"requestId,omitempty"`
+
+ReturnCode *string `json:"returnCode,omitempty"`
+
+ReturnMessage *string `json:"returnMessage,omitempty"`
+
+TotalRows *int32 `json:"totalRows,omitempty"`
+
+AccessControlGroupRuleList []*AccessControlGroupRule `json:"accessControlGroupRuleList,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/remove_access_control_group_outbound_rule_request.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/remove_access_control_group_outbound_rule_request.go
new file mode 100644
index 000000000..4001da170
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/remove_access_control_group_outbound_rule_request.go
@@ -0,0 +1,24 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type RemoveAccessControlGroupOutboundRuleRequest struct {
+
+ // REGION코드
+RegionCode *string `json:"regionCode,omitempty"`
+
+ // ACG번호
+AccessControlGroupNo *string `json:"accessControlGroupNo"`
+
+ // VPC번호
+VpcNo *string `json:"vpcNo"`
+
+ // ACGRule리스트
+AccessControlGroupRuleList []*RemoveAccessControlGroupRuleParameter `json:"accessControlGroupRuleList"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/remove_access_control_group_outbound_rule_response.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/remove_access_control_group_outbound_rule_response.go
new file mode 100644
index 000000000..09163b59a
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/remove_access_control_group_outbound_rule_response.go
@@ -0,0 +1,22 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type RemoveAccessControlGroupOutboundRuleResponse struct {
+
+RequestId *string `json:"requestId,omitempty"`
+
+ReturnCode *string `json:"returnCode,omitempty"`
+
+ReturnMessage *string `json:"returnMessage,omitempty"`
+
+TotalRows *int32 `json:"totalRows,omitempty"`
+
+AccessControlGroupRuleList []*AccessControlGroupRule `json:"accessControlGroupRuleList,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/remove_access_control_group_rule_parameter.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/remove_access_control_group_rule_parameter.go
new file mode 100644
index 000000000..e59b505a0
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/remove_access_control_group_rule_parameter.go
@@ -0,0 +1,24 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type RemoveAccessControlGroupRuleParameter struct {
+
+ // IP블록
+IpBlock *string `json:"ipBlock,omitempty"`
+
+ // 접근소스ACG
+AccessControlGroupSequence *string `json:"accessControlGroupSequence,omitempty"`
+
+ // 포트범위
+PortRange *string `json:"portRange,omitempty"`
+
+ // 프로토콜유형코드
+ProtocolTypeCode *string `json:"protocolTypeCode"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/remove_network_interface_access_control_group_request.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/remove_network_interface_access_control_group_request.go
new file mode 100644
index 000000000..c32781f27
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/remove_network_interface_access_control_group_request.go
@@ -0,0 +1,21 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type RemoveNetworkInterfaceAccessControlGroupRequest struct {
+
+ // REGION코드
+RegionCode *string `json:"regionCode,omitempty"`
+
+ // ACG번호리스트
+AccessControlGroupNoList []*string `json:"accessControlGroupNoList"`
+
+ // 네트워크인터페이스번호
+NetworkInterfaceNo *string `json:"networkInterfaceNo"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/remove_network_interface_access_control_group_response.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/remove_network_interface_access_control_group_response.go
new file mode 100644
index 000000000..624df78b0
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/remove_network_interface_access_control_group_response.go
@@ -0,0 +1,22 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type RemoveNetworkInterfaceAccessControlGroupResponse struct {
+
+RequestId *string `json:"requestId,omitempty"`
+
+ReturnCode *string `json:"returnCode,omitempty"`
+
+ReturnMessage *string `json:"returnMessage,omitempty"`
+
+TotalRows *int32 `json:"totalRows,omitempty"`
+
+NetworkInterfaceList []*NetworkInterface `json:"networkInterfaceList,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/remove_placement_group_server_instance_request.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/remove_placement_group_server_instance_request.go
new file mode 100644
index 000000000..5de5d4203
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/remove_placement_group_server_instance_request.go
@@ -0,0 +1,21 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type RemovePlacementGroupServerInstanceRequest struct {
+
+ // REGION코드
+RegionCode *string `json:"regionCode,omitempty"`
+
+ // 물리배치그룹번호
+PlacementGroupNo *string `json:"placementGroupNo"`
+
+ // 서버인스턴스번호
+ServerInstanceNo *string `json:"serverInstanceNo"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/remove_placement_group_server_instance_response.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/remove_placement_group_server_instance_response.go
new file mode 100644
index 000000000..f4569756a
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/remove_placement_group_server_instance_response.go
@@ -0,0 +1,22 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type RemovePlacementGroupServerInstanceResponse struct {
+
+RequestId *string `json:"requestId,omitempty"`
+
+ReturnCode *string `json:"returnCode,omitempty"`
+
+ReturnMessage *string `json:"returnMessage,omitempty"`
+
+TotalRows *int32 `json:"totalRows,omitempty"`
+
+ServerInstanceList []*ServerInstance `json:"serverInstanceList,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/root_password_server_instance.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/root_password_server_instance.go
new file mode 100644
index 000000000..f5ebb6a68
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/root_password_server_instance.go
@@ -0,0 +1,18 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type RootPasswordServerInstance struct {
+
+ // 루트패스워드
+RootPassword *string `json:"rootPassword,omitempty"`
+
+ // 서버인스턴스번호
+ServerInstanceNo *string `json:"serverInstanceNo,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/root_password_server_instance_parameter.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/root_password_server_instance_parameter.go
new file mode 100644
index 000000000..424c90d24
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/root_password_server_instance_parameter.go
@@ -0,0 +1,18 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type RootPasswordServerInstanceParameter struct {
+
+ // 서버인스턴스번호
+ServerInstanceNo *string `json:"serverInstanceNo"`
+
+ // 개인키
+PrivateKey *string `json:"privateKey,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/server_instance.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/server_instance.go
new file mode 100644
index 000000000..c96f754a1
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/server_instance.go
@@ -0,0 +1,93 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type ServerInstance struct {
+
+ // 서버인스턴스번호
+ServerInstanceNo *string `json:"serverInstanceNo,omitempty"`
+
+ // 서버이름
+ServerName *string `json:"serverName,omitempty"`
+
+ // 서버설명
+ServerDescription *string `json:"serverDescription,omitempty"`
+
+ // CPU개수
+CpuCount *int32 `json:"cpuCount,omitempty"`
+
+ // 메모리사이즈
+MemorySize *int64 `json:"memorySize,omitempty"`
+
+ // 플랫폼유형
+PlatformType *CommonCode `json:"platformType,omitempty"`
+
+ // 로그인키이름
+LoginKeyName *string `json:"loginKeyName,omitempty"`
+
+ // 공인IP인스턴스번호
+PublicIpInstanceNo *string `json:"publicIpInstanceNo,omitempty"`
+
+ // 공인IP주소
+PublicIp *string `json:"publicIp,omitempty"`
+
+ // 서버인스턴스상태
+ServerInstanceStatus *CommonCode `json:"serverInstanceStatus,omitempty"`
+
+ // 서버인스턴스OP
+ServerInstanceOperation *CommonCode `json:"serverInstanceOperation,omitempty"`
+
+ // 서버인스턴스상태이름
+ServerInstanceStatusName *string `json:"serverInstanceStatusName,omitempty"`
+
+ // 생성일시
+CreateDate *string `json:"createDate,omitempty"`
+
+ // 업시간
+Uptime *string `json:"uptime,omitempty"`
+
+ // 서버이미지상품코드
+ServerImageProductCode *string `json:"serverImageProductCode,omitempty"`
+
+ // 서버상품코드
+ServerProductCode *string `json:"serverProductCode,omitempty"`
+
+ // 서버반납보호설정여부
+IsProtectServerTermination *bool `json:"isProtectServerTermination,omitempty"`
+
+ // ZONE코드
+ZoneCode *string `json:"zoneCode,omitempty"`
+
+ // REGION코드
+RegionCode *string `json:"regionCode,omitempty"`
+
+ // VPC번호
+VpcNo *string `json:"vpcNo,omitempty"`
+
+ // 서브넷번호
+SubnetNo *string `json:"subnetNo,omitempty"`
+
+ // 네트워크인터페이스번호리스트
+NetworkInterfaceNoList []*string `json:"networkInterfaceNoList,omitempty"`
+
+ // 초기화스크립트번호
+InitScriptNo *string `json:"initScriptNo,omitempty"`
+
+ // 서버인스턴스유형
+ServerInstanceType *CommonCode `json:"serverInstanceType,omitempty"`
+
+ // 기본블록스토리지디스크유형
+BaseBlockStorageDiskType *CommonCode `json:"baseBlockStorageDiskType,omitempty"`
+
+ // 기본블록스토리지디스크상세유형
+BaseBlockStorageDiskDetailType *CommonCode `json:"baseBlockStorageDiskDetailType,omitempty"`
+
+ // 물리배치그룹번호
+PlacementGroupNo *string `json:"placementGroupNo,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/start_server_instances_request.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/start_server_instances_request.go
new file mode 100644
index 000000000..2fc3e742c
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/start_server_instances_request.go
@@ -0,0 +1,18 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type StartServerInstancesRequest struct {
+
+ // REGION코드
+RegionCode *string `json:"regionCode,omitempty"`
+
+ // 서버인스턴스번호리스트
+ServerInstanceNoList []*string `json:"serverInstanceNoList"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/start_server_instances_response.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/start_server_instances_response.go
new file mode 100644
index 000000000..5906ca5e1
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/start_server_instances_response.go
@@ -0,0 +1,22 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type StartServerInstancesResponse struct {
+
+RequestId *string `json:"requestId,omitempty"`
+
+ReturnCode *string `json:"returnCode,omitempty"`
+
+ReturnMessage *string `json:"returnMessage,omitempty"`
+
+TotalRows *int32 `json:"totalRows,omitempty"`
+
+ServerInstanceList []*ServerInstance `json:"serverInstanceList,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/stop_server_instances_request.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/stop_server_instances_request.go
new file mode 100644
index 000000000..85b91e0b5
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/stop_server_instances_request.go
@@ -0,0 +1,18 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type StopServerInstancesRequest struct {
+
+ // REGION코드
+RegionCode *string `json:"regionCode,omitempty"`
+
+ // 서버인스턴스번호리스트
+ServerInstanceNoList []*string `json:"serverInstanceNoList"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/stop_server_instances_response.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/stop_server_instances_response.go
new file mode 100644
index 000000000..25bad71c3
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/stop_server_instances_response.go
@@ -0,0 +1,22 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type StopServerInstancesResponse struct {
+
+RequestId *string `json:"requestId,omitempty"`
+
+ReturnCode *string `json:"returnCode,omitempty"`
+
+ReturnMessage *string `json:"returnMessage,omitempty"`
+
+TotalRows *int32 `json:"totalRows,omitempty"`
+
+ServerInstanceList []*ServerInstance `json:"serverInstanceList,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/terminate_server_instances_request.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/terminate_server_instances_request.go
new file mode 100644
index 000000000..29b4f4e13
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/terminate_server_instances_request.go
@@ -0,0 +1,18 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type TerminateServerInstancesRequest struct {
+
+ // REGION코드
+RegionCode *string `json:"regionCode,omitempty"`
+
+ // 서버인스턴스번호리스트
+ServerInstanceNoList []*string `json:"serverInstanceNoList"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/terminate_server_instances_response.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/terminate_server_instances_response.go
new file mode 100644
index 000000000..7b3ae4445
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/terminate_server_instances_response.go
@@ -0,0 +1,22 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type TerminateServerInstancesResponse struct {
+
+RequestId *string `json:"requestId,omitempty"`
+
+ReturnCode *string `json:"returnCode,omitempty"`
+
+ReturnMessage *string `json:"returnMessage,omitempty"`
+
+TotalRows *int32 `json:"totalRows,omitempty"`
+
+ServerInstanceList []*ServerInstance `json:"serverInstanceList,omitempty"`
+}
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/v2_api.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/v2_api.go
new file mode 100644
index 000000000..e52b53158
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/v2_api.go
@@ -0,0 +1,4988 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+import (
+ "encoding/base64"
+ "encoding/json"
+ "io/ioutil"
+ "net/url"
+ "reflect"
+ "strings"
+ "bytes"
+
+ "golang.org/x/net/context"
+)
+
+// Linger please
+var (
+ _ context.Context
+)
+
+type V2ApiService service
+
+
+/* V2ApiService
+ ACGInboundRule추가
+ @param addAccessControlGroupInboundRuleRequest addAccessControlGroupInboundRuleRequest
+ @return *AddAccessControlGroupInboundRuleResponse*/
+func (a *V2ApiService) AddAccessControlGroupInboundRule(addAccessControlGroupInboundRuleRequest *AddAccessControlGroupInboundRuleRequest) (*AddAccessControlGroupInboundRuleResponse, error) {
+ var (
+ localVarHttpMethod = strings.ToUpper("Post")
+ localVarPostBody interface{}
+ localVarFileName string
+ localVarFileBytes []byte
+ successPayload AddAccessControlGroupInboundRuleResponse
+ )
+
+ // create path and map variables
+ localVarPath := a.client.cfg.BasePath + "/addAccessControlGroupInboundRule"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+
+ // to determine the Content-Type header
+ localVarHttpContentTypes := []string{ "application/x-www-form-urlencoded", }
+
+ // set Content-Type header
+ localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
+ if localVarHttpContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHttpContentType
+ }
+
+ // to determine the Accept header
+ localVarHttpHeaderAccepts := []string{
+ }
+
+ // set Accept header
+ localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts)
+ if localVarHttpHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
+ }
+ // body params
+ localVarPostBody = addAccessControlGroupInboundRuleRequest
+ 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(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), `{`)) {
+ return &successPayload, reportError("Status: %v, Body: %s", localVarHttpResponse.Status, bodyBytes)
+ }
+
+ if !strings.Contains(string(bodyBytes), `{"error"`) && strings.HasPrefix(string(bodyBytes), `{`) {
+ if err = json.Unmarshal(bodyBytes[bytes.IndexAny(bytes.Trim(bodyBytes, "{"), "{"):len(bodyBytes)-1], &successPayload); err != nil {
+ return &successPayload, err
+ }
+ }
+
+
+ return &successPayload, err
+}
+
+/* V2ApiService
+ ACGOutboundRule추가
+ @param addAccessControlGroupOutboundRuleRequest addAccessControlGroupOutboundRuleRequest
+ @return *AddAccessControlGroupOutboundRuleResponse*/
+func (a *V2ApiService) AddAccessControlGroupOutboundRule(addAccessControlGroupOutboundRuleRequest *AddAccessControlGroupOutboundRuleRequest) (*AddAccessControlGroupOutboundRuleResponse, error) {
+ var (
+ localVarHttpMethod = strings.ToUpper("Post")
+ localVarPostBody interface{}
+ localVarFileName string
+ localVarFileBytes []byte
+ successPayload AddAccessControlGroupOutboundRuleResponse
+ )
+
+ // create path and map variables
+ localVarPath := a.client.cfg.BasePath + "/addAccessControlGroupOutboundRule"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+
+ // to determine the Content-Type header
+ localVarHttpContentTypes := []string{ "application/x-www-form-urlencoded", }
+
+ // set Content-Type header
+ localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
+ if localVarHttpContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHttpContentType
+ }
+
+ // to determine the Accept header
+ localVarHttpHeaderAccepts := []string{
+ }
+
+ // set Accept header
+ localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts)
+ if localVarHttpHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
+ }
+ // body params
+ localVarPostBody = addAccessControlGroupOutboundRuleRequest
+ 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(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), `{`)) {
+ return &successPayload, reportError("Status: %v, Body: %s", localVarHttpResponse.Status, bodyBytes)
+ }
+
+ if !strings.Contains(string(bodyBytes), `{"error"`) && strings.HasPrefix(string(bodyBytes), `{`) {
+ if err = json.Unmarshal(bodyBytes[bytes.IndexAny(bytes.Trim(bodyBytes, "{"), "{"):len(bodyBytes)-1], &successPayload); err != nil {
+ return &successPayload, err
+ }
+ }
+
+
+ return &successPayload, err
+}
+
+/* V2ApiService
+ 네트워크인터페이스의ACG추가
+ @param addNetworkInterfaceAccessControlGroupRequest addNetworkInterfaceAccessControlGroupRequest
+ @return *AddNetworkInterfaceAccessControlGroupResponse*/
+func (a *V2ApiService) AddNetworkInterfaceAccessControlGroup(addNetworkInterfaceAccessControlGroupRequest *AddNetworkInterfaceAccessControlGroupRequest) (*AddNetworkInterfaceAccessControlGroupResponse, error) {
+ var (
+ localVarHttpMethod = strings.ToUpper("Post")
+ localVarPostBody interface{}
+ localVarFileName string
+ localVarFileBytes []byte
+ successPayload AddNetworkInterfaceAccessControlGroupResponse
+ )
+
+ // create path and map variables
+ localVarPath := a.client.cfg.BasePath + "/addNetworkInterfaceAccessControlGroup"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+
+ // to determine the Content-Type header
+ localVarHttpContentTypes := []string{ "application/x-www-form-urlencoded", }
+
+ // set Content-Type header
+ localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
+ if localVarHttpContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHttpContentType
+ }
+
+ // to determine the Accept header
+ localVarHttpHeaderAccepts := []string{
+ }
+
+ // set Accept header
+ localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts)
+ if localVarHttpHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
+ }
+ // body params
+ localVarPostBody = addNetworkInterfaceAccessControlGroupRequest
+ 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(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), `{`)) {
+ return &successPayload, reportError("Status: %v, Body: %s", localVarHttpResponse.Status, bodyBytes)
+ }
+
+ if !strings.Contains(string(bodyBytes), `{"error"`) && strings.HasPrefix(string(bodyBytes), `{`) {
+ if err = json.Unmarshal(bodyBytes[bytes.IndexAny(bytes.Trim(bodyBytes, "{"), "{"):len(bodyBytes)-1], &successPayload); err != nil {
+ return &successPayload, err
+ }
+ }
+
+
+ return &successPayload, err
+}
+
+/* V2ApiService
+ 물리배치그룹에서버인스턴스추가
+ @param addPlacementGroupServerInstanceRequest addPlacementGroupServerInstanceRequest
+ @return *AddPlacementGroupServerInstanceResponse*/
+func (a *V2ApiService) AddPlacementGroupServerInstance(addPlacementGroupServerInstanceRequest *AddPlacementGroupServerInstanceRequest) (*AddPlacementGroupServerInstanceResponse, error) {
+ var (
+ localVarHttpMethod = strings.ToUpper("Post")
+ localVarPostBody interface{}
+ localVarFileName string
+ localVarFileBytes []byte
+ successPayload AddPlacementGroupServerInstanceResponse
+ )
+
+ // create path and map variables
+ localVarPath := a.client.cfg.BasePath + "/addPlacementGroupServerInstance"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+
+ // to determine the Content-Type header
+ localVarHttpContentTypes := []string{ "application/x-www-form-urlencoded", }
+
+ // set Content-Type header
+ localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
+ if localVarHttpContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHttpContentType
+ }
+
+ // to determine the Accept header
+ localVarHttpHeaderAccepts := []string{
+ }
+
+ // set Accept header
+ localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts)
+ if localVarHttpHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
+ }
+ // body params
+ localVarPostBody = addPlacementGroupServerInstanceRequest
+ 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(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), `{`)) {
+ return &successPayload, reportError("Status: %v, Body: %s", localVarHttpResponse.Status, bodyBytes)
+ }
+
+ if !strings.Contains(string(bodyBytes), `{"error"`) && strings.HasPrefix(string(bodyBytes), `{`) {
+ if err = json.Unmarshal(bodyBytes[bytes.IndexAny(bytes.Trim(bodyBytes, "{"), "{"):len(bodyBytes)-1], &successPayload); err != nil {
+ return &successPayload, err
+ }
+ }
+
+
+ return &successPayload, err
+}
+
+/* V2ApiService
+ 공인IP를서버인스턴스에할당
+ @param associatePublicIpWithServerInstanceRequest associatePublicIpWithServerInstanceRequest
+ @return *AssociatePublicIpWithServerInstanceResponse*/
+func (a *V2ApiService) AssociatePublicIpWithServerInstance(associatePublicIpWithServerInstanceRequest *AssociatePublicIpWithServerInstanceRequest) (*AssociatePublicIpWithServerInstanceResponse, error) {
+ var (
+ localVarHttpMethod = strings.ToUpper("Post")
+ localVarPostBody interface{}
+ localVarFileName string
+ localVarFileBytes []byte
+ successPayload AssociatePublicIpWithServerInstanceResponse
+ )
+
+ // create path and map variables
+ localVarPath := a.client.cfg.BasePath + "/associatePublicIpWithServerInstance"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+
+ // to determine the Content-Type header
+ localVarHttpContentTypes := []string{ "application/x-www-form-urlencoded", }
+
+ // set Content-Type header
+ localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
+ if localVarHttpContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHttpContentType
+ }
+
+ // to determine the Accept header
+ localVarHttpHeaderAccepts := []string{
+ }
+
+ // set Accept header
+ localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts)
+ if localVarHttpHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
+ }
+ // body params
+ localVarPostBody = associatePublicIpWithServerInstanceRequest
+ 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(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), `{`)) {
+ return &successPayload, reportError("Status: %v, Body: %s", localVarHttpResponse.Status, bodyBytes)
+ }
+
+ if !strings.Contains(string(bodyBytes), `{"error"`) && strings.HasPrefix(string(bodyBytes), `{`) {
+ if err = json.Unmarshal(bodyBytes[bytes.IndexAny(bytes.Trim(bodyBytes, "{"), "{"):len(bodyBytes)-1], &successPayload); err != nil {
+ return &successPayload, err
+ }
+ }
+
+
+ return &successPayload, err
+}
+
+/* V2ApiService
+ 블록스토리지인스턴스할당
+ @param attachBlockStorageInstanceRequest attachBlockStorageInstanceRequest
+ @return *AttachBlockStorageInstanceResponse*/
+func (a *V2ApiService) AttachBlockStorageInstance(attachBlockStorageInstanceRequest *AttachBlockStorageInstanceRequest) (*AttachBlockStorageInstanceResponse, error) {
+ var (
+ localVarHttpMethod = strings.ToUpper("Post")
+ localVarPostBody interface{}
+ localVarFileName string
+ localVarFileBytes []byte
+ successPayload AttachBlockStorageInstanceResponse
+ )
+
+ // create path and map variables
+ localVarPath := a.client.cfg.BasePath + "/attachBlockStorageInstance"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+
+ // to determine the Content-Type header
+ localVarHttpContentTypes := []string{ "application/x-www-form-urlencoded", }
+
+ // set Content-Type header
+ localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
+ if localVarHttpContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHttpContentType
+ }
+
+ // to determine the Accept header
+ localVarHttpHeaderAccepts := []string{
+ }
+
+ // set Accept header
+ localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts)
+ if localVarHttpHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
+ }
+ // body params
+ localVarPostBody = attachBlockStorageInstanceRequest
+ 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(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), `{`)) {
+ return &successPayload, reportError("Status: %v, Body: %s", localVarHttpResponse.Status, bodyBytes)
+ }
+
+ if !strings.Contains(string(bodyBytes), `{"error"`) && strings.HasPrefix(string(bodyBytes), `{`) {
+ if err = json.Unmarshal(bodyBytes[bytes.IndexAny(bytes.Trim(bodyBytes, "{"), "{"):len(bodyBytes)-1], &successPayload); err != nil {
+ return &successPayload, err
+ }
+ }
+
+
+ return &successPayload, err
+}
+
+/* V2ApiService
+ 네트워크인터페이스할당
+ @param attachNetworkInterfaceRequest attachNetworkInterfaceRequest
+ @return *AttachNetworkInterfaceResponse*/
+func (a *V2ApiService) AttachNetworkInterface(attachNetworkInterfaceRequest *AttachNetworkInterfaceRequest) (*AttachNetworkInterfaceResponse, error) {
+ var (
+ localVarHttpMethod = strings.ToUpper("Post")
+ localVarPostBody interface{}
+ localVarFileName string
+ localVarFileBytes []byte
+ successPayload AttachNetworkInterfaceResponse
+ )
+
+ // create path and map variables
+ localVarPath := a.client.cfg.BasePath + "/attachNetworkInterface"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+
+ // to determine the Content-Type header
+ localVarHttpContentTypes := []string{ "application/x-www-form-urlencoded", }
+
+ // set Content-Type header
+ localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
+ if localVarHttpContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHttpContentType
+ }
+
+ // to determine the Accept header
+ localVarHttpHeaderAccepts := []string{
+ }
+
+ // set Accept header
+ localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts)
+ if localVarHttpHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
+ }
+ // body params
+ localVarPostBody = attachNetworkInterfaceRequest
+ 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(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), `{`)) {
+ return &successPayload, reportError("Status: %v, Body: %s", localVarHttpResponse.Status, bodyBytes)
+ }
+
+ if !strings.Contains(string(bodyBytes), `{"error"`) && strings.HasPrefix(string(bodyBytes), `{`) {
+ if err = json.Unmarshal(bodyBytes[bytes.IndexAny(bytes.Trim(bodyBytes, "{"), "{"):len(bodyBytes)-1], &successPayload); err != nil {
+ return &successPayload, err
+ }
+ }
+
+
+ return &successPayload, err
+}
+
+/* V2ApiService
+ 블록스토리지볼륨사이즈변경
+ @param changeBlockStorageVolumeSizeRequest changeBlockStorageVolumeSizeRequest
+ @return *ChangeBlockStorageVolumeSizeResponse*/
+func (a *V2ApiService) ChangeBlockStorageVolumeSize(changeBlockStorageVolumeSizeRequest *ChangeBlockStorageVolumeSizeRequest) (*ChangeBlockStorageVolumeSizeResponse, error) {
+ var (
+ localVarHttpMethod = strings.ToUpper("Post")
+ localVarPostBody interface{}
+ localVarFileName string
+ localVarFileBytes []byte
+ successPayload ChangeBlockStorageVolumeSizeResponse
+ )
+
+ // create path and map variables
+ localVarPath := a.client.cfg.BasePath + "/changeBlockStorageVolumeSize"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+
+ // to determine the Content-Type header
+ localVarHttpContentTypes := []string{ "application/x-www-form-urlencoded", }
+
+ // set Content-Type header
+ localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
+ if localVarHttpContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHttpContentType
+ }
+
+ // to determine the Accept header
+ localVarHttpHeaderAccepts := []string{
+ }
+
+ // set Accept header
+ localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts)
+ if localVarHttpHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
+ }
+ // body params
+ localVarPostBody = changeBlockStorageVolumeSizeRequest
+ 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(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), `{`)) {
+ return &successPayload, reportError("Status: %v, Body: %s", localVarHttpResponse.Status, bodyBytes)
+ }
+
+ if !strings.Contains(string(bodyBytes), `{"error"`) && strings.HasPrefix(string(bodyBytes), `{`) {
+ if err = json.Unmarshal(bodyBytes[bytes.IndexAny(bytes.Trim(bodyBytes, "{"), "{"):len(bodyBytes)-1], &successPayload); err != nil {
+ return &successPayload, err
+ }
+ }
+
+
+ return &successPayload, err
+}
+
+/* V2ApiService
+ 서버인스턴스스펙변경
+ @param changeServerInstanceSpecRequest changeServerInstanceSpecRequest
+ @return *ChangeServerInstanceSpecResponse*/
+func (a *V2ApiService) ChangeServerInstanceSpec(changeServerInstanceSpecRequest *ChangeServerInstanceSpecRequest) (*ChangeServerInstanceSpecResponse, error) {
+ var (
+ localVarHttpMethod = strings.ToUpper("Post")
+ localVarPostBody interface{}
+ localVarFileName string
+ localVarFileBytes []byte
+ successPayload ChangeServerInstanceSpecResponse
+ )
+
+ // create path and map variables
+ localVarPath := a.client.cfg.BasePath + "/changeServerInstanceSpec"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+
+ // to determine the Content-Type header
+ localVarHttpContentTypes := []string{ "application/x-www-form-urlencoded", }
+
+ // set Content-Type header
+ localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
+ if localVarHttpContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHttpContentType
+ }
+
+ // to determine the Accept header
+ localVarHttpHeaderAccepts := []string{
+ }
+
+ // set Accept header
+ localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts)
+ if localVarHttpHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
+ }
+ // body params
+ localVarPostBody = changeServerInstanceSpecRequest
+ 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(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), `{`)) {
+ return &successPayload, reportError("Status: %v, Body: %s", localVarHttpResponse.Status, bodyBytes)
+ }
+
+ if !strings.Contains(string(bodyBytes), `{"error"`) && strings.HasPrefix(string(bodyBytes), `{`) {
+ if err = json.Unmarshal(bodyBytes[bytes.IndexAny(bytes.Trim(bodyBytes, "{"), "{"):len(bodyBytes)-1], &successPayload); err != nil {
+ return &successPayload, err
+ }
+ }
+
+
+ return &successPayload, err
+}
+
+/* V2ApiService
+ ACG생성
+ @param createAccessControlGroupRequest createAccessControlGroupRequest
+ @return *CreateAccessControlGroupResponse*/
+func (a *V2ApiService) CreateAccessControlGroup(createAccessControlGroupRequest *CreateAccessControlGroupRequest) (*CreateAccessControlGroupResponse, error) {
+ var (
+ localVarHttpMethod = strings.ToUpper("Post")
+ localVarPostBody interface{}
+ localVarFileName string
+ localVarFileBytes []byte
+ successPayload CreateAccessControlGroupResponse
+ )
+
+ // create path and map variables
+ localVarPath := a.client.cfg.BasePath + "/createAccessControlGroup"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+
+ // to determine the Content-Type header
+ localVarHttpContentTypes := []string{ "application/x-www-form-urlencoded", }
+
+ // set Content-Type header
+ localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
+ if localVarHttpContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHttpContentType
+ }
+
+ // to determine the Accept header
+ localVarHttpHeaderAccepts := []string{
+ }
+
+ // set Accept header
+ localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts)
+ if localVarHttpHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
+ }
+ // body params
+ localVarPostBody = createAccessControlGroupRequest
+ 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(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), `{`)) {
+ return &successPayload, reportError("Status: %v, Body: %s", localVarHttpResponse.Status, bodyBytes)
+ }
+
+ if !strings.Contains(string(bodyBytes), `{"error"`) && strings.HasPrefix(string(bodyBytes), `{`) {
+ if err = json.Unmarshal(bodyBytes[bytes.IndexAny(bytes.Trim(bodyBytes, "{"), "{"):len(bodyBytes)-1], &successPayload); err != nil {
+ return &successPayload, err
+ }
+ }
+
+
+ return &successPayload, err
+}
+
+/* V2ApiService
+ 블록스토리지인스턴스생성
+ @param createBlockStorageInstanceRequest createBlockStorageInstanceRequest
+ @return *CreateBlockStorageInstanceResponse*/
+func (a *V2ApiService) CreateBlockStorageInstance(createBlockStorageInstanceRequest *CreateBlockStorageInstanceRequest) (*CreateBlockStorageInstanceResponse, error) {
+ var (
+ localVarHttpMethod = strings.ToUpper("Post")
+ localVarPostBody interface{}
+ localVarFileName string
+ localVarFileBytes []byte
+ successPayload CreateBlockStorageInstanceResponse
+ )
+
+ // create path and map variables
+ localVarPath := a.client.cfg.BasePath + "/createBlockStorageInstance"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+
+ // to determine the Content-Type header
+ localVarHttpContentTypes := []string{ "application/x-www-form-urlencoded", }
+
+ // set Content-Type header
+ localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
+ if localVarHttpContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHttpContentType
+ }
+
+ // to determine the Accept header
+ localVarHttpHeaderAccepts := []string{
+ }
+
+ // set Accept header
+ localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts)
+ if localVarHttpHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
+ }
+ // body params
+ localVarPostBody = createBlockStorageInstanceRequest
+ 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(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), `{`)) {
+ return &successPayload, reportError("Status: %v, Body: %s", localVarHttpResponse.Status, bodyBytes)
+ }
+
+ if !strings.Contains(string(bodyBytes), `{"error"`) && strings.HasPrefix(string(bodyBytes), `{`) {
+ if err = json.Unmarshal(bodyBytes[bytes.IndexAny(bytes.Trim(bodyBytes, "{"), "{"):len(bodyBytes)-1], &successPayload); err != nil {
+ return &successPayload, err
+ }
+ }
+
+
+ return &successPayload, err
+}
+
+/* V2ApiService
+ 블록스토리지스냅샷인스턴스생성
+ @param createBlockStorageSnapshotInstanceRequest createBlockStorageSnapshotInstanceRequest
+ @return *CreateBlockStorageSnapshotInstanceResponse*/
+func (a *V2ApiService) CreateBlockStorageSnapshotInstance(createBlockStorageSnapshotInstanceRequest *CreateBlockStorageSnapshotInstanceRequest) (*CreateBlockStorageSnapshotInstanceResponse, error) {
+ var (
+ localVarHttpMethod = strings.ToUpper("Post")
+ localVarPostBody interface{}
+ localVarFileName string
+ localVarFileBytes []byte
+ successPayload CreateBlockStorageSnapshotInstanceResponse
+ )
+
+ // create path and map variables
+ localVarPath := a.client.cfg.BasePath + "/createBlockStorageSnapshotInstance"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+
+ // to determine the Content-Type header
+ localVarHttpContentTypes := []string{ "application/x-www-form-urlencoded", }
+
+ // set Content-Type header
+ localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
+ if localVarHttpContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHttpContentType
+ }
+
+ // to determine the Accept header
+ localVarHttpHeaderAccepts := []string{
+ }
+
+ // set Accept header
+ localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts)
+ if localVarHttpHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
+ }
+ // body params
+ localVarPostBody = createBlockStorageSnapshotInstanceRequest
+ 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(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), `{`)) {
+ return &successPayload, reportError("Status: %v, Body: %s", localVarHttpResponse.Status, bodyBytes)
+ }
+
+ if !strings.Contains(string(bodyBytes), `{"error"`) && strings.HasPrefix(string(bodyBytes), `{`) {
+ if err = json.Unmarshal(bodyBytes[bytes.IndexAny(bytes.Trim(bodyBytes, "{"), "{"):len(bodyBytes)-1], &successPayload); err != nil {
+ return &successPayload, err
+ }
+ }
+
+
+ return &successPayload, err
+}
+
+/* V2ApiService
+ 초기화스크립트생성
+ @param createInitScriptRequest createInitScriptRequest
+ @return *CreateInitScriptResponse*/
+func (a *V2ApiService) CreateInitScript(createInitScriptRequest *CreateInitScriptRequest) (*CreateInitScriptResponse, error) {
+ var (
+ localVarHttpMethod = strings.ToUpper("Post")
+ localVarPostBody interface{}
+ localVarFileName string
+ localVarFileBytes []byte
+ successPayload CreateInitScriptResponse
+ )
+
+ // create path and map variables
+ localVarPath := a.client.cfg.BasePath + "/createInitScript"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+
+ // to determine the Content-Type header
+ localVarHttpContentTypes := []string{ "application/x-www-form-urlencoded", }
+
+ // set Content-Type header
+ localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
+ if localVarHttpContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHttpContentType
+ }
+
+ // to determine the Accept header
+ localVarHttpHeaderAccepts := []string{
+ }
+
+ // set Accept header
+ localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts)
+ if localVarHttpHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
+ }
+ // body params
+ localVarPostBody = createInitScriptRequest
+ 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(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), `{`)) {
+ return &successPayload, reportError("Status: %v, Body: %s", localVarHttpResponse.Status, bodyBytes)
+ }
+
+ if !strings.Contains(string(bodyBytes), `{"error"`) && strings.HasPrefix(string(bodyBytes), `{`) {
+ if err = json.Unmarshal(bodyBytes[bytes.IndexAny(bytes.Trim(bodyBytes, "{"), "{"):len(bodyBytes)-1], &successPayload); err != nil {
+ return &successPayload, err
+ }
+ }
+
+
+ return &successPayload, err
+}
+
+/* V2ApiService
+ 로그인키생성
+ @param createLoginKeyRequest createLoginKeyRequest
+ @return *CreateLoginKeyResponse*/
+func (a *V2ApiService) CreateLoginKey(createLoginKeyRequest *CreateLoginKeyRequest) (*CreateLoginKeyResponse, error) {
+ var (
+ localVarHttpMethod = strings.ToUpper("Post")
+ localVarPostBody interface{}
+ localVarFileName string
+ localVarFileBytes []byte
+ successPayload CreateLoginKeyResponse
+ )
+
+ // create path and map variables
+ localVarPath := a.client.cfg.BasePath + "/createLoginKey"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+
+ // to determine the Content-Type header
+ localVarHttpContentTypes := []string{ "application/x-www-form-urlencoded", }
+
+ // set Content-Type header
+ localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
+ if localVarHttpContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHttpContentType
+ }
+
+ // to determine the Accept header
+ localVarHttpHeaderAccepts := []string{
+ }
+
+ // set Accept header
+ localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts)
+ if localVarHttpHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
+ }
+ // body params
+ localVarPostBody = createLoginKeyRequest
+ 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(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), `{`)) {
+ return &successPayload, reportError("Status: %v, Body: %s", localVarHttpResponse.Status, bodyBytes)
+ }
+
+ if !strings.Contains(string(bodyBytes), `{"error"`) && strings.HasPrefix(string(bodyBytes), `{`) {
+ if err = json.Unmarshal(bodyBytes[bytes.IndexAny(bytes.Trim(bodyBytes, "{"), "{"):len(bodyBytes)-1], &successPayload); err != nil {
+ return &successPayload, err
+ }
+ }
+
+
+ return &successPayload, err
+}
+
+/* V2ApiService
+ 회원서버이미지인스턴스생성
+ @param createMemberServerImageInstanceRequest createMemberServerImageInstanceRequest
+ @return *CreateMemberServerImageInstanceResponse*/
+func (a *V2ApiService) CreateMemberServerImageInstance(createMemberServerImageInstanceRequest *CreateMemberServerImageInstanceRequest) (*CreateMemberServerImageInstanceResponse, error) {
+ var (
+ localVarHttpMethod = strings.ToUpper("Post")
+ localVarPostBody interface{}
+ localVarFileName string
+ localVarFileBytes []byte
+ successPayload CreateMemberServerImageInstanceResponse
+ )
+
+ // create path and map variables
+ localVarPath := a.client.cfg.BasePath + "/createMemberServerImageInstance"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+
+ // to determine the Content-Type header
+ localVarHttpContentTypes := []string{ "application/x-www-form-urlencoded", }
+
+ // set Content-Type header
+ localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
+ if localVarHttpContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHttpContentType
+ }
+
+ // to determine the Accept header
+ localVarHttpHeaderAccepts := []string{
+ }
+
+ // set Accept header
+ localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts)
+ if localVarHttpHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
+ }
+ // body params
+ localVarPostBody = createMemberServerImageInstanceRequest
+ 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(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), `{`)) {
+ return &successPayload, reportError("Status: %v, Body: %s", localVarHttpResponse.Status, bodyBytes)
+ }
+
+ if !strings.Contains(string(bodyBytes), `{"error"`) && strings.HasPrefix(string(bodyBytes), `{`) {
+ if err = json.Unmarshal(bodyBytes[bytes.IndexAny(bytes.Trim(bodyBytes, "{"), "{"):len(bodyBytes)-1], &successPayload); err != nil {
+ return &successPayload, err
+ }
+ }
+
+
+ return &successPayload, err
+}
+
+/* V2ApiService
+ 네트워크인터페이스생성
+ @param createNetworkInterfaceRequest createNetworkInterfaceRequest
+ @return *CreateNetworkInterfaceResponse*/
+func (a *V2ApiService) CreateNetworkInterface(createNetworkInterfaceRequest *CreateNetworkInterfaceRequest) (*CreateNetworkInterfaceResponse, error) {
+ var (
+ localVarHttpMethod = strings.ToUpper("Post")
+ localVarPostBody interface{}
+ localVarFileName string
+ localVarFileBytes []byte
+ successPayload CreateNetworkInterfaceResponse
+ )
+
+ // create path and map variables
+ localVarPath := a.client.cfg.BasePath + "/createNetworkInterface"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+
+ // to determine the Content-Type header
+ localVarHttpContentTypes := []string{ "application/x-www-form-urlencoded", }
+
+ // set Content-Type header
+ localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
+ if localVarHttpContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHttpContentType
+ }
+
+ // to determine the Accept header
+ localVarHttpHeaderAccepts := []string{
+ }
+
+ // set Accept header
+ localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts)
+ if localVarHttpHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
+ }
+ // body params
+ localVarPostBody = createNetworkInterfaceRequest
+ 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(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), `{`)) {
+ return &successPayload, reportError("Status: %v, Body: %s", localVarHttpResponse.Status, bodyBytes)
+ }
+
+ if !strings.Contains(string(bodyBytes), `{"error"`) && strings.HasPrefix(string(bodyBytes), `{`) {
+ if err = json.Unmarshal(bodyBytes[bytes.IndexAny(bytes.Trim(bodyBytes, "{"), "{"):len(bodyBytes)-1], &successPayload); err != nil {
+ return &successPayload, err
+ }
+ }
+
+
+ return &successPayload, err
+}
+
+/* V2ApiService
+ 물리배치그룹생성
+ @param createPlacementGroupRequest createPlacementGroupRequest
+ @return *CreatePlacementGroupResponse*/
+func (a *V2ApiService) CreatePlacementGroup(createPlacementGroupRequest *CreatePlacementGroupRequest) (*CreatePlacementGroupResponse, error) {
+ var (
+ localVarHttpMethod = strings.ToUpper("Post")
+ localVarPostBody interface{}
+ localVarFileName string
+ localVarFileBytes []byte
+ successPayload CreatePlacementGroupResponse
+ )
+
+ // create path and map variables
+ localVarPath := a.client.cfg.BasePath + "/createPlacementGroup"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+
+ // to determine the Content-Type header
+ localVarHttpContentTypes := []string{ "application/x-www-form-urlencoded", }
+
+ // set Content-Type header
+ localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
+ if localVarHttpContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHttpContentType
+ }
+
+ // to determine the Accept header
+ localVarHttpHeaderAccepts := []string{
+ }
+
+ // set Accept header
+ localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts)
+ if localVarHttpHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
+ }
+ // body params
+ localVarPostBody = createPlacementGroupRequest
+ 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(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), `{`)) {
+ return &successPayload, reportError("Status: %v, Body: %s", localVarHttpResponse.Status, bodyBytes)
+ }
+
+ if !strings.Contains(string(bodyBytes), `{"error"`) && strings.HasPrefix(string(bodyBytes), `{`) {
+ if err = json.Unmarshal(bodyBytes[bytes.IndexAny(bytes.Trim(bodyBytes, "{"), "{"):len(bodyBytes)-1], &successPayload); err != nil {
+ return &successPayload, err
+ }
+ }
+
+
+ return &successPayload, err
+}
+
+/* V2ApiService
+ 공인IP인스턴스생성
+ @param createPublicIpInstanceRequest createPublicIpInstanceRequest
+ @return *CreatePublicIpInstanceResponse*/
+func (a *V2ApiService) CreatePublicIpInstance(createPublicIpInstanceRequest *CreatePublicIpInstanceRequest) (*CreatePublicIpInstanceResponse, error) {
+ var (
+ localVarHttpMethod = strings.ToUpper("Post")
+ localVarPostBody interface{}
+ localVarFileName string
+ localVarFileBytes []byte
+ successPayload CreatePublicIpInstanceResponse
+ )
+
+ // create path and map variables
+ localVarPath := a.client.cfg.BasePath + "/createPublicIpInstance"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+
+ // to determine the Content-Type header
+ localVarHttpContentTypes := []string{ "application/x-www-form-urlencoded", }
+
+ // set Content-Type header
+ localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
+ if localVarHttpContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHttpContentType
+ }
+
+ // to determine the Accept header
+ localVarHttpHeaderAccepts := []string{
+ }
+
+ // set Accept header
+ localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts)
+ if localVarHttpHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
+ }
+ // body params
+ localVarPostBody = createPublicIpInstanceRequest
+ 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(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), `{`)) {
+ return &successPayload, reportError("Status: %v, Body: %s", localVarHttpResponse.Status, bodyBytes)
+ }
+
+ if !strings.Contains(string(bodyBytes), `{"error"`) && strings.HasPrefix(string(bodyBytes), `{`) {
+ if err = json.Unmarshal(bodyBytes[bytes.IndexAny(bytes.Trim(bodyBytes, "{"), "{"):len(bodyBytes)-1], &successPayload); err != nil {
+ return &successPayload, err
+ }
+ }
+
+
+ return &successPayload, err
+}
+
+/* V2ApiService
+ 서버인스턴스생성
+ @param createServerInstancesRequest createServerInstancesRequest
+ @return *CreateServerInstancesResponse*/
+func (a *V2ApiService) CreateServerInstances(createServerInstancesRequest *CreateServerInstancesRequest) (*CreateServerInstancesResponse, error) {
+ var (
+ localVarHttpMethod = strings.ToUpper("Post")
+ localVarPostBody interface{}
+ localVarFileName string
+ localVarFileBytes []byte
+ successPayload CreateServerInstancesResponse
+ )
+
+ // create path and map variables
+ localVarPath := a.client.cfg.BasePath + "/createServerInstances"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+
+ // to determine the Content-Type header
+ localVarHttpContentTypes := []string{ "application/x-www-form-urlencoded", }
+
+ // set Content-Type header
+ localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
+ if localVarHttpContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHttpContentType
+ }
+
+ // to determine the Accept header
+ localVarHttpHeaderAccepts := []string{
+ }
+
+ // set Accept header
+ localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts)
+ if localVarHttpHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
+ }
+ // body params
+ localVarPostBody = createServerInstancesRequest
+ 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(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), `{`)) {
+ return &successPayload, reportError("Status: %v, Body: %s", localVarHttpResponse.Status, bodyBytes)
+ }
+
+ if !strings.Contains(string(bodyBytes), `{"error"`) && strings.HasPrefix(string(bodyBytes), `{`) {
+ if err = json.Unmarshal(bodyBytes[bytes.IndexAny(bytes.Trim(bodyBytes, "{"), "{"):len(bodyBytes)-1], &successPayload); err != nil {
+ return &successPayload, err
+ }
+ }
+
+
+ return &successPayload, err
+}
+
+/* V2ApiService
+ ACG삭제
+ @param deleteAccessControlGroupRequest deleteAccessControlGroupRequest
+ @return *DeleteAccessControlGroupResponse*/
+func (a *V2ApiService) DeleteAccessControlGroup(deleteAccessControlGroupRequest *DeleteAccessControlGroupRequest) (*DeleteAccessControlGroupResponse, error) {
+ var (
+ localVarHttpMethod = strings.ToUpper("Post")
+ localVarPostBody interface{}
+ localVarFileName string
+ localVarFileBytes []byte
+ successPayload DeleteAccessControlGroupResponse
+ )
+
+ // create path and map variables
+ localVarPath := a.client.cfg.BasePath + "/deleteAccessControlGroup"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+
+ // to determine the Content-Type header
+ localVarHttpContentTypes := []string{ "application/x-www-form-urlencoded", }
+
+ // set Content-Type header
+ localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
+ if localVarHttpContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHttpContentType
+ }
+
+ // to determine the Accept header
+ localVarHttpHeaderAccepts := []string{
+ }
+
+ // set Accept header
+ localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts)
+ if localVarHttpHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
+ }
+ // body params
+ localVarPostBody = deleteAccessControlGroupRequest
+ 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(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), `{`)) {
+ return &successPayload, reportError("Status: %v, Body: %s", localVarHttpResponse.Status, bodyBytes)
+ }
+
+ if !strings.Contains(string(bodyBytes), `{"error"`) && strings.HasPrefix(string(bodyBytes), `{`) {
+ if err = json.Unmarshal(bodyBytes[bytes.IndexAny(bytes.Trim(bodyBytes, "{"), "{"):len(bodyBytes)-1], &successPayload); err != nil {
+ return &successPayload, err
+ }
+ }
+
+
+ return &successPayload, err
+}
+
+/* V2ApiService
+ 블록스토리지인스턴스삭제
+ @param deleteBlockStorageInstancesRequest deleteBlockStorageInstancesRequest
+ @return *DeleteBlockStorageInstancesResponse*/
+func (a *V2ApiService) DeleteBlockStorageInstances(deleteBlockStorageInstancesRequest *DeleteBlockStorageInstancesRequest) (*DeleteBlockStorageInstancesResponse, error) {
+ var (
+ localVarHttpMethod = strings.ToUpper("Post")
+ localVarPostBody interface{}
+ localVarFileName string
+ localVarFileBytes []byte
+ successPayload DeleteBlockStorageInstancesResponse
+ )
+
+ // create path and map variables
+ localVarPath := a.client.cfg.BasePath + "/deleteBlockStorageInstances"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+
+ // to determine the Content-Type header
+ localVarHttpContentTypes := []string{ "application/x-www-form-urlencoded", }
+
+ // set Content-Type header
+ localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
+ if localVarHttpContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHttpContentType
+ }
+
+ // to determine the Accept header
+ localVarHttpHeaderAccepts := []string{
+ }
+
+ // set Accept header
+ localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts)
+ if localVarHttpHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
+ }
+ // body params
+ localVarPostBody = deleteBlockStorageInstancesRequest
+ 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(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), `{`)) {
+ return &successPayload, reportError("Status: %v, Body: %s", localVarHttpResponse.Status, bodyBytes)
+ }
+
+ if !strings.Contains(string(bodyBytes), `{"error"`) && strings.HasPrefix(string(bodyBytes), `{`) {
+ if err = json.Unmarshal(bodyBytes[bytes.IndexAny(bytes.Trim(bodyBytes, "{"), "{"):len(bodyBytes)-1], &successPayload); err != nil {
+ return &successPayload, err
+ }
+ }
+
+
+ return &successPayload, err
+}
+
+/* V2ApiService
+ 블록스토리지스냅샷인스턴스삭제
+ @param deleteBlockStorageSnapshotInstancesRequest deleteBlockStorageSnapshotInstancesRequest
+ @return *DeleteBlockStorageSnapshotInstancesResponse*/
+func (a *V2ApiService) DeleteBlockStorageSnapshotInstances(deleteBlockStorageSnapshotInstancesRequest *DeleteBlockStorageSnapshotInstancesRequest) (*DeleteBlockStorageSnapshotInstancesResponse, error) {
+ var (
+ localVarHttpMethod = strings.ToUpper("Post")
+ localVarPostBody interface{}
+ localVarFileName string
+ localVarFileBytes []byte
+ successPayload DeleteBlockStorageSnapshotInstancesResponse
+ )
+
+ // create path and map variables
+ localVarPath := a.client.cfg.BasePath + "/deleteBlockStorageSnapshotInstances"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+
+ // to determine the Content-Type header
+ localVarHttpContentTypes := []string{ "application/x-www-form-urlencoded", }
+
+ // set Content-Type header
+ localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
+ if localVarHttpContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHttpContentType
+ }
+
+ // to determine the Accept header
+ localVarHttpHeaderAccepts := []string{
+ }
+
+ // set Accept header
+ localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts)
+ if localVarHttpHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
+ }
+ // body params
+ localVarPostBody = deleteBlockStorageSnapshotInstancesRequest
+ 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(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), `{`)) {
+ return &successPayload, reportError("Status: %v, Body: %s", localVarHttpResponse.Status, bodyBytes)
+ }
+
+ if !strings.Contains(string(bodyBytes), `{"error"`) && strings.HasPrefix(string(bodyBytes), `{`) {
+ if err = json.Unmarshal(bodyBytes[bytes.IndexAny(bytes.Trim(bodyBytes, "{"), "{"):len(bodyBytes)-1], &successPayload); err != nil {
+ return &successPayload, err
+ }
+ }
+
+
+ return &successPayload, err
+}
+
+/* V2ApiService
+ 초기화스크립트삭제
+ @param deleteInitScriptsRequest deleteInitScriptsRequest
+ @return *DeleteInitScriptsResponse*/
+func (a *V2ApiService) DeleteInitScripts(deleteInitScriptsRequest *DeleteInitScriptsRequest) (*DeleteInitScriptsResponse, error) {
+ var (
+ localVarHttpMethod = strings.ToUpper("Post")
+ localVarPostBody interface{}
+ localVarFileName string
+ localVarFileBytes []byte
+ successPayload DeleteInitScriptsResponse
+ )
+
+ // create path and map variables
+ localVarPath := a.client.cfg.BasePath + "/deleteInitScripts"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+
+ // to determine the Content-Type header
+ localVarHttpContentTypes := []string{ "application/x-www-form-urlencoded", }
+
+ // set Content-Type header
+ localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
+ if localVarHttpContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHttpContentType
+ }
+
+ // to determine the Accept header
+ localVarHttpHeaderAccepts := []string{
+ }
+
+ // set Accept header
+ localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts)
+ if localVarHttpHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
+ }
+ // body params
+ localVarPostBody = deleteInitScriptsRequest
+ 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(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), `{`)) {
+ return &successPayload, reportError("Status: %v, Body: %s", localVarHttpResponse.Status, bodyBytes)
+ }
+
+ if !strings.Contains(string(bodyBytes), `{"error"`) && strings.HasPrefix(string(bodyBytes), `{`) {
+ if err = json.Unmarshal(bodyBytes[bytes.IndexAny(bytes.Trim(bodyBytes, "{"), "{"):len(bodyBytes)-1], &successPayload); err != nil {
+ return &successPayload, err
+ }
+ }
+
+
+ return &successPayload, err
+}
+
+/* V2ApiService
+ 로그인키삭제
+ @param deleteLoginKeysRequest deleteLoginKeysRequest
+ @return *DeleteLoginKeysResponse*/
+func (a *V2ApiService) DeleteLoginKeys(deleteLoginKeysRequest *DeleteLoginKeysRequest) (*DeleteLoginKeysResponse, error) {
+ var (
+ localVarHttpMethod = strings.ToUpper("Post")
+ localVarPostBody interface{}
+ localVarFileName string
+ localVarFileBytes []byte
+ successPayload DeleteLoginKeysResponse
+ )
+
+ // create path and map variables
+ localVarPath := a.client.cfg.BasePath + "/deleteLoginKeys"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+
+ // to determine the Content-Type header
+ localVarHttpContentTypes := []string{ "application/x-www-form-urlencoded", }
+
+ // set Content-Type header
+ localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
+ if localVarHttpContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHttpContentType
+ }
+
+ // to determine the Accept header
+ localVarHttpHeaderAccepts := []string{
+ }
+
+ // set Accept header
+ localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts)
+ if localVarHttpHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
+ }
+ // body params
+ localVarPostBody = deleteLoginKeysRequest
+ 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(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), `{`)) {
+ return &successPayload, reportError("Status: %v, Body: %s", localVarHttpResponse.Status, bodyBytes)
+ }
+
+ if !strings.Contains(string(bodyBytes), `{"error"`) && strings.HasPrefix(string(bodyBytes), `{`) {
+ if err = json.Unmarshal(bodyBytes[bytes.IndexAny(bytes.Trim(bodyBytes, "{"), "{"):len(bodyBytes)-1], &successPayload); err != nil {
+ return &successPayload, err
+ }
+ }
+
+
+ return &successPayload, err
+}
+
+/* V2ApiService
+ 회원서버이미지인스턴스삭제
+ @param deleteMemberServerImageInstancesRequest deleteMemberServerImageInstancesRequest
+ @return *DeleteMemberServerImageInstancesResponse*/
+func (a *V2ApiService) DeleteMemberServerImageInstances(deleteMemberServerImageInstancesRequest *DeleteMemberServerImageInstancesRequest) (*DeleteMemberServerImageInstancesResponse, error) {
+ var (
+ localVarHttpMethod = strings.ToUpper("Post")
+ localVarPostBody interface{}
+ localVarFileName string
+ localVarFileBytes []byte
+ successPayload DeleteMemberServerImageInstancesResponse
+ )
+
+ // create path and map variables
+ localVarPath := a.client.cfg.BasePath + "/deleteMemberServerImageInstances"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+
+ // to determine the Content-Type header
+ localVarHttpContentTypes := []string{ "application/x-www-form-urlencoded", }
+
+ // set Content-Type header
+ localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
+ if localVarHttpContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHttpContentType
+ }
+
+ // to determine the Accept header
+ localVarHttpHeaderAccepts := []string{
+ }
+
+ // set Accept header
+ localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts)
+ if localVarHttpHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
+ }
+ // body params
+ localVarPostBody = deleteMemberServerImageInstancesRequest
+ 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(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), `{`)) {
+ return &successPayload, reportError("Status: %v, Body: %s", localVarHttpResponse.Status, bodyBytes)
+ }
+
+ if !strings.Contains(string(bodyBytes), `{"error"`) && strings.HasPrefix(string(bodyBytes), `{`) {
+ if err = json.Unmarshal(bodyBytes[bytes.IndexAny(bytes.Trim(bodyBytes, "{"), "{"):len(bodyBytes)-1], &successPayload); err != nil {
+ return &successPayload, err
+ }
+ }
+
+
+ return &successPayload, err
+}
+
+/* V2ApiService
+ 네트워크인터페이스삭제
+ @param deleteNetworkInterfaceRequest deleteNetworkInterfaceRequest
+ @return *DeleteNetworkInterfaceResponse*/
+func (a *V2ApiService) DeleteNetworkInterface(deleteNetworkInterfaceRequest *DeleteNetworkInterfaceRequest) (*DeleteNetworkInterfaceResponse, error) {
+ var (
+ localVarHttpMethod = strings.ToUpper("Post")
+ localVarPostBody interface{}
+ localVarFileName string
+ localVarFileBytes []byte
+ successPayload DeleteNetworkInterfaceResponse
+ )
+
+ // create path and map variables
+ localVarPath := a.client.cfg.BasePath + "/deleteNetworkInterface"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+
+ // to determine the Content-Type header
+ localVarHttpContentTypes := []string{ "application/x-www-form-urlencoded", }
+
+ // set Content-Type header
+ localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
+ if localVarHttpContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHttpContentType
+ }
+
+ // to determine the Accept header
+ localVarHttpHeaderAccepts := []string{
+ }
+
+ // set Accept header
+ localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts)
+ if localVarHttpHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
+ }
+ // body params
+ localVarPostBody = deleteNetworkInterfaceRequest
+ 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(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), `{`)) {
+ return &successPayload, reportError("Status: %v, Body: %s", localVarHttpResponse.Status, bodyBytes)
+ }
+
+ if !strings.Contains(string(bodyBytes), `{"error"`) && strings.HasPrefix(string(bodyBytes), `{`) {
+ if err = json.Unmarshal(bodyBytes[bytes.IndexAny(bytes.Trim(bodyBytes, "{"), "{"):len(bodyBytes)-1], &successPayload); err != nil {
+ return &successPayload, err
+ }
+ }
+
+
+ return &successPayload, err
+}
+
+/* V2ApiService
+ 물리배치그룹삭제
+ @param deletePlacementGroupRequest deletePlacementGroupRequest
+ @return *DeletePlacementGroupResponse*/
+func (a *V2ApiService) DeletePlacementGroup(deletePlacementGroupRequest *DeletePlacementGroupRequest) (*DeletePlacementGroupResponse, error) {
+ var (
+ localVarHttpMethod = strings.ToUpper("Post")
+ localVarPostBody interface{}
+ localVarFileName string
+ localVarFileBytes []byte
+ successPayload DeletePlacementGroupResponse
+ )
+
+ // create path and map variables
+ localVarPath := a.client.cfg.BasePath + "/deletePlacementGroup"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+
+ // to determine the Content-Type header
+ localVarHttpContentTypes := []string{ "application/x-www-form-urlencoded", }
+
+ // set Content-Type header
+ localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
+ if localVarHttpContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHttpContentType
+ }
+
+ // to determine the Accept header
+ localVarHttpHeaderAccepts := []string{
+ }
+
+ // set Accept header
+ localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts)
+ if localVarHttpHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
+ }
+ // body params
+ localVarPostBody = deletePlacementGroupRequest
+ 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(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), `{`)) {
+ return &successPayload, reportError("Status: %v, Body: %s", localVarHttpResponse.Status, bodyBytes)
+ }
+
+ if !strings.Contains(string(bodyBytes), `{"error"`) && strings.HasPrefix(string(bodyBytes), `{`) {
+ if err = json.Unmarshal(bodyBytes[bytes.IndexAny(bytes.Trim(bodyBytes, "{"), "{"):len(bodyBytes)-1], &successPayload); err != nil {
+ return &successPayload, err
+ }
+ }
+
+
+ return &successPayload, err
+}
+
+/* V2ApiService
+ 공인IP인스턴스삭제
+ @param deletePublicIpInstanceRequest deletePublicIpInstanceRequest
+ @return *DeletePublicIpInstanceResponse*/
+func (a *V2ApiService) DeletePublicIpInstance(deletePublicIpInstanceRequest *DeletePublicIpInstanceRequest) (*DeletePublicIpInstanceResponse, error) {
+ var (
+ localVarHttpMethod = strings.ToUpper("Post")
+ localVarPostBody interface{}
+ localVarFileName string
+ localVarFileBytes []byte
+ successPayload DeletePublicIpInstanceResponse
+ )
+
+ // create path and map variables
+ localVarPath := a.client.cfg.BasePath + "/deletePublicIpInstance"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+
+ // to determine the Content-Type header
+ localVarHttpContentTypes := []string{ "application/x-www-form-urlencoded", }
+
+ // set Content-Type header
+ localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
+ if localVarHttpContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHttpContentType
+ }
+
+ // to determine the Accept header
+ localVarHttpHeaderAccepts := []string{
+ }
+
+ // set Accept header
+ localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts)
+ if localVarHttpHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
+ }
+ // body params
+ localVarPostBody = deletePublicIpInstanceRequest
+ 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(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), `{`)) {
+ return &successPayload, reportError("Status: %v, Body: %s", localVarHttpResponse.Status, bodyBytes)
+ }
+
+ if !strings.Contains(string(bodyBytes), `{"error"`) && strings.HasPrefix(string(bodyBytes), `{`) {
+ if err = json.Unmarshal(bodyBytes[bytes.IndexAny(bytes.Trim(bodyBytes, "{"), "{"):len(bodyBytes)-1], &successPayload); err != nil {
+ return &successPayload, err
+ }
+ }
+
+
+ return &successPayload, err
+}
+
+/* V2ApiService
+ 블록스토리지인스턴스할당해제
+ @param detachBlockStorageInstancesRequest detachBlockStorageInstancesRequest
+ @return *DetachBlockStorageInstancesResponse*/
+func (a *V2ApiService) DetachBlockStorageInstances(detachBlockStorageInstancesRequest *DetachBlockStorageInstancesRequest) (*DetachBlockStorageInstancesResponse, error) {
+ var (
+ localVarHttpMethod = strings.ToUpper("Post")
+ localVarPostBody interface{}
+ localVarFileName string
+ localVarFileBytes []byte
+ successPayload DetachBlockStorageInstancesResponse
+ )
+
+ // create path and map variables
+ localVarPath := a.client.cfg.BasePath + "/detachBlockStorageInstances"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+
+ // to determine the Content-Type header
+ localVarHttpContentTypes := []string{ "application/x-www-form-urlencoded", }
+
+ // set Content-Type header
+ localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
+ if localVarHttpContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHttpContentType
+ }
+
+ // to determine the Accept header
+ localVarHttpHeaderAccepts := []string{
+ }
+
+ // set Accept header
+ localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts)
+ if localVarHttpHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
+ }
+ // body params
+ localVarPostBody = detachBlockStorageInstancesRequest
+ 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(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), `{`)) {
+ return &successPayload, reportError("Status: %v, Body: %s", localVarHttpResponse.Status, bodyBytes)
+ }
+
+ if !strings.Contains(string(bodyBytes), `{"error"`) && strings.HasPrefix(string(bodyBytes), `{`) {
+ if err = json.Unmarshal(bodyBytes[bytes.IndexAny(bytes.Trim(bodyBytes, "{"), "{"):len(bodyBytes)-1], &successPayload); err != nil {
+ return &successPayload, err
+ }
+ }
+
+
+ return &successPayload, err
+}
+
+/* V2ApiService
+ 네트워크인터페이스할당해제
+ @param detachNetworkInterfaceRequest detachNetworkInterfaceRequest
+ @return *DetachNetworkInterfaceResponse*/
+func (a *V2ApiService) DetachNetworkInterface(detachNetworkInterfaceRequest *DetachNetworkInterfaceRequest) (*DetachNetworkInterfaceResponse, error) {
+ var (
+ localVarHttpMethod = strings.ToUpper("Post")
+ localVarPostBody interface{}
+ localVarFileName string
+ localVarFileBytes []byte
+ successPayload DetachNetworkInterfaceResponse
+ )
+
+ // create path and map variables
+ localVarPath := a.client.cfg.BasePath + "/detachNetworkInterface"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+
+ // to determine the Content-Type header
+ localVarHttpContentTypes := []string{ "application/x-www-form-urlencoded", }
+
+ // set Content-Type header
+ localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
+ if localVarHttpContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHttpContentType
+ }
+
+ // to determine the Accept header
+ localVarHttpHeaderAccepts := []string{
+ }
+
+ // set Accept header
+ localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts)
+ if localVarHttpHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
+ }
+ // body params
+ localVarPostBody = detachNetworkInterfaceRequest
+ 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(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), `{`)) {
+ return &successPayload, reportError("Status: %v, Body: %s", localVarHttpResponse.Status, bodyBytes)
+ }
+
+ if !strings.Contains(string(bodyBytes), `{"error"`) && strings.HasPrefix(string(bodyBytes), `{`) {
+ if err = json.Unmarshal(bodyBytes[bytes.IndexAny(bytes.Trim(bodyBytes, "{"), "{"):len(bodyBytes)-1], &successPayload); err != nil {
+ return &successPayload, err
+ }
+ }
+
+
+ return &successPayload, err
+}
+
+/* V2ApiService
+ 공인IP를서버인스턴스에서할당해제
+ @param disassociatePublicIpFromServerInstanceRequest disassociatePublicIpFromServerInstanceRequest
+ @return *DisassociatePublicIpFromServerInstanceResponse*/
+func (a *V2ApiService) DisassociatePublicIpFromServerInstance(disassociatePublicIpFromServerInstanceRequest *DisassociatePublicIpFromServerInstanceRequest) (*DisassociatePublicIpFromServerInstanceResponse, error) {
+ var (
+ localVarHttpMethod = strings.ToUpper("Post")
+ localVarPostBody interface{}
+ localVarFileName string
+ localVarFileBytes []byte
+ successPayload DisassociatePublicIpFromServerInstanceResponse
+ )
+
+ // create path and map variables
+ localVarPath := a.client.cfg.BasePath + "/disassociatePublicIpFromServerInstance"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+
+ // to determine the Content-Type header
+ localVarHttpContentTypes := []string{ "application/x-www-form-urlencoded", }
+
+ // set Content-Type header
+ localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
+ if localVarHttpContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHttpContentType
+ }
+
+ // to determine the Accept header
+ localVarHttpHeaderAccepts := []string{
+ }
+
+ // set Accept header
+ localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts)
+ if localVarHttpHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
+ }
+ // body params
+ localVarPostBody = disassociatePublicIpFromServerInstanceRequest
+ 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(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), `{`)) {
+ return &successPayload, reportError("Status: %v, Body: %s", localVarHttpResponse.Status, bodyBytes)
+ }
+
+ if !strings.Contains(string(bodyBytes), `{"error"`) && strings.HasPrefix(string(bodyBytes), `{`) {
+ if err = json.Unmarshal(bodyBytes[bytes.IndexAny(bytes.Trim(bodyBytes, "{"), "{"):len(bodyBytes)-1], &successPayload); err != nil {
+ return &successPayload, err
+ }
+ }
+
+
+ return &successPayload, err
+}
+
+/* V2ApiService
+ ACG상세조회
+ @param getAccessControlGroupDetailRequest getAccessControlGroupDetailRequest
+ @return *GetAccessControlGroupDetailResponse*/
+func (a *V2ApiService) GetAccessControlGroupDetail(getAccessControlGroupDetailRequest *GetAccessControlGroupDetailRequest) (*GetAccessControlGroupDetailResponse, error) {
+ var (
+ localVarHttpMethod = strings.ToUpper("Post")
+ localVarPostBody interface{}
+ localVarFileName string
+ localVarFileBytes []byte
+ successPayload GetAccessControlGroupDetailResponse
+ )
+
+ // create path and map variables
+ localVarPath := a.client.cfg.BasePath + "/getAccessControlGroupDetail"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+
+ // to determine the Content-Type header
+ localVarHttpContentTypes := []string{ "application/x-www-form-urlencoded", }
+
+ // set Content-Type header
+ localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
+ if localVarHttpContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHttpContentType
+ }
+
+ // to determine the Accept header
+ localVarHttpHeaderAccepts := []string{
+ }
+
+ // set Accept header
+ localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts)
+ if localVarHttpHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
+ }
+ // body params
+ localVarPostBody = getAccessControlGroupDetailRequest
+ 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(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), `{`)) {
+ return &successPayload, reportError("Status: %v, Body: %s", localVarHttpResponse.Status, bodyBytes)
+ }
+
+ if !strings.Contains(string(bodyBytes), `{"error"`) && strings.HasPrefix(string(bodyBytes), `{`) {
+ if err = json.Unmarshal(bodyBytes[bytes.IndexAny(bytes.Trim(bodyBytes, "{"), "{"):len(bodyBytes)-1], &successPayload); err != nil {
+ return &successPayload, err
+ }
+ }
+
+
+ return &successPayload, err
+}
+
+/* V2ApiService
+ ACG리스트조회
+ @param getAccessControlGroupListRequest getAccessControlGroupListRequest
+ @return *GetAccessControlGroupListResponse*/
+func (a *V2ApiService) GetAccessControlGroupList(getAccessControlGroupListRequest *GetAccessControlGroupListRequest) (*GetAccessControlGroupListResponse, error) {
+ var (
+ localVarHttpMethod = strings.ToUpper("Post")
+ localVarPostBody interface{}
+ localVarFileName string
+ localVarFileBytes []byte
+ successPayload GetAccessControlGroupListResponse
+ )
+
+ // create path and map variables
+ localVarPath := a.client.cfg.BasePath + "/getAccessControlGroupList"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+
+ // to determine the Content-Type header
+ localVarHttpContentTypes := []string{ "application/x-www-form-urlencoded", }
+
+ // set Content-Type header
+ localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
+ if localVarHttpContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHttpContentType
+ }
+
+ // to determine the Accept header
+ localVarHttpHeaderAccepts := []string{
+ }
+
+ // set Accept header
+ localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts)
+ if localVarHttpHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
+ }
+ // body params
+ localVarPostBody = getAccessControlGroupListRequest
+ 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(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), `{`)) {
+ return &successPayload, reportError("Status: %v, Body: %s", localVarHttpResponse.Status, bodyBytes)
+ }
+
+ if !strings.Contains(string(bodyBytes), `{"error"`) && strings.HasPrefix(string(bodyBytes), `{`) {
+ if err = json.Unmarshal(bodyBytes[bytes.IndexAny(bytes.Trim(bodyBytes, "{"), "{"):len(bodyBytes)-1], &successPayload); err != nil {
+ return &successPayload, err
+ }
+ }
+
+
+ return &successPayload, err
+}
+
+/* V2ApiService
+ ACGRule리스트조회
+ @param getAccessControlGroupRuleListRequest getAccessControlGroupRuleListRequest
+ @return *GetAccessControlGroupRuleListResponse*/
+func (a *V2ApiService) GetAccessControlGroupRuleList(getAccessControlGroupRuleListRequest *GetAccessControlGroupRuleListRequest) (*GetAccessControlGroupRuleListResponse, error) {
+ var (
+ localVarHttpMethod = strings.ToUpper("Post")
+ localVarPostBody interface{}
+ localVarFileName string
+ localVarFileBytes []byte
+ successPayload GetAccessControlGroupRuleListResponse
+ )
+
+ // create path and map variables
+ localVarPath := a.client.cfg.BasePath + "/getAccessControlGroupRuleList"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+
+ // to determine the Content-Type header
+ localVarHttpContentTypes := []string{ "application/x-www-form-urlencoded", }
+
+ // set Content-Type header
+ localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
+ if localVarHttpContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHttpContentType
+ }
+
+ // to determine the Accept header
+ localVarHttpHeaderAccepts := []string{
+ }
+
+ // set Accept header
+ localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts)
+ if localVarHttpHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
+ }
+ // body params
+ localVarPostBody = getAccessControlGroupRuleListRequest
+ 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(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), `{`)) {
+ return &successPayload, reportError("Status: %v, Body: %s", localVarHttpResponse.Status, bodyBytes)
+ }
+
+ if !strings.Contains(string(bodyBytes), `{"error"`) && strings.HasPrefix(string(bodyBytes), `{`) {
+ if err = json.Unmarshal(bodyBytes[bytes.IndexAny(bytes.Trim(bodyBytes, "{"), "{"):len(bodyBytes)-1], &successPayload); err != nil {
+ return &successPayload, err
+ }
+ }
+
+
+ return &successPayload, err
+}
+
+/* V2ApiService
+ 블록스토리지인스턴스상세조회
+ @param getBlockStorageInstanceDetailRequest getBlockStorageInstanceDetailRequest
+ @return *GetBlockStorageInstanceDetailResponse*/
+func (a *V2ApiService) GetBlockStorageInstanceDetail(getBlockStorageInstanceDetailRequest *GetBlockStorageInstanceDetailRequest) (*GetBlockStorageInstanceDetailResponse, error) {
+ var (
+ localVarHttpMethod = strings.ToUpper("Post")
+ localVarPostBody interface{}
+ localVarFileName string
+ localVarFileBytes []byte
+ successPayload GetBlockStorageInstanceDetailResponse
+ )
+
+ // create path and map variables
+ localVarPath := a.client.cfg.BasePath + "/getBlockStorageInstanceDetail"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+
+ // to determine the Content-Type header
+ localVarHttpContentTypes := []string{ "application/x-www-form-urlencoded", }
+
+ // set Content-Type header
+ localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
+ if localVarHttpContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHttpContentType
+ }
+
+ // to determine the Accept header
+ localVarHttpHeaderAccepts := []string{
+ }
+
+ // set Accept header
+ localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts)
+ if localVarHttpHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
+ }
+ // body params
+ localVarPostBody = getBlockStorageInstanceDetailRequest
+ 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(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), `{`)) {
+ return &successPayload, reportError("Status: %v, Body: %s", localVarHttpResponse.Status, bodyBytes)
+ }
+
+ if !strings.Contains(string(bodyBytes), `{"error"`) && strings.HasPrefix(string(bodyBytes), `{`) {
+ if err = json.Unmarshal(bodyBytes[bytes.IndexAny(bytes.Trim(bodyBytes, "{"), "{"):len(bodyBytes)-1], &successPayload); err != nil {
+ return &successPayload, err
+ }
+ }
+
+
+ return &successPayload, err
+}
+
+/* V2ApiService
+ 블록스토리지인스턴스리스트조회
+ @param getBlockStorageInstanceListRequest getBlockStorageInstanceListRequest
+ @return *GetBlockStorageInstanceListResponse*/
+func (a *V2ApiService) GetBlockStorageInstanceList(getBlockStorageInstanceListRequest *GetBlockStorageInstanceListRequest) (*GetBlockStorageInstanceListResponse, error) {
+ var (
+ localVarHttpMethod = strings.ToUpper("Post")
+ localVarPostBody interface{}
+ localVarFileName string
+ localVarFileBytes []byte
+ successPayload GetBlockStorageInstanceListResponse
+ )
+
+ // create path and map variables
+ localVarPath := a.client.cfg.BasePath + "/getBlockStorageInstanceList"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+
+ // to determine the Content-Type header
+ localVarHttpContentTypes := []string{ "application/x-www-form-urlencoded", }
+
+ // set Content-Type header
+ localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
+ if localVarHttpContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHttpContentType
+ }
+
+ // to determine the Accept header
+ localVarHttpHeaderAccepts := []string{
+ }
+
+ // set Accept header
+ localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts)
+ if localVarHttpHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
+ }
+ // body params
+ localVarPostBody = getBlockStorageInstanceListRequest
+ 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(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), `{`)) {
+ return &successPayload, reportError("Status: %v, Body: %s", localVarHttpResponse.Status, bodyBytes)
+ }
+
+ if !strings.Contains(string(bodyBytes), `{"error"`) && strings.HasPrefix(string(bodyBytes), `{`) {
+ if err = json.Unmarshal(bodyBytes[bytes.IndexAny(bytes.Trim(bodyBytes, "{"), "{"):len(bodyBytes)-1], &successPayload); err != nil {
+ return &successPayload, err
+ }
+ }
+
+
+ return &successPayload, err
+}
+
+/* V2ApiService
+ 블록스토리지스냅샷인스턴스상세조회
+ @param getBlockStorageSnapshotInstanceDetailRequest getBlockStorageSnapshotInstanceDetailRequest
+ @return *GetBlockStorageSnapshotInstanceDetailResponse*/
+func (a *V2ApiService) GetBlockStorageSnapshotInstanceDetail(getBlockStorageSnapshotInstanceDetailRequest *GetBlockStorageSnapshotInstanceDetailRequest) (*GetBlockStorageSnapshotInstanceDetailResponse, error) {
+ var (
+ localVarHttpMethod = strings.ToUpper("Post")
+ localVarPostBody interface{}
+ localVarFileName string
+ localVarFileBytes []byte
+ successPayload GetBlockStorageSnapshotInstanceDetailResponse
+ )
+
+ // create path and map variables
+ localVarPath := a.client.cfg.BasePath + "/getBlockStorageSnapshotInstanceDetail"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+
+ // to determine the Content-Type header
+ localVarHttpContentTypes := []string{ "application/x-www-form-urlencoded", }
+
+ // set Content-Type header
+ localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
+ if localVarHttpContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHttpContentType
+ }
+
+ // to determine the Accept header
+ localVarHttpHeaderAccepts := []string{
+ }
+
+ // set Accept header
+ localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts)
+ if localVarHttpHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
+ }
+ // body params
+ localVarPostBody = getBlockStorageSnapshotInstanceDetailRequest
+ 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(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), `{`)) {
+ return &successPayload, reportError("Status: %v, Body: %s", localVarHttpResponse.Status, bodyBytes)
+ }
+
+ if !strings.Contains(string(bodyBytes), `{"error"`) && strings.HasPrefix(string(bodyBytes), `{`) {
+ if err = json.Unmarshal(bodyBytes[bytes.IndexAny(bytes.Trim(bodyBytes, "{"), "{"):len(bodyBytes)-1], &successPayload); err != nil {
+ return &successPayload, err
+ }
+ }
+
+
+ return &successPayload, err
+}
+
+/* V2ApiService
+ 블록스토리지스냅샷인스턴스리스트조회
+ @param getBlockStorageSnapshotInstanceListRequest getBlockStorageSnapshotInstanceListRequest
+ @return *GetBlockStorageSnapshotInstanceListResponse*/
+func (a *V2ApiService) GetBlockStorageSnapshotInstanceList(getBlockStorageSnapshotInstanceListRequest *GetBlockStorageSnapshotInstanceListRequest) (*GetBlockStorageSnapshotInstanceListResponse, error) {
+ var (
+ localVarHttpMethod = strings.ToUpper("Post")
+ localVarPostBody interface{}
+ localVarFileName string
+ localVarFileBytes []byte
+ successPayload GetBlockStorageSnapshotInstanceListResponse
+ )
+
+ // create path and map variables
+ localVarPath := a.client.cfg.BasePath + "/getBlockStorageSnapshotInstanceList"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+
+ // to determine the Content-Type header
+ localVarHttpContentTypes := []string{ "application/x-www-form-urlencoded", }
+
+ // set Content-Type header
+ localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
+ if localVarHttpContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHttpContentType
+ }
+
+ // to determine the Accept header
+ localVarHttpHeaderAccepts := []string{
+ }
+
+ // set Accept header
+ localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts)
+ if localVarHttpHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
+ }
+ // body params
+ localVarPostBody = getBlockStorageSnapshotInstanceListRequest
+ 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(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), `{`)) {
+ return &successPayload, reportError("Status: %v, Body: %s", localVarHttpResponse.Status, bodyBytes)
+ }
+
+ if !strings.Contains(string(bodyBytes), `{"error"`) && strings.HasPrefix(string(bodyBytes), `{`) {
+ if err = json.Unmarshal(bodyBytes[bytes.IndexAny(bytes.Trim(bodyBytes, "{"), "{"):len(bodyBytes)-1], &successPayload); err != nil {
+ return &successPayload, err
+ }
+ }
+
+
+ return &successPayload, err
+}
+
+/* V2ApiService
+ 초기화스크립트상세조회
+ @param getInitScriptDetailRequest getInitScriptDetailRequest
+ @return *GetInitScriptDetailResponse*/
+func (a *V2ApiService) GetInitScriptDetail(getInitScriptDetailRequest *GetInitScriptDetailRequest) (*GetInitScriptDetailResponse, error) {
+ var (
+ localVarHttpMethod = strings.ToUpper("Post")
+ localVarPostBody interface{}
+ localVarFileName string
+ localVarFileBytes []byte
+ successPayload GetInitScriptDetailResponse
+ )
+
+ // create path and map variables
+ localVarPath := a.client.cfg.BasePath + "/getInitScriptDetail"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+
+ // to determine the Content-Type header
+ localVarHttpContentTypes := []string{ "application/x-www-form-urlencoded", }
+
+ // set Content-Type header
+ localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
+ if localVarHttpContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHttpContentType
+ }
+
+ // to determine the Accept header
+ localVarHttpHeaderAccepts := []string{
+ }
+
+ // set Accept header
+ localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts)
+ if localVarHttpHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
+ }
+ // body params
+ localVarPostBody = getInitScriptDetailRequest
+ 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(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), `{`)) {
+ return &successPayload, reportError("Status: %v, Body: %s", localVarHttpResponse.Status, bodyBytes)
+ }
+
+ if !strings.Contains(string(bodyBytes), `{"error"`) && strings.HasPrefix(string(bodyBytes), `{`) {
+ if err = json.Unmarshal(bodyBytes[bytes.IndexAny(bytes.Trim(bodyBytes, "{"), "{"):len(bodyBytes)-1], &successPayload); err != nil {
+ return &successPayload, err
+ }
+ }
+
+
+ return &successPayload, err
+}
+
+/* V2ApiService
+ 초기화스크립트리스트조회
+ @param getInitScriptListRequest getInitScriptListRequest
+ @return *GetInitScriptListResponse*/
+func (a *V2ApiService) GetInitScriptList(getInitScriptListRequest *GetInitScriptListRequest) (*GetInitScriptListResponse, error) {
+ var (
+ localVarHttpMethod = strings.ToUpper("Post")
+ localVarPostBody interface{}
+ localVarFileName string
+ localVarFileBytes []byte
+ successPayload GetInitScriptListResponse
+ )
+
+ // create path and map variables
+ localVarPath := a.client.cfg.BasePath + "/getInitScriptList"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+
+ // to determine the Content-Type header
+ localVarHttpContentTypes := []string{ "application/x-www-form-urlencoded", }
+
+ // set Content-Type header
+ localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
+ if localVarHttpContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHttpContentType
+ }
+
+ // to determine the Accept header
+ localVarHttpHeaderAccepts := []string{
+ }
+
+ // set Accept header
+ localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts)
+ if localVarHttpHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
+ }
+ // body params
+ localVarPostBody = getInitScriptListRequest
+ 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(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), `{`)) {
+ return &successPayload, reportError("Status: %v, Body: %s", localVarHttpResponse.Status, bodyBytes)
+ }
+
+ if !strings.Contains(string(bodyBytes), `{"error"`) && strings.HasPrefix(string(bodyBytes), `{`) {
+ if err = json.Unmarshal(bodyBytes[bytes.IndexAny(bytes.Trim(bodyBytes, "{"), "{"):len(bodyBytes)-1], &successPayload); err != nil {
+ return &successPayload, err
+ }
+ }
+
+
+ return &successPayload, err
+}
+
+/* V2ApiService
+ 로그인키리스트조회
+ @param getLoginKeyListRequest getLoginKeyListRequest
+ @return *GetLoginKeyListResponse*/
+func (a *V2ApiService) GetLoginKeyList(getLoginKeyListRequest *GetLoginKeyListRequest) (*GetLoginKeyListResponse, error) {
+ var (
+ localVarHttpMethod = strings.ToUpper("Post")
+ localVarPostBody interface{}
+ localVarFileName string
+ localVarFileBytes []byte
+ successPayload GetLoginKeyListResponse
+ )
+
+ // create path and map variables
+ localVarPath := a.client.cfg.BasePath + "/getLoginKeyList"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+
+ // to determine the Content-Type header
+ localVarHttpContentTypes := []string{ "application/x-www-form-urlencoded", }
+
+ // set Content-Type header
+ localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
+ if localVarHttpContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHttpContentType
+ }
+
+ // to determine the Accept header
+ localVarHttpHeaderAccepts := []string{
+ }
+
+ // set Accept header
+ localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts)
+ if localVarHttpHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
+ }
+ // body params
+ localVarPostBody = getLoginKeyListRequest
+ 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(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), `{`)) {
+ return &successPayload, reportError("Status: %v, Body: %s", localVarHttpResponse.Status, bodyBytes)
+ }
+
+ if !strings.Contains(string(bodyBytes), `{"error"`) && strings.HasPrefix(string(bodyBytes), `{`) {
+ if err = json.Unmarshal(bodyBytes[bytes.IndexAny(bytes.Trim(bodyBytes, "{"), "{"):len(bodyBytes)-1], &successPayload); err != nil {
+ return &successPayload, err
+ }
+ }
+
+
+ return &successPayload, err
+}
+
+/* V2ApiService
+ 회원서버이미지인스턴스상세조회
+ @param getMemberServerImageInstanceDetailRequest getMemberServerImageInstanceDetailRequest
+ @return *GetMemberServerImageInstanceDetailResponse*/
+func (a *V2ApiService) GetMemberServerImageInstanceDetail(getMemberServerImageInstanceDetailRequest *GetMemberServerImageInstanceDetailRequest) (*GetMemberServerImageInstanceDetailResponse, error) {
+ var (
+ localVarHttpMethod = strings.ToUpper("Post")
+ localVarPostBody interface{}
+ localVarFileName string
+ localVarFileBytes []byte
+ successPayload GetMemberServerImageInstanceDetailResponse
+ )
+
+ // create path and map variables
+ localVarPath := a.client.cfg.BasePath + "/getMemberServerImageInstanceDetail"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+
+ // to determine the Content-Type header
+ localVarHttpContentTypes := []string{ "application/x-www-form-urlencoded", }
+
+ // set Content-Type header
+ localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
+ if localVarHttpContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHttpContentType
+ }
+
+ // to determine the Accept header
+ localVarHttpHeaderAccepts := []string{
+ }
+
+ // set Accept header
+ localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts)
+ if localVarHttpHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
+ }
+ // body params
+ localVarPostBody = getMemberServerImageInstanceDetailRequest
+ 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(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), `{`)) {
+ return &successPayload, reportError("Status: %v, Body: %s", localVarHttpResponse.Status, bodyBytes)
+ }
+
+ if !strings.Contains(string(bodyBytes), `{"error"`) && strings.HasPrefix(string(bodyBytes), `{`) {
+ if err = json.Unmarshal(bodyBytes[bytes.IndexAny(bytes.Trim(bodyBytes, "{"), "{"):len(bodyBytes)-1], &successPayload); err != nil {
+ return &successPayload, err
+ }
+ }
+
+
+ return &successPayload, err
+}
+
+/* V2ApiService
+ 회원서버이미지인스턴스리스트조회
+ @param getMemberServerImageInstanceListRequest getMemberServerImageInstanceListRequest
+ @return *GetMemberServerImageInstanceListResponse*/
+func (a *V2ApiService) GetMemberServerImageInstanceList(getMemberServerImageInstanceListRequest *GetMemberServerImageInstanceListRequest) (*GetMemberServerImageInstanceListResponse, error) {
+ var (
+ localVarHttpMethod = strings.ToUpper("Post")
+ localVarPostBody interface{}
+ localVarFileName string
+ localVarFileBytes []byte
+ successPayload GetMemberServerImageInstanceListResponse
+ )
+
+ // create path and map variables
+ localVarPath := a.client.cfg.BasePath + "/getMemberServerImageInstanceList"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+
+ // to determine the Content-Type header
+ localVarHttpContentTypes := []string{ "application/x-www-form-urlencoded", }
+
+ // set Content-Type header
+ localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
+ if localVarHttpContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHttpContentType
+ }
+
+ // to determine the Accept header
+ localVarHttpHeaderAccepts := []string{
+ }
+
+ // set Accept header
+ localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts)
+ if localVarHttpHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
+ }
+ // body params
+ localVarPostBody = getMemberServerImageInstanceListRequest
+ 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(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), `{`)) {
+ return &successPayload, reportError("Status: %v, Body: %s", localVarHttpResponse.Status, bodyBytes)
+ }
+
+ if !strings.Contains(string(bodyBytes), `{"error"`) && strings.HasPrefix(string(bodyBytes), `{`) {
+ if err = json.Unmarshal(bodyBytes[bytes.IndexAny(bytes.Trim(bodyBytes, "{"), "{"):len(bodyBytes)-1], &successPayload); err != nil {
+ return &successPayload, err
+ }
+ }
+
+
+ return &successPayload, err
+}
+
+/* V2ApiService
+ 네트워크인터페이스상세조회
+ @param getNetworkInterfaceDetailRequest getNetworkInterfaceDetailRequest
+ @return *GetNetworkInterfaceDetailResponse*/
+func (a *V2ApiService) GetNetworkInterfaceDetail(getNetworkInterfaceDetailRequest *GetNetworkInterfaceDetailRequest) (*GetNetworkInterfaceDetailResponse, error) {
+ var (
+ localVarHttpMethod = strings.ToUpper("Post")
+ localVarPostBody interface{}
+ localVarFileName string
+ localVarFileBytes []byte
+ successPayload GetNetworkInterfaceDetailResponse
+ )
+
+ // create path and map variables
+ localVarPath := a.client.cfg.BasePath + "/getNetworkInterfaceDetail"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+
+ // to determine the Content-Type header
+ localVarHttpContentTypes := []string{ "application/x-www-form-urlencoded", }
+
+ // set Content-Type header
+ localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
+ if localVarHttpContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHttpContentType
+ }
+
+ // to determine the Accept header
+ localVarHttpHeaderAccepts := []string{
+ }
+
+ // set Accept header
+ localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts)
+ if localVarHttpHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
+ }
+ // body params
+ localVarPostBody = getNetworkInterfaceDetailRequest
+ 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(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), `{`)) {
+ return &successPayload, reportError("Status: %v, Body: %s", localVarHttpResponse.Status, bodyBytes)
+ }
+
+ if !strings.Contains(string(bodyBytes), `{"error"`) && strings.HasPrefix(string(bodyBytes), `{`) {
+ if err = json.Unmarshal(bodyBytes[bytes.IndexAny(bytes.Trim(bodyBytes, "{"), "{"):len(bodyBytes)-1], &successPayload); err != nil {
+ return &successPayload, err
+ }
+ }
+
+
+ return &successPayload, err
+}
+
+/* V2ApiService
+ 네트워크인터페이스리스트조회
+ @param getNetworkInterfaceListRequest getNetworkInterfaceListRequest
+ @return *GetNetworkInterfaceListResponse*/
+func (a *V2ApiService) GetNetworkInterfaceList(getNetworkInterfaceListRequest *GetNetworkInterfaceListRequest) (*GetNetworkInterfaceListResponse, error) {
+ var (
+ localVarHttpMethod = strings.ToUpper("Post")
+ localVarPostBody interface{}
+ localVarFileName string
+ localVarFileBytes []byte
+ successPayload GetNetworkInterfaceListResponse
+ )
+
+ // create path and map variables
+ localVarPath := a.client.cfg.BasePath + "/getNetworkInterfaceList"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+
+ // to determine the Content-Type header
+ localVarHttpContentTypes := []string{ "application/x-www-form-urlencoded", }
+
+ // set Content-Type header
+ localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
+ if localVarHttpContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHttpContentType
+ }
+
+ // to determine the Accept header
+ localVarHttpHeaderAccepts := []string{
+ }
+
+ // set Accept header
+ localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts)
+ if localVarHttpHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
+ }
+ // body params
+ localVarPostBody = getNetworkInterfaceListRequest
+ 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(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), `{`)) {
+ return &successPayload, reportError("Status: %v, Body: %s", localVarHttpResponse.Status, bodyBytes)
+ }
+
+ if !strings.Contains(string(bodyBytes), `{"error"`) && strings.HasPrefix(string(bodyBytes), `{`) {
+ if err = json.Unmarshal(bodyBytes[bytes.IndexAny(bytes.Trim(bodyBytes, "{"), "{"):len(bodyBytes)-1], &successPayload); err != nil {
+ return &successPayload, err
+ }
+ }
+
+
+ return &successPayload, err
+}
+
+/* V2ApiService
+ 물리배치그룹상세조회
+ @param getPlacementGroupDetailRequest getPlacementGroupDetailRequest
+ @return *GetPlacementGroupDetailResponse*/
+func (a *V2ApiService) GetPlacementGroupDetail(getPlacementGroupDetailRequest *GetPlacementGroupDetailRequest) (*GetPlacementGroupDetailResponse, error) {
+ var (
+ localVarHttpMethod = strings.ToUpper("Post")
+ localVarPostBody interface{}
+ localVarFileName string
+ localVarFileBytes []byte
+ successPayload GetPlacementGroupDetailResponse
+ )
+
+ // create path and map variables
+ localVarPath := a.client.cfg.BasePath + "/getPlacementGroupDetail"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+
+ // to determine the Content-Type header
+ localVarHttpContentTypes := []string{ "application/x-www-form-urlencoded", }
+
+ // set Content-Type header
+ localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
+ if localVarHttpContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHttpContentType
+ }
+
+ // to determine the Accept header
+ localVarHttpHeaderAccepts := []string{
+ }
+
+ // set Accept header
+ localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts)
+ if localVarHttpHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
+ }
+ // body params
+ localVarPostBody = getPlacementGroupDetailRequest
+ 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(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), `{`)) {
+ return &successPayload, reportError("Status: %v, Body: %s", localVarHttpResponse.Status, bodyBytes)
+ }
+
+ if !strings.Contains(string(bodyBytes), `{"error"`) && strings.HasPrefix(string(bodyBytes), `{`) {
+ if err = json.Unmarshal(bodyBytes[bytes.IndexAny(bytes.Trim(bodyBytes, "{"), "{"):len(bodyBytes)-1], &successPayload); err != nil {
+ return &successPayload, err
+ }
+ }
+
+
+ return &successPayload, err
+}
+
+/* V2ApiService
+ 물리배치그룹리스트조회
+ @param getPlacementGroupListRequest getPlacementGroupListRequest
+ @return *GetPlacementGroupListResponse*/
+func (a *V2ApiService) GetPlacementGroupList(getPlacementGroupListRequest *GetPlacementGroupListRequest) (*GetPlacementGroupListResponse, error) {
+ var (
+ localVarHttpMethod = strings.ToUpper("Post")
+ localVarPostBody interface{}
+ localVarFileName string
+ localVarFileBytes []byte
+ successPayload GetPlacementGroupListResponse
+ )
+
+ // create path and map variables
+ localVarPath := a.client.cfg.BasePath + "/getPlacementGroupList"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+
+ // to determine the Content-Type header
+ localVarHttpContentTypes := []string{ "application/x-www-form-urlencoded", }
+
+ // set Content-Type header
+ localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
+ if localVarHttpContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHttpContentType
+ }
+
+ // to determine the Accept header
+ localVarHttpHeaderAccepts := []string{
+ }
+
+ // set Accept header
+ localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts)
+ if localVarHttpHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
+ }
+ // body params
+ localVarPostBody = getPlacementGroupListRequest
+ 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(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), `{`)) {
+ return &successPayload, reportError("Status: %v, Body: %s", localVarHttpResponse.Status, bodyBytes)
+ }
+
+ if !strings.Contains(string(bodyBytes), `{"error"`) && strings.HasPrefix(string(bodyBytes), `{`) {
+ if err = json.Unmarshal(bodyBytes[bytes.IndexAny(bytes.Trim(bodyBytes, "{"), "{"):len(bodyBytes)-1], &successPayload); err != nil {
+ return &successPayload, err
+ }
+ }
+
+
+ return &successPayload, err
+}
+
+/* V2ApiService
+ 공인IP인스턴스상세조회
+ @param getPublicIpInstanceDetailRequest getPublicIpInstanceDetailRequest
+ @return *GetPublicIpInstanceDetailResponse*/
+func (a *V2ApiService) GetPublicIpInstanceDetail(getPublicIpInstanceDetailRequest *GetPublicIpInstanceDetailRequest) (*GetPublicIpInstanceDetailResponse, error) {
+ var (
+ localVarHttpMethod = strings.ToUpper("Post")
+ localVarPostBody interface{}
+ localVarFileName string
+ localVarFileBytes []byte
+ successPayload GetPublicIpInstanceDetailResponse
+ )
+
+ // create path and map variables
+ localVarPath := a.client.cfg.BasePath + "/getPublicIpInstanceDetail"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+
+ // to determine the Content-Type header
+ localVarHttpContentTypes := []string{ "application/x-www-form-urlencoded", }
+
+ // set Content-Type header
+ localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
+ if localVarHttpContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHttpContentType
+ }
+
+ // to determine the Accept header
+ localVarHttpHeaderAccepts := []string{
+ }
+
+ // set Accept header
+ localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts)
+ if localVarHttpHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
+ }
+ // body params
+ localVarPostBody = getPublicIpInstanceDetailRequest
+ 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(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), `{`)) {
+ return &successPayload, reportError("Status: %v, Body: %s", localVarHttpResponse.Status, bodyBytes)
+ }
+
+ if !strings.Contains(string(bodyBytes), `{"error"`) && strings.HasPrefix(string(bodyBytes), `{`) {
+ if err = json.Unmarshal(bodyBytes[bytes.IndexAny(bytes.Trim(bodyBytes, "{"), "{"):len(bodyBytes)-1], &successPayload); err != nil {
+ return &successPayload, err
+ }
+ }
+
+
+ return &successPayload, err
+}
+
+/* V2ApiService
+ 공인IP인스턴스리스트조회
+ @param getPublicIpInstanceListRequest getPublicIpInstanceListRequest
+ @return *GetPublicIpInstanceListResponse*/
+func (a *V2ApiService) GetPublicIpInstanceList(getPublicIpInstanceListRequest *GetPublicIpInstanceListRequest) (*GetPublicIpInstanceListResponse, error) {
+ var (
+ localVarHttpMethod = strings.ToUpper("Post")
+ localVarPostBody interface{}
+ localVarFileName string
+ localVarFileBytes []byte
+ successPayload GetPublicIpInstanceListResponse
+ )
+
+ // create path and map variables
+ localVarPath := a.client.cfg.BasePath + "/getPublicIpInstanceList"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+
+ // to determine the Content-Type header
+ localVarHttpContentTypes := []string{ "application/x-www-form-urlencoded", }
+
+ // set Content-Type header
+ localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
+ if localVarHttpContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHttpContentType
+ }
+
+ // to determine the Accept header
+ localVarHttpHeaderAccepts := []string{
+ }
+
+ // set Accept header
+ localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts)
+ if localVarHttpHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
+ }
+ // body params
+ localVarPostBody = getPublicIpInstanceListRequest
+ 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(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), `{`)) {
+ return &successPayload, reportError("Status: %v, Body: %s", localVarHttpResponse.Status, bodyBytes)
+ }
+
+ if !strings.Contains(string(bodyBytes), `{"error"`) && strings.HasPrefix(string(bodyBytes), `{`) {
+ if err = json.Unmarshal(bodyBytes[bytes.IndexAny(bytes.Trim(bodyBytes, "{"), "{"):len(bodyBytes)-1], &successPayload); err != nil {
+ return &successPayload, err
+ }
+ }
+
+
+ return &successPayload, err
+}
+
+/* V2ApiService
+ 공인IP할당가능서버인스턴스리스트조회
+ @param getPublicIpTargetServerInstanceListRequest getPublicIpTargetServerInstanceListRequest
+ @return *GetPublicIpTargetServerInstanceListResponse*/
+func (a *V2ApiService) GetPublicIpTargetServerInstanceList(getPublicIpTargetServerInstanceListRequest *GetPublicIpTargetServerInstanceListRequest) (*GetPublicIpTargetServerInstanceListResponse, error) {
+ var (
+ localVarHttpMethod = strings.ToUpper("Post")
+ localVarPostBody interface{}
+ localVarFileName string
+ localVarFileBytes []byte
+ successPayload GetPublicIpTargetServerInstanceListResponse
+ )
+
+ // create path and map variables
+ localVarPath := a.client.cfg.BasePath + "/getPublicIpTargetServerInstanceList"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+
+ // to determine the Content-Type header
+ localVarHttpContentTypes := []string{ "application/x-www-form-urlencoded", }
+
+ // set Content-Type header
+ localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
+ if localVarHttpContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHttpContentType
+ }
+
+ // to determine the Accept header
+ localVarHttpHeaderAccepts := []string{
+ }
+
+ // set Accept header
+ localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts)
+ if localVarHttpHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
+ }
+ // body params
+ localVarPostBody = getPublicIpTargetServerInstanceListRequest
+ 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(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), `{`)) {
+ return &successPayload, reportError("Status: %v, Body: %s", localVarHttpResponse.Status, bodyBytes)
+ }
+
+ if !strings.Contains(string(bodyBytes), `{"error"`) && strings.HasPrefix(string(bodyBytes), `{`) {
+ if err = json.Unmarshal(bodyBytes[bytes.IndexAny(bytes.Trim(bodyBytes, "{"), "{"):len(bodyBytes)-1], &successPayload); err != nil {
+ return &successPayload, err
+ }
+ }
+
+
+ return &successPayload, err
+}
+
+/* V2ApiService
+ REGION리스트조회
+ @param getRegionListRequest getRegionListRequest
+ @return *GetRegionListResponse*/
+func (a *V2ApiService) GetRegionList(getRegionListRequest *GetRegionListRequest) (*GetRegionListResponse, error) {
+ var (
+ localVarHttpMethod = strings.ToUpper("Post")
+ localVarPostBody interface{}
+ localVarFileName string
+ localVarFileBytes []byte
+ successPayload GetRegionListResponse
+ )
+
+ // create path and map variables
+ localVarPath := a.client.cfg.BasePath + "/getRegionList"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+
+ // to determine the Content-Type header
+ localVarHttpContentTypes := []string{ "application/x-www-form-urlencoded", }
+
+ // set Content-Type header
+ localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
+ if localVarHttpContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHttpContentType
+ }
+
+ // to determine the Accept header
+ localVarHttpHeaderAccepts := []string{
+ }
+
+ // set Accept header
+ localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts)
+ if localVarHttpHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
+ }
+ // body params
+ localVarPostBody = getRegionListRequest
+ 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(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), `{`)) {
+ return &successPayload, reportError("Status: %v, Body: %s", localVarHttpResponse.Status, bodyBytes)
+ }
+
+ if !strings.Contains(string(bodyBytes), `{"error"`) && strings.HasPrefix(string(bodyBytes), `{`) {
+ if err = json.Unmarshal(bodyBytes[bytes.IndexAny(bytes.Trim(bodyBytes, "{"), "{"):len(bodyBytes)-1], &successPayload); err != nil {
+ return &successPayload, err
+ }
+ }
+
+
+ return &successPayload, err
+}
+
+/* V2ApiService
+ 서버인스턴스의루트패스워드조회
+ @param getRootPasswordRequest getRootPasswordRequest
+ @return *GetRootPasswordResponse*/
+func (a *V2ApiService) GetRootPassword(getRootPasswordRequest *GetRootPasswordRequest) (*GetRootPasswordResponse, error) {
+ var (
+ localVarHttpMethod = strings.ToUpper("Post")
+ localVarPostBody interface{}
+ localVarFileName string
+ localVarFileBytes []byte
+ successPayload GetRootPasswordResponse
+ )
+
+ // create path and map variables
+ localVarPath := a.client.cfg.BasePath + "/getRootPassword"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+
+ // to determine the Content-Type header
+ localVarHttpContentTypes := []string{ "application/x-www-form-urlencoded", }
+
+ // set Content-Type header
+ localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
+ if localVarHttpContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHttpContentType
+ }
+
+ // to determine the Accept header
+ localVarHttpHeaderAccepts := []string{
+ }
+
+ // set Accept header
+ localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts)
+ if localVarHttpHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
+ }
+ // body params
+ localVarPostBody = getRootPasswordRequest
+ 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(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), `{`)) {
+ return &successPayload, reportError("Status: %v, Body: %s", localVarHttpResponse.Status, bodyBytes)
+ }
+
+ if !strings.Contains(string(bodyBytes), `{"error"`) && strings.HasPrefix(string(bodyBytes), `{`) {
+ if err = json.Unmarshal(bodyBytes[bytes.IndexAny(bytes.Trim(bodyBytes, "{"), "{"):len(bodyBytes)-1], &successPayload); err != nil {
+ return &successPayload, err
+ }
+ }
+
+
+ return &successPayload, err
+}
+
+/* V2ApiService
+ 서버인스턴스리스트의루트패스워드조회
+ @param getRootPasswordServerInstanceListRequest getRootPasswordServerInstanceListRequest
+ @return *GetRootPasswordServerInstanceListResponse*/
+func (a *V2ApiService) GetRootPasswordServerInstanceList(getRootPasswordServerInstanceListRequest *GetRootPasswordServerInstanceListRequest) (*GetRootPasswordServerInstanceListResponse, error) {
+ var (
+ localVarHttpMethod = strings.ToUpper("Post")
+ localVarPostBody interface{}
+ localVarFileName string
+ localVarFileBytes []byte
+ successPayload GetRootPasswordServerInstanceListResponse
+ )
+
+ // create path and map variables
+ localVarPath := a.client.cfg.BasePath + "/getRootPasswordServerInstanceList"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+
+ // to determine the Content-Type header
+ localVarHttpContentTypes := []string{ "application/x-www-form-urlencoded", }
+
+ // set Content-Type header
+ localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
+ if localVarHttpContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHttpContentType
+ }
+
+ // to determine the Accept header
+ localVarHttpHeaderAccepts := []string{
+ }
+
+ // set Accept header
+ localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts)
+ if localVarHttpHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
+ }
+ // body params
+ localVarPostBody = getRootPasswordServerInstanceListRequest
+ 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(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), `{`)) {
+ return &successPayload, reportError("Status: %v, Body: %s", localVarHttpResponse.Status, bodyBytes)
+ }
+
+ if !strings.Contains(string(bodyBytes), `{"error"`) && strings.HasPrefix(string(bodyBytes), `{`) {
+ if err = json.Unmarshal(bodyBytes[bytes.IndexAny(bytes.Trim(bodyBytes, "{"), "{"):len(bodyBytes)-1], &successPayload); err != nil {
+ return &successPayload, err
+ }
+ }
+
+
+ return &successPayload, err
+}
+
+/* V2ApiService
+ 서버이미지상품리스트조회
+ @param getServerImageProductListRequest getServerImageProductListRequest
+ @return *GetServerImageProductListResponse*/
+func (a *V2ApiService) GetServerImageProductList(getServerImageProductListRequest *GetServerImageProductListRequest) (*GetServerImageProductListResponse, error) {
+ var (
+ localVarHttpMethod = strings.ToUpper("Post")
+ localVarPostBody interface{}
+ localVarFileName string
+ localVarFileBytes []byte
+ successPayload GetServerImageProductListResponse
+ )
+
+ // create path and map variables
+ localVarPath := a.client.cfg.BasePath + "/getServerImageProductList"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+
+ // to determine the Content-Type header
+ localVarHttpContentTypes := []string{ "application/x-www-form-urlencoded", }
+
+ // set Content-Type header
+ localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
+ if localVarHttpContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHttpContentType
+ }
+
+ // to determine the Accept header
+ localVarHttpHeaderAccepts := []string{
+ }
+
+ // set Accept header
+ localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts)
+ if localVarHttpHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
+ }
+ // body params
+ localVarPostBody = getServerImageProductListRequest
+ 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(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), `{`)) {
+ return &successPayload, reportError("Status: %v, Body: %s", localVarHttpResponse.Status, bodyBytes)
+ }
+
+ if !strings.Contains(string(bodyBytes), `{"error"`) && strings.HasPrefix(string(bodyBytes), `{`) {
+ if err = json.Unmarshal(bodyBytes[bytes.IndexAny(bytes.Trim(bodyBytes, "{"), "{"):len(bodyBytes)-1], &successPayload); err != nil {
+ return &successPayload, err
+ }
+ }
+
+
+ return &successPayload, err
+}
+
+/* V2ApiService
+ 서버인스턴스상세조회
+ @param getServerInstanceDetailRequest getServerInstanceDetailRequest
+ @return *GetServerInstanceDetailResponse*/
+func (a *V2ApiService) GetServerInstanceDetail(getServerInstanceDetailRequest *GetServerInstanceDetailRequest) (*GetServerInstanceDetailResponse, error) {
+ var (
+ localVarHttpMethod = strings.ToUpper("Post")
+ localVarPostBody interface{}
+ localVarFileName string
+ localVarFileBytes []byte
+ successPayload GetServerInstanceDetailResponse
+ )
+
+ // create path and map variables
+ localVarPath := a.client.cfg.BasePath + "/getServerInstanceDetail"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+
+ // to determine the Content-Type header
+ localVarHttpContentTypes := []string{ "application/x-www-form-urlencoded", }
+
+ // set Content-Type header
+ localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
+ if localVarHttpContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHttpContentType
+ }
+
+ // to determine the Accept header
+ localVarHttpHeaderAccepts := []string{
+ }
+
+ // set Accept header
+ localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts)
+ if localVarHttpHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
+ }
+ // body params
+ localVarPostBody = getServerInstanceDetailRequest
+ 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(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), `{`)) {
+ return &successPayload, reportError("Status: %v, Body: %s", localVarHttpResponse.Status, bodyBytes)
+ }
+
+ if !strings.Contains(string(bodyBytes), `{"error"`) && strings.HasPrefix(string(bodyBytes), `{`) {
+ if err = json.Unmarshal(bodyBytes[bytes.IndexAny(bytes.Trim(bodyBytes, "{"), "{"):len(bodyBytes)-1], &successPayload); err != nil {
+ return &successPayload, err
+ }
+ }
+
+
+ return &successPayload, err
+}
+
+/* V2ApiService
+ 서버인스턴스리스트조회
+ @param getServerInstanceListRequest getServerInstanceListRequest
+ @return *GetServerInstanceListResponse*/
+func (a *V2ApiService) GetServerInstanceList(getServerInstanceListRequest *GetServerInstanceListRequest) (*GetServerInstanceListResponse, error) {
+ var (
+ localVarHttpMethod = strings.ToUpper("Post")
+ localVarPostBody interface{}
+ localVarFileName string
+ localVarFileBytes []byte
+ successPayload GetServerInstanceListResponse
+ )
+
+ // create path and map variables
+ localVarPath := a.client.cfg.BasePath + "/getServerInstanceList"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+
+ // to determine the Content-Type header
+ localVarHttpContentTypes := []string{ "application/x-www-form-urlencoded", }
+
+ // set Content-Type header
+ localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
+ if localVarHttpContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHttpContentType
+ }
+
+ // to determine the Accept header
+ localVarHttpHeaderAccepts := []string{
+ }
+
+ // set Accept header
+ localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts)
+ if localVarHttpHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
+ }
+ // body params
+ localVarPostBody = getServerInstanceListRequest
+ 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(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), `{`)) {
+ return &successPayload, reportError("Status: %v, Body: %s", localVarHttpResponse.Status, bodyBytes)
+ }
+
+ if !strings.Contains(string(bodyBytes), `{"error"`) && strings.HasPrefix(string(bodyBytes), `{`) {
+ if err = json.Unmarshal(bodyBytes[bytes.IndexAny(bytes.Trim(bodyBytes, "{"), "{"):len(bodyBytes)-1], &successPayload); err != nil {
+ return &successPayload, err
+ }
+ }
+
+
+ return &successPayload, err
+}
+
+/* V2ApiService
+ 서버상품리스트조회
+ @param getServerProductListRequest getServerProductListRequest
+ @return *GetServerProductListResponse*/
+func (a *V2ApiService) GetServerProductList(getServerProductListRequest *GetServerProductListRequest) (*GetServerProductListResponse, error) {
+ var (
+ localVarHttpMethod = strings.ToUpper("Post")
+ localVarPostBody interface{}
+ localVarFileName string
+ localVarFileBytes []byte
+ successPayload GetServerProductListResponse
+ )
+
+ // create path and map variables
+ localVarPath := a.client.cfg.BasePath + "/getServerProductList"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+
+ // to determine the Content-Type header
+ localVarHttpContentTypes := []string{ "application/x-www-form-urlencoded", }
+
+ // set Content-Type header
+ localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
+ if localVarHttpContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHttpContentType
+ }
+
+ // to determine the Accept header
+ localVarHttpHeaderAccepts := []string{
+ }
+
+ // set Accept header
+ localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts)
+ if localVarHttpHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
+ }
+ // body params
+ localVarPostBody = getServerProductListRequest
+ 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(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), `{`)) {
+ return &successPayload, reportError("Status: %v, Body: %s", localVarHttpResponse.Status, bodyBytes)
+ }
+
+ if !strings.Contains(string(bodyBytes), `{"error"`) && strings.HasPrefix(string(bodyBytes), `{`) {
+ if err = json.Unmarshal(bodyBytes[bytes.IndexAny(bytes.Trim(bodyBytes, "{"), "{"):len(bodyBytes)-1], &successPayload); err != nil {
+ return &successPayload, err
+ }
+ }
+
+
+ return &successPayload, err
+}
+
+/* V2ApiService
+ ZONE리스트조회
+ @param getZoneListRequest getZoneListRequest
+ @return *GetZoneListResponse*/
+func (a *V2ApiService) GetZoneList(getZoneListRequest *GetZoneListRequest) (*GetZoneListResponse, error) {
+ var (
+ localVarHttpMethod = strings.ToUpper("Post")
+ localVarPostBody interface{}
+ localVarFileName string
+ localVarFileBytes []byte
+ successPayload GetZoneListResponse
+ )
+
+ // create path and map variables
+ localVarPath := a.client.cfg.BasePath + "/getZoneList"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+
+ // to determine the Content-Type header
+ localVarHttpContentTypes := []string{ "application/x-www-form-urlencoded", }
+
+ // set Content-Type header
+ localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
+ if localVarHttpContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHttpContentType
+ }
+
+ // to determine the Accept header
+ localVarHttpHeaderAccepts := []string{
+ }
+
+ // set Accept header
+ localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts)
+ if localVarHttpHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
+ }
+ // body params
+ localVarPostBody = getZoneListRequest
+ 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(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), `{`)) {
+ return &successPayload, reportError("Status: %v, Body: %s", localVarHttpResponse.Status, bodyBytes)
+ }
+
+ if !strings.Contains(string(bodyBytes), `{"error"`) && strings.HasPrefix(string(bodyBytes), `{`) {
+ if err = json.Unmarshal(bodyBytes[bytes.IndexAny(bytes.Trim(bodyBytes, "{"), "{"):len(bodyBytes)-1], &successPayload); err != nil {
+ return &successPayload, err
+ }
+ }
+
+
+ return &successPayload, err
+}
+
+/* V2ApiService
+ 사용자가생성한로그인키import
+ @param importLoginKeyRequest importLoginKeyRequest
+ @return *ImportLoginKeyResponse*/
+func (a *V2ApiService) ImportLoginKey(importLoginKeyRequest *ImportLoginKeyRequest) (*ImportLoginKeyResponse, error) {
+ var (
+ localVarHttpMethod = strings.ToUpper("Post")
+ localVarPostBody interface{}
+ localVarFileName string
+ localVarFileBytes []byte
+ successPayload ImportLoginKeyResponse
+ )
+
+ // create path and map variables
+ localVarPath := a.client.cfg.BasePath + "/importLoginKey"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+
+ // to determine the Content-Type header
+ localVarHttpContentTypes := []string{ "application/x-www-form-urlencoded", }
+
+ // set Content-Type header
+ localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
+ if localVarHttpContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHttpContentType
+ }
+
+ // to determine the Accept header
+ localVarHttpHeaderAccepts := []string{
+ }
+
+ // set Accept header
+ localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts)
+ if localVarHttpHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
+ }
+ // body params
+ localVarPostBody = importLoginKeyRequest
+ 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(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), `{`)) {
+ return &successPayload, reportError("Status: %v, Body: %s", localVarHttpResponse.Status, bodyBytes)
+ }
+
+ if !strings.Contains(string(bodyBytes), `{"error"`) && strings.HasPrefix(string(bodyBytes), `{`) {
+ if err = json.Unmarshal(bodyBytes[bytes.IndexAny(bytes.Trim(bodyBytes, "{"), "{"):len(bodyBytes)-1], &successPayload); err != nil {
+ return &successPayload, err
+ }
+ }
+
+
+ return &successPayload, err
+}
+
+/* V2ApiService
+ 서버인스턴스재시작
+ @param rebootServerInstancesRequest rebootServerInstancesRequest
+ @return *RebootServerInstancesResponse*/
+func (a *V2ApiService) RebootServerInstances(rebootServerInstancesRequest *RebootServerInstancesRequest) (*RebootServerInstancesResponse, error) {
+ var (
+ localVarHttpMethod = strings.ToUpper("Post")
+ localVarPostBody interface{}
+ localVarFileName string
+ localVarFileBytes []byte
+ successPayload RebootServerInstancesResponse
+ )
+
+ // create path and map variables
+ localVarPath := a.client.cfg.BasePath + "/rebootServerInstances"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+
+ // to determine the Content-Type header
+ localVarHttpContentTypes := []string{ "application/x-www-form-urlencoded", }
+
+ // set Content-Type header
+ localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
+ if localVarHttpContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHttpContentType
+ }
+
+ // to determine the Accept header
+ localVarHttpHeaderAccepts := []string{
+ }
+
+ // set Accept header
+ localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts)
+ if localVarHttpHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
+ }
+ // body params
+ localVarPostBody = rebootServerInstancesRequest
+ 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(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), `{`)) {
+ return &successPayload, reportError("Status: %v, Body: %s", localVarHttpResponse.Status, bodyBytes)
+ }
+
+ if !strings.Contains(string(bodyBytes), `{"error"`) && strings.HasPrefix(string(bodyBytes), `{`) {
+ if err = json.Unmarshal(bodyBytes[bytes.IndexAny(bytes.Trim(bodyBytes, "{"), "{"):len(bodyBytes)-1], &successPayload); err != nil {
+ return &successPayload, err
+ }
+ }
+
+
+ return &successPayload, err
+}
+
+/* V2ApiService
+ ACGInboundRule삭제
+ @param removeAccessControlGroupInboundRuleRequest removeAccessControlGroupInboundRuleRequest
+ @return *RemoveAccessControlGroupInboundRuleResponse*/
+func (a *V2ApiService) RemoveAccessControlGroupInboundRule(removeAccessControlGroupInboundRuleRequest *RemoveAccessControlGroupInboundRuleRequest) (*RemoveAccessControlGroupInboundRuleResponse, error) {
+ var (
+ localVarHttpMethod = strings.ToUpper("Post")
+ localVarPostBody interface{}
+ localVarFileName string
+ localVarFileBytes []byte
+ successPayload RemoveAccessControlGroupInboundRuleResponse
+ )
+
+ // create path and map variables
+ localVarPath := a.client.cfg.BasePath + "/removeAccessControlGroupInboundRule"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+
+ // to determine the Content-Type header
+ localVarHttpContentTypes := []string{ "application/x-www-form-urlencoded", }
+
+ // set Content-Type header
+ localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
+ if localVarHttpContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHttpContentType
+ }
+
+ // to determine the Accept header
+ localVarHttpHeaderAccepts := []string{
+ }
+
+ // set Accept header
+ localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts)
+ if localVarHttpHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
+ }
+ // body params
+ localVarPostBody = removeAccessControlGroupInboundRuleRequest
+ 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(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), `{`)) {
+ return &successPayload, reportError("Status: %v, Body: %s", localVarHttpResponse.Status, bodyBytes)
+ }
+
+ if !strings.Contains(string(bodyBytes), `{"error"`) && strings.HasPrefix(string(bodyBytes), `{`) {
+ if err = json.Unmarshal(bodyBytes[bytes.IndexAny(bytes.Trim(bodyBytes, "{"), "{"):len(bodyBytes)-1], &successPayload); err != nil {
+ return &successPayload, err
+ }
+ }
+
+
+ return &successPayload, err
+}
+
+/* V2ApiService
+ ACGOutboundRule삭제
+ @param removeAccessControlGroupOutboundRuleRequest removeAccessControlGroupOutboundRuleRequest
+ @return *RemoveAccessControlGroupOutboundRuleResponse*/
+func (a *V2ApiService) RemoveAccessControlGroupOutboundRule(removeAccessControlGroupOutboundRuleRequest *RemoveAccessControlGroupOutboundRuleRequest) (*RemoveAccessControlGroupOutboundRuleResponse, error) {
+ var (
+ localVarHttpMethod = strings.ToUpper("Post")
+ localVarPostBody interface{}
+ localVarFileName string
+ localVarFileBytes []byte
+ successPayload RemoveAccessControlGroupOutboundRuleResponse
+ )
+
+ // create path and map variables
+ localVarPath := a.client.cfg.BasePath + "/removeAccessControlGroupOutboundRule"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+
+ // to determine the Content-Type header
+ localVarHttpContentTypes := []string{ "application/x-www-form-urlencoded", }
+
+ // set Content-Type header
+ localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
+ if localVarHttpContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHttpContentType
+ }
+
+ // to determine the Accept header
+ localVarHttpHeaderAccepts := []string{
+ }
+
+ // set Accept header
+ localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts)
+ if localVarHttpHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
+ }
+ // body params
+ localVarPostBody = removeAccessControlGroupOutboundRuleRequest
+ 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(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), `{`)) {
+ return &successPayload, reportError("Status: %v, Body: %s", localVarHttpResponse.Status, bodyBytes)
+ }
+
+ if !strings.Contains(string(bodyBytes), `{"error"`) && strings.HasPrefix(string(bodyBytes), `{`) {
+ if err = json.Unmarshal(bodyBytes[bytes.IndexAny(bytes.Trim(bodyBytes, "{"), "{"):len(bodyBytes)-1], &successPayload); err != nil {
+ return &successPayload, err
+ }
+ }
+
+
+ return &successPayload, err
+}
+
+/* V2ApiService
+ 네트워크인터페이스의ACG제거
+ @param removeNetworkInterfaceAccessControlGroupRequest removeNetworkInterfaceAccessControlGroupRequest
+ @return *RemoveNetworkInterfaceAccessControlGroupResponse*/
+func (a *V2ApiService) RemoveNetworkInterfaceAccessControlGroup(removeNetworkInterfaceAccessControlGroupRequest *RemoveNetworkInterfaceAccessControlGroupRequest) (*RemoveNetworkInterfaceAccessControlGroupResponse, error) {
+ var (
+ localVarHttpMethod = strings.ToUpper("Post")
+ localVarPostBody interface{}
+ localVarFileName string
+ localVarFileBytes []byte
+ successPayload RemoveNetworkInterfaceAccessControlGroupResponse
+ )
+
+ // create path and map variables
+ localVarPath := a.client.cfg.BasePath + "/removeNetworkInterfaceAccessControlGroup"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+
+ // to determine the Content-Type header
+ localVarHttpContentTypes := []string{ "application/x-www-form-urlencoded", }
+
+ // set Content-Type header
+ localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
+ if localVarHttpContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHttpContentType
+ }
+
+ // to determine the Accept header
+ localVarHttpHeaderAccepts := []string{
+ }
+
+ // set Accept header
+ localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts)
+ if localVarHttpHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
+ }
+ // body params
+ localVarPostBody = removeNetworkInterfaceAccessControlGroupRequest
+ 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(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), `{`)) {
+ return &successPayload, reportError("Status: %v, Body: %s", localVarHttpResponse.Status, bodyBytes)
+ }
+
+ if !strings.Contains(string(bodyBytes), `{"error"`) && strings.HasPrefix(string(bodyBytes), `{`) {
+ if err = json.Unmarshal(bodyBytes[bytes.IndexAny(bytes.Trim(bodyBytes, "{"), "{"):len(bodyBytes)-1], &successPayload); err != nil {
+ return &successPayload, err
+ }
+ }
+
+
+ return &successPayload, err
+}
+
+/* V2ApiService
+ 물리배치그룹에서서버인스턴스제거
+ @param removePlacementGroupServerInstanceRequest removePlacementGroupServerInstanceRequest
+ @return *RemovePlacementGroupServerInstanceResponse*/
+func (a *V2ApiService) RemovePlacementGroupServerInstance(removePlacementGroupServerInstanceRequest *RemovePlacementGroupServerInstanceRequest) (*RemovePlacementGroupServerInstanceResponse, error) {
+ var (
+ localVarHttpMethod = strings.ToUpper("Post")
+ localVarPostBody interface{}
+ localVarFileName string
+ localVarFileBytes []byte
+ successPayload RemovePlacementGroupServerInstanceResponse
+ )
+
+ // create path and map variables
+ localVarPath := a.client.cfg.BasePath + "/removePlacementGroupServerInstance"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+
+ // to determine the Content-Type header
+ localVarHttpContentTypes := []string{ "application/x-www-form-urlencoded", }
+
+ // set Content-Type header
+ localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
+ if localVarHttpContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHttpContentType
+ }
+
+ // to determine the Accept header
+ localVarHttpHeaderAccepts := []string{
+ }
+
+ // set Accept header
+ localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts)
+ if localVarHttpHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
+ }
+ // body params
+ localVarPostBody = removePlacementGroupServerInstanceRequest
+ 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(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), `{`)) {
+ return &successPayload, reportError("Status: %v, Body: %s", localVarHttpResponse.Status, bodyBytes)
+ }
+
+ if !strings.Contains(string(bodyBytes), `{"error"`) && strings.HasPrefix(string(bodyBytes), `{`) {
+ if err = json.Unmarshal(bodyBytes[bytes.IndexAny(bytes.Trim(bodyBytes, "{"), "{"):len(bodyBytes)-1], &successPayload); err != nil {
+ return &successPayload, err
+ }
+ }
+
+
+ return &successPayload, err
+}
+
+/* V2ApiService
+ 서버인스턴스시작
+ @param startServerInstancesRequest startServerInstancesRequest
+ @return *StartServerInstancesResponse*/
+func (a *V2ApiService) StartServerInstances(startServerInstancesRequest *StartServerInstancesRequest) (*StartServerInstancesResponse, error) {
+ var (
+ localVarHttpMethod = strings.ToUpper("Post")
+ localVarPostBody interface{}
+ localVarFileName string
+ localVarFileBytes []byte
+ successPayload StartServerInstancesResponse
+ )
+
+ // create path and map variables
+ localVarPath := a.client.cfg.BasePath + "/startServerInstances"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+
+ // to determine the Content-Type header
+ localVarHttpContentTypes := []string{ "application/x-www-form-urlencoded", }
+
+ // set Content-Type header
+ localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
+ if localVarHttpContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHttpContentType
+ }
+
+ // to determine the Accept header
+ localVarHttpHeaderAccepts := []string{
+ }
+
+ // set Accept header
+ localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts)
+ if localVarHttpHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
+ }
+ // body params
+ localVarPostBody = startServerInstancesRequest
+ 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(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), `{`)) {
+ return &successPayload, reportError("Status: %v, Body: %s", localVarHttpResponse.Status, bodyBytes)
+ }
+
+ if !strings.Contains(string(bodyBytes), `{"error"`) && strings.HasPrefix(string(bodyBytes), `{`) {
+ if err = json.Unmarshal(bodyBytes[bytes.IndexAny(bytes.Trim(bodyBytes, "{"), "{"):len(bodyBytes)-1], &successPayload); err != nil {
+ return &successPayload, err
+ }
+ }
+
+
+ return &successPayload, err
+}
+
+/* V2ApiService
+ 서버인스턴스정지
+ @param stopServerInstancesRequest stopServerInstancesRequest
+ @return *StopServerInstancesResponse*/
+func (a *V2ApiService) StopServerInstances(stopServerInstancesRequest *StopServerInstancesRequest) (*StopServerInstancesResponse, error) {
+ var (
+ localVarHttpMethod = strings.ToUpper("Post")
+ localVarPostBody interface{}
+ localVarFileName string
+ localVarFileBytes []byte
+ successPayload StopServerInstancesResponse
+ )
+
+ // create path and map variables
+ localVarPath := a.client.cfg.BasePath + "/stopServerInstances"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+
+ // to determine the Content-Type header
+ localVarHttpContentTypes := []string{ "application/x-www-form-urlencoded", }
+
+ // set Content-Type header
+ localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
+ if localVarHttpContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHttpContentType
+ }
+
+ // to determine the Accept header
+ localVarHttpHeaderAccepts := []string{
+ }
+
+ // set Accept header
+ localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts)
+ if localVarHttpHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
+ }
+ // body params
+ localVarPostBody = stopServerInstancesRequest
+ 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(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), `{`)) {
+ return &successPayload, reportError("Status: %v, Body: %s", localVarHttpResponse.Status, bodyBytes)
+ }
+
+ if !strings.Contains(string(bodyBytes), `{"error"`) && strings.HasPrefix(string(bodyBytes), `{`) {
+ if err = json.Unmarshal(bodyBytes[bytes.IndexAny(bytes.Trim(bodyBytes, "{"), "{"):len(bodyBytes)-1], &successPayload); err != nil {
+ return &successPayload, err
+ }
+ }
+
+
+ return &successPayload, err
+}
+
+/* V2ApiService
+ 서버인스턴스반납
+ @param terminateServerInstancesRequest terminateServerInstancesRequest
+ @return *TerminateServerInstancesResponse*/
+func (a *V2ApiService) TerminateServerInstances(terminateServerInstancesRequest *TerminateServerInstancesRequest) (*TerminateServerInstancesResponse, error) {
+ var (
+ localVarHttpMethod = strings.ToUpper("Post")
+ localVarPostBody interface{}
+ localVarFileName string
+ localVarFileBytes []byte
+ successPayload TerminateServerInstancesResponse
+ )
+
+ // create path and map variables
+ localVarPath := a.client.cfg.BasePath + "/terminateServerInstances"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+
+ // to determine the Content-Type header
+ localVarHttpContentTypes := []string{ "application/x-www-form-urlencoded", }
+
+ // set Content-Type header
+ localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
+ if localVarHttpContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHttpContentType
+ }
+
+ // to determine the Accept header
+ localVarHttpHeaderAccepts := []string{
+ }
+
+ // set Accept header
+ localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts)
+ if localVarHttpHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
+ }
+ // body params
+ localVarPostBody = terminateServerInstancesRequest
+ 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(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), `{`)) {
+ return &successPayload, reportError("Status: %v, Body: %s", localVarHttpResponse.Status, bodyBytes)
+ }
+
+ if !strings.Contains(string(bodyBytes), `{"error"`) && strings.HasPrefix(string(bodyBytes), `{`) {
+ if err = json.Unmarshal(bodyBytes[bytes.IndexAny(bytes.Trim(bodyBytes, "{"), "{"):len(bodyBytes)-1], &successPayload); err != nil {
+ return &successPayload, err
+ }
+ }
+
+
+ return &successPayload, err
+}
+
diff --git a/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/zone.go b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/zone.go
new file mode 100644
index 000000000..4c5c28759
--- /dev/null
+++ b/vendor/github.com/NaverCloudPlatform/ncloud-sdk-go-v2/services/vserver/zone.go
@@ -0,0 +1,24 @@
+/*
+ * vserver
+ *
+ * VPC Compute 관련 API
https://ncloud.apigw.ntruss.com/vserver/v2
+ *
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+
+package vserver
+
+type Zone struct {
+
+ // ZONE이름
+ZoneName *string `json:"zoneName,omitempty"`
+
+ // ZONE코드
+ZoneCode *string `json:"zoneCode,omitempty"`
+
+ // REGION코드
+RegionCode *string `json:"regionCode,omitempty"`
+
+ // ZONE설명
+ZoneDescription *string `json:"zoneDescription,omitempty"`
+}