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

/**
 * A2A provider specific settings.
 *
 * @extends models['ProtectionContainerMappingProviderSpecificDetails']
 */
class A2AProtectionContainerMappingDetails extends models['ProtectionContainerMappingProviderSpecificDetails'] {
  /**
   * Create a A2AProtectionContainerMappingDetails.
   * @member {string} [agentAutoUpdateStatus] A value indicating whether the
   * auto update is enabled. Possible values include: 'Disabled', 'Enabled'
   * @member {string} [automationAccountArmId] The automation account arm id.
   * @member {string} [scheduleName] The schedule arm name.
   * @member {string} [jobScheduleName] The job schedule arm name.
   */
  constructor() {
    super();
  }

  /**
   * Defines the metadata of A2AProtectionContainerMappingDetails
   *
   * @returns {object} metadata of A2AProtectionContainerMappingDetails
   *
   */
  mapper() {
    return {
      required: false,
      serializedName: 'A2A',
      type: {
        name: 'Composite',
        polymorphicDiscriminator: {
          serializedName: 'instanceType',
          clientName: 'instanceType'
        },
        uberParent: 'ProtectionContainerMappingProviderSpecificDetails',
        className: 'A2AProtectionContainerMappingDetails',
        modelProperties: {
          instanceType: {
            required: true,
            serializedName: 'instanceType',
            isPolymorphicDiscriminator: true,
            type: {
              name: 'String'
            }
          },
          agentAutoUpdateStatus: {
            required: false,
            serializedName: 'agentAutoUpdateStatus',
            type: {
              name: 'String'
            }
          },
          automationAccountArmId: {
            required: false,
            serializedName: 'automationAccountArmId',
            type: {
              name: 'String'
            }
          },
          scheduleName: {
            required: false,
            serializedName: 'scheduleName',
            type: {
              name: 'String'
            }
          },
          jobScheduleName: {
            required: false,
            serializedName: 'jobScheduleName',
            type: {
              name: 'String'
            }
          }
        }
      }
    };
  }
}

module.exports = A2AProtectionContainerMappingDetails;
