This repository has been archived by the owner on Mar 11, 2021. It is now read-only.
/
virtualMachine.go
506 lines (482 loc) · 23.1 KB
/
virtualMachine.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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
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
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
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
// *** WARNING: this file was generated by the Pulumi SDK Generator. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package latest
import (
"context"
"reflect"
"github.com/pkg/errors"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
// A virtual machine.
// Latest API Version: 2018-09-15.
type VirtualMachine struct {
pulumi.CustomResourceState
// Indicates whether another user can take ownership of the virtual machine
AllowClaim pulumi.BoolPtrOutput `pulumi:"allowClaim"`
// The applicable schedule for the virtual machine.
ApplicableSchedule ApplicableScheduleResponseOutput `pulumi:"applicableSchedule"`
// The artifact deployment status for the virtual machine.
ArtifactDeploymentStatus ArtifactDeploymentStatusPropertiesResponsePtrOutput `pulumi:"artifactDeploymentStatus"`
// The artifacts to be installed on the virtual machine.
Artifacts ArtifactInstallPropertiesResponseArrayOutput `pulumi:"artifacts"`
// The resource identifier (Microsoft.Compute) of the virtual machine.
ComputeId pulumi.StringPtrOutput `pulumi:"computeId"`
// The compute virtual machine properties.
ComputeVm ComputeVmPropertiesResponseOutput `pulumi:"computeVm"`
// The email address of creator of the virtual machine.
CreatedByUser pulumi.StringPtrOutput `pulumi:"createdByUser"`
// The object identifier of the creator of the virtual machine.
CreatedByUserId pulumi.StringPtrOutput `pulumi:"createdByUserId"`
// The creation date of the virtual machine.
CreatedDate pulumi.StringPtrOutput `pulumi:"createdDate"`
// The custom image identifier of the virtual machine.
CustomImageId pulumi.StringPtrOutput `pulumi:"customImageId"`
// New or existing data disks to attach to the virtual machine after creation
DataDiskParameters DataDiskPropertiesResponseArrayOutput `pulumi:"dataDiskParameters"`
// Indicates whether the virtual machine is to be created without a public IP address.
DisallowPublicIpAddress pulumi.BoolPtrOutput `pulumi:"disallowPublicIpAddress"`
// The resource ID of the environment that contains this virtual machine, if any.
EnvironmentId pulumi.StringPtrOutput `pulumi:"environmentId"`
// The expiration date for VM.
ExpirationDate pulumi.StringPtrOutput `pulumi:"expirationDate"`
// The fully-qualified domain name of the virtual machine.
Fqdn pulumi.StringPtrOutput `pulumi:"fqdn"`
// The Microsoft Azure Marketplace image reference of the virtual machine.
GalleryImageReference GalleryImageReferenceResponsePtrOutput `pulumi:"galleryImageReference"`
// Indicates whether this virtual machine uses an SSH key for authentication.
IsAuthenticationWithSshKey pulumi.BoolPtrOutput `pulumi:"isAuthenticationWithSshKey"`
// The lab subnet name of the virtual machine.
LabSubnetName pulumi.StringPtrOutput `pulumi:"labSubnetName"`
// The lab virtual network identifier of the virtual machine.
LabVirtualNetworkId pulumi.StringPtrOutput `pulumi:"labVirtualNetworkId"`
// Last known compute power state captured in DTL
LastKnownPowerState pulumi.StringPtrOutput `pulumi:"lastKnownPowerState"`
// The location of the resource.
Location pulumi.StringPtrOutput `pulumi:"location"`
// The name of the resource.
Name pulumi.StringOutput `pulumi:"name"`
// The network interface properties.
NetworkInterface NetworkInterfacePropertiesResponsePtrOutput `pulumi:"networkInterface"`
// The notes of the virtual machine.
Notes pulumi.StringPtrOutput `pulumi:"notes"`
// The OS type of the virtual machine.
OsType pulumi.StringPtrOutput `pulumi:"osType"`
// The object identifier of the owner of the virtual machine.
OwnerObjectId pulumi.StringPtrOutput `pulumi:"ownerObjectId"`
// The user principal name of the virtual machine owner.
OwnerUserPrincipalName pulumi.StringPtrOutput `pulumi:"ownerUserPrincipalName"`
// The password of the virtual machine administrator.
Password pulumi.StringPtrOutput `pulumi:"password"`
// The id of the plan associated with the virtual machine image
PlanId pulumi.StringPtrOutput `pulumi:"planId"`
// The provisioning status of the resource.
ProvisioningState pulumi.StringOutput `pulumi:"provisioningState"`
// Virtual Machine schedules to be created
ScheduleParameters ScheduleCreationParameterResponseArrayOutput `pulumi:"scheduleParameters"`
// The size of the virtual machine.
Size pulumi.StringPtrOutput `pulumi:"size"`
// The SSH key of the virtual machine administrator.
SshKey pulumi.StringPtrOutput `pulumi:"sshKey"`
// Storage type to use for virtual machine (i.e. Standard, Premium).
StorageType pulumi.StringPtrOutput `pulumi:"storageType"`
// The tags of the resource.
Tags pulumi.StringMapOutput `pulumi:"tags"`
// The type of the resource.
Type pulumi.StringOutput `pulumi:"type"`
// The unique immutable identifier of a resource (Guid).
UniqueIdentifier pulumi.StringOutput `pulumi:"uniqueIdentifier"`
// The user name of the virtual machine.
UserName pulumi.StringPtrOutput `pulumi:"userName"`
// Tells source of creation of lab virtual machine. Output property only.
VirtualMachineCreationSource pulumi.StringPtrOutput `pulumi:"virtualMachineCreationSource"`
}
// NewVirtualMachine registers a new resource with the given unique name, arguments, and options.
func NewVirtualMachine(ctx *pulumi.Context,
name string, args *VirtualMachineArgs, opts ...pulumi.ResourceOption) (*VirtualMachine, error) {
if args == nil {
return nil, errors.New("missing one or more required arguments")
}
if args.LabName == nil {
return nil, errors.New("invalid value for required argument 'LabName'")
}
if args.Name == nil {
return nil, errors.New("invalid value for required argument 'Name'")
}
if args.ResourceGroupName == nil {
return nil, errors.New("invalid value for required argument 'ResourceGroupName'")
}
aliases := pulumi.Aliases([]pulumi.Alias{
{
Type: pulumi.String("azure-nextgen:devtestlab/v20150521preview:VirtualMachine"),
},
{
Type: pulumi.String("azure-nextgen:devtestlab/v20160515:VirtualMachine"),
},
{
Type: pulumi.String("azure-nextgen:devtestlab/v20180915:VirtualMachine"),
},
})
opts = append(opts, aliases)
var resource VirtualMachine
err := ctx.RegisterResource("azure-nextgen:devtestlab/latest:VirtualMachine", name, args, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// GetVirtualMachine gets an existing VirtualMachine resource's state with the given name, ID, and optional
// state properties that are used to uniquely qualify the lookup (nil if not required).
func GetVirtualMachine(ctx *pulumi.Context,
name string, id pulumi.IDInput, state *VirtualMachineState, opts ...pulumi.ResourceOption) (*VirtualMachine, error) {
var resource VirtualMachine
err := ctx.ReadResource("azure-nextgen:devtestlab/latest:VirtualMachine", name, id, state, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// Input properties used for looking up and filtering VirtualMachine resources.
type virtualMachineState struct {
// Indicates whether another user can take ownership of the virtual machine
AllowClaim *bool `pulumi:"allowClaim"`
// The applicable schedule for the virtual machine.
ApplicableSchedule *ApplicableScheduleResponse `pulumi:"applicableSchedule"`
// The artifact deployment status for the virtual machine.
ArtifactDeploymentStatus *ArtifactDeploymentStatusPropertiesResponse `pulumi:"artifactDeploymentStatus"`
// The artifacts to be installed on the virtual machine.
Artifacts []ArtifactInstallPropertiesResponse `pulumi:"artifacts"`
// The resource identifier (Microsoft.Compute) of the virtual machine.
ComputeId *string `pulumi:"computeId"`
// The compute virtual machine properties.
ComputeVm *ComputeVmPropertiesResponse `pulumi:"computeVm"`
// The email address of creator of the virtual machine.
CreatedByUser *string `pulumi:"createdByUser"`
// The object identifier of the creator of the virtual machine.
CreatedByUserId *string `pulumi:"createdByUserId"`
// The creation date of the virtual machine.
CreatedDate *string `pulumi:"createdDate"`
// The custom image identifier of the virtual machine.
CustomImageId *string `pulumi:"customImageId"`
// New or existing data disks to attach to the virtual machine after creation
DataDiskParameters []DataDiskPropertiesResponse `pulumi:"dataDiskParameters"`
// Indicates whether the virtual machine is to be created without a public IP address.
DisallowPublicIpAddress *bool `pulumi:"disallowPublicIpAddress"`
// The resource ID of the environment that contains this virtual machine, if any.
EnvironmentId *string `pulumi:"environmentId"`
// The expiration date for VM.
ExpirationDate *string `pulumi:"expirationDate"`
// The fully-qualified domain name of the virtual machine.
Fqdn *string `pulumi:"fqdn"`
// The Microsoft Azure Marketplace image reference of the virtual machine.
GalleryImageReference *GalleryImageReferenceResponse `pulumi:"galleryImageReference"`
// Indicates whether this virtual machine uses an SSH key for authentication.
IsAuthenticationWithSshKey *bool `pulumi:"isAuthenticationWithSshKey"`
// The lab subnet name of the virtual machine.
LabSubnetName *string `pulumi:"labSubnetName"`
// The lab virtual network identifier of the virtual machine.
LabVirtualNetworkId *string `pulumi:"labVirtualNetworkId"`
// Last known compute power state captured in DTL
LastKnownPowerState *string `pulumi:"lastKnownPowerState"`
// The location of the resource.
Location *string `pulumi:"location"`
// The name of the resource.
Name *string `pulumi:"name"`
// The network interface properties.
NetworkInterface *NetworkInterfacePropertiesResponse `pulumi:"networkInterface"`
// The notes of the virtual machine.
Notes *string `pulumi:"notes"`
// The OS type of the virtual machine.
OsType *string `pulumi:"osType"`
// The object identifier of the owner of the virtual machine.
OwnerObjectId *string `pulumi:"ownerObjectId"`
// The user principal name of the virtual machine owner.
OwnerUserPrincipalName *string `pulumi:"ownerUserPrincipalName"`
// The password of the virtual machine administrator.
Password *string `pulumi:"password"`
// The id of the plan associated with the virtual machine image
PlanId *string `pulumi:"planId"`
// The provisioning status of the resource.
ProvisioningState *string `pulumi:"provisioningState"`
// Virtual Machine schedules to be created
ScheduleParameters []ScheduleCreationParameterResponse `pulumi:"scheduleParameters"`
// The size of the virtual machine.
Size *string `pulumi:"size"`
// The SSH key of the virtual machine administrator.
SshKey *string `pulumi:"sshKey"`
// Storage type to use for virtual machine (i.e. Standard, Premium).
StorageType *string `pulumi:"storageType"`
// The tags of the resource.
Tags map[string]string `pulumi:"tags"`
// The type of the resource.
Type *string `pulumi:"type"`
// The unique immutable identifier of a resource (Guid).
UniqueIdentifier *string `pulumi:"uniqueIdentifier"`
// The user name of the virtual machine.
UserName *string `pulumi:"userName"`
// Tells source of creation of lab virtual machine. Output property only.
VirtualMachineCreationSource *string `pulumi:"virtualMachineCreationSource"`
}
type VirtualMachineState struct {
// Indicates whether another user can take ownership of the virtual machine
AllowClaim pulumi.BoolPtrInput
// The applicable schedule for the virtual machine.
ApplicableSchedule ApplicableScheduleResponsePtrInput
// The artifact deployment status for the virtual machine.
ArtifactDeploymentStatus ArtifactDeploymentStatusPropertiesResponsePtrInput
// The artifacts to be installed on the virtual machine.
Artifacts ArtifactInstallPropertiesResponseArrayInput
// The resource identifier (Microsoft.Compute) of the virtual machine.
ComputeId pulumi.StringPtrInput
// The compute virtual machine properties.
ComputeVm ComputeVmPropertiesResponsePtrInput
// The email address of creator of the virtual machine.
CreatedByUser pulumi.StringPtrInput
// The object identifier of the creator of the virtual machine.
CreatedByUserId pulumi.StringPtrInput
// The creation date of the virtual machine.
CreatedDate pulumi.StringPtrInput
// The custom image identifier of the virtual machine.
CustomImageId pulumi.StringPtrInput
// New or existing data disks to attach to the virtual machine after creation
DataDiskParameters DataDiskPropertiesResponseArrayInput
// Indicates whether the virtual machine is to be created without a public IP address.
DisallowPublicIpAddress pulumi.BoolPtrInput
// The resource ID of the environment that contains this virtual machine, if any.
EnvironmentId pulumi.StringPtrInput
// The expiration date for VM.
ExpirationDate pulumi.StringPtrInput
// The fully-qualified domain name of the virtual machine.
Fqdn pulumi.StringPtrInput
// The Microsoft Azure Marketplace image reference of the virtual machine.
GalleryImageReference GalleryImageReferenceResponsePtrInput
// Indicates whether this virtual machine uses an SSH key for authentication.
IsAuthenticationWithSshKey pulumi.BoolPtrInput
// The lab subnet name of the virtual machine.
LabSubnetName pulumi.StringPtrInput
// The lab virtual network identifier of the virtual machine.
LabVirtualNetworkId pulumi.StringPtrInput
// Last known compute power state captured in DTL
LastKnownPowerState pulumi.StringPtrInput
// The location of the resource.
Location pulumi.StringPtrInput
// The name of the resource.
Name pulumi.StringPtrInput
// The network interface properties.
NetworkInterface NetworkInterfacePropertiesResponsePtrInput
// The notes of the virtual machine.
Notes pulumi.StringPtrInput
// The OS type of the virtual machine.
OsType pulumi.StringPtrInput
// The object identifier of the owner of the virtual machine.
OwnerObjectId pulumi.StringPtrInput
// The user principal name of the virtual machine owner.
OwnerUserPrincipalName pulumi.StringPtrInput
// The password of the virtual machine administrator.
Password pulumi.StringPtrInput
// The id of the plan associated with the virtual machine image
PlanId pulumi.StringPtrInput
// The provisioning status of the resource.
ProvisioningState pulumi.StringPtrInput
// Virtual Machine schedules to be created
ScheduleParameters ScheduleCreationParameterResponseArrayInput
// The size of the virtual machine.
Size pulumi.StringPtrInput
// The SSH key of the virtual machine administrator.
SshKey pulumi.StringPtrInput
// Storage type to use for virtual machine (i.e. Standard, Premium).
StorageType pulumi.StringPtrInput
// The tags of the resource.
Tags pulumi.StringMapInput
// The type of the resource.
Type pulumi.StringPtrInput
// The unique immutable identifier of a resource (Guid).
UniqueIdentifier pulumi.StringPtrInput
// The user name of the virtual machine.
UserName pulumi.StringPtrInput
// Tells source of creation of lab virtual machine. Output property only.
VirtualMachineCreationSource pulumi.StringPtrInput
}
func (VirtualMachineState) ElementType() reflect.Type {
return reflect.TypeOf((*virtualMachineState)(nil)).Elem()
}
type virtualMachineArgs struct {
// Indicates whether another user can take ownership of the virtual machine
AllowClaim *bool `pulumi:"allowClaim"`
// The artifact deployment status for the virtual machine.
ArtifactDeploymentStatus *ArtifactDeploymentStatusProperties `pulumi:"artifactDeploymentStatus"`
// The artifacts to be installed on the virtual machine.
Artifacts []ArtifactInstallProperties `pulumi:"artifacts"`
// The resource identifier (Microsoft.Compute) of the virtual machine.
ComputeId *string `pulumi:"computeId"`
// The email address of creator of the virtual machine.
CreatedByUser *string `pulumi:"createdByUser"`
// The object identifier of the creator of the virtual machine.
CreatedByUserId *string `pulumi:"createdByUserId"`
// The creation date of the virtual machine.
CreatedDate *string `pulumi:"createdDate"`
// The custom image identifier of the virtual machine.
CustomImageId *string `pulumi:"customImageId"`
// New or existing data disks to attach to the virtual machine after creation
DataDiskParameters []DataDiskProperties `pulumi:"dataDiskParameters"`
// Indicates whether the virtual machine is to be created without a public IP address.
DisallowPublicIpAddress *bool `pulumi:"disallowPublicIpAddress"`
// The resource ID of the environment that contains this virtual machine, if any.
EnvironmentId *string `pulumi:"environmentId"`
// The expiration date for VM.
ExpirationDate *string `pulumi:"expirationDate"`
// The fully-qualified domain name of the virtual machine.
Fqdn *string `pulumi:"fqdn"`
// The Microsoft Azure Marketplace image reference of the virtual machine.
GalleryImageReference *GalleryImageReference `pulumi:"galleryImageReference"`
// Indicates whether this virtual machine uses an SSH key for authentication.
IsAuthenticationWithSshKey *bool `pulumi:"isAuthenticationWithSshKey"`
// The name of the lab.
LabName string `pulumi:"labName"`
// The lab subnet name of the virtual machine.
LabSubnetName *string `pulumi:"labSubnetName"`
// The lab virtual network identifier of the virtual machine.
LabVirtualNetworkId *string `pulumi:"labVirtualNetworkId"`
// Last known compute power state captured in DTL
LastKnownPowerState *string `pulumi:"lastKnownPowerState"`
// The location of the resource.
Location *string `pulumi:"location"`
// The name of the virtual machine.
Name string `pulumi:"name"`
// The network interface properties.
NetworkInterface *NetworkInterfaceProperties `pulumi:"networkInterface"`
// The notes of the virtual machine.
Notes *string `pulumi:"notes"`
// The OS type of the virtual machine.
OsType *string `pulumi:"osType"`
// The object identifier of the owner of the virtual machine.
OwnerObjectId *string `pulumi:"ownerObjectId"`
// The user principal name of the virtual machine owner.
OwnerUserPrincipalName *string `pulumi:"ownerUserPrincipalName"`
// The password of the virtual machine administrator.
Password *string `pulumi:"password"`
// The id of the plan associated with the virtual machine image
PlanId *string `pulumi:"planId"`
// The name of the resource group.
ResourceGroupName string `pulumi:"resourceGroupName"`
// Virtual Machine schedules to be created
ScheduleParameters []ScheduleCreationParameter `pulumi:"scheduleParameters"`
// The size of the virtual machine.
Size *string `pulumi:"size"`
// The SSH key of the virtual machine administrator.
SshKey *string `pulumi:"sshKey"`
// Storage type to use for virtual machine (i.e. Standard, Premium).
StorageType *string `pulumi:"storageType"`
// The tags of the resource.
Tags map[string]string `pulumi:"tags"`
// The user name of the virtual machine.
UserName *string `pulumi:"userName"`
// Tells source of creation of lab virtual machine. Output property only.
VirtualMachineCreationSource *string `pulumi:"virtualMachineCreationSource"`
}
// The set of arguments for constructing a VirtualMachine resource.
type VirtualMachineArgs struct {
// Indicates whether another user can take ownership of the virtual machine
AllowClaim pulumi.BoolPtrInput
// The artifact deployment status for the virtual machine.
ArtifactDeploymentStatus ArtifactDeploymentStatusPropertiesPtrInput
// The artifacts to be installed on the virtual machine.
Artifacts ArtifactInstallPropertiesArrayInput
// The resource identifier (Microsoft.Compute) of the virtual machine.
ComputeId pulumi.StringPtrInput
// The email address of creator of the virtual machine.
CreatedByUser pulumi.StringPtrInput
// The object identifier of the creator of the virtual machine.
CreatedByUserId pulumi.StringPtrInput
// The creation date of the virtual machine.
CreatedDate pulumi.StringPtrInput
// The custom image identifier of the virtual machine.
CustomImageId pulumi.StringPtrInput
// New or existing data disks to attach to the virtual machine after creation
DataDiskParameters DataDiskPropertiesArrayInput
// Indicates whether the virtual machine is to be created without a public IP address.
DisallowPublicIpAddress pulumi.BoolPtrInput
// The resource ID of the environment that contains this virtual machine, if any.
EnvironmentId pulumi.StringPtrInput
// The expiration date for VM.
ExpirationDate pulumi.StringPtrInput
// The fully-qualified domain name of the virtual machine.
Fqdn pulumi.StringPtrInput
// The Microsoft Azure Marketplace image reference of the virtual machine.
GalleryImageReference GalleryImageReferencePtrInput
// Indicates whether this virtual machine uses an SSH key for authentication.
IsAuthenticationWithSshKey pulumi.BoolPtrInput
// The name of the lab.
LabName pulumi.StringInput
// The lab subnet name of the virtual machine.
LabSubnetName pulumi.StringPtrInput
// The lab virtual network identifier of the virtual machine.
LabVirtualNetworkId pulumi.StringPtrInput
// Last known compute power state captured in DTL
LastKnownPowerState pulumi.StringPtrInput
// The location of the resource.
Location pulumi.StringPtrInput
// The name of the virtual machine.
Name pulumi.StringInput
// The network interface properties.
NetworkInterface NetworkInterfacePropertiesPtrInput
// The notes of the virtual machine.
Notes pulumi.StringPtrInput
// The OS type of the virtual machine.
OsType pulumi.StringPtrInput
// The object identifier of the owner of the virtual machine.
OwnerObjectId pulumi.StringPtrInput
// The user principal name of the virtual machine owner.
OwnerUserPrincipalName pulumi.StringPtrInput
// The password of the virtual machine administrator.
Password pulumi.StringPtrInput
// The id of the plan associated with the virtual machine image
PlanId pulumi.StringPtrInput
// The name of the resource group.
ResourceGroupName pulumi.StringInput
// Virtual Machine schedules to be created
ScheduleParameters ScheduleCreationParameterArrayInput
// The size of the virtual machine.
Size pulumi.StringPtrInput
// The SSH key of the virtual machine administrator.
SshKey pulumi.StringPtrInput
// Storage type to use for virtual machine (i.e. Standard, Premium).
StorageType pulumi.StringPtrInput
// The tags of the resource.
Tags pulumi.StringMapInput
// The user name of the virtual machine.
UserName pulumi.StringPtrInput
// Tells source of creation of lab virtual machine. Output property only.
VirtualMachineCreationSource pulumi.StringPtrInput
}
func (VirtualMachineArgs) ElementType() reflect.Type {
return reflect.TypeOf((*virtualMachineArgs)(nil)).Elem()
}
type VirtualMachineInput interface {
pulumi.Input
ToVirtualMachineOutput() VirtualMachineOutput
ToVirtualMachineOutputWithContext(ctx context.Context) VirtualMachineOutput
}
func (*VirtualMachine) ElementType() reflect.Type {
return reflect.TypeOf((*VirtualMachine)(nil))
}
func (i *VirtualMachine) ToVirtualMachineOutput() VirtualMachineOutput {
return i.ToVirtualMachineOutputWithContext(context.Background())
}
func (i *VirtualMachine) ToVirtualMachineOutputWithContext(ctx context.Context) VirtualMachineOutput {
return pulumi.ToOutputWithContext(ctx, i).(VirtualMachineOutput)
}
type VirtualMachineOutput struct {
*pulumi.OutputState
}
func (VirtualMachineOutput) ElementType() reflect.Type {
return reflect.TypeOf((*VirtualMachine)(nil))
}
func (o VirtualMachineOutput) ToVirtualMachineOutput() VirtualMachineOutput {
return o
}
func (o VirtualMachineOutput) ToVirtualMachineOutputWithContext(ctx context.Context) VirtualMachineOutput {
return o
}
func init() {
pulumi.RegisterOutputType(VirtualMachineOutput{})
}