cloud/azure/batch/models/name_value_pair.go
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"
)
// NameValuePair Represents a name-value pair.
// swagger:model NameValuePair
type NameValuePair struct {
// The name in the name-value pair.
Name string `json:"name,omitempty"`
// The value in the name-value pair.
Value string `json:"value,omitempty"`
}
// Validate validates this name value pair
func (m *NameValuePair) Validate(formats strfmt.Registry) error {
var res []error
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
return nil
}