Class: Azure::Compute::Mgmt::V2020_09_30_preview::Models::SharedGalleryImage

Inherits:
PirSharedGalleryResource show all
Includes:
MsRestAzure
Defined in:
lib/2020-09-30-preview/generated/azure_mgmt_compute/models/shared_gallery_image.rb

Overview

Specifies information about the gallery image definition that you want to create or update.

Instance Attribute Summary collapse

Attributes inherited from PirSharedGalleryResource

#unique_id

Attributes inherited from PirResource

#location, #name

Class Method Summary collapse

Instance Attribute Details

#disallowedDisallowed

Returns:



40
41
42
# File 'lib/2020-09-30-preview/generated/azure_mgmt_compute/models/shared_gallery_image.rb', line 40

def disallowed
  @disallowed
end

#end_of_life_dateDateTime

definition. This property can be used for decommissioning purposes. This property is updatable.

Returns:

  • (DateTime)

    The end of life date of the gallery image



31
32
33
# File 'lib/2020-09-30-preview/generated/azure_mgmt_compute/models/shared_gallery_image.rb', line 31

def end_of_life_date
  @end_of_life_date
end

#featuresArray<GalleryImageFeature>

Returns A list of gallery image features.

Returns:



48
49
50
# File 'lib/2020-09-30-preview/generated/azure_mgmt_compute/models/shared_gallery_image.rb', line 48

def features
  @features
end

#hyper_vgenerationHyperVGeneration

Machine. Applicable to OS disks only. Possible values include: 'V1', 'V2'

Returns:



45
46
47
# File 'lib/2020-09-30-preview/generated/azure_mgmt_compute/models/shared_gallery_image.rb', line 45

def hyper_vgeneration
  @hyper_vgeneration
end

#identifierGalleryImageIdentifier



34
35
36
# File 'lib/2020-09-30-preview/generated/azure_mgmt_compute/models/shared_gallery_image.rb', line 34

def identifier
  @identifier
end

#os_stateOperatingSystemStateTypes

specify whether the virtual machines created under this image are 'Generalized' or 'Specialized'. Possible values include: 'Generalized', 'Specialized'

Returns:



26
27
28
# File 'lib/2020-09-30-preview/generated/azure_mgmt_compute/models/shared_gallery_image.rb', line 26

def os_state
  @os_state
end

#os_typeOperatingSystemTypes

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'

Returns:



20
21
22
# File 'lib/2020-09-30-preview/generated/azure_mgmt_compute/models/shared_gallery_image.rb', line 20

def os_type
  @os_type
end

#purchase_planImagePurchasePlan

Returns:



51
52
53
# File 'lib/2020-09-30-preview/generated/azure_mgmt_compute/models/shared_gallery_image.rb', line 51

def purchase_plan
  @purchase_plan
end


37
38
39
# File 'lib/2020-09-30-preview/generated/azure_mgmt_compute/models/shared_gallery_image.rb', line 37

def recommended
  @recommended
end

Class Method Details

.mapperObject

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



58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
# File 'lib/2020-09-30-preview/generated/azure_mgmt_compute/models/shared_gallery_image.rb', line 58

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'SharedGalleryImage',
    type: {
      name: 'Composite',
      class_name: 'SharedGalleryImage',
      model_properties: {
        name: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'name',
          type: {
            name: 'String'
          }
        },
        location: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'location',
          type: {
            name: 'String'
          }
        },
        unique_id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'identifier.uniqueId',
          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'
          }
        },
        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'
          }
        },
        hyper_vgeneration: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.hyperVGeneration',
          type: {
            name: 'String'
          }
        },
        features: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.features',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'GalleryImageFeatureElementType',
                type: {
                  name: 'Composite',
                  class_name: 'GalleryImageFeature'
                }
            }
          }
        },
        purchase_plan: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.purchasePlan',
          type: {
            name: 'Composite',
            class_name: 'ImagePurchasePlan'
          }
        }
      }
    }
  }
end