/*
 * 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.
 */

'use strict';

const models = require('./index');

/**
 * Couchbase server dataset.
 *
 * @extends models['Dataset']
 */
class CouchbaseTableDataset extends models['Dataset'] {
  /**
   * Create a CouchbaseTableDataset.
   */
  constructor() {
    super();
  }

  /**
   * Defines the metadata of CouchbaseTableDataset
   *
   * @returns {object} metadata of CouchbaseTableDataset
   *
   */
  mapper() {
    return {
      required: false,
      serializedName: 'CouchbaseTable',
      type: {
        name: 'Composite',
        className: 'CouchbaseTableDataset',
        modelProperties: {
          description: {
            required: false,
            serializedName: 'description',
            type: {
              name: 'String'
            }
          },
          structure: {
            required: false,
            serializedName: 'structure',
            type: {
              name: 'Object'
            }
          },
          linkedServiceName: {
            required: true,
            serializedName: 'linkedServiceName',
            defaultValue: {},
            type: {
              name: 'Composite',
              className: 'LinkedServiceReference'
            }
          },
          parameters: {
            required: false,
            serializedName: 'parameters',
            type: {
              name: 'Dictionary',
              value: {
                  required: false,
                  serializedName: 'ParameterSpecificationElementType',
                  type: {
                    name: 'Composite',
                    className: 'ParameterSpecification'
                  }
              }
            }
          },
          type: {
            required: true,
            serializedName: 'type',
            type: {
              name: 'String'
            }
          }
        }
      }
    };
  }
}

module.exports = CouchbaseTableDataset;
