forked from Azure/azure-sdk-for-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
models.go
859 lines (757 loc) · 35.1 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
package devtestlabs
// 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 0.17.0.0
// 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"
)
// 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 (
// Disabled specifies the disabled state for enable status.
Disabled EnableStatus = "Disabled"
// Enabled specifies the enabled state for enable status.
Enabled EnableStatus = "Enabled"
)
// LabCostType enumerates the values for lab cost type.
type LabCostType string
const (
// Projected specifies the projected state for lab cost type.
Projected LabCostType = "Projected"
// Reported specifies the reported state for lab cost type.
Reported LabCostType = "Reported"
// Unavailable specifies the unavailable state for lab cost type.
Unavailable LabCostType = "Unavailable"
)
// LabStorageType enumerates the values for lab storage type.
type LabStorageType string
const (
// Premium specifies the premium state for lab storage type.
Premium LabStorageType = "Premium"
// Standard specifies the standard state for lab storage type.
Standard LabStorageType = "Standard"
)
// 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"
)
// 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"
// 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"
// 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"
)
// 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"
)
// SubscriptionNotificationState enumerates the values for subscription
// notification state.
type SubscriptionNotificationState string
const (
// Deleted specifies the deleted state for subscription notification state.
Deleted SubscriptionNotificationState = "Deleted"
// NotDefined specifies the not defined state for subscription
// notification state.
NotDefined SubscriptionNotificationState = "NotDefined"
// Registered specifies the registered state for subscription notification
// state.
Registered SubscriptionNotificationState = "Registered"
// Suspended specifies the suspended state for subscription notification
// state.
Suspended SubscriptionNotificationState = "Suspended"
// Unregistered specifies the unregistered state for subscription
// notification state.
Unregistered SubscriptionNotificationState = "Unregistered"
// Warned specifies the warned state for subscription notification state.
Warned SubscriptionNotificationState = "Warned"
)
// 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"
)
// 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"
)
// ApplyArtifactsRequest is request body for applying artifacts to a virtual
// machine.
type ApplyArtifactsRequest struct {
Artifacts *[]ArtifactInstallProperties `json:"artifacts,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"`
}
// Artifact is an artifact.
type Artifact struct {
autorest.Response `json:"-"`
Properties *ArtifactProperties `json:"properties,omitempty"`
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"`
}
// 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"`
}
// ArtifactInstallProperties is properties of an artifact.
type ArtifactInstallProperties struct {
ArtifactID *string `json:"artifactId,omitempty"`
Parameters *[]ArtifactParameterProperties `json:"parameters,omitempty"`
}
// ArtifactParameterProperties is properties of an artifact parameter.
type ArtifactParameterProperties 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"`
FilePath *string `json:"filePath,omitempty"`
Icon *string `json:"icon,omitempty"`
TargetOsType *string `json:"targetOsType,omitempty"`
Parameters *map[string]interface{} `json:"parameters,omitempty"`
}
// ArtifactSource is properties of an artifact source.
type ArtifactSource struct {
autorest.Response `json:"-"`
Properties *ArtifactSourceProperties `json:"properties,omitempty"`
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 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"`
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"`
}
// CloudError is
type CloudError struct {
Error *CloudErrorBody `json:"error,omitempty"`
}
// CloudErrorBody is
type CloudErrorBody struct {
Code *string `json:"code,omitempty"`
Message *string `json:"message,omitempty"`
Target *string `json:"target,omitempty"`
Details *[]CloudErrorBody `json:"details,omitempty"`
}
// Cost is a cost item.
type Cost struct {
autorest.Response `json:"-"`
Properties *CostProperties `json:"properties,omitempty"`
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"`
}
// CostPerDayProperties is the properties of a lab cost item.
type CostPerDayProperties struct {
Date *date.Time `json:"date,omitempty"`
Cost *float64 `json:"cost,omitempty"`
CostType LabCostType `json:"costType,omitempty"`
}
// CostProperties is properties of a cost item.
type CostProperties struct {
CurrencyCode *string `json:"currencyCode,omitempty"`
Costs *[]CostPerDayProperties `json:"costs,omitempty"`
ResourceCosts *[]ResourceCostProperties `json:"resourceCosts,omitempty"`
}
// CustomImage is a custom image.
type CustomImage struct {
autorest.Response `json:"-"`
Properties *CustomImageProperties `json:"properties,omitempty"`
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 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"`
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"`
}
// DayDetails is properties of a daily schedule.
type DayDetails struct {
Time *string `json:"time,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"`
}
// Formula is a formula.
type Formula struct {
autorest.Response `json:"-"`
Properties *FormulaProperties `json:"properties,omitempty"`
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 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 *LabVirtualMachine `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 {
Properties *GalleryImageProperties `json:"properties,omitempty"`
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 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"`
}
// 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"`
}
// 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"`
}
// Lab is a lab.
type Lab struct {
autorest.Response `json:"-"`
Properties *LabProperties `json:"properties,omitempty"`
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 is properties of a lab.
type LabProperties struct {
DefaultStorageAccount *string `json:"defaultStorageAccount,omitempty"`
ArtifactsStorageAccount *string `json:"artifactsStorageAccount,omitempty"`
VaultName *string `json:"vaultName,omitempty"`
LabStorageType LabStorageType `json:"labStorageType,omitempty"`
CreatedDate *date.Time `json:"createdDate,omitempty"`
ProvisioningState *string `json:"provisioningState,omitempty"`
UniqueIdentifier *string `json:"uniqueIdentifier,omitempty"`
}
// LabVhd is properties of a VHD in the lab.
type LabVhd struct {
ID *string `json:"id,omitempty"`
}
// LabVirtualMachine is a virtual machine.
type LabVirtualMachine struct {
autorest.Response `json:"-"`
Properties *LabVirtualMachineProperties `json:"properties,omitempty"`
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"`
}
// LabVirtualMachineProperties is properties of a virtual machine.
type LabVirtualMachineProperties struct {
Notes *string `json:"notes,omitempty"`
OwnerObjectID *string `json:"ownerObjectId,omitempty"`
CreatedByUserID *string `json:"createdByUserId,omitempty"`
CreatedByUser *string `json:"createdByUser,omitempty"`
ComputeID *string `json:"computeId,omitempty"`
CustomImageID *string `json:"customImageId,omitempty"`
OsType *string `json:"osType,omitempty"`
Size *string `json:"size,omitempty"`
UserName *string `json:"userName,omitempty"`
Password *string `json:"password,omitempty"`
SSHKey *string `json:"sshKey,omitempty"`
IsAuthenticationWithSSHKey *bool `json:"isAuthenticationWithSshKey,omitempty"`
Fqdn *string `json:"fqdn,omitempty"`
LabSubnetName *string `json:"labSubnetName,omitempty"`
LabVirtualNetworkID *string `json:"labVirtualNetworkId,omitempty"`
DisallowPublicIPAddress *bool `json:"disallowPublicIpAddress,omitempty"`
Artifacts *[]ArtifactInstallProperties `json:"artifacts,omitempty"`
ArtifactDeploymentStatus *ArtifactDeploymentStatusProperties `json:"artifactDeploymentStatus,omitempty"`
GalleryImageReference *GalleryImageReference `json:"galleryImageReference,omitempty"`
ProvisioningState *string `json:"provisioningState,omitempty"`
UniqueIdentifier *string `json:"uniqueIdentifier,omitempty"`
}
// LinuxOsInfo is information about a Linux OS.
type LinuxOsInfo struct {
LinuxOsState LinuxOsState `json:"linuxOsState,omitempty"`
}
// ParameterInfo is
type ParameterInfo struct {
Name *string `json:"name,omitempty"`
Value *string `json:"value,omitempty"`
}
// Policy is a Policy.
type Policy struct {
autorest.Response `json:"-"`
Properties *PolicyProperties `json:"properties,omitempty"`
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"`
}
// PolicyProperties is properties of a Policy.
type PolicyProperties struct {
Description *string `json:"description,omitempty"`
Status PolicyStatus `json:"status,omitempty"`
FactName PolicyFactName `json:"factName,omitempty"`
FactData *string `json:"factData,omitempty"`
Threshold *string `json:"threshold,omitempty"`
EvaluatorType PolicyEvaluatorType `json:"evaluatorType,omitempty"`
ProvisioningState *string `json:"provisioningState,omitempty"`
UniqueIdentifier *string `json:"uniqueIdentifier,omitempty"`
}
// PolicySetResult is result of a policy set evaluation.
type PolicySetResult struct {
HasError *bool `json:"hasError,omitempty"`
PolicyViolations *[]PolicyViolation `json:"policyViolations,omitempty"`
}
// PolicyViolation is policy violation.
type PolicyViolation struct {
Code *string `json:"code,omitempty"`
Message *string `json:"message,omitempty"`
}
// ResourceCostProperties is the properties of a resource cost item.
type ResourceCostProperties struct {
Resourcename *string `json:"resourcename,omitempty"`
ResourceGroupName *string `json:"resourceGroupName,omitempty"`
ResourceCost *float64 `json:"resourceCost,omitempty"`
Owner *string `json:"owner,omitempty"`
Category *string `json:"category,omitempty"`
Exists *bool `json:"exists,omitempty"`
ResourceType *string `json:"resourceType,omitempty"`
}
// ResponseWithContinuationArtifact is the response of a list operation.
type ResponseWithContinuationArtifact struct {
autorest.Response `json:"-"`
Value *[]Artifact `json:"value,omitempty"`
NextLink *string `json:"nextLink,omitempty"`
}
// ResponseWithContinuationArtifactPreparer prepares a request to retrieve the next set of results. It returns
// nil if no more results exist.
func (client ResponseWithContinuationArtifact) ResponseWithContinuationArtifactPreparer() (*http.Request, error) {
if client.NextLink == nil || len(to.String(client.NextLink)) <= 0 {
return nil, nil
}
return autorest.Prepare(&http.Request{},
autorest.AsJSON(),
autorest.AsGet(),
autorest.WithBaseURL(to.String(client.NextLink)))
}
// ResponseWithContinuationArtifactSource is the response of a list operation.
type ResponseWithContinuationArtifactSource struct {
autorest.Response `json:"-"`
Value *[]ArtifactSource `json:"value,omitempty"`
NextLink *string `json:"nextLink,omitempty"`
}
// ResponseWithContinuationArtifactSourcePreparer prepares a request to retrieve the next set of results. It returns
// nil if no more results exist.
func (client ResponseWithContinuationArtifactSource) ResponseWithContinuationArtifactSourcePreparer() (*http.Request, error) {
if client.NextLink == nil || len(to.String(client.NextLink)) <= 0 {
return nil, nil
}
return autorest.Prepare(&http.Request{},
autorest.AsJSON(),
autorest.AsGet(),
autorest.WithBaseURL(to.String(client.NextLink)))
}
// ResponseWithContinuationCustomImage is the response of a list operation.
type ResponseWithContinuationCustomImage struct {
autorest.Response `json:"-"`
Value *[]CustomImage `json:"value,omitempty"`
NextLink *string `json:"nextLink,omitempty"`
}
// ResponseWithContinuationCustomImagePreparer prepares a request to retrieve the next set of results. It returns
// nil if no more results exist.
func (client ResponseWithContinuationCustomImage) ResponseWithContinuationCustomImagePreparer() (*http.Request, error) {
if client.NextLink == nil || len(to.String(client.NextLink)) <= 0 {
return nil, nil
}
return autorest.Prepare(&http.Request{},
autorest.AsJSON(),
autorest.AsGet(),
autorest.WithBaseURL(to.String(client.NextLink)))
}
// ResponseWithContinuationFormula is the response of a list operation.
type ResponseWithContinuationFormula struct {
autorest.Response `json:"-"`
Value *[]Formula `json:"value,omitempty"`
NextLink *string `json:"nextLink,omitempty"`
}
// ResponseWithContinuationFormulaPreparer prepares a request to retrieve the next set of results. It returns
// nil if no more results exist.
func (client ResponseWithContinuationFormula) ResponseWithContinuationFormulaPreparer() (*http.Request, error) {
if client.NextLink == nil || len(to.String(client.NextLink)) <= 0 {
return nil, nil
}
return autorest.Prepare(&http.Request{},
autorest.AsJSON(),
autorest.AsGet(),
autorest.WithBaseURL(to.String(client.NextLink)))
}
// ResponseWithContinuationGalleryImage is the response of a list operation.
type ResponseWithContinuationGalleryImage struct {
autorest.Response `json:"-"`
Value *[]GalleryImage `json:"value,omitempty"`
NextLink *string `json:"nextLink,omitempty"`
}
// ResponseWithContinuationGalleryImagePreparer prepares a request to retrieve the next set of results. It returns
// nil if no more results exist.
func (client ResponseWithContinuationGalleryImage) ResponseWithContinuationGalleryImagePreparer() (*http.Request, error) {
if client.NextLink == nil || len(to.String(client.NextLink)) <= 0 {
return nil, nil
}
return autorest.Prepare(&http.Request{},
autorest.AsJSON(),
autorest.AsGet(),
autorest.WithBaseURL(to.String(client.NextLink)))
}
// ResponseWithContinuationLab is the response of a list operation.
type ResponseWithContinuationLab struct {
autorest.Response `json:"-"`
Value *[]Lab `json:"value,omitempty"`
NextLink *string `json:"nextLink,omitempty"`
}
// ResponseWithContinuationLabPreparer prepares a request to retrieve the next set of results. It returns
// nil if no more results exist.
func (client ResponseWithContinuationLab) ResponseWithContinuationLabPreparer() (*http.Request, error) {
if client.NextLink == nil || len(to.String(client.NextLink)) <= 0 {
return nil, nil
}
return autorest.Prepare(&http.Request{},
autorest.AsJSON(),
autorest.AsGet(),
autorest.WithBaseURL(to.String(client.NextLink)))
}
// ResponseWithContinuationLabVhd is the response of a list operation.
type ResponseWithContinuationLabVhd struct {
autorest.Response `json:"-"`
Value *[]LabVhd `json:"value,omitempty"`
NextLink *string `json:"nextLink,omitempty"`
}
// ResponseWithContinuationLabVhdPreparer prepares a request to retrieve the next set of results. It returns
// nil if no more results exist.
func (client ResponseWithContinuationLabVhd) ResponseWithContinuationLabVhdPreparer() (*http.Request, error) {
if client.NextLink == nil || len(to.String(client.NextLink)) <= 0 {
return nil, nil
}
return autorest.Prepare(&http.Request{},
autorest.AsJSON(),
autorest.AsGet(),
autorest.WithBaseURL(to.String(client.NextLink)))
}
// ResponseWithContinuationLabVirtualMachine is the response of a list
// operation.
type ResponseWithContinuationLabVirtualMachine struct {
autorest.Response `json:"-"`
Value *[]LabVirtualMachine `json:"value,omitempty"`
NextLink *string `json:"nextLink,omitempty"`
}
// ResponseWithContinuationLabVirtualMachinePreparer prepares a request to retrieve the next set of results. It returns
// nil if no more results exist.
func (client ResponseWithContinuationLabVirtualMachine) ResponseWithContinuationLabVirtualMachinePreparer() (*http.Request, error) {
if client.NextLink == nil || len(to.String(client.NextLink)) <= 0 {
return nil, nil
}
return autorest.Prepare(&http.Request{},
autorest.AsJSON(),
autorest.AsGet(),
autorest.WithBaseURL(to.String(client.NextLink)))
}
// ResponseWithContinuationPolicy is the response of a list operation.
type ResponseWithContinuationPolicy struct {
autorest.Response `json:"-"`
Value *[]Policy `json:"value,omitempty"`
NextLink *string `json:"nextLink,omitempty"`
}
// ResponseWithContinuationPolicyPreparer prepares a request to retrieve the next set of results. It returns
// nil if no more results exist.
func (client ResponseWithContinuationPolicy) ResponseWithContinuationPolicyPreparer() (*http.Request, error) {
if client.NextLink == nil || len(to.String(client.NextLink)) <= 0 {
return nil, nil
}
return autorest.Prepare(&http.Request{},
autorest.AsJSON(),
autorest.AsGet(),
autorest.WithBaseURL(to.String(client.NextLink)))
}
// ResponseWithContinuationSchedule is the response of a list operation.
type ResponseWithContinuationSchedule struct {
autorest.Response `json:"-"`
Value *[]Schedule `json:"value,omitempty"`
NextLink *string `json:"nextLink,omitempty"`
}
// ResponseWithContinuationSchedulePreparer prepares a request to retrieve the next set of results. It returns
// nil if no more results exist.
func (client ResponseWithContinuationSchedule) ResponseWithContinuationSchedulePreparer() (*http.Request, error) {
if client.NextLink == nil || len(to.String(client.NextLink)) <= 0 {
return nil, nil
}
return autorest.Prepare(&http.Request{},
autorest.AsJSON(),
autorest.AsGet(),
autorest.WithBaseURL(to.String(client.NextLink)))
}
// ResponseWithContinuationVirtualNetwork is the response of a list operation.
type ResponseWithContinuationVirtualNetwork struct {
autorest.Response `json:"-"`
Value *[]VirtualNetwork `json:"value,omitempty"`
NextLink *string `json:"nextLink,omitempty"`
}
// ResponseWithContinuationVirtualNetworkPreparer prepares a request to retrieve the next set of results. It returns
// nil if no more results exist.
func (client ResponseWithContinuationVirtualNetwork) ResponseWithContinuationVirtualNetworkPreparer() (*http.Request, error) {
if client.NextLink == nil || len(to.String(client.NextLink)) <= 0 {
return nil, nil
}
return autorest.Prepare(&http.Request{},
autorest.AsJSON(),
autorest.AsGet(),
autorest.WithBaseURL(to.String(client.NextLink)))
}
// Schedule is a schedule.
type Schedule struct {
autorest.Response `json:"-"`
Properties *ScheduleProperties `json:"properties,omitempty"`
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"`
}
// ScheduleProperties is properties of a schedule.
type ScheduleProperties struct {
Status EnableStatus `json:"status,omitempty"`
TaskType *string `json:"taskType,omitempty"`
WeeklyRecurrence *WeekDetails `json:"weeklyRecurrence,omitempty"`
DailyRecurrence *DayDetails `json:"dailyRecurrence,omitempty"`
HourlyRecurrence *HourDetails `json:"hourlyRecurrence,omitempty"`
TimeZoneID *string `json:"timeZoneId,omitempty"`
ProvisioningState *string `json:"provisioningState,omitempty"`
UniqueIdentifier *string `json:"uniqueIdentifier,omitempty"`
}
// Subnet is
type Subnet struct {
ResourceID *string `json:"resourceId,omitempty"`
LabSubnetName *string `json:"labSubnetName,omitempty"`
AllowPublicIP UsagePermissionType `json:"allowPublicIp,omitempty"`
}
// SubnetOverride is property overrides on a subnet of a virtual network.
type SubnetOverride struct {
ResourceID *string `json:"resourceId,omitempty"`
LabSubnetName *string `json:"labSubnetName,omitempty"`
UseInVMCreationPermission UsagePermissionType `json:"useInVmCreationPermission,omitempty"`
UsePublicIPAddressPermission UsagePermissionType `json:"usePublicIpAddressPermission,omitempty"`
}
// SubscriptionNotification is
type SubscriptionNotification struct {
RegistrationDate *string `json:"registrationDate,omitempty"`
State SubscriptionNotificationState `json:"state,omitempty"`
Properties *SubscriptionNotificationProperties `json:"properties,omitempty"`
}
// SubscriptionNotificationProperties is
type SubscriptionNotificationProperties struct {
TenantID *string `json:"tenantId,omitempty"`
}
// VirtualNetwork is a virtual network.
type VirtualNetwork struct {
autorest.Response `json:"-"`
Properties *VirtualNetworkProperties `json:"properties,omitempty"`
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"`
}
// VirtualNetworkProperties is properties of a virtual network.
type VirtualNetworkProperties struct {
AllowedSubnets *[]Subnet `json:"allowedSubnets,omitempty"`
Description *string `json:"description,omitempty"`
ExternalProviderResourceID *string `json:"externalProviderResourceId,omitempty"`
SubnetOverrides *[]SubnetOverride `json:"subnetOverrides,omitempty"`
ProvisioningState *string `json:"provisioningState,omitempty"`
UniqueIdentifier *string `json:"uniqueIdentifier,omitempty"`
}
// WeekDetails is properties of a weekly schedule.
type WeekDetails struct {
Weekdays *[]string `json:"weekdays,omitempty"`
Time *string `json:"time,omitempty"`
}
// WindowsOsInfo is information about a Windows OS.
type WindowsOsInfo struct {
WindowsOsState WindowsOsState `json:"windowsOsState,omitempty"`
}