From b738df69a854f2ca4002ff433869c830a15c4377 Mon Sep 17 00:00:00 2001 From: Uzair Ali <72073401+uzaxirr@users.noreply.github.com> Date: Thu, 3 Oct 2024 12:26:16 +0530 Subject: [PATCH] Add volume_type params in create configs --- instance.go | 1 + volume.go | 1 + 2 files changed, 2 insertions(+) diff --git a/instance.go b/instance.go index f1bd0ec..ec859e9 100644 --- a/instance.go +++ b/instance.go @@ -111,6 +111,7 @@ type InstanceConfig struct { Tags []string `json:"-"` TagsList string `json:"tags"` FirewallID string `json:"firewall_id"` + VolumeType string `json:"volume_type,omitempty"` AttachedVolumes []AttachedVolume `json:"attached_volumes"` PlacementRule PlacementRule `json:"placement_rule"` } diff --git a/volume.go b/volume.go index 1d46f5c..5614de6 100644 --- a/volume.go +++ b/volume.go @@ -40,6 +40,7 @@ type VolumeConfig struct { Region string `json:"region"` SizeGigabytes int `json:"size_gb"` Bootable bool `json:"bootable"` + VolumeType string `json:"volume_type"` } // VolumeAttachConfig is the configuration used to attach volume