Skip to content

Commit 99e489a

Browse files
feat: remove boot type (#172)
* feat: update generated apis * fix tests
1 parent 73f28de commit 99e489a

File tree

6 files changed

+3
-14
lines changed

6 files changed

+3
-14
lines changed

api/instance/v1/instance_sdk.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1445,10 +1445,6 @@ type CreateServerRequest struct {
14451445
EnableIPv6 bool `json:"enable_ipv6,omitempty"`
14461446
// PublicIP define the public IPv4 attached to the server
14471447
PublicIP string `json:"public_ip,omitempty"`
1448-
// BootType define the boot type you want to use
1449-
//
1450-
// Default value: local
1451-
BootType ServerBootType `json:"boot_type"`
14521448
// Organization define the server organization
14531449
Organization string `json:"organization,omitempty"`
14541450
// Tags define the server tags
@@ -1690,10 +1686,6 @@ type updateServerRequest struct {
16901686
ServerID string `json:"-"`
16911687

16921688
Name *string `json:"name,omitempty"`
1693-
// BootType
1694-
//
1695-
// Default value: local
1696-
BootType ServerBootType `json:"boot_type"`
16971689

16981690
Tags *[]string `json:"tags,omitempty"`
16991691

api/instance/v1/instance_sdk_server_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ func TestServerUpdate(t *testing.T) {
4040
Organization: organization,
4141
Image: image,
4242
EnableIPv6: enableIPv6,
43-
BootType: bootType,
4443
CommercialType: commercialType,
4544
Tags: tags,
4645
DynamicIPRequired: dynamicIPRequired,

api/instance/v1/server_utils_test.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ func TestAPI_ServerUserData(t *testing.T) {
4949
Zone: scw.ZoneFrPar1,
5050
CommercialType: "DEV1-S",
5151
Name: namegenerator.GetRandomName("srv"),
52-
BootType: ServerBootTypeLocal,
5352
Image: "f974feac-abae-4365-b988-8ec7d1cec10d",
5453
Organization: "14d2f7ae-9775-414c-9bed-6810e060d500",
5554
})
@@ -89,7 +88,6 @@ func TestAPI_AllServerUserData(t *testing.T) {
8988
Zone: scw.ZoneFrPar1,
9089
CommercialType: "DEV1-S",
9190
Name: namegenerator.GetRandomName("srv"),
92-
BootType: ServerBootTypeLocal,
9391
Image: "f974feac-abae-4365-b988-8ec7d1cec10d",
9492
Organization: "14d2f7ae-9775-414c-9bed-6810e060d500",
9593
})

api/instance/v1/testdata/all-server-user-data.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
version: 1
33
interactions:
44
- request:
5-
body: '{"name":"srv-hardcore-raman","commercial_type":"DEV1-S","image":"f974feac-abae-4365-b988-8ec7d1cec10d","boot_type":"local","organization":"14d2f7ae-9775-414c-9bed-6810e060d500"}'
5+
body: '{"name":"srv-hardcore-raman","commercial_type":"DEV1-S","image":"f974feac-abae-4365-b988-8ec7d1cec10d","organization":"14d2f7ae-9775-414c-9bed-6810e060d500"}'
66
form: {}
77
headers:
88
Content-Type:

api/instance/v1/testdata/server-test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
version: 1
33
interactions:
44
- request:
5-
body: '{"name":"instance_sdk_server_test","dynamic_ip_required":true,"commercial_type":"START1-S","image":"f974feac-abae-4365-b988-8ec7d1cec10d","enable_ipv6":true,"boot_type":"local","organization":"d429f6a1-c0a6-48cf-8b5a-1f9dfe76ffd3","tags":["foo","bar"]}'
5+
body: '{"name":"instance_sdk_server_test","dynamic_ip_required":true,"commercial_type":"START1-S","image":"f974feac-abae-4365-b988-8ec7d1cec10d","enable_ipv6":true,"organization":"d429f6a1-c0a6-48cf-8b5a-1f9dfe76ffd3","tags":["foo","bar"]}'
66
form: {}
77
headers:
88
Content-Type:

api/instance/v1/testdata/server-user-data.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
version: 1
33
interactions:
44
- request:
5-
body: '{"name":"srv-wonderful-goldberg","commercial_type":"DEV1-S","image":"f974feac-abae-4365-b988-8ec7d1cec10d","boot_type":"local","organization":"14d2f7ae-9775-414c-9bed-6810e060d500"}'
5+
body: '{"name":"srv-wonderful-goldberg","commercial_type":"DEV1-S","image":"f974feac-abae-4365-b988-8ec7d1cec10d","organization":"14d2f7ae-9775-414c-9bed-6810e060d500"}'
66
form: {}
77
headers:
88
Content-Type:

0 commit comments

Comments
 (0)