summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHentioe <me@bluerain.io>2020-11-26 19:50:57 +0800
committerHentioe <me@bluerain.io>2020-11-26 19:50:57 +0800
commitacd5cf592f05482eea2878e0acc978912b844313 (patch)
treee6bda512296c1eb5e5d97b0a5cf7fe5641577f60
parentAdded models for creating virtual machines (diff)
Add some models
-rw-r--r--lib/azure_ex/model/virtual_machines/create_or_update.ex9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/azure_ex/model/virtual_machines/create_or_update.ex b/lib/azure_ex/model/virtual_machines/create_or_update.ex
index 937300b..a7c9173 100644
--- a/lib/azure_ex/model/virtual_machines/create_or_update.ex
+++ b/lib/azure_ex/model/virtual_machines/create_or_update.ex
@@ -6,6 +6,7 @@ defmodule AzureEx.Model.VirtualMachines.CreateOrUpdate do
alias __MODULE__.{
Properties,
NetworkInterfaceReference,
+ OSDisk,
StorageProfile,
LinuxConfiguration,
SshConfiguration,
@@ -27,10 +28,18 @@ defmodule AzureEx.Model.VirtualMachines.CreateOrUpdate do
field :version, String.t()
end
+ typedstruct module: OSDisk do
+ @derive Jason.Encoder
+
+ field :name, String.t()
+ field :createOption, String.t()
+ end
+
typedstruct module: StorageProfile do
@derive Jason.Encoder
field :imageReference, ImageReference.t()
+ field :osDisk, OSDisk.t()
end
typedstruct module: NetworkInterfaceReference do