forked from Azure/azure-sdk-for-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmodels.go
1988 lines (1763 loc) · 95.4 KB
/
models.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
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
package dtl
// Copyright (c) Microsoft and contributors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
//
// See the License for the specific language governing permissions and
// limitations under the License.
//
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
import (
"github.com/Azure/go-autorest/autorest"
"github.com/Azure/go-autorest/autorest/date"
"github.com/Azure/go-autorest/autorest/to"
"net/http"
)
// CostThresholdStatus enumerates the values for cost threshold status.
type CostThresholdStatus string
const (
// Disabled specifies the disabled state for cost threshold status.
Disabled CostThresholdStatus = "Disabled"
// Enabled specifies the enabled state for cost threshold status.
Enabled CostThresholdStatus = "Enabled"
)
// CostType enumerates the values for cost type.
type CostType string
const (
// Projected specifies the projected state for cost type.
Projected CostType = "Projected"
// Reported specifies the reported state for cost type.
Reported CostType = "Reported"
// Unavailable specifies the unavailable state for cost type.
Unavailable CostType = "Unavailable"
)
// CustomImageOsType enumerates the values for custom image os type.
type CustomImageOsType string
const (
// Linux specifies the linux state for custom image os type.
Linux CustomImageOsType = "Linux"
// None specifies the none state for custom image os type.
None CustomImageOsType = "None"
// Windows specifies the windows state for custom image os type.
Windows CustomImageOsType = "Windows"
)
// EnableStatus enumerates the values for enable status.
type EnableStatus string
const (
// EnableStatusDisabled specifies the enable status disabled state for enable status.
EnableStatusDisabled EnableStatus = "Disabled"
// EnableStatusEnabled specifies the enable status enabled state for enable status.
EnableStatusEnabled EnableStatus = "Enabled"
)
// FileUploadOptions enumerates the values for file upload options.
type FileUploadOptions string
const (
// FileUploadOptionsNone specifies the file upload options none state for file upload options.
FileUploadOptionsNone FileUploadOptions = "None"
// FileUploadOptionsUploadFilesAndGenerateSasTokens specifies the file upload options upload files and generate sas
// tokens state for file upload options.
FileUploadOptionsUploadFilesAndGenerateSasTokens FileUploadOptions = "UploadFilesAndGenerateSasTokens"
)
// HostCachingOptions enumerates the values for host caching options.
type HostCachingOptions string
const (
// HostCachingOptionsNone specifies the host caching options none state for host caching options.
HostCachingOptionsNone HostCachingOptions = "None"
// HostCachingOptionsReadOnly specifies the host caching options read only state for host caching options.
HostCachingOptionsReadOnly HostCachingOptions = "ReadOnly"
// HostCachingOptionsReadWrite specifies the host caching options read write state for host caching options.
HostCachingOptionsReadWrite HostCachingOptions = "ReadWrite"
)
// HTTPStatusCode enumerates the values for http status code.
type HTTPStatusCode string
const (
// Accepted specifies the accepted state for http status code.
Accepted HTTPStatusCode = "Accepted"
// BadGateway specifies the bad gateway state for http status code.
BadGateway HTTPStatusCode = "BadGateway"
// BadRequest specifies the bad request state for http status code.
BadRequest HTTPStatusCode = "BadRequest"
// Conflict specifies the conflict state for http status code.
Conflict HTTPStatusCode = "Conflict"
// Continue specifies the continue state for http status code.
Continue HTTPStatusCode = "Continue"
// Created specifies the created state for http status code.
Created HTTPStatusCode = "Created"
// ExpectationFailed specifies the expectation failed state for http status code.
ExpectationFailed HTTPStatusCode = "ExpectationFailed"
// Forbidden specifies the forbidden state for http status code.
Forbidden HTTPStatusCode = "Forbidden"
// GatewayTimeout specifies the gateway timeout state for http status code.
GatewayTimeout HTTPStatusCode = "GatewayTimeout"
// Gone specifies the gone state for http status code.
Gone HTTPStatusCode = "Gone"
// HTTPVersionNotSupported specifies the http version not supported state for http status code.
HTTPVersionNotSupported HTTPStatusCode = "HttpVersionNotSupported"
// InternalServerError specifies the internal server error state for http status code.
InternalServerError HTTPStatusCode = "InternalServerError"
// LengthRequired specifies the length required state for http status code.
LengthRequired HTTPStatusCode = "LengthRequired"
// MethodNotAllowed specifies the method not allowed state for http status code.
MethodNotAllowed HTTPStatusCode = "MethodNotAllowed"
// MovedPermanently specifies the moved permanently state for http status code.
MovedPermanently HTTPStatusCode = "MovedPermanently"
// MultipleChoices specifies the multiple choices state for http status code.
MultipleChoices HTTPStatusCode = "MultipleChoices"
// NoContent specifies the no content state for http status code.
NoContent HTTPStatusCode = "NoContent"
// NonAuthoritativeInformation specifies the non authoritative information state for http status code.
NonAuthoritativeInformation HTTPStatusCode = "NonAuthoritativeInformation"
// NotAcceptable specifies the not acceptable state for http status code.
NotAcceptable HTTPStatusCode = "NotAcceptable"
// NotFound specifies the not found state for http status code.
NotFound HTTPStatusCode = "NotFound"
// NotImplemented specifies the not implemented state for http status code.
NotImplemented HTTPStatusCode = "NotImplemented"
// NotModified specifies the not modified state for http status code.
NotModified HTTPStatusCode = "NotModified"
// OK specifies the ok state for http status code.
OK HTTPStatusCode = "OK"
// PartialContent specifies the partial content state for http status code.
PartialContent HTTPStatusCode = "PartialContent"
// PaymentRequired specifies the payment required state for http status code.
PaymentRequired HTTPStatusCode = "PaymentRequired"
// PreconditionFailed specifies the precondition failed state for http status code.
PreconditionFailed HTTPStatusCode = "PreconditionFailed"
// ProxyAuthenticationRequired specifies the proxy authentication required state for http status code.
ProxyAuthenticationRequired HTTPStatusCode = "ProxyAuthenticationRequired"
// Redirect specifies the redirect state for http status code.
Redirect HTTPStatusCode = "Redirect"
// RequestedRangeNotSatisfiable specifies the requested range not satisfiable state for http status code.
RequestedRangeNotSatisfiable HTTPStatusCode = "RequestedRangeNotSatisfiable"
// RequestEntityTooLarge specifies the request entity too large state for http status code.
RequestEntityTooLarge HTTPStatusCode = "RequestEntityTooLarge"
// RequestTimeout specifies the request timeout state for http status code.
RequestTimeout HTTPStatusCode = "RequestTimeout"
// RequestURITooLong specifies the request uri too long state for http status code.
RequestURITooLong HTTPStatusCode = "RequestUriTooLong"
// ResetContent specifies the reset content state for http status code.
ResetContent HTTPStatusCode = "ResetContent"
// SeeOther specifies the see other state for http status code.
SeeOther HTTPStatusCode = "SeeOther"
// ServiceUnavailable specifies the service unavailable state for http status code.
ServiceUnavailable HTTPStatusCode = "ServiceUnavailable"
// SwitchingProtocols specifies the switching protocols state for http status code.
SwitchingProtocols HTTPStatusCode = "SwitchingProtocols"
// TemporaryRedirect specifies the temporary redirect state for http status code.
TemporaryRedirect HTTPStatusCode = "TemporaryRedirect"
// Unauthorized specifies the unauthorized state for http status code.
Unauthorized HTTPStatusCode = "Unauthorized"
// UnsupportedMediaType specifies the unsupported media type state for http status code.
UnsupportedMediaType HTTPStatusCode = "UnsupportedMediaType"
// Unused specifies the unused state for http status code.
Unused HTTPStatusCode = "Unused"
// UpgradeRequired specifies the upgrade required state for http status code.
UpgradeRequired HTTPStatusCode = "UpgradeRequired"
// UseProxy specifies the use proxy state for http status code.
UseProxy HTTPStatusCode = "UseProxy"
)
// LinuxOsState enumerates the values for linux os state.
type LinuxOsState string
const (
// DeprovisionApplied specifies the deprovision applied state for linux os state.
DeprovisionApplied LinuxOsState = "DeprovisionApplied"
// DeprovisionRequested specifies the deprovision requested state for linux os state.
DeprovisionRequested LinuxOsState = "DeprovisionRequested"
// NonDeprovisioned specifies the non deprovisioned state for linux os state.
NonDeprovisioned LinuxOsState = "NonDeprovisioned"
)
// NotificationChannelEventType enumerates the values for notification channel event type.
type NotificationChannelEventType string
const (
// AutoShutdown specifies the auto shutdown state for notification channel event type.
AutoShutdown NotificationChannelEventType = "AutoShutdown"
// Cost specifies the cost state for notification channel event type.
Cost NotificationChannelEventType = "Cost"
)
// NotificationStatus enumerates the values for notification status.
type NotificationStatus string
const (
// NotificationStatusDisabled specifies the notification status disabled state for notification status.
NotificationStatusDisabled NotificationStatus = "Disabled"
// NotificationStatusEnabled specifies the notification status enabled state for notification status.
NotificationStatusEnabled NotificationStatus = "Enabled"
)
// PolicyEvaluatorType enumerates the values for policy evaluator type.
type PolicyEvaluatorType string
const (
// AllowedValuesPolicy specifies the allowed values policy state for policy evaluator type.
AllowedValuesPolicy PolicyEvaluatorType = "AllowedValuesPolicy"
// MaxValuePolicy specifies the max value policy state for policy evaluator type.
MaxValuePolicy PolicyEvaluatorType = "MaxValuePolicy"
)
// PolicyFactName enumerates the values for policy fact name.
type PolicyFactName string
const (
// PolicyFactNameGalleryImage specifies the policy fact name gallery image state for policy fact name.
PolicyFactNameGalleryImage PolicyFactName = "GalleryImage"
// PolicyFactNameLabPremiumVMCount specifies the policy fact name lab premium vm count state for policy fact name.
PolicyFactNameLabPremiumVMCount PolicyFactName = "LabPremiumVmCount"
// PolicyFactNameLabTargetCost specifies the policy fact name lab target cost state for policy fact name.
PolicyFactNameLabTargetCost PolicyFactName = "LabTargetCost"
// PolicyFactNameLabVMCount specifies the policy fact name lab vm count state for policy fact name.
PolicyFactNameLabVMCount PolicyFactName = "LabVmCount"
// PolicyFactNameLabVMSize specifies the policy fact name lab vm size state for policy fact name.
PolicyFactNameLabVMSize PolicyFactName = "LabVmSize"
// PolicyFactNameUserOwnedLabPremiumVMCount specifies the policy fact name user owned lab premium vm count state for
// policy fact name.
PolicyFactNameUserOwnedLabPremiumVMCount PolicyFactName = "UserOwnedLabPremiumVmCount"
// PolicyFactNameUserOwnedLabVMCount specifies the policy fact name user owned lab vm count state for policy fact name.
PolicyFactNameUserOwnedLabVMCount PolicyFactName = "UserOwnedLabVmCount"
// PolicyFactNameUserOwnedLabVMCountInSubnet specifies the policy fact name user owned lab vm count in subnet state for
// policy fact name.
PolicyFactNameUserOwnedLabVMCountInSubnet PolicyFactName = "UserOwnedLabVmCountInSubnet"
)
// PolicyStatus enumerates the values for policy status.
type PolicyStatus string
const (
// PolicyStatusDisabled specifies the policy status disabled state for policy status.
PolicyStatusDisabled PolicyStatus = "Disabled"
// PolicyStatusEnabled specifies the policy status enabled state for policy status.
PolicyStatusEnabled PolicyStatus = "Enabled"
)
// PremiumDataDisk enumerates the values for premium data disk.
type PremiumDataDisk string
const (
// PremiumDataDiskDisabled specifies the premium data disk disabled state for premium data disk.
PremiumDataDiskDisabled PremiumDataDisk = "Disabled"
// PremiumDataDiskEnabled specifies the premium data disk enabled state for premium data disk.
PremiumDataDiskEnabled PremiumDataDisk = "Enabled"
)
// ReportingCycleType enumerates the values for reporting cycle type.
type ReportingCycleType string
const (
// CalendarMonth specifies the calendar month state for reporting cycle type.
CalendarMonth ReportingCycleType = "CalendarMonth"
// Custom specifies the custom state for reporting cycle type.
Custom ReportingCycleType = "Custom"
)
// SourceControlType enumerates the values for source control type.
type SourceControlType string
const (
// GitHub specifies the git hub state for source control type.
GitHub SourceControlType = "GitHub"
// VsoGit specifies the vso git state for source control type.
VsoGit SourceControlType = "VsoGit"
)
// StorageType enumerates the values for storage type.
type StorageType string
const (
// Premium specifies the premium state for storage type.
Premium StorageType = "Premium"
// Standard specifies the standard state for storage type.
Standard StorageType = "Standard"
)
// TargetCostStatus enumerates the values for target cost status.
type TargetCostStatus string
const (
// TargetCostStatusDisabled specifies the target cost status disabled state for target cost status.
TargetCostStatusDisabled TargetCostStatus = "Disabled"
// TargetCostStatusEnabled specifies the target cost status enabled state for target cost status.
TargetCostStatusEnabled TargetCostStatus = "Enabled"
)
// TransportProtocol enumerates the values for transport protocol.
type TransportProtocol string
const (
// TCP specifies the tcp state for transport protocol.
TCP TransportProtocol = "Tcp"
// UDP specifies the udp state for transport protocol.
UDP TransportProtocol = "Udp"
)
// UsagePermissionType enumerates the values for usage permission type.
type UsagePermissionType string
const (
// Allow specifies the allow state for usage permission type.
Allow UsagePermissionType = "Allow"
// Default specifies the default state for usage permission type.
Default UsagePermissionType = "Default"
// Deny specifies the deny state for usage permission type.
Deny UsagePermissionType = "Deny"
)
// VirtualMachineCreationSource enumerates the values for virtual machine creation source.
type VirtualMachineCreationSource string
const (
// FromCustomImage specifies the from custom image state for virtual machine creation source.
FromCustomImage VirtualMachineCreationSource = "FromCustomImage"
// FromGalleryImage specifies the from gallery image state for virtual machine creation source.
FromGalleryImage VirtualMachineCreationSource = "FromGalleryImage"
)
// WindowsOsState enumerates the values for windows os state.
type WindowsOsState string
const (
// NonSysprepped specifies the non sysprepped state for windows os state.
NonSysprepped WindowsOsState = "NonSysprepped"
// SysprepApplied specifies the sysprep applied state for windows os state.
SysprepApplied WindowsOsState = "SysprepApplied"
// SysprepRequested specifies the sysprep requested state for windows os state.
SysprepRequested WindowsOsState = "SysprepRequested"
)
// ApplicableSchedule is schedules applicable to a virtual machine. The schedules may have been defined on a VM or on
// lab level.
type ApplicableSchedule struct {
autorest.Response `json:"-"`
ID *string `json:"id,omitempty"`
Name *string `json:"name,omitempty"`
Type *string `json:"type,omitempty"`
Location *string `json:"location,omitempty"`
Tags *map[string]*string `json:"tags,omitempty"`
*ApplicableScheduleProperties `json:"properties,omitempty"`
}
// ApplicableScheduleFragment is schedules applicable to a virtual machine. The schedules may have been defined on a VM
// or on lab level.
type ApplicableScheduleFragment struct {
ID *string `json:"id,omitempty"`
Name *string `json:"name,omitempty"`
Type *string `json:"type,omitempty"`
Location *string `json:"location,omitempty"`
Tags *map[string]*string `json:"tags,omitempty"`
*ApplicableSchedulePropertiesFragment `json:"properties,omitempty"`
}
// ApplicableScheduleProperties is properties of a schedules applicable to a virtual machine.
type ApplicableScheduleProperties struct {
LabVmsShutdown *Schedule `json:"labVmsShutdown,omitempty"`
LabVmsStartup *Schedule `json:"labVmsStartup,omitempty"`
}
// ApplicableSchedulePropertiesFragment is properties of a schedules applicable to a virtual machine.
type ApplicableSchedulePropertiesFragment struct {
LabVmsShutdown *ScheduleFragment `json:"labVmsShutdown,omitempty"`
LabVmsStartup *ScheduleFragment `json:"labVmsStartup,omitempty"`
}
// ApplyArtifactsRequest is request body for applying artifacts to a virtual machine.
type ApplyArtifactsRequest struct {
Artifacts *[]ArtifactInstallProperties `json:"artifacts,omitempty"`
}
// ArmTemplate is an Azure Resource Manager template.
type ArmTemplate struct {
autorest.Response `json:"-"`
ID *string `json:"id,omitempty"`
Name *string `json:"name,omitempty"`
Type *string `json:"type,omitempty"`
Location *string `json:"location,omitempty"`
Tags *map[string]*string `json:"tags,omitempty"`
*ArmTemplateProperties `json:"properties,omitempty"`
}
// ArmTemplateInfo is information about a generated ARM template.
type ArmTemplateInfo struct {
autorest.Response `json:"-"`
Template *map[string]interface{} `json:"template,omitempty"`
Parameters *map[string]interface{} `json:"parameters,omitempty"`
}
// ArmTemplateParameterProperties is properties of an Azure Resource Manager template parameter.
type ArmTemplateParameterProperties struct {
Name *string `json:"name,omitempty"`
Value *string `json:"value,omitempty"`
}
// ArmTemplateProperties is properties of an Azure Resource Manager template.
type ArmTemplateProperties struct {
DisplayName *string `json:"displayName,omitempty"`
Description *string `json:"description,omitempty"`
Publisher *string `json:"publisher,omitempty"`
Icon *string `json:"icon,omitempty"`
Contents *map[string]interface{} `json:"contents,omitempty"`
CreatedDate *date.Time `json:"createdDate,omitempty"`
ParametersValueFilesInfo *[]ParametersValueFileInfo `json:"parametersValueFilesInfo,omitempty"`
}
// Artifact is an artifact.
type Artifact struct {
autorest.Response `json:"-"`
ID *string `json:"id,omitempty"`
Name *string `json:"name,omitempty"`
Type *string `json:"type,omitempty"`
Location *string `json:"location,omitempty"`
Tags *map[string]*string `json:"tags,omitempty"`
*ArtifactProperties `json:"properties,omitempty"`
}
// ArtifactDeploymentStatusProperties is properties of an artifact deployment.
type ArtifactDeploymentStatusProperties struct {
DeploymentStatus *string `json:"deploymentStatus,omitempty"`
ArtifactsApplied *int32 `json:"artifactsApplied,omitempty"`
TotalArtifacts *int32 `json:"totalArtifacts,omitempty"`
}
// ArtifactDeploymentStatusPropertiesFragment is properties of an artifact deployment.
type ArtifactDeploymentStatusPropertiesFragment struct {
DeploymentStatus *string `json:"deploymentStatus,omitempty"`
ArtifactsApplied *int32 `json:"artifactsApplied,omitempty"`
TotalArtifacts *int32 `json:"totalArtifacts,omitempty"`
}
// ArtifactInstallProperties is properties of an artifact.
type ArtifactInstallProperties struct {
ArtifactID *string `json:"artifactId,omitempty"`
Parameters *[]ArtifactParameterProperties `json:"parameters,omitempty"`
Status *string `json:"status,omitempty"`
DeploymentStatusMessage *string `json:"deploymentStatusMessage,omitempty"`
VMExtensionStatusMessage *string `json:"vmExtensionStatusMessage,omitempty"`
InstallTime *date.Time `json:"installTime,omitempty"`
}
// ArtifactInstallPropertiesFragment is properties of an artifact.
type ArtifactInstallPropertiesFragment struct {
ArtifactID *string `json:"artifactId,omitempty"`
Parameters *[]ArtifactParameterPropertiesFragment `json:"parameters,omitempty"`
Status *string `json:"status,omitempty"`
DeploymentStatusMessage *string `json:"deploymentStatusMessage,omitempty"`
VMExtensionStatusMessage *string `json:"vmExtensionStatusMessage,omitempty"`
InstallTime *date.Time `json:"installTime,omitempty"`
}
// ArtifactParameterProperties is properties of an artifact parameter.
type ArtifactParameterProperties struct {
Name *string `json:"name,omitempty"`
Value *string `json:"value,omitempty"`
}
// ArtifactParameterPropertiesFragment is properties of an artifact parameter.
type ArtifactParameterPropertiesFragment struct {
Name *string `json:"name,omitempty"`
Value *string `json:"value,omitempty"`
}
// ArtifactProperties is properties of an artifact.
type ArtifactProperties struct {
Title *string `json:"title,omitempty"`
Description *string `json:"description,omitempty"`
Publisher *string `json:"publisher,omitempty"`
FilePath *string `json:"filePath,omitempty"`
Icon *string `json:"icon,omitempty"`
TargetOsType *string `json:"targetOsType,omitempty"`
Parameters *map[string]interface{} `json:"parameters,omitempty"`
CreatedDate *date.Time `json:"createdDate,omitempty"`
}
// ArtifactSource is properties of an artifact source.
type ArtifactSource struct {
autorest.Response `json:"-"`
ID *string `json:"id,omitempty"`
Name *string `json:"name,omitempty"`
Type *string `json:"type,omitempty"`
Location *string `json:"location,omitempty"`
Tags *map[string]*string `json:"tags,omitempty"`
*ArtifactSourceProperties `json:"properties,omitempty"`
}
// ArtifactSourceFragment is properties of an artifact source.
type ArtifactSourceFragment struct {
ID *string `json:"id,omitempty"`
Name *string `json:"name,omitempty"`
Type *string `json:"type,omitempty"`
Location *string `json:"location,omitempty"`
Tags *map[string]*string `json:"tags,omitempty"`
*ArtifactSourcePropertiesFragment `json:"properties,omitempty"`
}
// ArtifactSourceProperties is properties of an artifact source.
type ArtifactSourceProperties struct {
DisplayName *string `json:"displayName,omitempty"`
URI *string `json:"uri,omitempty"`
SourceType SourceControlType `json:"sourceType,omitempty"`
FolderPath *string `json:"folderPath,omitempty"`
ArmTemplateFolderPath *string `json:"armTemplateFolderPath,omitempty"`
BranchRef *string `json:"branchRef,omitempty"`
SecurityToken *string `json:"securityToken,omitempty"`
Status EnableStatus `json:"status,omitempty"`
CreatedDate *date.Time `json:"createdDate,omitempty"`
ProvisioningState *string `json:"provisioningState,omitempty"`
UniqueIdentifier *string `json:"uniqueIdentifier,omitempty"`
}
// ArtifactSourcePropertiesFragment is properties of an artifact source.
type ArtifactSourcePropertiesFragment struct {
DisplayName *string `json:"displayName,omitempty"`
URI *string `json:"uri,omitempty"`
SourceType SourceControlType `json:"sourceType,omitempty"`
FolderPath *string `json:"folderPath,omitempty"`
ArmTemplateFolderPath *string `json:"armTemplateFolderPath,omitempty"`
BranchRef *string `json:"branchRef,omitempty"`
SecurityToken *string `json:"securityToken,omitempty"`
Status EnableStatus `json:"status,omitempty"`
ProvisioningState *string `json:"provisioningState,omitempty"`
UniqueIdentifier *string `json:"uniqueIdentifier,omitempty"`
}
// AttachDiskProperties is properties of the disk to attach.
type AttachDiskProperties struct {
LeasedByLabVMID *string `json:"leasedByLabVmId,omitempty"`
}
// AttachNewDataDiskOptions is properties to attach new disk to the Virtual Machine.
type AttachNewDataDiskOptions struct {
DiskSizeGiB *int32 `json:"diskSizeGiB,omitempty"`
DiskName *string `json:"diskName,omitempty"`
DiskType StorageType `json:"diskType,omitempty"`
}
// BulkCreationParameters is parameters for creating multiple virtual machines as a single action.
type BulkCreationParameters struct {
InstanceCount *int32 `json:"instanceCount,omitempty"`
}
// CloudError is error from a REST request.
type CloudError struct {
Error *CloudErrorBody `json:"error,omitempty"`
}
// CloudErrorBody is body of an error from a REST request.
type CloudErrorBody struct {
Code *string `json:"code,omitempty"`
Message *string `json:"message,omitempty"`
Target *string `json:"target,omitempty"`
Details *[]CloudErrorBody `json:"details,omitempty"`
}
// ComputeDataDisk is a data disks attached to a virtual machine.
type ComputeDataDisk struct {
Name *string `json:"name,omitempty"`
DiskURI *string `json:"diskUri,omitempty"`
ManagedDiskID *string `json:"managedDiskId,omitempty"`
DiskSizeGiB *int32 `json:"diskSizeGiB,omitempty"`
}
// ComputeDataDiskFragment is a data disks attached to a virtual machine.
type ComputeDataDiskFragment struct {
Name *string `json:"name,omitempty"`
DiskURI *string `json:"diskUri,omitempty"`
ManagedDiskID *string `json:"managedDiskId,omitempty"`
DiskSizeGiB *int32 `json:"diskSizeGiB,omitempty"`
}
// ComputeVMInstanceViewStatus is status information about a virtual machine.
type ComputeVMInstanceViewStatus struct {
Code *string `json:"code,omitempty"`
DisplayStatus *string `json:"displayStatus,omitempty"`
Message *string `json:"message,omitempty"`
}
// ComputeVMInstanceViewStatusFragment is status information about a virtual machine.
type ComputeVMInstanceViewStatusFragment struct {
Code *string `json:"code,omitempty"`
DisplayStatus *string `json:"displayStatus,omitempty"`
Message *string `json:"message,omitempty"`
}
// ComputeVMProperties is properties of a virtual machine returned by the Microsoft.Compute API.
type ComputeVMProperties struct {
Statuses *[]ComputeVMInstanceViewStatus `json:"statuses,omitempty"`
OsType *string `json:"osType,omitempty"`
VMSize *string `json:"vmSize,omitempty"`
NetworkInterfaceID *string `json:"networkInterfaceId,omitempty"`
OsDiskID *string `json:"osDiskId,omitempty"`
DataDiskIds *[]string `json:"dataDiskIds,omitempty"`
DataDisks *[]ComputeDataDisk `json:"dataDisks,omitempty"`
}
// ComputeVMPropertiesFragment is properties of a virtual machine returned by the Microsoft.Compute API.
type ComputeVMPropertiesFragment struct {
Statuses *[]ComputeVMInstanceViewStatusFragment `json:"statuses,omitempty"`
OsType *string `json:"osType,omitempty"`
VMSize *string `json:"vmSize,omitempty"`
NetworkInterfaceID *string `json:"networkInterfaceId,omitempty"`
OsDiskID *string `json:"osDiskId,omitempty"`
DataDiskIds *[]string `json:"dataDiskIds,omitempty"`
DataDisks *[]ComputeDataDiskFragment `json:"dataDisks,omitempty"`
}
// CostThresholdProperties is properties of a cost threshold item.
type CostThresholdProperties struct {
ThresholdID *string `json:"thresholdId,omitempty"`
PercentageThreshold *PercentageCostThresholdProperties `json:"percentageThreshold,omitempty"`
DisplayOnChart CostThresholdStatus `json:"displayOnChart,omitempty"`
SendNotificationWhenExceeded CostThresholdStatus `json:"sendNotificationWhenExceeded,omitempty"`
NotificationSent *string `json:"NotificationSent,omitempty"`
}
// CustomImage is a custom image.
type CustomImage struct {
autorest.Response `json:"-"`
ID *string `json:"id,omitempty"`
Name *string `json:"name,omitempty"`
Type *string `json:"type,omitempty"`
Location *string `json:"location,omitempty"`
Tags *map[string]*string `json:"tags,omitempty"`
*CustomImageProperties `json:"properties,omitempty"`
}
// CustomImageProperties is properties of a custom image.
type CustomImageProperties struct {
VM *CustomImagePropertiesFromVM `json:"vm,omitempty"`
Vhd *CustomImagePropertiesCustom `json:"vhd,omitempty"`
Description *string `json:"description,omitempty"`
Author *string `json:"author,omitempty"`
CreationDate *date.Time `json:"creationDate,omitempty"`
ManagedImageID *string `json:"managedImageId,omitempty"`
ProvisioningState *string `json:"provisioningState,omitempty"`
UniqueIdentifier *string `json:"uniqueIdentifier,omitempty"`
}
// CustomImagePropertiesCustom is properties for creating a custom image from a VHD.
type CustomImagePropertiesCustom struct {
ImageName *string `json:"imageName,omitempty"`
SysPrep *bool `json:"sysPrep,omitempty"`
OsType CustomImageOsType `json:"osType,omitempty"`
}
// CustomImagePropertiesFromVM is properties for creating a custom image from a virtual machine.
type CustomImagePropertiesFromVM struct {
SourceVMID *string `json:"sourceVmId,omitempty"`
WindowsOsInfo *WindowsOsInfo `json:"windowsOsInfo,omitempty"`
LinuxOsInfo *LinuxOsInfo `json:"linuxOsInfo,omitempty"`
}
// DataDiskProperties is request body for adding a new or existing data disk to a virtual machine.
type DataDiskProperties struct {
AttachNewDataDiskOptions *AttachNewDataDiskOptions `json:"attachNewDataDiskOptions,omitempty"`
ExistingLabDiskID *string `json:"existingLabDiskId,omitempty"`
HostCaching HostCachingOptions `json:"hostCaching,omitempty"`
}
// DayDetails is properties of a daily schedule.
type DayDetails struct {
Time *string `json:"time,omitempty"`
}
// DayDetailsFragment is properties of a daily schedule.
type DayDetailsFragment struct {
Time *string `json:"time,omitempty"`
}
// DetachDataDiskProperties is request body for detaching data disk from a virtual machine.
type DetachDataDiskProperties struct {
ExistingLabDiskID *string `json:"existingLabDiskId,omitempty"`
}
// DetachDiskProperties is properties of the disk to detach.
type DetachDiskProperties struct {
LeasedByLabVMID *string `json:"leasedByLabVmId,omitempty"`
}
// Disk is a Disk.
type Disk struct {
autorest.Response `json:"-"`
ID *string `json:"id,omitempty"`
Name *string `json:"name,omitempty"`
Type *string `json:"type,omitempty"`
Location *string `json:"location,omitempty"`
Tags *map[string]*string `json:"tags,omitempty"`
*DiskProperties `json:"properties,omitempty"`
}
// DiskProperties is properties of a disk.
type DiskProperties struct {
DiskType StorageType `json:"diskType,omitempty"`
DiskSizeGiB *int32 `json:"diskSizeGiB,omitempty"`
LeasedByLabVMID *string `json:"leasedByLabVmId,omitempty"`
DiskBlobName *string `json:"diskBlobName,omitempty"`
DiskURI *string `json:"diskUri,omitempty"`
CreatedDate *date.Time `json:"createdDate,omitempty"`
HostCaching *string `json:"hostCaching,omitempty"`
ManagedDiskID *string `json:"managedDiskId,omitempty"`
ProvisioningState *string `json:"provisioningState,omitempty"`
UniqueIdentifier *string `json:"uniqueIdentifier,omitempty"`
}
// Environment is an environment, which is essentially an ARM template deployment.
type Environment struct {
autorest.Response `json:"-"`
ID *string `json:"id,omitempty"`
Name *string `json:"name,omitempty"`
Type *string `json:"type,omitempty"`
Location *string `json:"location,omitempty"`
Tags *map[string]*string `json:"tags,omitempty"`
*EnvironmentProperties `json:"properties,omitempty"`
}
// EnvironmentDeploymentProperties is properties of an environment deployment.
type EnvironmentDeploymentProperties struct {
ArmTemplateID *string `json:"armTemplateId,omitempty"`
Parameters *[]ArmTemplateParameterProperties `json:"parameters,omitempty"`
}
// EnvironmentProperties is properties of an environment.
type EnvironmentProperties struct {
DeploymentProperties *EnvironmentDeploymentProperties `json:"deploymentProperties,omitempty"`
ArmTemplateDisplayName *string `json:"armTemplateDisplayName,omitempty"`
ResourceGroupID *string `json:"resourceGroupId,omitempty"`
CreatedByUser *string `json:"createdByUser,omitempty"`
ProvisioningState *string `json:"provisioningState,omitempty"`
UniqueIdentifier *string `json:"uniqueIdentifier,omitempty"`
}
// EvaluatePoliciesProperties is properties for evaluating a policy set.
type EvaluatePoliciesProperties struct {
FactName *string `json:"factName,omitempty"`
FactData *string `json:"factData,omitempty"`
ValueOffset *string `json:"valueOffset,omitempty"`
}
// EvaluatePoliciesRequest is request body for evaluating a policy set.
type EvaluatePoliciesRequest struct {
Policies *[]EvaluatePoliciesProperties `json:"policies,omitempty"`
}
// EvaluatePoliciesResponse is response body for evaluating a policy set.
type EvaluatePoliciesResponse struct {
autorest.Response `json:"-"`
Results *[]PolicySetResult `json:"results,omitempty"`
}
// Event is an event to be notified for.
type Event struct {
EventName NotificationChannelEventType `json:"eventName,omitempty"`
}
// EventFragment is an event to be notified for.
type EventFragment struct {
EventName NotificationChannelEventType `json:"eventName,omitempty"`
}
// ExportResourceUsageParameters is the parameters of the export operation.
type ExportResourceUsageParameters struct {
BlobStorageAbsoluteSasURI *string `json:"blobStorageAbsoluteSasUri,omitempty"`
UsageStartDate *date.Time `json:"usageStartDate,omitempty"`
}
// ExternalSubnet is subnet information as returned by the Microsoft.Network API.
type ExternalSubnet struct {
ID *string `json:"id,omitempty"`
Name *string `json:"name,omitempty"`
}
// ExternalSubnetFragment is subnet information as returned by the Microsoft.Network API.
type ExternalSubnetFragment struct {
ID *string `json:"id,omitempty"`
Name *string `json:"name,omitempty"`
}
// Formula is a formula for creating a VM, specifying an image base and other parameters
type Formula struct {
autorest.Response `json:"-"`
ID *string `json:"id,omitempty"`
Name *string `json:"name,omitempty"`
Type *string `json:"type,omitempty"`
Location *string `json:"location,omitempty"`
Tags *map[string]*string `json:"tags,omitempty"`
*FormulaProperties `json:"properties,omitempty"`
}
// FormulaProperties is properties of a formula.
type FormulaProperties struct {
Description *string `json:"description,omitempty"`
Author *string `json:"author,omitempty"`
OsType *string `json:"osType,omitempty"`
CreationDate *date.Time `json:"creationDate,omitempty"`
FormulaContent *LabVirtualMachineCreationParameter `json:"formulaContent,omitempty"`
VM *FormulaPropertiesFromVM `json:"vm,omitempty"`
ProvisioningState *string `json:"provisioningState,omitempty"`
UniqueIdentifier *string `json:"uniqueIdentifier,omitempty"`
}
// FormulaPropertiesFromVM is information about a VM from which a formula is to be created.
type FormulaPropertiesFromVM struct {
LabVMID *string `json:"labVmId,omitempty"`
}
// GalleryImage is a gallery image.
type GalleryImage struct {
ID *string `json:"id,omitempty"`
Name *string `json:"name,omitempty"`
Type *string `json:"type,omitempty"`
Location *string `json:"location,omitempty"`
Tags *map[string]*string `json:"tags,omitempty"`
*GalleryImageProperties `json:"properties,omitempty"`
}
// GalleryImageProperties is properties of a gallery image.
type GalleryImageProperties struct {
Author *string `json:"author,omitempty"`
CreatedDate *date.Time `json:"createdDate,omitempty"`
Description *string `json:"description,omitempty"`
ImageReference *GalleryImageReference `json:"imageReference,omitempty"`
Icon *string `json:"icon,omitempty"`
Enabled *bool `json:"enabled,omitempty"`
}
// GalleryImageReference is the reference information for an Azure Marketplace image.
type GalleryImageReference struct {
Offer *string `json:"offer,omitempty"`
Publisher *string `json:"publisher,omitempty"`
Sku *string `json:"sku,omitempty"`
OsType *string `json:"osType,omitempty"`
Version *string `json:"version,omitempty"`
}
// GalleryImageReferenceFragment is the reference information for an Azure Marketplace image.
type GalleryImageReferenceFragment struct {
Offer *string `json:"offer,omitempty"`
Publisher *string `json:"publisher,omitempty"`
Sku *string `json:"sku,omitempty"`
OsType *string `json:"osType,omitempty"`
Version *string `json:"version,omitempty"`
}
// GenerateArmTemplateRequest is parameters for generating an ARM template for deploying artifacts.
type GenerateArmTemplateRequest struct {
VirtualMachineName *string `json:"virtualMachineName,omitempty"`
Parameters *[]ParameterInfo `json:"parameters,omitempty"`
Location *string `json:"location,omitempty"`
FileUploadOptions FileUploadOptions `json:"fileUploadOptions,omitempty"`
}
// GenerateUploadURIParameter is properties for generating an upload URI.
type GenerateUploadURIParameter struct {
BlobName *string `json:"blobName,omitempty"`
}
// GenerateUploadURIResponse is reponse body for generating an upload URI.
type GenerateUploadURIResponse struct {
autorest.Response `json:"-"`
UploadURI *string `json:"uploadUri,omitempty"`
}
// HourDetails is properties of an hourly schedule.
type HourDetails struct {
Minute *int32 `json:"minute,omitempty"`
}
// HourDetailsFragment is properties of an hourly schedule.
type HourDetailsFragment struct {
Minute *int32 `json:"minute,omitempty"`
}
// IdentityProperties is identityProperties
type IdentityProperties struct {
Type *string `json:"type,omitempty"`
PrincipalID *string `json:"principalId,omitempty"`
TenantID *string `json:"tenantId,omitempty"`
ClientSecretURL *string `json:"clientSecretUrl,omitempty"`
}
// InboundNatRule is a rule for NAT - exposing a VM's port (backendPort) on the public IP address using a load
// balancer.
type InboundNatRule struct {
TransportProtocol TransportProtocol `json:"transportProtocol,omitempty"`
FrontendPort *int32 `json:"frontendPort,omitempty"`
BackendPort *int32 `json:"backendPort,omitempty"`
}
// InboundNatRuleFragment is a rule for NAT - exposing a VM's port (backendPort) on the public IP address using a load
// balancer.
type InboundNatRuleFragment struct {
TransportProtocol TransportProtocol `json:"transportProtocol,omitempty"`
FrontendPort *int32 `json:"frontendPort,omitempty"`
BackendPort *int32 `json:"backendPort,omitempty"`
}
// Lab is a lab.
type Lab struct {
autorest.Response `json:"-"`
ID *string `json:"id,omitempty"`
Name *string `json:"name,omitempty"`
Type *string `json:"type,omitempty"`
Location *string `json:"location,omitempty"`
Tags *map[string]*string `json:"tags,omitempty"`
*LabProperties `json:"properties,omitempty"`
}
// LabCost is a cost item.
type LabCost struct {
autorest.Response `json:"-"`
ID *string `json:"id,omitempty"`
Name *string `json:"name,omitempty"`
Type *string `json:"type,omitempty"`
Location *string `json:"location,omitempty"`
Tags *map[string]*string `json:"tags,omitempty"`
*LabCostProperties `json:"properties,omitempty"`
}
// LabCostDetailsProperties is the properties of a lab cost item.
type LabCostDetailsProperties struct {
Date *date.Time `json:"date,omitempty"`
Cost *float64 `json:"cost,omitempty"`
CostType CostType `json:"costType,omitempty"`
}
// LabCostProperties is properties of a cost item.
type LabCostProperties struct {
TargetCost *TargetCostProperties `json:"targetCost,omitempty"`
LabCostSummary *LabCostSummaryProperties `json:"labCostSummary,omitempty"`
LabCostDetails *[]LabCostDetailsProperties `json:"labCostDetails,omitempty"`
ResourceCosts *[]LabResourceCostProperties `json:"resourceCosts,omitempty"`
CurrencyCode *string `json:"currencyCode,omitempty"`
StartDateTime *date.Time `json:"startDateTime,omitempty"`
EndDateTime *date.Time `json:"endDateTime,omitempty"`
CreatedDate *date.Time `json:"createdDate,omitempty"`
ProvisioningState *string `json:"provisioningState,omitempty"`
UniqueIdentifier *string `json:"uniqueIdentifier,omitempty"`
}
// LabCostSummaryProperties is the properties of the cost summary.
type LabCostSummaryProperties struct {
EstimatedLabCost *float64 `json:"estimatedLabCost,omitempty"`
}
// LabFragment is a lab.
type LabFragment struct {
ID *string `json:"id,omitempty"`
Name *string `json:"name,omitempty"`
Type *string `json:"type,omitempty"`
Location *string `json:"location,omitempty"`
Tags *map[string]*string `json:"tags,omitempty"`
*LabPropertiesFragment `json:"properties,omitempty"`
}
// LabProperties is properties of a lab.
type LabProperties struct {
DefaultStorageAccount *string `json:"defaultStorageAccount,omitempty"`
DefaultPremiumStorageAccount *string `json:"defaultPremiumStorageAccount,omitempty"`
ArtifactsStorageAccount *string `json:"artifactsStorageAccount,omitempty"`
PremiumDataDiskStorageAccount *string `json:"premiumDataDiskStorageAccount,omitempty"`
VaultName *string `json:"vaultName,omitempty"`
LabStorageType StorageType `json:"labStorageType,omitempty"`
CreatedDate *date.Time `json:"createdDate,omitempty"`
PremiumDataDisks PremiumDataDisk `json:"premiumDataDisks,omitempty"`
ProvisioningState *string `json:"provisioningState,omitempty"`
UniqueIdentifier *string `json:"uniqueIdentifier,omitempty"`
}
// LabPropertiesFragment is properties of a lab.
type LabPropertiesFragment struct {
LabStorageType StorageType `json:"labStorageType,omitempty"`
PremiumDataDisks PremiumDataDisk `json:"premiumDataDisks,omitempty"`
ProvisioningState *string `json:"provisioningState,omitempty"`
UniqueIdentifier *string `json:"uniqueIdentifier,omitempty"`
}
// LabResourceCostProperties is the properties of a resource cost item.