// Code generated by go-swagger; DO NOT EDIT.

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 (
	"context"

	"github.com/go-openapi/strfmt"
	"github.com/go-openapi/swag"
)

// CloudInstanceUpdate cloud instance update
//
// swagger:model CloudInstanceUpdate
type CloudInstanceUpdate struct {

	// Number of power instances allowed
	Instances *float64 `json:"instances,omitempty"`

	// Amount of memory allowed
	Memory *float64 `json:"memory,omitempty"`

	// Number of processor units allowed
	ProcUnits *float64 `json:"procUnits,omitempty"`

	// Number of processors allowed
	Processors *float64 `json:"processors,omitempty"`

	// Amount of storage allowed (TB)
	Storage *float64 `json:"storage,omitempty"`
}

// Validate validates this cloud instance update
func (m *CloudInstanceUpdate) Validate(formats strfmt.Registry) error {
	return nil
}

// ContextValidate validates this cloud instance update based on context it is used
func (m *CloudInstanceUpdate) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
	return nil
}

// MarshalBinary interface implementation
func (m *CloudInstanceUpdate) MarshalBinary() ([]byte, error) {
	if m == nil {
		return nil, nil
	}
	return swag.WriteJSON(m)
}

// UnmarshalBinary interface implementation
func (m *CloudInstanceUpdate) UnmarshalBinary(b []byte) error {
	var res CloudInstanceUpdate
	if err := swag.ReadJSON(b, &res); err != nil {
		return err
	}
	*m = res
	return nil
}
