Class: Azure::Compute::Mgmt::V2019_12_01::Models::GalleryImageVersionStorageProfile

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2019-12-01/generated/azure_mgmt_compute/models/gallery_image_version_storage_profile.rb

Overview

This is the storage profile of a Gallery Image Version.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#data_disk_imagesArray<GalleryDataDiskImage>

Returns A list of data disk images.

Returns:



22
23
24
# File 'lib/2019-12-01/generated/azure_mgmt_compute/models/gallery_image_version_storage_profile.rb', line 22

def data_disk_images
  @data_disk_images
end

#os_disk_imageGalleryOSDiskImage

Returns:



19
20
21
# File 'lib/2019-12-01/generated/azure_mgmt_compute/models/gallery_image_version_storage_profile.rb', line 19

def os_disk_image
  @os_disk_image
end

#sourceGalleryArtifactVersionSource



16
17
18
# File 'lib/2019-12-01/generated/azure_mgmt_compute/models/gallery_image_version_storage_profile.rb', line 16

def source
  @source
end

Class Method Details

.mapperObject

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



29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# File 'lib/2019-12-01/generated/azure_mgmt_compute/models/gallery_image_version_storage_profile.rb', line 29

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'GalleryImageVersionStorageProfile',
    type: {
      name: 'Composite',
      class_name: 'GalleryImageVersionStorageProfile',
      model_properties: {
        source: {
          client_side_validation: true,
          required: false,
          serialized_name: 'source',
          type: {
            name: 'Composite',
            class_name: 'GalleryArtifactVersionSource'
          }
        },
        os_disk_image: {
          client_side_validation: true,
          required: false,
          serialized_name: 'osDiskImage',
          type: {
            name: 'Composite',
            class_name: 'GalleryOSDiskImage'
          }
        },
        data_disk_images: {
          client_side_validation: true,
          required: false,
          serialized_name: 'dataDiskImages',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'GalleryDataDiskImageElementType',
                type: {
                  name: 'Composite',
                  class_name: 'GalleryDataDiskImage'
                }
            }
          }
        }
      }
    }
  }
end