Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions const.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ const (
// UltraSSDAvailable identifies the capability for ultra ssd
// enablement.
UltraSSDAvailable = "UltraSSDAvailable"
// NvmeDiskSizeInMiB declares the disk size of the Nvme drive
NvmeDiskSizeInMiB = "NvmeDiskSizeInMiB"
// CachedDiskBytes identifies the maximum size of the cache disk for
// a vm.
CachedDiskBytes = "CachedDiskBytes"
Expand Down
5 changes: 5 additions & 0 deletions sku.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,11 @@ func (s *SKU) Memory() (float64, error) {
return s.GetCapabilityFloatQuantity(MemoryGB)
}

// NvmeDiskSizeInMiB returns the integer value for the disk size
func (s *SKU) NvmeDiskSizeInMiB() (int64, error) {
return s.GetCapabilityIntegerQuantity(NvmeDiskSizeInMiB)
}

// MaxCachedDiskBytes returns the number of bytes available for the
// cache if it exists on this VM size.
func (s *SKU) MaxCachedDiskBytes() (int64, error) {
Expand Down