Class: Azure::DevTestLabs::Mgmt::V2016_05_15::Models::LabVirtualMachine

Inherits:
Resource
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/lab_virtual_machine.rb

Overview

A virtual machine.

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

#allow_claimBoolean

the virtual machine

Returns:

  • (Boolean)

    Indicates whether another user can take ownership of



103
104
105
# File 'lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/lab_virtual_machine.rb', line 103

def allow_claim
  @allow_claim
end

#applicable_scheduleApplicableSchedule

machine.

Returns:



96
97
98
# File 'lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/lab_virtual_machine.rb', line 96

def applicable_schedule
  @applicable_schedule
end

#artifact_deployment_statusArtifactDeploymentStatusProperties

status for the virtual machine.

Returns:



82
83
84
# File 'lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/lab_virtual_machine.rb', line 82

def artifact_deployment_status
  @artifact_deployment_status
end

#artifactsArray<ArtifactInstallProperties>

installed on the virtual machine.

Returns:



78
79
80
# File 'lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/lab_virtual_machine.rb', line 78

def artifacts
  @artifacts
end

#compute_idString

virtual machine.

Returns:

  • (String)

    The resource identifier (Microsoft.Compute) of the



37
38
39
# File 'lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/lab_virtual_machine.rb', line 37

def compute_id
  @compute_id
end

#compute_vmComputeVmProperties

Returns The compute virtual machine properties.

Returns:



89
90
91
# File 'lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/lab_virtual_machine.rb', line 89

def compute_vm
  @compute_vm
end

#created_by_userString

Returns The email address of creator of the virtual machine.

Returns:

  • (String)

    The email address of creator of the virtual machine.



30
31
32
# File 'lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/lab_virtual_machine.rb', line 30

def created_by_user
  @created_by_user
end

#created_by_user_idString

machine.

Returns:

  • (String)

    The object identifier of the creator of the virtual



27
28
29
# File 'lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/lab_virtual_machine.rb', line 27

def created_by_user_id
  @created_by_user_id
end

#created_dateDateTime

Returns The creation date of the virtual machine.

Returns:

  • (DateTime)

    The creation date of the virtual machine.



33
34
35
# File 'lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/lab_virtual_machine.rb', line 33

def created_date
  @created_date
end

#custom_image_idString

Returns The custom image identifier of the virtual machine.

Returns:

  • (String)

    The custom image identifier of the virtual machine.



40
41
42
# File 'lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/lab_virtual_machine.rb', line 40

def custom_image_id
  @custom_image_id
end

#disallow_public_ip_addressBoolean

created without a public IP address.

Returns:

  • (Boolean)

    Indicates whether the virtual machine is to be



74
75
76
# File 'lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/lab_virtual_machine.rb', line 74

def disallow_public_ip_address
  @disallow_public_ip_address
end

#environment_idString

virtual machine, if any.

Returns:

  • (String)

    The resource ID of the environment that contains this



116
117
118
# File 'lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/lab_virtual_machine.rb', line 116

def environment_id
  @environment_id
end

#expiration_dateDateTime

Returns The expiration date for VM.

Returns:

  • (DateTime)

    The expiration date for VM.



99
100
101
# File 'lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/lab_virtual_machine.rb', line 99

def expiration_date
  @expiration_date
end

#fqdnString

machine.

Returns:

  • (String)

    The fully-qualified domain name of the virtual



63
64
65
# File 'lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/lab_virtual_machine.rb', line 63

def fqdn
  @fqdn
end

reference of the virtual machine.

Returns:



86
87
88
# File 'lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/lab_virtual_machine.rb', line 86

def gallery_image_reference
  @gallery_image_reference
end

#is_authentication_with_ssh_keyBoolean

key for authentication.

Returns:

  • (Boolean)

    Indicates whether this virtual machine uses an SSH



59
60
61
# File 'lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/lab_virtual_machine.rb', line 59

def is_authentication_with_ssh_key
  @is_authentication_with_ssh_key
end

#lab_subnet_nameString

Returns The lab subnet name of the virtual machine.

Returns:

  • (String)

    The lab subnet name of the virtual machine.



66
67
68
# File 'lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/lab_virtual_machine.rb', line 66

def lab_subnet_name
  @lab_subnet_name
end

#lab_virtual_network_idString

machine.

Returns:

  • (String)

    The lab virtual network identifier of the virtual



70
71
72
# File 'lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/lab_virtual_machine.rb', line 70

def lab_virtual_network_id
  @lab_virtual_network_id
end

#network_interfaceNetworkInterfaceProperties

Returns The network interface properties.

Returns:



92
93
94
# File 'lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/lab_virtual_machine.rb', line 92

def network_interface
  @network_interface
end

#notesString

Returns The notes of the virtual machine.

Returns:

  • (String)

    The notes of the virtual machine.



16
17
18
# File 'lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/lab_virtual_machine.rb', line 16

def notes
  @notes
end

#os_typeString

Returns The OS type of the virtual machine.

Returns:

  • (String)

    The OS type of the virtual machine.



43
44
45
# File 'lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/lab_virtual_machine.rb', line 43

def os_type
  @os_type
end

#owner_object_idString

machine.

Returns:

  • (String)

    The object identifier of the owner of the virtual



20
21
22
# File 'lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/lab_virtual_machine.rb', line 20

def owner_object_id
  @owner_object_id
end

#owner_user_principal_nameString

Returns The user principal name of the virtual machine owner.

Returns:

  • (String)

    The user principal name of the virtual machine owner.



23
24
25
# File 'lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/lab_virtual_machine.rb', line 23

