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

/**
 * @class
 * Initializes a new instance of the RecoverResponse class.
 * @constructor
 * Response for an app recovery request.
 *
 * @member {string} [operationId] ID of the recovery operation. Can be used to
 * check the status of the corresponding operation.
 *
 */
class RecoverResponse extends models['Resource'] {
  constructor() {
    super();
  }

  /**
   * Defines the metadata of RecoverResponse
   *
   * @returns {object} metadata of RecoverResponse
   *
   */
  mapper() {
    return {
      required: false,
      serializedName: 'RecoverResponse',
      type: {
        name: 'Composite',
        className: 'RecoverResponse',
        modelProperties: {
          id: {
            required: false,
            readOnly: true,
            serializedName: 'id',
            type: {
              name: 'String'
            }
          },
          name: {
            required: false,
            serializedName: 'name',
            type: {
              name: 'String'
            }
          },
          kind: {
            required: false,
            serializedName: 'kind',
            type: {
              name: 'String'
            }
          },
          location: {
            required: true,
            serializedName: 'location',
            type: {
              name: 'String'
            }
          },
          type: {
            required: false,
            serializedName: 'type',
            type: {
              name: 'String'
            }
          },
          tags: {
            required: false,
            serializedName: 'tags',
            type: {
              name: 'Dictionary',
              value: {
                  required: false,
                  serializedName: 'StringElementType',
                  type: {
                    name: 'String'
                  }
              }
            }
          },
          operationId: {
            required: false,
            readOnly: true,
            serializedName: 'properties.operationId',
            type: {
              name: 'String'
            }
          }
        }
      }
    };
  }
}

module.exports = RecoverResponse;
