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

/**
 * Azure workload-specific container
 *
 * @extends models['ProtectableContainer']
 */
class AzureVMAppContainerProtectableContainer extends models['ProtectableContainer'] {
  /**
   * Create a AzureVMAppContainerProtectableContainer.
   */
  constructor() {
    super();
  }

  /**
   * Defines the metadata of AzureVMAppContainerProtectableContainer
   *
   * @returns {object} metadata of AzureVMAppContainerProtectableContainer
   *
   */
  mapper() {
    return {
      required: false,
      serializedName: 'VMAppContainer',
      type: {
        name: 'Composite',
        polymorphicDiscriminator: {
          serializedName: 'protectableContainerType',
          clientName: 'protectableContainerType'
        },
        uberParent: 'ProtectableContainer',
        className: 'AzureVMAppContainerProtectableContainer',
        modelProperties: {
          friendlyName: {
            required: false,
            serializedName: 'friendlyName',
            type: {
              name: 'String'
            }
          },
          backupManagementType: {
            required: false,
            serializedName: 'backupManagementType',
            type: {
              name: 'String'
            }
          },
          healthStatus: {
            required: false,
            serializedName: 'healthStatus',
            type: {
              name: 'String'
            }
          },
          containerId: {
            required: false,
            serializedName: 'containerId',
            type: {
              name: 'String'
            }
          },
          protectableContainerType: {
            required: true,
            serializedName: 'protectableContainerType',
            isPolymorphicDiscriminator: true,
            type: {
              name: 'String'
            }
          }
        }
      }
    };
  }
}

module.exports = AzureVMAppContainerProtectableContainer;