def owner_user_principal_name
  @owner_user_principal_name
end

#passwordString

Returns The password of the virtual machine administrator.

Returns:

  • (String)

    The password of the virtual machine administrator.



52
53
54
# File 'lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/lab_virtual_machine.rb', line 52

def password
  @password
end

#provisioning_stateString

Returns The provisioning status of the resource.

Returns:

  • (String)

    The provisioning status of the resource.



119
120
121
# File 'lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/lab_virtual_machine.rb', line 119

def provisioning_state
  @provisioning_state
end

#sizeString

Returns The size of the virtual machine.

Returns:

  • (String)

    The size of the virtual machine.



46
47
48
# File 'lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/lab_virtual_machine.rb', line 46

def size
  @size
end

#ssh_keyString

Returns The SSH key of the virtual machine administrator.

Returns:

  • (String)

    The SSH key of the virtual machine administrator.



55
56
57
# File 'lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/lab_virtual_machine.rb', line 55

def ssh_key
  @ssh_key
end

#storage_typeString

Standard, Premium).

Returns:

  • (String)

    Storage type to use for virtual machine (i.e.



107
108
109
# File 'lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/lab_virtual_machine.rb', line 107

def storage_type
  @storage_type
end

#unique_identifierString

Returns The unique immutable identifier of a resource (Guid).

Returns:

  • (String)

    The unique immutable identifier of a resource (Guid).



122
123
124
# File 'lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/lab_virtual_machine.rb', line 122

def unique_identifier
  @unique_identifier
end

#user_nameString

Returns The user name of the virtual machine.

Returns:

  • (String)

    The user name of the virtual machine.



49
50
51
# File 'lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/lab_virtual_machine.rb', line 49

def user_name
  @user_name
end

#virtual_machine_creation_sourceVirtualMachineCreationSource

virtual machine. Output property only. Possible values include: ‘FromCustomImage’, ‘FromGalleryImage’

Returns:



112
113
114
# File 'lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/lab_virtual_machine.rb', line 112

def virtual_machine_creation_source
  @virtual_machine_creation_source
end

Class Method Details

.mapperObject

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



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
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
# File 'lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/lab_virtual_machine.rb', line 129

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'LabVirtualMachine',
    type: {
      name: 'Composite',
      class_name: 'LabVirtualMachine',
      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: false,
          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'
                }
            }
          }
        },
        notes: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.notes',
          type: {
            name: 'String'
          }
        },
        owner_object_id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.ownerObjectId',
          type: {
            name: 'String'
          }
        },
        owner_user_principal_name: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.ownerUserPrincipalName',
          type: {
            name: 'String'
          }
        },
        created_by_user_id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.createdByUserId',
          type: {
            name: 'String'
          }
        },
        created_by_user: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.createdByUser',
          type: {
            name: 'String'
          }
        },
        created_date: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.createdDate',
          type: {
            name: 'DateTime'
          }
        },
        compute_id: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.computeId',
          type: {
            name: 'String'
          }
        },
        custom_image_id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.customImageId',
          type: {
            name: 'String'
          }
        },
        os_type: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.osType',
          type: {
            name: 'String'
          }
        },
        size: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.size',
          type: {
            name: 'String'
          }
        },
        user_name: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.userName',
          type: {
            name: 'String'
          }
        },
        password: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.password',
          type: {
            name: 'String'
          }
        },
        ssh_key: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.sshKey',
          type: {
            name: 'String'
          }
        },
        is_authentication_with_ssh_key: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.isAuthenticationWithSshKey',
          type: {
            name: 'Boolean'
          }
        },
        fqdn: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.fqdn',
          type: {
            name: 'String'
          }
        },
        lab_subnet_name: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.labSubnetName',
          type: {
            name: 'String'
          }
        },
        lab_virtual_network_id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.labVirtualNetworkId',
          type: {
            name: 'String'
          }
        },
        disallow_public_ip_address: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.disallowPublicIpAddress',
          type: {
            name: 'Boolean'
          }
        },
        artifacts: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.artifacts',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'ArtifactInstallPropertiesElementType',
                type: {
                  name: 'Composite',
                  class_name: 'ArtifactInstallProperties'
                }
            }
          }
        },
        artifact_deployment_status: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.artifactDeploymentStatus',
          type: {
            name: 'Composite',
            class_name: 'ArtifactDeploymentStatusProperties'
          }
        },
        gallery_image_reference: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.galleryImageReference',
          type: {
            name: 'Composite',
            class_name: 'GalleryImageReference'
          }
        },
        compute_vm: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.computeVm',
          type: {
            name: 'Composite',
            class_name: 'ComputeVmProperties'
          }
        },
        network_interface: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.networkInterface',
          type: {
            name: 'Composite',
            class_name: 'NetworkInterfaceProperties'
          }
        },
        applicable_schedule: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.applicableSchedule',
          type: {
            name: 'Composite',
            class_name: 'ApplicableSchedule'
          }
        },
        expiration_date: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.expirationDate',
          type: {
            name: 'DateTime'
          }
        },
        allow_claim: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.allowClaim',
          type: {
            name: 'Boolean'
          }
        },
        storage_type: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.storageType',
          type: {
            name: 'String'
          }
        },
        virtual_machine_creation_source: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.virtualMachineCreationSource',
          type: {
            name: 'String'
          }
        },
        environment_id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.environmentId',
          type: {
            name: 'String'
          }
        },
        provisioning_state: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.provisioningState',
          type: {
            name: 'String'
          }
        },
        unique_identifier: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.uniqueIdentifier',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end