Class: Azure::Compute::Mgmt::V2020_09_30_preview::Models::GalleryDiskImage
- Inherits:
-
Object
- Object
- Azure::Compute::Mgmt::V2020_09_30_preview::Models::GalleryDiskImage
- Includes:
- MsRestAzure
- Defined in:
- lib/2020-09-30-preview/generated/azure_mgmt_compute/models/gallery_disk_image.rb
Overview
This is the disk image base class.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#host_caching ⇒ HostCaching
'None', 'ReadOnly', and 'ReadWrite'.
-
#size_in_gb ⇒ Integer
created.
- #source ⇒ GalleryArtifactVersionSource
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for GalleryDiskImage class as Ruby Hash.
Instance Attribute Details
#host_caching ⇒ HostCaching
'None', 'ReadOnly', and 'ReadWrite'. Possible values include: 'None', 'ReadOnly', 'ReadWrite'
22 23 24 |
# File 'lib/2020-09-30-preview/generated/azure_mgmt_compute/models/gallery_disk_image.rb', line 22 def host_caching @host_caching end |
#size_in_gb ⇒ Integer
created.
17 18 19 |
# File 'lib/2020-09-30-preview/generated/azure_mgmt_compute/models/gallery_disk_image.rb', line 17 def size_in_gb @size_in_gb end |
#source ⇒ GalleryArtifactVersionSource
25 26 27 |
# File 'lib/2020-09-30-preview/generated/azure_mgmt_compute/models/gallery_disk_image.rb', line 25 def source @source end |
Class Method Details
.mapper ⇒ Object
Mapper for GalleryDiskImage class as Ruby Hash. This will be used for serialization/deserialization.
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 |
# File 'lib/2020-09-30-preview/generated/azure_mgmt_compute/models/gallery_disk_image.rb', line 32 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'GalleryDiskImage', type: { name: 'Composite', class_name: 'GalleryDiskImage', model_properties: { size_in_gb: { client_side_validation: true, required: false, read_only: true, serialized_name: 'sizeInGB', type: { name: 'Number' } }, host_caching: { client_side_validation: true, required: false, serialized_name: 'hostCaching', type: { name: 'Enum', module: 'HostCaching' } }, source: { client_side_validation: true, required: false, serialized_name: 'source', type: { name: 'Composite', class_name: 'GalleryArtifactVersionSource' } } } } } end |