jkawamoto/roadie

View on GitHub
cloud/azure/compute/models/virtual_machine_size.go

Summary

Maintainability
A
1 hr
Test Coverage
package models

// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command

import (
    strfmt "github.com/go-openapi/strfmt"

    "github.com/go-openapi/errors"
)

// VirtualMachineSize Describes the properties of a VM size.
// swagger:model VirtualMachineSize
type VirtualMachineSize struct {

    // The maximum number of data disks that can be attached to the virtual machine size.
    MaxDataDiskCount int32 `json:"maxDataDiskCount,omitempty"`

    // The amount of memory, in MB, supported by the virtual machine size.
    MemoryInMB int32 `json:"memoryInMB,omitempty"`

    // The name of the virtual machine size.
    Name string `json:"name,omitempty"`

    // The number of cores supported by the virtual machine size.
    NumberOfCores int32 `json:"numberOfCores,omitempty"`

    // The OS disk size, in MB, allowed by the virtual machine size.
    OsDiskSizeInMB int32 `json:"osDiskSizeInMB,omitempty"`

    // The resource disk size, in MB, allowed by the virtual machine size.
    ResourceDiskSizeInMB int32 `json:"resourceDiskSizeInMB,omitempty"`
}

// Validate validates this virtual machine size
func (m *VirtualMachineSize) Validate(formats strfmt.Registry) error {
    var res []error

    if len(res) > 0 {
        return errors.CompositeValidationError(res...)
    }
    return nil
}