Class: Azure::Compute::Mgmt::V2018_06_01::Models::GalleryImage

Inherits:
Resource
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2018-06-01/generated/azure_mgmt_compute/models/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 Resource

#id, #location, #name, #tags, #type

Class Method Summary collapse

Methods inherited from Resource

#resource_group

Instance Attribute Details

#descriptionString

resource. This property is updatable.

Returns:

  • (String)

    The description of this gallery Image Definition



18
19
20
# File 'lib/2018-06-01/generated/azure_mgmt_compute/models/gallery_image.rb', line 18

def description
  @description
end

#disallowedDisallowed

Returns:



51
52
53
# File 'lib/2018-06-01/generated/azure_mgmt_compute/models/gallery_image.rb', line 51

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



42
43
44
# File 'lib/2018-06-01/generated/azure_mgmt_compute/models/gallery_image.rb', line 42

def end_of_life_date
  @end_of_life_date
end

#eulaString

Returns The Eula agreement for the gallery Image Definition.

Returns:

  • (String)

    The Eula agreement for the gallery Image Definition.



21
22
23
# File 'lib/2018-06-01/generated/azure_mgmt_compute/models/gallery_image.rb', line 21

def eula
  @eula
end

#identifierGalleryImageIdentifier



45
46
47
# File 'lib/2018-06-01/generated/azure_mgmt_compute/models/gallery_image.rb', line 45

def identifier
  @identifier
end

#os_stateOperatingSystemStateTypes

'Generalized'. Possible values include: 'Generalized', 'Specialized'

Returns:



37
38
39
# File 'lib/2018-06-01/generated/azure_mgmt_compute/models/gallery_image.rb', line 37

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:



33
34
35
# File 'lib/2018-06-01/generated/azure_mgmt_compute/models/gallery_image.rb', line 33

def os_type
  @os_type
end

#privacy_statement_uriString

Returns The privacy statement uri.

Returns:

  • (String)

    The privacy statement uri.



24
25
26
# File 'lib/2018-06-01/generated/azure_mgmt_compute/models/gallery_image.rb', line 24

def privacy_statement_uri
  @privacy_statement_uri
end

#provisioning_stateEnum

provisioning state, which only appears in the response. Possible values include: 'Creating', 'Updating', 'Failed', 'Succeeded', 'Deleting', 'Migrating'

Returns:

  • (Enum)

    The current state of the gallery Image Definition. The



60
61
62
# File 'lib/2018-06-01/generated/azure_mgmt_compute/models/gallery_image.rb', line 60

def provisioning_state
  @provisioning_state
end

#purchase_planImagePurchasePlan

Returns:



54
55
56
# File 'lib/2018-06-01/generated/azure_mgmt_compute/models/gallery_image.rb', line 54

def purchase_plan
  @purchase_plan
end


48
49
50
# File 'lib/2018-06-01/generated/azure_mgmt_compute/models/gallery_image.rb', line 48

def recommended
  @recommended
end

#release_note_uriString

Returns The release note uri.

Returns:

  • (String)

    The release note uri.



27
28
29
# File 'lib/2018-06-01/generated/azure_mgmt_compute/models/gallery_image.rb', line 27

def release_note_uri
  @release_note_uri
end

Class Method Details

.mapperObject

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



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
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
# File 'lib/2018-06-01/generated/azure_mgmt_compute/models/gallery_image.rb', line 67

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'
          }
        },
        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