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

/**
 * Response body that wraps container API result.
 *
 */
class ContainerApiResponse {
  /**
   * Create a ContainerApiResponse.
   * @property {object} containerApiResult Container API result.
   * @property {number} [containerApiResult.status] HTTP status code returned
   * by the target container API
   * @property {string} [containerApiResult.contentType] HTTP content type
   * @property {string} [containerApiResult.contentEncoding] HTTP content
   * encoding
   * @property {string} [containerApiResult.body] container API result body
   */
  constructor() {
  }

  /**
   * Defines the metadata of ContainerApiResponse
   *
   * @returns {object} metadata of ContainerApiResponse
   *
   */
  mapper() {
    return {
      required: false,
      serializedName: 'ContainerApiResponse',
      type: {
        name: 'Composite',
        className: 'ContainerApiResponse',
        modelProperties: {
          containerApiResult: {
            required: true,
            serializedName: 'ContainerApiResult',
            type: {
              name: 'Composite',
              className: 'ContainerApiResult'
            }
          }
        }
      }
    };
  }
}

module.exports = ContainerApiResponse;
