jkawamoto/roadie

View on GitHub
cloud/azure/compute/models/sku.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"
)

// Sku Describes a virtual machine scale set sku.
// swagger:model Sku
type Sku struct {

    // The sku capacity.
    Capacity int64 `json:"capacity,omitempty"`

    // The sku name.
    Name string `json:"name,omitempty"`

    // The sku tier.
    Tier string `json:"tier,omitempty"`
}

// Validate validates this sku
func (m *Sku) Validate(formats strfmt.Registry) error {
    var res []error

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