lib/models/requestValidationResult.ts (54 lines of code) (raw):
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
/**
* @class
* Initializes a new instance of the RequestValidationResult class.
* @constructor
* Describes the validation result of the live request.
*
* @member {boolean} [successfulRequest] Describes the status of live request
* validation.
*
* @member {array} [operationInfo] The corresponding operation(s) in OpenAPI
* spec that was used for validating the request.
*
* @member {array} [errors] Provides more information about live response
* validation.
*
*/
export class RequestValidationResult {
/**
* Defines the metadata of RequestValidationResult
*
* @returns {object} metadata of RequestValidationResult
*
*/
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
public mapper() {
return {
required: false,
serializedName: "RequestValidationResult",
type: {
name: "Composite",
className: "RequestValidationResult",
modelProperties: {
successfulRequest: {
required: false,
readOnly: true,
serializedName: "successfulRequest",
type: {
name: "Boolean",
},
},
operationInfo: {
required: false,
readOnly: true,
serializedName: "operationInfo",
type: {
name: "Sequence",
element: {
required: false,
serializedName: "OperationInfoElementType",
type: {
name: "Composite",
className: "OperationInfo",
},
},
},
},
errors: {
required: false,
readOnly: true,
serializedName: "errors",
type: {
name: "Sequence",
element: {
required: false,
serializedName: "ErrorWrapperElementType",
type: {
name: "Composite",
className: "ErrorWrapper",
},
},
},
},
},
},
};
}
}