jkawamoto/roadie

View on GitHub
cloud/azure/batch/models/batch_error_detail.go

Summary

Maintainability
A
55 mins
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"
)

// BatchErrorDetail An item of additional information included in an Azure Batch error response.
// swagger:model BatchErrorDetail
type BatchErrorDetail struct {

    // An identifier specifying the meaning of the Value property.
    Key string `json:"key,omitempty"`

    // The additional information included with the error response.
    Value string `json:"value,omitempty"`
}

// Validate validates this batch error detail
func (m *BatchErrorDetail) Validate(formats strfmt.Registry) error {
    var res []error

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