text: /*
   * 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 1.0.0.0
   * Changes may cause incorrect behavior and will be lost if the code is
   * regenerated.
   */
  
  'use strict';
  
  /**
   * Value write request model
   *
   */
  class ValueWriteRequestApiModel {
    /**
     * Create a ValueWriteRequestApiModel.
     * @property {string} [nodeId] Node id to to write value to.
     * @property {array} [browsePath] An optional path from NodeId instance to
     * the actual node.
     * @property {object} value Value to write. The system tries to convert
     * the value according to the data type value,
     * e.g. convert comma seperated value strings
     * into arrays.  (Mandatory)
     * @property {string} [dataType] A built in datatype for the value. This can
     * be a data type from browse, or a built in
     * type.
     * (default: best effort)
     * @property {string} [indexRange] Index range to write
     * @property {object} [header]
     * @property {object} [header.elevation]
     * @property {string} [header.elevation.type] Possible values include:
     * 'None', 'UserName', 'X509Certificate', 'JwtToken'
     * @property {object} [header.elevation.value] Value to pass to server
     * @property {array} [header.locales] Optional list of locales in preference
     * order.
     * @property {object} [header.diagnostics]
     * @property {string} [header.diagnostics.level] Possible values include:
     * 'None', 'Status', 'Operations', 'Diagnostics', 'Verbose'
     * @property {string} [header.diagnostics.auditId] Client audit log entry.
     * (default: client generated)
     * @property {date} [header.diagnostics.timeStamp] Timestamp of request.
     * (default: client generated)
     */
    constructor() {
    }
  
    /**
     * Defines the metadata of ValueWriteRequestApiModel
     *
     * @returns {object} metadata of ValueWriteRequestApiModel
     *
     */
    mapper() {
      return {
        required: false,
        serializedName: 'ValueWriteRequestApiModel',
        type: {
          name: 'Composite',
          className: 'ValueWriteRequestApiModel',
          modelProperties: {
            nodeId: {
              required: false,
              serializedName: 'nodeId',
              type: {
                name: 'String'
              }
            },
            browsePath: {
              required: false,
              serializedName: 'browsePath',
              type: {
                name: 'Sequence',
                element: {
                    required: false,
                    serializedName: 'StringElementType',
                    type: {
                      name: 'String'
                    }
                }
              }
            },
            value: {
              required: true,
              serializedName: 'value',
              type: {
                name: 'Object'
              }
            },
            dataType: {
              required: false,
              serializedName: 'dataType',
              type: {
                name: 'String'
              }
            },
            indexRange: {
              required: false,
              serializedName: 'indexRange',
              type: {
                name: 'String'
              }
            },
            header: {
              required: false,
              serializedName: 'header',
              type: {
                name: 'Composite',
                className: 'RequestHeaderApiModel'
              }
            }
          }
        }
      };
    }
  }
  
  module.exports = ValueWriteRequestApiModel;
  