class Azure::Compute::Mgmt::V2019_07_01::Models::GalleryImage

Specifies information about the gallery Image Definition that you want to create or update.

Attributes

description[RW]

@return [String] The description of this gallery Image Definition resource. This property is updatable.

disallowed[RW]

@return [Disallowed]

end_of_life_date[RW]

@return [DateTime] The end of life date of the gallery Image Definition. This property can be used for decommissioning purposes. This property is updatable.

eula[RW]

@return [String] The Eula agreement for the gallery Image Definition.

hyper_vgeneration[RW]

@return [HyperVGeneration] The hypervisor generation of the Virtual Machine. Applicable to OS disks only. Possible values include: 'V1', 'V2'

identifier[RW]

@return [GalleryImageIdentifier]

os_state[RW]

@return [OperatingSystemStateTypes] This property allows the user to specify whether the virtual machines created under this image are 'Generalized' or 'Specialized'. Possible values include: 'Generalized', 'Specialized'

os_type[RW]

@return [OperatingSystemTypes] This property allows you to specify the type of the OS that is included in the disk when creating a VM from a managed image.
Possible values are:
*Windows*
*Linux*. Possible values include: 'Windows', 'Linux'

privacy_statement_uri[RW]

@return [String] The privacy statement uri.

provisioning_state[RW]

@return [Enum] The current state of the gallery Image Definition. The provisioning state, which only appears in the response. Possible values include: 'Creating', 'Updating', 'Failed', 'Succeeded', 'Deleting', 'Migrating'

purchase_plan[RW]

@return [ImagePurchasePlan]

release_note_uri[RW]

@return [String] The release note uri.

Public Class Methods

mapper() click to toggle source

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

# File lib/2019-07-01/generated/azure_mgmt_compute/models/gallery_image.rb, line 74
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'GalleryImage',
    type: {
      name: 'Composite',
      class_name: 'GalleryImage',
      model_properties: {
        id: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'id',
          type: {
            name: 'String'
          }
        },
        name: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'name',
          type: {
            name: 'String'
          }
        },
        type: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'type',
          type: {
            name: 'String'
          }
        },
        location: {
          client_side_validation: true,
          required: true,
          serialized_name: 'location',
          type: {
            name: 'String'
          }
        },
        tags: {
          client_side_validation: true,
          required: false,
          serialized_name: 'tags',
          type: {
            name: 'Dictionary',
            value: {
                client_side_validation: true,
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        },
        description: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.description',
          type: {
            name: 'String'
          }
        },
        eula: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.eula',
          type: {
            name: 'String'
          }
        },
        privacy_statement_uri: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.privacyStatementUri',
          type: {
            name: 'String'
          }
        },
        release_note_uri: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.releaseNoteUri',
          type: {
            name: 'String'
          }
        },
        os_type: {
          client_side_validation: true,
          required: true,
          serialized_name: 'properties.osType',
          type: {
            name: 'Enum',
            module: 'OperatingSystemTypes'
          }
        },
        os_state: {
          client_side_validation: true,
          required: true,
          serialized_name: 'properties.osState',
          type: {
            name: 'Enum',
            module: 'OperatingSystemStateTypes'
          }
        },
        hyper_vgeneration: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.hyperVGeneration',
          type: {
            name: 'String'
          }
        },
        end_of_life_date: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.endOfLifeDate',
          type: {
            name: 'DateTime'
          }
        },
        identifier: {
          client_side_validation: true,
          required: true,
          serialized_name: 'properties.identifier',
          type: {
            name: 'Composite',
            class_name: 'GalleryImageIdentifier'
          }
        },
        recommended: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.recommended',
          type: {
            name: 'Composite',
            class_name: 'RecommendedMachineConfiguration'
          }
        },
        disallowed: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.disallowed',
          type: {
            name: 'Composite',
            class_name: 'Disallowed'
          }
        },
        purchase_plan: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.purchasePlan',
          type: {
            name: 'Composite',
            class_name: 'ImagePurchasePlan'
          }
        },
        provisioning_state: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.provisioningState',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end