/*
 * 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';

/**
 * Common input details for network mapping operation.
 *
 */
class CreateNetworkMappingInputProperties {
  /**
   * Create a CreateNetworkMappingInputProperties.
   * @member {string} [recoveryFabricName] Recovery fabric Name.
   * @member {string} [recoveryNetworkId] Recovery network Id.
   * @member {object} [fabricSpecificDetails] Fabric specific input properties.
   * @member {string} [fabricSpecificDetails.instanceType] Polymorphic
   * Discriminator
   */
  constructor() {
  }

  /**
   * Defines the metadata of CreateNetworkMappingInputProperties
   *
   * @returns {object} metadata of CreateNetworkMappingInputProperties
   *
   */
  mapper() {
    return {
      required: false,
      serializedName: 'CreateNetworkMappingInputProperties',
      type: {
        name: 'Composite',
        className: 'CreateNetworkMappingInputProperties',
        modelProperties: {
          recoveryFabricName: {
            required: false,
            serializedName: 'recoveryFabricName',
            type: {
              name: 'String'
            }
          },
          recoveryNetworkId: {
            required: false,
            serializedName: 'recoveryNetworkId',
            type: {
              name: 'String'
            }
          },
          fabricSpecificDetails: {
            required: false,
            serializedName: 'fabricSpecificDetails',
            type: {
              name: 'Composite',
              polymorphicDiscriminator: {
                serializedName: 'instanceType',
                clientName: 'instanceType'
              },
              uberParent: 'FabricSpecificCreateNetworkMappingInput',
              className: 'FabricSpecificCreateNetworkMappingInput'
            }
          }
        }
      }
    };
  }
}

module.exports = CreateNetworkMappingInputProperties;
