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.
   * Changes may cause incorrect behavior and will be lost if the code is
   * regenerated.
   */
  
  'use strict';
  
  const models = require('./index');
  
  /**
   * private Apple connection secrets response
   *
   * @extends models['PrivateAppleSecretResponse']
   */
  class PrivateAppleCredentialsSecretResponse extends models['PrivateAppleSecretResponse'] {
    /**
     * Create a PrivateAppleCredentialsSecretResponse.
     * @property {object} data apple secret details
     * @property {string} [data.username] username to connect to apple store.
     * @property {string} [data.authCode] 6 digit auth code
     * @property {string} [data.password] password to connect to apple store.
     */
    constructor() {
      super();
    }
  
    /**
     * Defines the metadata of PrivateAppleCredentialsSecretResponse
     *
     * @returns {object} metadata of PrivateAppleCredentialsSecretResponse
     *
     */
    mapper() {
      return {
        required: false,
        serializedName: 'PrivateAppleCredentialsSecretResponse',
        type: {
          name: 'Composite',
          polymorphicDiscriminator: {
            serializedName: 'serviceType',
            clientName: 'serviceType'
          },
          uberParent: 'PrivateSharedConnectionResponse',
          className: 'PrivateAppleCredentialsSecretResponse',
          modelProperties: {
            id: {
              required: true,
              serializedName: 'id',
              type: {
                name: 'String'
              }
            },
            displayName: {
              required: false,
              serializedName: 'displayName',
              type: {
                name: 'String'
              }
            },
            isValid: {
              required: false,
              serializedName: 'isValid',
              type: {
                name: 'Boolean'
              }
            },
            is2FA: {
              required: false,
              serializedName: 'is2FA',
              type: {
                name: 'Boolean'
              }
            },
            serviceType: {
              required: true,
              serializedName: 'serviceType',
              isPolymorphicDiscriminator: true,
              type: {
                name: 'String'
              }
            },
            data: {
              required: true,
              serializedName: 'data',
              type: {
                name: 'Composite',
                className: 'AppleSecretDetails'
              }
            }
          }
        }
      };
    }
  }
  
  module.exports = PrivateAppleCredentialsSecretResponse;
  