-
Notifications
You must be signed in to change notification settings - Fork 796
/
zz_generated_models.go
6686 lines (5211 loc) · 259 KB
/
zz_generated_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
//go:build go1.18
// +build go1.18
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
package armsecurity
import "time"
// AADConnectivityStateAutoGenerated - Describes an Azure resource with kind
type AADConnectivityStateAutoGenerated struct {
// The connectivity state of the external AAD solution
ConnectivityState *AADConnectivityState `json:"connectivityState,omitempty"`
}
// AADExternalSecuritySolution - Represents an AAD identity protection solution which sends logs to an OMS workspace.
type AADExternalSecuritySolution struct {
// The kind of the external solution
Kind *ExternalSecuritySolutionKind `json:"kind,omitempty"`
// The external security solution properties for AAD solutions
Properties *AADSolutionProperties `json:"properties,omitempty"`
// READ-ONLY; Resource Id
ID *string `json:"id,omitempty" azure:"ro"`
// READ-ONLY; Location where the resource is stored
Location *string `json:"location,omitempty" azure:"ro"`
// READ-ONLY; Resource name
Name *string `json:"name,omitempty" azure:"ro"`
// READ-ONLY; Resource type
Type *string `json:"type,omitempty" azure:"ro"`
}
// AADSolutionProperties - The external security solution properties for AAD solutions
type AADSolutionProperties struct {
// OPTIONAL; Contains additional key/value pairs not defined in the schema.
AdditionalProperties map[string]interface{}
// The connectivity state of the external AAD solution
ConnectivityState *AADConnectivityState `json:"connectivityState,omitempty"`
DeviceType *string `json:"deviceType,omitempty"`
DeviceVendor *string `json:"deviceVendor,omitempty"`
// Represents an OMS workspace to which the solution is connected
Workspace *ConnectedWorkspace `json:"workspace,omitempty"`
}
// AccountConnectorsClientCreateOrUpdateOptions contains the optional parameters for the AccountConnectorsClient.CreateOrUpdate
// method.
type AccountConnectorsClientCreateOrUpdateOptions struct {
// placeholder for future optional parameters
}
// AccountConnectorsClientDeleteOptions contains the optional parameters for the AccountConnectorsClient.Delete method.
type AccountConnectorsClientDeleteOptions struct {
// placeholder for future optional parameters
}
// AccountConnectorsClientGetOptions contains the optional parameters for the AccountConnectorsClient.Get method.
type AccountConnectorsClientGetOptions struct {
// placeholder for future optional parameters
}
// AccountConnectorsClientListOptions contains the optional parameters for the AccountConnectorsClient.List method.
type AccountConnectorsClientListOptions struct {
// placeholder for future optional parameters
}
// ActiveConnectionsNotInAllowedRange - Number of active connections is not in allowed range.
type ActiveConnectionsNotInAllowedRange struct {
// REQUIRED; Status of the custom alert.
IsEnabled *bool `json:"isEnabled,omitempty"`
// REQUIRED; The maximum threshold.
MaxThreshold *int32 `json:"maxThreshold,omitempty"`
// REQUIRED; The minimum threshold.
MinThreshold *int32 `json:"minThreshold,omitempty"`
// REQUIRED; The type of the custom alert rule.
RuleType *string `json:"ruleType,omitempty"`
// REQUIRED; The time window size in iso8601 format.
TimeWindowSize *string `json:"timeWindowSize,omitempty"`
// READ-ONLY; The description of the custom alert.
Description *string `json:"description,omitempty" azure:"ro"`
// READ-ONLY; The display name of the custom alert.
DisplayName *string `json:"displayName,omitempty" azure:"ro"`
}
// GetCustomAlertRule implements the CustomAlertRuleClassification interface for type ActiveConnectionsNotInAllowedRange.
func (a *ActiveConnectionsNotInAllowedRange) GetCustomAlertRule() *CustomAlertRule {
return &CustomAlertRule{
DisplayName: a.DisplayName,
Description: a.Description,
IsEnabled: a.IsEnabled,
RuleType: a.RuleType,
}
}
// GetThresholdCustomAlertRule implements the ThresholdCustomAlertRuleClassification interface for type ActiveConnectionsNotInAllowedRange.
func (a *ActiveConnectionsNotInAllowedRange) GetThresholdCustomAlertRule() *ThresholdCustomAlertRule {
return &ThresholdCustomAlertRule{
MinThreshold: a.MinThreshold,
MaxThreshold: a.MaxThreshold,
DisplayName: a.DisplayName,
Description: a.Description,
IsEnabled: a.IsEnabled,
RuleType: a.RuleType,
}
}
// GetTimeWindowCustomAlertRule implements the TimeWindowCustomAlertRuleClassification interface for type ActiveConnectionsNotInAllowedRange.
func (a *ActiveConnectionsNotInAllowedRange) GetTimeWindowCustomAlertRule() *TimeWindowCustomAlertRule {
return &TimeWindowCustomAlertRule{
TimeWindowSize: a.TimeWindowSize,
MinThreshold: a.MinThreshold,
MaxThreshold: a.MaxThreshold,
DisplayName: a.DisplayName,
Description: a.Description,
IsEnabled: a.IsEnabled,
RuleType: a.RuleType,
}
}
type AdaptiveApplicationControlGroup struct {
// REQUIRED; Represents a machines group and set of rules to be allowed running on a machine
Properties *AdaptiveApplicationControlGroupData `json:"properties,omitempty"`
// READ-ONLY; Resource Id
ID *string `json:"id,omitempty" azure:"ro"`
// READ-ONLY; Location where the resource is stored
Location *string `json:"location,omitempty" azure:"ro"`
// READ-ONLY; Resource name
Name *string `json:"name,omitempty" azure:"ro"`
// READ-ONLY; Resource type
Type *string `json:"type,omitempty" azure:"ro"`
}
// AdaptiveApplicationControlGroupData - Represents a machines group and set of rules to be allowed running on a machine
type AdaptiveApplicationControlGroupData struct {
// The application control policy enforcement/protection mode of the machine group
EnforcementMode *EnforcementMode `json:"enforcementMode,omitempty"`
PathRecommendations []*PathRecommendation `json:"pathRecommendations,omitempty"`
// The protection mode of the collection/file types. Exe/Msi/Script are used for Windows, Executable is used for Linux.
ProtectionMode *ProtectionMode `json:"protectionMode,omitempty"`
VMRecommendations []*VMRecommendation `json:"vmRecommendations,omitempty"`
// READ-ONLY; The configuration status of the machines group or machine or rule
ConfigurationStatus *ConfigurationStatus `json:"configurationStatus,omitempty" azure:"ro"`
// READ-ONLY
Issues []*AdaptiveApplicationControlIssueSummary `json:"issues,omitempty" azure:"ro"`
// READ-ONLY; The initial recommendation status of the machine group or machine
RecommendationStatus *RecommendationStatus `json:"recommendationStatus,omitempty" azure:"ro"`
// READ-ONLY; The source type of the machine group
SourceSystem *SourceSystem `json:"sourceSystem,omitempty" azure:"ro"`
}
// AdaptiveApplicationControlGroups - Represents a list of machine groups and set of rules that are recommended by Azure Security
// Center to be allowed
type AdaptiveApplicationControlGroups struct {
Value []*AdaptiveApplicationControlGroup `json:"value,omitempty"`
}
// AdaptiveApplicationControlIssueSummary - Represents a summary of the alerts of the machine group
type AdaptiveApplicationControlIssueSummary struct {
// An alert that machines within a group can have
Issue *AdaptiveApplicationControlIssue `json:"issue,omitempty"`
// The number of machines in the group that have this alert
NumberOfVMs *float32 `json:"numberOfVms,omitempty"`
}
// AdaptiveApplicationControlsClientDeleteOptions contains the optional parameters for the AdaptiveApplicationControlsClient.Delete
// method.
type AdaptiveApplicationControlsClientDeleteOptions struct {
// placeholder for future optional parameters
}
// AdaptiveApplicationControlsClientGetOptions contains the optional parameters for the AdaptiveApplicationControlsClient.Get
// method.
type AdaptiveApplicationControlsClientGetOptions struct {
// placeholder for future optional parameters
}
// AdaptiveApplicationControlsClientListOptions contains the optional parameters for the AdaptiveApplicationControlsClient.List
// method.
type AdaptiveApplicationControlsClientListOptions struct {
// Include the policy rules
IncludePathRecommendations *bool
// Return output in a summarized form
Summary *bool
}
// AdaptiveApplicationControlsClientPutOptions contains the optional parameters for the AdaptiveApplicationControlsClient.Put
// method.
type AdaptiveApplicationControlsClientPutOptions struct {
// placeholder for future optional parameters
}
// AdaptiveNetworkHardening - The resource whose properties describes the Adaptive Network Hardening settings for some Azure
// resource
type AdaptiveNetworkHardening struct {
// Properties of the Adaptive Network Hardening resource
Properties *AdaptiveNetworkHardeningProperties `json:"properties,omitempty"`
// READ-ONLY; Resource Id
ID *string `json:"id,omitempty" azure:"ro"`
// READ-ONLY; Resource name
Name *string `json:"name,omitempty" azure:"ro"`
// READ-ONLY; Resource type
Type *string `json:"type,omitempty" azure:"ro"`
}
type AdaptiveNetworkHardeningEnforceRequest struct {
// REQUIRED; The Azure resource IDs of the effective network security groups that will be updated with the created security
// rules from the Adaptive Network Hardening rules
NetworkSecurityGroups []*string `json:"networkSecurityGroups,omitempty"`
// REQUIRED; The rules to enforce
Rules []*Rule `json:"rules,omitempty"`
}
// AdaptiveNetworkHardeningProperties - Adaptive Network Hardening resource properties
type AdaptiveNetworkHardeningProperties struct {
// The Network Security Groups effective on the network interfaces of the protected resource
EffectiveNetworkSecurityGroups []*EffectiveNetworkSecurityGroups `json:"effectiveNetworkSecurityGroups,omitempty"`
// The security rules which are recommended to be effective on the VM
Rules []*Rule `json:"rules,omitempty"`
// The UTC time on which the rules were calculated
RulesCalculationTime *time.Time `json:"rulesCalculationTime,omitempty"`
}
// AdaptiveNetworkHardeningsClientBeginEnforceOptions contains the optional parameters for the AdaptiveNetworkHardeningsClient.BeginEnforce
// method.
type AdaptiveNetworkHardeningsClientBeginEnforceOptions struct {
// Resumes the LRO from the provided token.
ResumeToken string
}
// AdaptiveNetworkHardeningsClientGetOptions contains the optional parameters for the AdaptiveNetworkHardeningsClient.Get
// method.
type AdaptiveNetworkHardeningsClientGetOptions struct {
// placeholder for future optional parameters
}
// AdaptiveNetworkHardeningsClientListByExtendedResourceOptions contains the optional parameters for the AdaptiveNetworkHardeningsClient.ListByExtendedResource
// method.
type AdaptiveNetworkHardeningsClientListByExtendedResourceOptions struct {
// placeholder for future optional parameters
}
// AdaptiveNetworkHardeningsList - Response for ListAdaptiveNetworkHardenings API service call
type AdaptiveNetworkHardeningsList struct {
// The URL to get the next set of results
NextLink *string `json:"nextLink,omitempty"`
// A list of Adaptive Network Hardenings resources
Value []*AdaptiveNetworkHardening `json:"value,omitempty"`
}
// AdditionalDataClassification provides polymorphic access to related types.
// Call the interface's GetAdditionalData() method to access the common type.
// Use a type switch to determine the concrete type. The possible types are:
// - *AdditionalData, *ContainerRegistryVulnerabilityProperties, *SQLServerVulnerabilityProperties, *ServerVulnerabilityProperties
type AdditionalDataClassification interface {
// GetAdditionalData returns the AdditionalData content of the underlying type.
GetAdditionalData() *AdditionalData
}
// AdditionalData - Details of the sub-assessment
type AdditionalData struct {
// REQUIRED; Sub-assessment resource type
AssessedResourceType *AssessedResourceType `json:"assessedResourceType,omitempty"`
}
// GetAdditionalData implements the AdditionalDataClassification interface for type AdditionalData.
func (a *AdditionalData) GetAdditionalData() *AdditionalData { return a }
// AdditionalWorkspacesProperties - Properties of the additional workspaces.
type AdditionalWorkspacesProperties struct {
// List of data types sent to workspace
DataTypes []*AdditionalWorkspaceDataType `json:"dataTypes,omitempty"`
// Workspace type.
Type *AdditionalWorkspaceType `json:"type,omitempty"`
// Workspace resource id
Workspace *string `json:"workspace,omitempty"`
}
// AdvancedThreatProtectionClientCreateOptions contains the optional parameters for the AdvancedThreatProtectionClient.Create
// method.
type AdvancedThreatProtectionClientCreateOptions struct {
// placeholder for future optional parameters
}
// AdvancedThreatProtectionClientGetOptions contains the optional parameters for the AdvancedThreatProtectionClient.Get method.
type AdvancedThreatProtectionClientGetOptions struct {
// placeholder for future optional parameters
}
// AdvancedThreatProtectionProperties - The Advanced Threat Protection settings.
type AdvancedThreatProtectionProperties struct {
// Indicates whether Advanced Threat Protection is enabled.
IsEnabled *bool `json:"isEnabled,omitempty"`
}
// AdvancedThreatProtectionSetting - The Advanced Threat Protection resource.
type AdvancedThreatProtectionSetting struct {
// The Advanced Threat Protection settings.
Properties *AdvancedThreatProtectionProperties `json:"properties,omitempty"`
// READ-ONLY; Resource Id
ID *string `json:"id,omitempty" azure:"ro"`
// READ-ONLY; Resource name
Name *string `json:"name,omitempty" azure:"ro"`
// READ-ONLY; Resource type
Type *string `json:"type,omitempty" azure:"ro"`
}
// Alert - Security alert
type Alert struct {
// describes security alert properties.
Properties *AlertProperties `json:"properties,omitempty"`
// READ-ONLY; Resource Id
ID *string `json:"id,omitempty" azure:"ro"`
// READ-ONLY; Resource name
Name *string `json:"name,omitempty" azure:"ro"`
// READ-ONLY; Resource type
Type *string `json:"type,omitempty" azure:"ro"`
}
// AlertEntity - Changing set of properties depending on the entity type.
type AlertEntity struct {
// OPTIONAL; Contains additional key/value pairs not defined in the schema.
AdditionalProperties map[string]interface{}
// READ-ONLY; Type of entity
Type *string `json:"type,omitempty" azure:"ro"`
}
// AlertList - List of security alerts
type AlertList struct {
// describes security alert properties.
Value []*Alert `json:"value,omitempty"`
// READ-ONLY; The URI to fetch the next page.
NextLink *string `json:"nextLink,omitempty" azure:"ro"`
}
// AlertProperties - describes security alert properties.
type AlertProperties struct {
// Custom properties for the alert.
ExtendedProperties map[string]*string `json:"extendedProperties,omitempty"`
// READ-ONLY; The display name of the alert.
AlertDisplayName *string `json:"alertDisplayName,omitempty" azure:"ro"`
// READ-ONLY; Unique identifier for the detection logic (all alert instances from the same detection logic will have the same
// alertType).
AlertType *string `json:"alertType,omitempty" azure:"ro"`
// READ-ONLY; A direct link to the alert page in Azure Portal.
AlertURI *string `json:"alertUri,omitempty" azure:"ro"`
// READ-ONLY; The display name of the resource most related to this alert.
CompromisedEntity *string `json:"compromisedEntity,omitempty" azure:"ro"`
// READ-ONLY; Key for corelating related alerts. Alerts with the same correlation key considered to be related.
CorrelationKey *string `json:"correlationKey,omitempty" azure:"ro"`
// READ-ONLY; Description of the suspicious activity that was detected.
Description *string `json:"description,omitempty" azure:"ro"`
// READ-ONLY; The UTC time of the last event or activity included in the alert in ISO8601 format.
EndTimeUTC *time.Time `json:"endTimeUtc,omitempty" azure:"ro"`
// READ-ONLY; A list of entities related to the alert.
Entities []*AlertEntity `json:"entities,omitempty" azure:"ro"`
// READ-ONLY; Links related to the alert
ExtendedLinks []map[string]*string `json:"extendedLinks,omitempty" azure:"ro"`
// READ-ONLY; The kill chain related intent behind the alert. For list of supported values, and explanations of Azure Security
// Center's supported kill chain intents.
Intent *Intent `json:"intent,omitempty" azure:"ro"`
// READ-ONLY; This field determines whether the alert is an incident (a compound grouping of several alerts) or a single alert.
IsIncident *bool `json:"isIncident,omitempty" azure:"ro"`
// READ-ONLY; The UTC processing end time of the alert in ISO8601 format.
ProcessingEndTimeUTC *time.Time `json:"processingEndTimeUtc,omitempty" azure:"ro"`
// READ-ONLY; The name of Azure Security Center pricing tier which powering this alert. Learn more: https://docs.microsoft.com/en-us/azure/security-center/security-center-pricing
ProductComponentName *string `json:"productComponentName,omitempty" azure:"ro"`
// READ-ONLY; The name of the product which published this alert (Azure Security Center, Azure ATP, Microsoft Defender ATP,
// O365 ATP, MCAS, and so on).
ProductName *string `json:"productName,omitempty" azure:"ro"`
// READ-ONLY; Manual action items to take to remediate the alert.
RemediationSteps []*string `json:"remediationSteps,omitempty" azure:"ro"`
// READ-ONLY; The resource identifiers that can be used to direct the alert to the right product exposure group (tenant, workspace,
// subscription etc.). There can be multiple identifiers of different type per alert.
ResourceIdentifiers []ResourceIdentifierClassification `json:"resourceIdentifiers,omitempty" azure:"ro"`
// READ-ONLY; The risk level of the threat that was detected. Learn more: https://docs.microsoft.com/en-us/azure/security-center/security-center-alerts-overview#how-are-alerts-classified.
Severity *AlertSeverity `json:"severity,omitempty" azure:"ro"`
// READ-ONLY; The UTC time of the first event or activity included in the alert in ISO8601 format.
StartTimeUTC *time.Time `json:"startTimeUtc,omitempty" azure:"ro"`
// READ-ONLY; The life cycle status of the alert.
Status *AlertStatus `json:"status,omitempty" azure:"ro"`
// READ-ONLY; Unique identifier for the alert.
SystemAlertID *string `json:"systemAlertId,omitempty" azure:"ro"`
// READ-ONLY; The UTC time the alert was generated in ISO8601 format.
TimeGeneratedUTC *time.Time `json:"timeGeneratedUtc,omitempty" azure:"ro"`
// READ-ONLY; The name of the vendor that raises the alert.
VendorName *string `json:"vendorName,omitempty" azure:"ro"`
}
// AlertSimulatorBundlesRequestProperties - Simulate alerts according to this bundles.
type AlertSimulatorBundlesRequestProperties struct {
// REQUIRED; The kind of alert simulation.
Kind *Kind `json:"kind,omitempty"`
// OPTIONAL; Contains additional key/value pairs not defined in the schema.
AdditionalProperties map[string]interface{}
// Bundles list.
Bundles []*BundleType `json:"bundles,omitempty"`
}
// GetAlertSimulatorRequestProperties implements the AlertSimulatorRequestPropertiesClassification interface for type AlertSimulatorBundlesRequestProperties.
func (a *AlertSimulatorBundlesRequestProperties) GetAlertSimulatorRequestProperties() *AlertSimulatorRequestProperties {
return &AlertSimulatorRequestProperties{
Kind: a.Kind,
AdditionalProperties: a.AdditionalProperties,
}
}
// AlertSimulatorRequestBody - Alert Simulator request body.
type AlertSimulatorRequestBody struct {
// Alert Simulator request body data.
Properties AlertSimulatorRequestPropertiesClassification `json:"properties,omitempty"`
}
// AlertSimulatorRequestPropertiesClassification provides polymorphic access to related types.
// Call the interface's GetAlertSimulatorRequestProperties() method to access the common type.
// Use a type switch to determine the concrete type. The possible types are:
// - *AlertSimulatorBundlesRequestProperties, *AlertSimulatorRequestProperties
type AlertSimulatorRequestPropertiesClassification interface {
// GetAlertSimulatorRequestProperties returns the AlertSimulatorRequestProperties content of the underlying type.
GetAlertSimulatorRequestProperties() *AlertSimulatorRequestProperties
}
// AlertSimulatorRequestProperties - Describes properties of an alert simulation request
type AlertSimulatorRequestProperties struct {
// REQUIRED; The kind of alert simulation.
Kind *Kind `json:"kind,omitempty"`
// OPTIONAL; Contains additional key/value pairs not defined in the schema.
AdditionalProperties map[string]interface{}
}
// GetAlertSimulatorRequestProperties implements the AlertSimulatorRequestPropertiesClassification interface for type AlertSimulatorRequestProperties.
func (a *AlertSimulatorRequestProperties) GetAlertSimulatorRequestProperties() *AlertSimulatorRequestProperties {
return a
}
// AlertSyncSettingProperties - The alert sync setting properties
type AlertSyncSettingProperties struct {
// REQUIRED; Is the alert sync setting enabled
Enabled *bool `json:"enabled,omitempty"`
}
// AlertSyncSettings - Represents an alert sync setting
type AlertSyncSettings struct {
// REQUIRED; the kind of the settings string
Kind *SettingKind `json:"kind,omitempty"`
// Alert sync setting data
Properties *AlertSyncSettingProperties `json:"properties,omitempty"`
// READ-ONLY; Resource Id
ID *string `json:"id,omitempty" azure:"ro"`
// READ-ONLY; Resource name
Name *string `json:"name,omitempty" azure:"ro"`
// READ-ONLY; Resource type
Type *string `json:"type,omitempty" azure:"ro"`
}
// GetSetting implements the SettingClassification interface for type AlertSyncSettings.
func (a *AlertSyncSettings) GetSetting() *Setting {
return &Setting{
Kind: a.Kind,
ID: a.ID,
Name: a.Name,
Type: a.Type,
}
}
// AlertsClientGetResourceGroupLevelOptions contains the optional parameters for the AlertsClient.GetResourceGroupLevel method.
type AlertsClientGetResourceGroupLevelOptions struct {
// placeholder for future optional parameters
}
// AlertsClientGetSubscriptionLevelOptions contains the optional parameters for the AlertsClient.GetSubscriptionLevel method.
type AlertsClientGetSubscriptionLevelOptions struct {
// placeholder for future optional parameters
}
// AlertsClientListByResourceGroupOptions contains the optional parameters for the AlertsClient.ListByResourceGroup method.
type AlertsClientListByResourceGroupOptions struct {
// placeholder for future optional parameters
}
// AlertsClientListOptions contains the optional parameters for the AlertsClient.List method.
type AlertsClientListOptions struct {
// placeholder for future optional parameters
}
// AlertsClientListResourceGroupLevelByRegionOptions contains the optional parameters for the AlertsClient.ListResourceGroupLevelByRegion
// method.
type AlertsClientListResourceGroupLevelByRegionOptions struct {
// placeholder for future optional parameters
}
// AlertsClientListSubscriptionLevelByRegionOptions contains the optional parameters for the AlertsClient.ListSubscriptionLevelByRegion
// method.
type AlertsClientListSubscriptionLevelByRegionOptions struct {
// placeholder for future optional parameters
}
// AlertsClientSimulateOptions contains the optional parameters for the AlertsClient.Simulate method.
type AlertsClientSimulateOptions struct {
// placeholder for future optional parameters
}
// AlertsClientUpdateResourceGroupLevelStateToActivateOptions contains the optional parameters for the AlertsClient.UpdateResourceGroupLevelStateToActivate
// method.
type AlertsClientUpdateResourceGroupLevelStateToActivateOptions struct {
// placeholder for future optional parameters
}
// AlertsClientUpdateResourceGroupLevelStateToDismissOptions contains the optional parameters for the AlertsClient.UpdateResourceGroupLevelStateToDismiss
// method.
type AlertsClientUpdateResourceGroupLevelStateToDismissOptions struct {
// placeholder for future optional parameters
}
// AlertsClientUpdateResourceGroupLevelStateToResolveOptions contains the optional parameters for the AlertsClient.UpdateResourceGroupLevelStateToResolve
// method.
type AlertsClientUpdateResourceGroupLevelStateToResolveOptions struct {
// placeholder for future optional parameters
}
// AlertsClientUpdateSubscriptionLevelStateToActivateOptions contains the optional parameters for the AlertsClient.UpdateSubscriptionLevelStateToActivate
// method.
type AlertsClientUpdateSubscriptionLevelStateToActivateOptions struct {
// placeholder for future optional parameters
}
// AlertsClientUpdateSubscriptionLevelStateToDismissOptions contains the optional parameters for the AlertsClient.UpdateSubscriptionLevelStateToDismiss
// method.
type AlertsClientUpdateSubscriptionLevelStateToDismissOptions struct {
// placeholder for future optional parameters
}
// AlertsClientUpdateSubscriptionLevelStateToResolveOptions contains the optional parameters for the AlertsClient.UpdateSubscriptionLevelStateToResolve
// method.
type AlertsClientUpdateSubscriptionLevelStateToResolveOptions struct {
// placeholder for future optional parameters
}
// AlertsSuppressionRule - Describes the suppression rule
type AlertsSuppressionRule struct {
// describes AlertsSuppressionRule properties
Properties *AlertsSuppressionRuleProperties `json:"properties,omitempty"`
// READ-ONLY; Resource Id
ID *string `json:"id,omitempty" azure:"ro"`
// READ-ONLY; Resource name
Name *string `json:"name,omitempty" azure:"ro"`
// READ-ONLY; Resource type
Type *string `json:"type,omitempty" azure:"ro"`
}
// AlertsSuppressionRuleProperties - describes AlertsSuppressionRule properties
type AlertsSuppressionRuleProperties struct {
// REQUIRED; Type of the alert to automatically suppress. For all alert types, use '*'
AlertType *string `json:"alertType,omitempty"`
// REQUIRED; The reason for dismissing the alert
Reason *string `json:"reason,omitempty"`
// REQUIRED; Possible states of the rule
State *RuleState `json:"state,omitempty"`
// Any comment regarding the rule
Comment *string `json:"comment,omitempty"`
// Expiration date of the rule, if value is not provided or provided as null this field will default to the maximum allowed
// expiration date.
ExpirationDateUTC *time.Time `json:"expirationDateUtc,omitempty"`
// The suppression conditions
SuppressionAlertsScope *SuppressionAlertsScope `json:"suppressionAlertsScope,omitempty"`
// READ-ONLY; The last time this rule was modified
LastModifiedUTC *time.Time `json:"lastModifiedUtc,omitempty" azure:"ro"`
}
// AlertsSuppressionRulesClientDeleteOptions contains the optional parameters for the AlertsSuppressionRulesClient.Delete
// method.
type AlertsSuppressionRulesClientDeleteOptions struct {
// placeholder for future optional parameters
}
// AlertsSuppressionRulesClientGetOptions contains the optional parameters for the AlertsSuppressionRulesClient.Get method.
type AlertsSuppressionRulesClientGetOptions struct {
// placeholder for future optional parameters
}
// AlertsSuppressionRulesClientListOptions contains the optional parameters for the AlertsSuppressionRulesClient.List method.
type AlertsSuppressionRulesClientListOptions struct {
// Type of the alert to get rules for
AlertType *string
}
// AlertsSuppressionRulesClientUpdateOptions contains the optional parameters for the AlertsSuppressionRulesClient.Update
// method.
type AlertsSuppressionRulesClientUpdateOptions struct {
// placeholder for future optional parameters
}
// AlertsSuppressionRulesList - Suppression rules list for subscription.
type AlertsSuppressionRulesList struct {
// REQUIRED
Value []*AlertsSuppressionRule `json:"value,omitempty"`
// READ-ONLY; URI to fetch the next page.
NextLink *string `json:"nextLink,omitempty" azure:"ro"`
}
// AllowedConnectionsClientGetOptions contains the optional parameters for the AllowedConnectionsClient.Get method.
type AllowedConnectionsClientGetOptions struct {
// placeholder for future optional parameters
}
// AllowedConnectionsClientListByHomeRegionOptions contains the optional parameters for the AllowedConnectionsClient.ListByHomeRegion
// method.
type AllowedConnectionsClientListByHomeRegionOptions struct {
// placeholder for future optional parameters
}
// AllowedConnectionsClientListOptions contains the optional parameters for the AllowedConnectionsClient.List method.
type AllowedConnectionsClientListOptions struct {
// placeholder for future optional parameters
}
// AllowedConnectionsList - List of all possible traffic between Azure resources
type AllowedConnectionsList struct {
// READ-ONLY; The URI to fetch the next page.
NextLink *string `json:"nextLink,omitempty" azure:"ro"`
// READ-ONLY
Value []*AllowedConnectionsResource `json:"value,omitempty" azure:"ro"`
}
// AllowedConnectionsResource - The resource whose properties describes the allowed traffic between Azure resources
type AllowedConnectionsResource struct {
// READ-ONLY; Resource Id
ID *string `json:"id,omitempty" azure:"ro"`
// READ-ONLY; Location where the resource is stored
Location *string `json:"location,omitempty" azure:"ro"`
// READ-ONLY; Resource name
Name *string `json:"name,omitempty" azure:"ro"`
// READ-ONLY; Describes the allowed traffic between Azure resources
Properties *AllowedConnectionsResourceProperties `json:"properties,omitempty" azure:"ro"`
// READ-ONLY; Resource type
Type *string `json:"type,omitempty" azure:"ro"`
}
// AllowedConnectionsResourceProperties - Describes the allowed traffic between Azure resources
type AllowedConnectionsResourceProperties struct {
// READ-ONLY; The UTC time on which the allowed connections resource was calculated
CalculatedDateTime *time.Time `json:"calculatedDateTime,omitempty" azure:"ro"`
// READ-ONLY; List of connectable resources
ConnectableResources []*ConnectableResource `json:"connectableResources,omitempty" azure:"ro"`
}
// AllowlistCustomAlertRuleClassification provides polymorphic access to related types.
// Call the interface's GetAllowlistCustomAlertRule() method to access the common type.
// Use a type switch to determine the concrete type. The possible types are:
// - *AllowlistCustomAlertRule, *ConnectionFromIPNotAllowed, *ConnectionToIPNotAllowed, *LocalUserNotAllowed, *ProcessNotAllowed
type AllowlistCustomAlertRuleClassification interface {
ListCustomAlertRuleClassification
// GetAllowlistCustomAlertRule returns the AllowlistCustomAlertRule content of the underlying type.
GetAllowlistCustomAlertRule() *AllowlistCustomAlertRule
}
// AllowlistCustomAlertRule - A custom alert rule that checks if a value (depends on the custom alert type) is allowed.
type AllowlistCustomAlertRule struct {
// REQUIRED; The values to allow. The format of the values depends on the rule type.
AllowlistValues []*string `json:"allowlistValues,omitempty"`
// REQUIRED; Status of the custom alert.
IsEnabled *bool `json:"isEnabled,omitempty"`
// REQUIRED; The type of the custom alert rule.
RuleType *string `json:"ruleType,omitempty"`
// READ-ONLY; The description of the custom alert.
Description *string `json:"description,omitempty" azure:"ro"`
// READ-ONLY; The display name of the custom alert.
DisplayName *string `json:"displayName,omitempty" azure:"ro"`
// READ-ONLY; The value type of the items in the list.
ValueType *ValueType `json:"valueType,omitempty" azure:"ro"`
}
// GetAllowlistCustomAlertRule implements the AllowlistCustomAlertRuleClassification interface for type AllowlistCustomAlertRule.
func (a *AllowlistCustomAlertRule) GetAllowlistCustomAlertRule() *AllowlistCustomAlertRule { return a }
// GetCustomAlertRule implements the CustomAlertRuleClassification interface for type AllowlistCustomAlertRule.
func (a *AllowlistCustomAlertRule) GetCustomAlertRule() *CustomAlertRule {
return &CustomAlertRule{
DisplayName: a.DisplayName,
Description: a.Description,
IsEnabled: a.IsEnabled,
RuleType: a.RuleType,
}
}
// GetListCustomAlertRule implements the ListCustomAlertRuleClassification interface for type AllowlistCustomAlertRule.
func (a *AllowlistCustomAlertRule) GetListCustomAlertRule() *ListCustomAlertRule {
return &ListCustomAlertRule{
ValueType: a.ValueType,
DisplayName: a.DisplayName,
Description: a.Description,
IsEnabled: a.IsEnabled,
RuleType: a.RuleType,
}
}
// AmqpC2DMessagesNotInAllowedRange - Number of cloud to device messages (AMQP protocol) is not in allowed range.
type AmqpC2DMessagesNotInAllowedRange struct {
// REQUIRED; Status of the custom alert.
IsEnabled *bool `json:"isEnabled,omitempty"`
// REQUIRED; The maximum threshold.
MaxThreshold *int32 `json:"maxThreshold,omitempty"`
// REQUIRED; The minimum threshold.
MinThreshold *int32 `json:"minThreshold,omitempty"`
// REQUIRED; The type of the custom alert rule.
RuleType *string `json:"ruleType,omitempty"`
// REQUIRED; The time window size in iso8601 format.
TimeWindowSize *string `json:"timeWindowSize,omitempty"`
// READ-ONLY; The description of the custom alert.
Description *string `json:"description,omitempty" azure:"ro"`
// READ-ONLY; The display name of the custom alert.
DisplayName *string `json:"displayName,omitempty" azure:"ro"`
}
// GetCustomAlertRule implements the CustomAlertRuleClassification interface for type AmqpC2DMessagesNotInAllowedRange.
func (a *AmqpC2DMessagesNotInAllowedRange) GetCustomAlertRule() *CustomAlertRule {
return &CustomAlertRule{
DisplayName: a.DisplayName,
Description: a.Description,
IsEnabled: a.IsEnabled,
RuleType: a.RuleType,
}
}
// GetThresholdCustomAlertRule implements the ThresholdCustomAlertRuleClassification interface for type AmqpC2DMessagesNotInAllowedRange.
func (a *AmqpC2DMessagesNotInAllowedRange) GetThresholdCustomAlertRule() *ThresholdCustomAlertRule {
return &ThresholdCustomAlertRule{
MinThreshold: a.MinThreshold,
MaxThreshold: a.MaxThreshold,
DisplayName: a.DisplayName,
Description: a.Description,
IsEnabled: a.IsEnabled,
RuleType: a.RuleType,
}
}
// GetTimeWindowCustomAlertRule implements the TimeWindowCustomAlertRuleClassification interface for type AmqpC2DMessagesNotInAllowedRange.
func (a *AmqpC2DMessagesNotInAllowedRange) GetTimeWindowCustomAlertRule() *TimeWindowCustomAlertRule {
return &TimeWindowCustomAlertRule{
TimeWindowSize: a.TimeWindowSize,
MinThreshold: a.MinThreshold,
MaxThreshold: a.MaxThreshold,
DisplayName: a.DisplayName,
Description: a.Description,
IsEnabled: a.IsEnabled,
RuleType: a.RuleType,
}
}
// AmqpC2DRejectedMessagesNotInAllowedRange - Number of rejected cloud to device messages (AMQP protocol) is not in allowed
// range.
type AmqpC2DRejectedMessagesNotInAllowedRange struct {
// REQUIRED; Status of the custom alert.
IsEnabled *bool `json:"isEnabled,omitempty"`
// REQUIRED; The maximum threshold.
MaxThreshold *int32 `json:"maxThreshold,omitempty"`
// REQUIRED; The minimum threshold.
MinThreshold *int32 `json:"minThreshold,omitempty"`
// REQUIRED; The type of the custom alert rule.
RuleType *string `json:"ruleType,omitempty"`
// REQUIRED; The time window size in iso8601 format.
TimeWindowSize *string `json:"timeWindowSize,omitempty"`
// READ-ONLY; The description of the custom alert.
Description *string `json:"description,omitempty" azure:"ro"`
// READ-ONLY; The display name of the custom alert.
DisplayName *string `json:"displayName,omitempty" azure:"ro"`
}
// GetCustomAlertRule implements the CustomAlertRuleClassification interface for type AmqpC2DRejectedMessagesNotInAllowedRange.
func (a *AmqpC2DRejectedMessagesNotInAllowedRange) GetCustomAlertRule() *CustomAlertRule {
return &CustomAlertRule{
DisplayName: a.DisplayName,
Description: a.Description,
IsEnabled: a.IsEnabled,
RuleType: a.RuleType,
}
}
// GetThresholdCustomAlertRule implements the ThresholdCustomAlertRuleClassification interface for type AmqpC2DRejectedMessagesNotInAllowedRange.
func (a *AmqpC2DRejectedMessagesNotInAllowedRange) GetThresholdCustomAlertRule() *ThresholdCustomAlertRule {
return &ThresholdCustomAlertRule{
MinThreshold: a.MinThreshold,
MaxThreshold: a.MaxThreshold,
DisplayName: a.DisplayName,
Description: a.Description,
IsEnabled: a.IsEnabled,
RuleType: a.RuleType,
}
}
// GetTimeWindowCustomAlertRule implements the TimeWindowCustomAlertRuleClassification interface for type AmqpC2DRejectedMessagesNotInAllowedRange.
func (a *AmqpC2DRejectedMessagesNotInAllowedRange) GetTimeWindowCustomAlertRule() *TimeWindowCustomAlertRule {
return &TimeWindowCustomAlertRule{
TimeWindowSize: a.TimeWindowSize,
MinThreshold: a.MinThreshold,
MaxThreshold: a.MaxThreshold,
DisplayName: a.DisplayName,
Description: a.Description,
IsEnabled: a.IsEnabled,
RuleType: a.RuleType,
}
}
// AmqpD2CMessagesNotInAllowedRange - Number of device to cloud messages (AMQP protocol) is not in allowed range.
type AmqpD2CMessagesNotInAllowedRange struct {
// REQUIRED; Status of the custom alert.
IsEnabled *bool `json:"isEnabled,omitempty"`
// REQUIRED; The maximum threshold.
MaxThreshold *int32 `json:"maxThreshold,omitempty"`
// REQUIRED; The minimum threshold.
MinThreshold *int32 `json:"minThreshold,omitempty"`
// REQUIRED; The type of the custom alert rule.
RuleType *string `json:"ruleType,omitempty"`
// REQUIRED; The time window size in iso8601 format.
TimeWindowSize *string `json:"timeWindowSize,omitempty"`
// READ-ONLY; The description of the custom alert.
Description *string `json:"description,omitempty" azure:"ro"`
// READ-ONLY; The display name of the custom alert.
DisplayName *string `json:"displayName,omitempty" azure:"ro"`
}
// GetCustomAlertRule implements the CustomAlertRuleClassification interface for type AmqpD2CMessagesNotInAllowedRange.
func (a *AmqpD2CMessagesNotInAllowedRange) GetCustomAlertRule() *CustomAlertRule {
return &CustomAlertRule{
DisplayName: a.DisplayName,
Description: a.Description,
IsEnabled: a.IsEnabled,
RuleType: a.RuleType,
}
}
// GetThresholdCustomAlertRule implements the ThresholdCustomAlertRuleClassification interface for type AmqpD2CMessagesNotInAllowedRange.
func (a *AmqpD2CMessagesNotInAllowedRange) GetThresholdCustomAlertRule() *ThresholdCustomAlertRule {
return &ThresholdCustomAlertRule{
MinThreshold: a.MinThreshold,
MaxThreshold: a.MaxThreshold,
DisplayName: a.DisplayName,
Description: a.Description,
IsEnabled: a.IsEnabled,
RuleType: a.RuleType,
}
}
// GetTimeWindowCustomAlertRule implements the TimeWindowCustomAlertRuleClassification interface for type AmqpD2CMessagesNotInAllowedRange.
func (a *AmqpD2CMessagesNotInAllowedRange) GetTimeWindowCustomAlertRule() *TimeWindowCustomAlertRule {
return &TimeWindowCustomAlertRule{
TimeWindowSize: a.TimeWindowSize,
MinThreshold: a.MinThreshold,
MaxThreshold: a.MaxThreshold,
DisplayName: a.DisplayName,
Description: a.Description,
IsEnabled: a.IsEnabled,
RuleType: a.RuleType,
}
}
// AscLocation - The ASC location of the subscription is in the "name" field
type AscLocation struct {
// An empty set of properties
Properties interface{} `json:"properties,omitempty"`
// READ-ONLY; Resource Id
ID *string `json:"id,omitempty" azure:"ro"`
// READ-ONLY; Resource name
Name *string `json:"name,omitempty" azure:"ro"`
// READ-ONLY; Resource type
Type *string `json:"type,omitempty" azure:"ro"`
}
// AscLocationList - List of locations where ASC saves your data
type AscLocationList struct {
// READ-ONLY; The URI to fetch the next page.
NextLink *string `json:"nextLink,omitempty" azure:"ro"`
// READ-ONLY
Value []*AscLocation `json:"value,omitempty" azure:"ro"`
}
// Assessment - Security assessment on a resource
type Assessment struct {
// Describes properties of an assessment.
Properties *AssessmentProperties `json:"properties,omitempty"`
// READ-ONLY; Resource Id
ID *string `json:"id,omitempty" azure:"ro"`
// READ-ONLY; Resource name
Name *string `json:"name,omitempty" azure:"ro"`
// READ-ONLY; Resource type