class Azure::Compute::Mgmt::V2017_12_01::Models::Plan

Specifies information about the marketplace image used to create the virtual machine. This element is only used for marketplace images. Before you can use a marketplace image from an API, you must enable the image for programmatic use. In the Azure portal, find the marketplace image that you want to use and then click **Want to deploy programmatically, Get Started ->**. Enter any required information and then click *Save*.

Attributes

name[RW]

@return [String] The plan ID.

product[RW]

@return [String] Specifies the product of the image from the marketplace. This is the same value as Offer under the imageReference element.

promotion_code[RW]

@return [String] The promotion code.

publisher[RW]

@return [String] The publisher ID.

Private Class Methods

mapper() click to toggle source

Mapper for Plan class as Ruby Hash. This will be used for serialization/deserialization.

# File lib/2017-12-01/generated/azure_mgmt_compute/models/plan.rb, line 38
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'Plan',
    type: {
      name: 'Composite',
      class_name: 'Plan',
      model_properties: {
        name: {
          client_side_validation: true,
          required: false,
          serialized_name: 'name',
          type: {
            name: 'String'
          }
        },
        publisher: {
          client_side_validation: true,
          required: false,
          serialized_name: 'publisher',
          type: {
            name: 'String'
          }
        },
        product: {
          client_side_validation: true,
          required: false,
          serialized_name: 'product',
          type: {
            name: 'String'
          }
        },
        promotion_code: {
          client_side_validation: true,
          required: false,
          serialized_name: 'promotionCode',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end