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

/**
 * Properties for plan on a custom image.
 *
 */
class CustomImagePropertiesFromPlanFragment {
  /**
   * Create a CustomImagePropertiesFromPlanFragment.
   * @property {string} [id] The id of the plan, equivalent to name of the plan
   * @property {string} [publisher] The publisher for the plan from the
   * marketplace image the custom image is derived from
   * @property {string} [offer] The offer for the plan from the marketplace
   * image the custom image is derived from
   */
  constructor() {
  }

  /**
   * Defines the metadata of CustomImagePropertiesFromPlanFragment
   *
   * @returns {object} metadata of CustomImagePropertiesFromPlanFragment
   *
   */
  mapper() {
    return {
      required: false,
      serializedName: 'CustomImagePropertiesFromPlanFragment',
      type: {
        name: 'Composite',
        className: 'CustomImagePropertiesFromPlanFragment',
        modelProperties: {
          id: {
            required: false,
            serializedName: 'id',
            type: {
              name: 'String'
            }
          },
          publisher: {
            required: false,
            serializedName: 'publisher',
            type: {
              name: 'String'
            }
          },
          offer: {
            required: false,
            serializedName: 'offer',
            type: {
              name: 'String'
            }
          }
        }
      }
    };
  }
}

module.exports = CustomImagePropertiesFromPlanFragment;
