1package security 2 3// Copyright (c) Microsoft Corporation. All rights reserved. 4// Licensed under the MIT License. See License.txt in the project root for license information. 5// 6// Code generated by Microsoft (R) AutoRest Code Generator. 7// Changes may cause incorrect behavior and will be lost if the code is regenerated. 8 9// AadConnectivityState enumerates the values for aad connectivity state. 10type AadConnectivityState string 11 12const ( 13 // Connected ... 14 Connected AadConnectivityState = "Connected" 15 // Discovered ... 16 Discovered AadConnectivityState = "Discovered" 17 // NotLicensed ... 18 NotLicensed AadConnectivityState = "NotLicensed" 19) 20 21// PossibleAadConnectivityStateValues returns an array of possible values for the AadConnectivityState const type. 22func PossibleAadConnectivityStateValues() []AadConnectivityState { 23 return []AadConnectivityState{Connected, Discovered, NotLicensed} 24} 25 26// Action enumerates the values for action. 27type Action string 28 29const ( 30 // Add ... 31 Add Action = "Add" 32 // Recommended ... 33 Recommended Action = "Recommended" 34 // Remove ... 35 Remove Action = "Remove" 36) 37 38// PossibleActionValues returns an array of possible values for the Action const type. 39func PossibleActionValues() []Action { 40 return []Action{Add, Recommended, Remove} 41} 42 43// ActionType enumerates the values for action type. 44type ActionType string 45 46const ( 47 // ActionTypeAutomationAction ... 48 ActionTypeAutomationAction ActionType = "AutomationAction" 49 // ActionTypeEventHub ... 50 ActionTypeEventHub ActionType = "EventHub" 51 // ActionTypeLogicApp ... 52 ActionTypeLogicApp ActionType = "LogicApp" 53 // ActionTypeWorkspace ... 54 ActionTypeWorkspace ActionType = "Workspace" 55) 56 57// PossibleActionTypeValues returns an array of possible values for the ActionType const type. 58func PossibleActionTypeValues() []ActionType { 59 return []ActionType{ActionTypeAutomationAction, ActionTypeEventHub, ActionTypeLogicApp, ActionTypeWorkspace} 60} 61 62// AlertNotifications enumerates the values for alert notifications. 63type AlertNotifications string 64 65const ( 66 // Off Don't get notifications on new alerts 67 Off AlertNotifications = "Off" 68 // On Get notifications on new alerts 69 On AlertNotifications = "On" 70) 71 72// PossibleAlertNotificationsValues returns an array of possible values for the AlertNotifications const type. 73func PossibleAlertNotificationsValues() []AlertNotifications { 74 return []AlertNotifications{Off, On} 75} 76 77// AlertsToAdmins enumerates the values for alerts to admins. 78type AlertsToAdmins string 79 80const ( 81 // AlertsToAdminsOff Don't send notification on new alerts to the subscription's admins 82 AlertsToAdminsOff AlertsToAdmins = "Off" 83 // AlertsToAdminsOn Send notification on new alerts to the subscription's admins 84 AlertsToAdminsOn AlertsToAdmins = "On" 85) 86 87// PossibleAlertsToAdminsValues returns an array of possible values for the AlertsToAdmins const type. 88func PossibleAlertsToAdminsValues() []AlertsToAdmins { 89 return []AlertsToAdmins{AlertsToAdminsOff, AlertsToAdminsOn} 90} 91 92// AssessedResourceType enumerates the values for assessed resource type. 93type AssessedResourceType string 94 95const ( 96 // AssessedResourceTypeAdditionalData ... 97 AssessedResourceTypeAdditionalData AssessedResourceType = "AdditionalData" 98 // AssessedResourceTypeContainerRegistryVulnerability ... 99 AssessedResourceTypeContainerRegistryVulnerability AssessedResourceType = "ContainerRegistryVulnerability" 100 // AssessedResourceTypeServerVulnerabilityAssessment ... 101 AssessedResourceTypeServerVulnerabilityAssessment AssessedResourceType = "ServerVulnerabilityAssessment" 102 // AssessedResourceTypeSQLServerVulnerability ... 103 AssessedResourceTypeSQLServerVulnerability AssessedResourceType = "SqlServerVulnerability" 104) 105 106// PossibleAssessedResourceTypeValues returns an array of possible values for the AssessedResourceType const type. 107func PossibleAssessedResourceTypeValues() []AssessedResourceType { 108 return []AssessedResourceType{AssessedResourceTypeAdditionalData, AssessedResourceTypeContainerRegistryVulnerability, AssessedResourceTypeServerVulnerabilityAssessment, AssessedResourceTypeSQLServerVulnerability} 109} 110 111// AuthenticationProvisioningState enumerates the values for authentication provisioning state. 112type AuthenticationProvisioningState string 113 114const ( 115 // Expired the connection has expired 116 Expired AuthenticationProvisioningState = "Expired" 117 // IncorrectPolicy Incorrect policy of the connector 118 IncorrectPolicy AuthenticationProvisioningState = "IncorrectPolicy" 119 // Invalid Invalid connector 120 Invalid AuthenticationProvisioningState = "Invalid" 121 // Valid Valid connector 122 Valid AuthenticationProvisioningState = "Valid" 123) 124 125// PossibleAuthenticationProvisioningStateValues returns an array of possible values for the AuthenticationProvisioningState const type. 126func PossibleAuthenticationProvisioningStateValues() []AuthenticationProvisioningState { 127 return []AuthenticationProvisioningState{Expired, IncorrectPolicy, Invalid, Valid} 128} 129 130// AuthenticationType enumerates the values for authentication type. 131type AuthenticationType string 132 133const ( 134 // AuthenticationTypeAuthenticationDetailsProperties ... 135 AuthenticationTypeAuthenticationDetailsProperties AuthenticationType = "AuthenticationDetailsProperties" 136 // AuthenticationTypeAwsAssumeRole ... 137 AuthenticationTypeAwsAssumeRole AuthenticationType = "awsAssumeRole" 138 // AuthenticationTypeAwsCreds ... 139 AuthenticationTypeAwsCreds AuthenticationType = "awsCreds" 140 // AuthenticationTypeGcpCredentials ... 141 AuthenticationTypeGcpCredentials AuthenticationType = "gcpCredentials" 142) 143 144// PossibleAuthenticationTypeValues returns an array of possible values for the AuthenticationType const type. 145func PossibleAuthenticationTypeValues() []AuthenticationType { 146 return []AuthenticationType{AuthenticationTypeAuthenticationDetailsProperties, AuthenticationTypeAwsAssumeRole, AuthenticationTypeAwsCreds, AuthenticationTypeGcpCredentials} 147} 148 149// AutoProvision enumerates the values for auto provision. 150type AutoProvision string 151 152const ( 153 // AutoProvisionOff Do not install Azure Arc agent on the machines automatically 154 AutoProvisionOff AutoProvision = "Off" 155 // AutoProvisionOn Install missing Azure Arc agents on machines automatically 156 AutoProvisionOn AutoProvision = "On" 157) 158 159// PossibleAutoProvisionValues returns an array of possible values for the AutoProvision const type. 160func PossibleAutoProvisionValues() []AutoProvision { 161 return []AutoProvision{AutoProvisionOff, AutoProvisionOn} 162} 163 164// ConfigurationStatus enumerates the values for configuration status. 165type ConfigurationStatus string 166 167const ( 168 // Configured ... 169 Configured ConfigurationStatus = "Configured" 170 // Failed ... 171 Failed ConfigurationStatus = "Failed" 172 // InProgress ... 173 InProgress ConfigurationStatus = "InProgress" 174 // NoStatus ... 175 NoStatus ConfigurationStatus = "NoStatus" 176 // NotConfigured ... 177 NotConfigured ConfigurationStatus = "NotConfigured" 178) 179 180// PossibleConfigurationStatusValues returns an array of possible values for the ConfigurationStatus const type. 181func PossibleConfigurationStatusValues() []ConfigurationStatus { 182 return []ConfigurationStatus{Configured, Failed, InProgress, NoStatus, NotConfigured} 183} 184 185// ConfigurationStatus1 enumerates the values for configuration status 1. 186type ConfigurationStatus1 string 187 188const ( 189 // ConfigurationStatus1Configured ... 190 ConfigurationStatus1Configured ConfigurationStatus1 = "Configured" 191 // ConfigurationStatus1Failed ... 192 ConfigurationStatus1Failed ConfigurationStatus1 = "Failed" 193 // ConfigurationStatus1InProgress ... 194 ConfigurationStatus1InProgress ConfigurationStatus1 = "InProgress" 195 // ConfigurationStatus1NoStatus ... 196 ConfigurationStatus1NoStatus ConfigurationStatus1 = "NoStatus" 197 // ConfigurationStatus1NotConfigured ... 198 ConfigurationStatus1NotConfigured ConfigurationStatus1 = "NotConfigured" 199) 200 201// PossibleConfigurationStatus1Values returns an array of possible values for the ConfigurationStatus1 const type. 202func PossibleConfigurationStatus1Values() []ConfigurationStatus1 { 203 return []ConfigurationStatus1{ConfigurationStatus1Configured, ConfigurationStatus1Failed, ConfigurationStatus1InProgress, ConfigurationStatus1NoStatus, ConfigurationStatus1NotConfigured} 204} 205 206// ConfigurationStatus2 enumerates the values for configuration status 2. 207type ConfigurationStatus2 string 208 209const ( 210 // ConfigurationStatus2Configured ... 211 ConfigurationStatus2Configured ConfigurationStatus2 = "Configured" 212 // ConfigurationStatus2Failed ... 213 ConfigurationStatus2Failed ConfigurationStatus2 = "Failed" 214 // ConfigurationStatus2InProgress ... 215 ConfigurationStatus2InProgress ConfigurationStatus2 = "InProgress" 216 // ConfigurationStatus2NoStatus ... 217 ConfigurationStatus2NoStatus ConfigurationStatus2 = "NoStatus" 218 // ConfigurationStatus2NotConfigured ... 219 ConfigurationStatus2NotConfigured ConfigurationStatus2 = "NotConfigured" 220) 221 222// PossibleConfigurationStatus2Values returns an array of possible values for the ConfigurationStatus2 const type. 223func PossibleConfigurationStatus2Values() []ConfigurationStatus2 { 224 return []ConfigurationStatus2{ConfigurationStatus2Configured, ConfigurationStatus2Failed, ConfigurationStatus2InProgress, ConfigurationStatus2NoStatus, ConfigurationStatus2NotConfigured} 225} 226 227// ConnectionType enumerates the values for connection type. 228type ConnectionType string 229 230const ( 231 // External ... 232 External ConnectionType = "External" 233 // Internal ... 234 Internal ConnectionType = "Internal" 235) 236 237// PossibleConnectionTypeValues returns an array of possible values for the ConnectionType const type. 238func PossibleConnectionTypeValues() []ConnectionType { 239 return []ConnectionType{External, Internal} 240} 241 242// ControlType enumerates the values for control type. 243type ControlType string 244 245const ( 246 // BuiltIn Azure Security Center managed assessments 247 BuiltIn ControlType = "BuiltIn" 248 // Custom Non Azure Security Center managed assessments 249 Custom ControlType = "Custom" 250) 251 252// PossibleControlTypeValues returns an array of possible values for the ControlType const type. 253func PossibleControlTypeValues() []ControlType { 254 return []ControlType{BuiltIn, Custom} 255} 256 257// DataSource enumerates the values for data source. 258type DataSource string 259 260const ( 261 // TwinData Devices twin data 262 TwinData DataSource = "TwinData" 263) 264 265// PossibleDataSourceValues returns an array of possible values for the DataSource const type. 266func PossibleDataSourceValues() []DataSource { 267 return []DataSource{TwinData} 268} 269 270// Direction enumerates the values for direction. 271type Direction string 272 273const ( 274 // Inbound ... 275 Inbound Direction = "Inbound" 276 // Outbound ... 277 Outbound Direction = "Outbound" 278) 279 280// PossibleDirectionValues returns an array of possible values for the Direction const type. 281func PossibleDirectionValues() []Direction { 282 return []Direction{Inbound, Outbound} 283} 284 285// EnforcementMode enumerates the values for enforcement mode. 286type EnforcementMode string 287 288const ( 289 // Audit ... 290 Audit EnforcementMode = "Audit" 291 // Enforce ... 292 Enforce EnforcementMode = "Enforce" 293 // None ... 294 None EnforcementMode = "None" 295) 296 297// PossibleEnforcementModeValues returns an array of possible values for the EnforcementMode const type. 298func PossibleEnforcementModeValues() []EnforcementMode { 299 return []EnforcementMode{Audit, Enforce, None} 300} 301 302// EnforcementMode1 enumerates the values for enforcement mode 1. 303type EnforcementMode1 string 304 305const ( 306 // EnforcementMode1Audit ... 307 EnforcementMode1Audit EnforcementMode1 = "Audit" 308 // EnforcementMode1Enforce ... 309 EnforcementMode1Enforce EnforcementMode1 = "Enforce" 310 // EnforcementMode1None ... 311 EnforcementMode1None EnforcementMode1 = "None" 312) 313 314// PossibleEnforcementMode1Values returns an array of possible values for the EnforcementMode1 const type. 315func PossibleEnforcementMode1Values() []EnforcementMode1 { 316 return []EnforcementMode1{EnforcementMode1Audit, EnforcementMode1Enforce, EnforcementMode1None} 317} 318 319// EnforcementSupport enumerates the values for enforcement support. 320type EnforcementSupport string 321 322const ( 323 // NotSupported ... 324 NotSupported EnforcementSupport = "NotSupported" 325 // Supported ... 326 Supported EnforcementSupport = "Supported" 327 // Unknown ... 328 Unknown EnforcementSupport = "Unknown" 329) 330 331// PossibleEnforcementSupportValues returns an array of possible values for the EnforcementSupport const type. 332func PossibleEnforcementSupportValues() []EnforcementSupport { 333 return []EnforcementSupport{NotSupported, Supported, Unknown} 334} 335 336// EventSource enumerates the values for event source. 337type EventSource string 338 339const ( 340 // Alerts ... 341 Alerts EventSource = "Alerts" 342 // Assessments ... 343 Assessments EventSource = "Assessments" 344 // SecureScoreControls ... 345 SecureScoreControls EventSource = "SecureScoreControls" 346 // SecureScores ... 347 SecureScores EventSource = "SecureScores" 348 // SubAssessments ... 349 SubAssessments EventSource = "SubAssessments" 350) 351 352// PossibleEventSourceValues returns an array of possible values for the EventSource const type. 353func PossibleEventSourceValues() []EventSource { 354 return []EventSource{Alerts, Assessments, SecureScoreControls, SecureScores, SubAssessments} 355} 356 357// Exe enumerates the values for exe. 358type Exe string 359 360const ( 361 // ExeAudit ... 362 ExeAudit Exe = "Audit" 363 // ExeEnforce ... 364 ExeEnforce Exe = "Enforce" 365 // ExeNone ... 366 ExeNone Exe = "None" 367) 368 369// PossibleExeValues returns an array of possible values for the Exe const type. 370func PossibleExeValues() []Exe { 371 return []Exe{ExeAudit, ExeEnforce, ExeNone} 372} 373 374// Executable enumerates the values for executable. 375type Executable string 376 377const ( 378 // ExecutableAudit ... 379 ExecutableAudit Executable = "Audit" 380 // ExecutableEnforce ... 381 ExecutableEnforce Executable = "Enforce" 382 // ExecutableNone ... 383 ExecutableNone Executable = "None" 384) 385 386// PossibleExecutableValues returns an array of possible values for the Executable const type. 387func PossibleExecutableValues() []Executable { 388 return []Executable{ExecutableAudit, ExecutableEnforce, ExecutableNone} 389} 390 391// ExpandControlsEnum enumerates the values for expand controls enum. 392type ExpandControlsEnum string 393 394const ( 395 // Definition Add definition object for each control 396 Definition ExpandControlsEnum = "definition" 397) 398 399// PossibleExpandControlsEnumValues returns an array of possible values for the ExpandControlsEnum const type. 400func PossibleExpandControlsEnumValues() []ExpandControlsEnum { 401 return []ExpandControlsEnum{Definition} 402} 403 404// ExportData enumerates the values for export data. 405type ExportData string 406 407const ( 408 // RawEvents Agent raw events 409 RawEvents ExportData = "RawEvents" 410) 411 412// PossibleExportDataValues returns an array of possible values for the ExportData const type. 413func PossibleExportDataValues() []ExportData { 414 return []ExportData{RawEvents} 415} 416 417// ExternalSecuritySolutionKind enumerates the values for external security solution kind. 418type ExternalSecuritySolutionKind string 419 420const ( 421 // AAD ... 422 AAD ExternalSecuritySolutionKind = "AAD" 423 // ATA ... 424 ATA ExternalSecuritySolutionKind = "ATA" 425 // CEF ... 426 CEF ExternalSecuritySolutionKind = "CEF" 427) 428 429// PossibleExternalSecuritySolutionKindValues returns an array of possible values for the ExternalSecuritySolutionKind const type. 430func PossibleExternalSecuritySolutionKindValues() []ExternalSecuritySolutionKind { 431 return []ExternalSecuritySolutionKind{AAD, ATA, CEF} 432} 433 434// Family enumerates the values for family. 435type Family string 436 437const ( 438 // Ngfw ... 439 Ngfw Family = "Ngfw" 440 // SaasWaf ... 441 SaasWaf Family = "SaasWaf" 442 // Va ... 443 Va Family = "Va" 444 // Waf ... 445 Waf Family = "Waf" 446) 447 448// PossibleFamilyValues returns an array of possible values for the Family const type. 449func PossibleFamilyValues() []Family { 450 return []Family{Ngfw, SaasWaf, Va, Waf} 451} 452 453// FileType enumerates the values for file type. 454type FileType string 455 456const ( 457 // FileTypeDll ... 458 FileTypeDll FileType = "Dll" 459 // FileTypeExe ... 460 FileTypeExe FileType = "Exe" 461 // FileTypeExecutable ... 462 FileTypeExecutable FileType = "Executable" 463 // FileTypeMsi ... 464 FileTypeMsi FileType = "Msi" 465 // FileTypeScript ... 466 FileTypeScript FileType = "Script" 467 // FileTypeUnknown ... 468 FileTypeUnknown FileType = "Unknown" 469) 470 471// PossibleFileTypeValues returns an array of possible values for the FileType const type. 472func PossibleFileTypeValues() []FileType { 473 return []FileType{FileTypeDll, FileTypeExe, FileTypeExecutable, FileTypeMsi, FileTypeScript, FileTypeUnknown} 474} 475 476// HybridComputeProvisioningState enumerates the values for hybrid compute provisioning state. 477type HybridComputeProvisioningState string 478 479const ( 480 // HybridComputeProvisioningStateExpired the service principal details are expired 481 HybridComputeProvisioningStateExpired HybridComputeProvisioningState = "Expired" 482 // HybridComputeProvisioningStateInvalid Invalid service principal details. 483 HybridComputeProvisioningStateInvalid HybridComputeProvisioningState = "Invalid" 484 // HybridComputeProvisioningStateValid Valid service principal details. 485 HybridComputeProvisioningStateValid HybridComputeProvisioningState = "Valid" 486) 487 488// PossibleHybridComputeProvisioningStateValues returns an array of possible values for the HybridComputeProvisioningState const type. 489func PossibleHybridComputeProvisioningStateValues() []HybridComputeProvisioningState { 490 return []HybridComputeProvisioningState{HybridComputeProvisioningStateExpired, HybridComputeProvisioningStateInvalid, HybridComputeProvisioningStateValid} 491} 492 493// Issue enumerates the values for issue. 494type Issue string 495 496const ( 497 // ExecutableViolationsAudited ... 498 ExecutableViolationsAudited Issue = "ExecutableViolationsAudited" 499 // MsiAndScriptViolationsAudited ... 500 MsiAndScriptViolationsAudited Issue = "MsiAndScriptViolationsAudited" 501 // MsiAndScriptViolationsBlocked ... 502 MsiAndScriptViolationsBlocked Issue = "MsiAndScriptViolationsBlocked" 503 // RulesViolatedManually ... 504 RulesViolatedManually Issue = "RulesViolatedManually" 505 // ViolationsAudited ... 506 ViolationsAudited Issue = "ViolationsAudited" 507 // ViolationsBlocked ... 508 ViolationsBlocked Issue = "ViolationsBlocked" 509) 510 511// PossibleIssueValues returns an array of possible values for the Issue const type. 512func PossibleIssueValues() []Issue { 513 return []Issue{ExecutableViolationsAudited, MsiAndScriptViolationsAudited, MsiAndScriptViolationsBlocked, RulesViolatedManually, ViolationsAudited, ViolationsBlocked} 514} 515 516// KindEnum enumerates the values for kind enum. 517type KindEnum string 518 519const ( 520 // KindAAD ... 521 KindAAD KindEnum = "AAD" 522 // KindATA ... 523 KindATA KindEnum = "ATA" 524 // KindCEF ... 525 KindCEF KindEnum = "CEF" 526 // KindExternalSecuritySolution ... 527 KindExternalSecuritySolution KindEnum = "ExternalSecuritySolution" 528) 529 530// PossibleKindEnumValues returns an array of possible values for the KindEnum const type. 531func PossibleKindEnumValues() []KindEnum { 532 return []KindEnum{KindAAD, KindATA, KindCEF, KindExternalSecuritySolution} 533} 534 535// Msi enumerates the values for msi. 536type Msi string 537 538const ( 539 // MsiAudit ... 540 MsiAudit Msi = "Audit" 541 // MsiEnforce ... 542 MsiEnforce Msi = "Enforce" 543 // MsiNone ... 544 MsiNone Msi = "None" 545) 546 547// PossibleMsiValues returns an array of possible values for the Msi const type. 548func PossibleMsiValues() []Msi { 549 return []Msi{MsiAudit, MsiEnforce, MsiNone} 550} 551 552// Operator enumerates the values for operator. 553type Operator string 554 555const ( 556 // Contains ... 557 Contains Operator = "Contains" 558 // EndsWith ... 559 EndsWith Operator = "EndsWith" 560 // Equals ... 561 Equals Operator = "Equals" 562 // GreaterThan ... 563 GreaterThan Operator = "GreaterThan" 564 // GreaterThanOrEqualTo ... 565 GreaterThanOrEqualTo Operator = "GreaterThanOrEqualTo" 566 // LesserThan ... 567 LesserThan Operator = "LesserThan" 568 // LesserThanOrEqualTo ... 569 LesserThanOrEqualTo Operator = "LesserThanOrEqualTo" 570 // NotEquals ... 571 NotEquals Operator = "NotEquals" 572 // StartsWith ... 573 StartsWith Operator = "StartsWith" 574) 575 576// PossibleOperatorValues returns an array of possible values for the Operator const type. 577func PossibleOperatorValues() []Operator { 578 return []Operator{Contains, EndsWith, Equals, GreaterThan, GreaterThanOrEqualTo, LesserThan, LesserThanOrEqualTo, NotEquals, StartsWith} 579} 580 581// PermissionProperty enumerates the values for permission property. 582type PermissionProperty string 583 584const ( 585 // AWSAmazonSSMAutomationRole The permission provides for EC2 Automation service to execute activities 586 // defined within Automation documents. 587 AWSAmazonSSMAutomationRole PermissionProperty = "AWS::AmazonSSMAutomationRole" 588 // AWSAWSSecurityHubReadOnlyAccess This permission provides read only access to AWS Security Hub resources. 589 AWSAWSSecurityHubReadOnlyAccess PermissionProperty = "AWS::AWSSecurityHubReadOnlyAccess" 590 // AWSSecurityAudit This permission grants access to read security configuration metadata. 591 AWSSecurityAudit PermissionProperty = "AWS::SecurityAudit" 592 // GCPSecurityCenterAdminViewer This permission provides read only access to GCP Security Command Center. 593 GCPSecurityCenterAdminViewer PermissionProperty = "GCP::Security Center Admin Viewer" 594) 595 596// PossiblePermissionPropertyValues returns an array of possible values for the PermissionProperty const type. 597func PossiblePermissionPropertyValues() []PermissionProperty { 598 return []PermissionProperty{AWSAmazonSSMAutomationRole, AWSAWSSecurityHubReadOnlyAccess, AWSSecurityAudit, GCPSecurityCenterAdminViewer} 599} 600 601// PricingTier enumerates the values for pricing tier. 602type PricingTier string 603 604const ( 605 // Free Get free Azure security center experience with basic security features 606 Free PricingTier = "Free" 607 // Standard Get the standard Azure security center experience with advanced security features 608 Standard PricingTier = "Standard" 609) 610 611// PossiblePricingTierValues returns an array of possible values for the PricingTier const type. 612func PossiblePricingTierValues() []PricingTier { 613 return []PricingTier{Free, Standard} 614} 615 616// PropertyType enumerates the values for property type. 617type PropertyType string 618 619const ( 620 // Boolean ... 621 Boolean PropertyType = "Boolean" 622 // Integer ... 623 Integer PropertyType = "Integer" 624 // Number ... 625 Number PropertyType = "Number" 626 // String ... 627 String PropertyType = "String" 628) 629 630// PossiblePropertyTypeValues returns an array of possible values for the PropertyType const type. 631func PossiblePropertyTypeValues() []PropertyType { 632 return []PropertyType{Boolean, Integer, Number, String} 633} 634 635// Protocol enumerates the values for protocol. 636type Protocol string 637 638const ( 639 // All ... 640 All Protocol = "*" 641 // TCP ... 642 TCP Protocol = "TCP" 643 // UDP ... 644 UDP Protocol = "UDP" 645) 646 647// PossibleProtocolValues returns an array of possible values for the Protocol const type. 648func PossibleProtocolValues() []Protocol { 649 return []Protocol{All, TCP, UDP} 650} 651 652// Rank enumerates the values for rank. 653type Rank string 654 655const ( 656 // RankCritical ... 657 RankCritical Rank = "Critical" 658 // RankHigh ... 659 RankHigh Rank = "High" 660 // RankLow ... 661 RankLow Rank = "Low" 662 // RankMedium ... 663 RankMedium Rank = "Medium" 664 // RankNone ... 665 RankNone Rank = "None" 666) 667 668// PossibleRankValues returns an array of possible values for the Rank const type. 669func PossibleRankValues() []Rank { 670 return []Rank{RankCritical, RankHigh, RankLow, RankMedium, RankNone} 671} 672 673// RecommendationAction enumerates the values for recommendation action. 674type RecommendationAction string 675 676const ( 677 // RecommendationActionAdd ... 678 RecommendationActionAdd RecommendationAction = "Add" 679 // RecommendationActionRecommended ... 680 RecommendationActionRecommended RecommendationAction = "Recommended" 681 // RecommendationActionRemove ... 682 RecommendationActionRemove RecommendationAction = "Remove" 683) 684 685// PossibleRecommendationActionValues returns an array of possible values for the RecommendationAction const type. 686func PossibleRecommendationActionValues() []RecommendationAction { 687 return []RecommendationAction{RecommendationActionAdd, RecommendationActionRecommended, RecommendationActionRemove} 688} 689 690// RecommendationAction1 enumerates the values for recommendation action 1. 691type RecommendationAction1 string 692 693const ( 694 // RecommendationAction1Add ... 695 RecommendationAction1Add RecommendationAction1 = "Add" 696 // RecommendationAction1Recommended ... 697 RecommendationAction1Recommended RecommendationAction1 = "Recommended" 698 // RecommendationAction1Remove ... 699 RecommendationAction1Remove RecommendationAction1 = "Remove" 700) 701 702// PossibleRecommendationAction1Values returns an array of possible values for the RecommendationAction1 const type. 703func PossibleRecommendationAction1Values() []RecommendationAction1 { 704 return []RecommendationAction1{RecommendationAction1Add, RecommendationAction1Recommended, RecommendationAction1Remove} 705} 706 707// RecommendationConfigStatus enumerates the values for recommendation config status. 708type RecommendationConfigStatus string 709 710const ( 711 // Disabled ... 712 Disabled RecommendationConfigStatus = "Disabled" 713 // Enabled ... 714 Enabled RecommendationConfigStatus = "Enabled" 715) 716 717// PossibleRecommendationConfigStatusValues returns an array of possible values for the RecommendationConfigStatus const type. 718func PossibleRecommendationConfigStatusValues() []RecommendationConfigStatus { 719 return []RecommendationConfigStatus{Disabled, Enabled} 720} 721 722// RecommendationStatus enumerates the values for recommendation status. 723type RecommendationStatus string 724 725const ( 726 // RecommendationStatusNoStatus ... 727 RecommendationStatusNoStatus RecommendationStatus = "NoStatus" 728 // RecommendationStatusNotAvailable ... 729 RecommendationStatusNotAvailable RecommendationStatus = "NotAvailable" 730 // RecommendationStatusNotRecommended ... 731 RecommendationStatusNotRecommended RecommendationStatus = "NotRecommended" 732 // RecommendationStatusRecommended ... 733 RecommendationStatusRecommended RecommendationStatus = "Recommended" 734) 735 736// PossibleRecommendationStatusValues returns an array of possible values for the RecommendationStatus const type. 737func PossibleRecommendationStatusValues() []RecommendationStatus { 738 return []RecommendationStatus{RecommendationStatusNoStatus, RecommendationStatusNotAvailable, RecommendationStatusNotRecommended, RecommendationStatusRecommended} 739} 740 741// RecommendationType enumerates the values for recommendation type. 742type RecommendationType string 743 744const ( 745 // IoTACRAuthentication Authentication schema used for pull an edge module from an ACR repository does not 746 // use Service Principal Authentication. 747 IoTACRAuthentication RecommendationType = "IoT_ACRAuthentication" 748 // IoTAgentSendsUnutilizedMessages IoT agent message size capacity is currently underutilized, causing an 749 // increase in the number of sent messages. Adjust message intervals for better utilization. 750 IoTAgentSendsUnutilizedMessages RecommendationType = "IoT_AgentSendsUnutilizedMessages" 751 // IoTBaseline Identified security related system configuration issues. 752 IoTBaseline RecommendationType = "IoT_Baseline" 753 // IoTEdgeHubMemOptimize You can optimize Edge Hub memory usage by turning off protocol heads for any 754 // protocols not used by Edge modules in your solution. 755 IoTEdgeHubMemOptimize RecommendationType = "IoT_EdgeHubMemOptimize" 756 // IoTEdgeLoggingOptions Logging is disabled for this edge module. 757 IoTEdgeLoggingOptions RecommendationType = "IoT_EdgeLoggingOptions" 758 // IoTInconsistentModuleSettings A minority within a device security group has inconsistent Edge Module 759 // settings with the rest of their group. 760 IoTInconsistentModuleSettings RecommendationType = "IoT_InconsistentModuleSettings" 761 // IoTInstallAgent Install the Azure Security of Things Agent. 762 IoTInstallAgent RecommendationType = "IoT_InstallAgent" 763 // IoTIPFilterDenyAll IP Filter Configuration should have rules defined for allowed traffic and should deny 764 // all other traffic by default. 765 IoTIPFilterDenyAll RecommendationType = "IoT_IPFilter_DenyAll" 766 // IoTIPFilterPermissiveRule An Allow IP Filter rules source IP range is too large. Overly permissive rules 767 // might expose your IoT hub to malicious intenders. 768 IoTIPFilterPermissiveRule RecommendationType = "IoT_IPFilter_PermissiveRule" 769 // IoTOpenPorts A listening endpoint was found on the device. 770 IoTOpenPorts RecommendationType = "IoT_OpenPorts" 771 // IoTPermissiveFirewallPolicy An Allowed firewall policy was found (INPUT/OUTPUT). The policy should Deny 772 // all traffic by default and define rules to allow necessary communication to/from the device. 773 IoTPermissiveFirewallPolicy RecommendationType = "IoT_PermissiveFirewallPolicy" 774 // IoTPermissiveInputFirewallRules A rule in the firewall has been found that contains a permissive pattern 775 // for a wide range of IP addresses or Ports. 776 IoTPermissiveInputFirewallRules RecommendationType = "IoT_PermissiveInputFirewallRules" 777 // IoTPermissiveOutputFirewallRules A rule in the firewall has been found that contains a permissive 778 // pattern for a wide range of IP addresses or Ports. 779 IoTPermissiveOutputFirewallRules RecommendationType = "IoT_PermissiveOutputFirewallRules" 780 // IoTPrivilegedDockerOptions Edge module is configured to run in privileged mode, with extensive Linux 781 // capabilities or with host-level network access (send/receive data to host machine). 782 IoTPrivilegedDockerOptions RecommendationType = "IoT_PrivilegedDockerOptions" 783 // IoTSharedCredentials Same authentication credentials to the IoT Hub used by multiple devices. This could 784 // indicate an illegitimate device impersonating a legitimate device. It also exposes the risk of device 785 // impersonation by an attacker. 786 IoTSharedCredentials RecommendationType = "IoT_SharedCredentials" 787 // IoTVulnerableTLSCipherSuite Insecure TLS configurations detected. Immediate upgrade recommended. 788 IoTVulnerableTLSCipherSuite RecommendationType = "IoT_VulnerableTLSCipherSuite" 789) 790 791// PossibleRecommendationTypeValues returns an array of possible values for the RecommendationType const type. 792func PossibleRecommendationTypeValues() []RecommendationType { 793 return []RecommendationType{IoTACRAuthentication, IoTAgentSendsUnutilizedMessages, IoTBaseline, IoTEdgeHubMemOptimize, IoTEdgeLoggingOptions, IoTInconsistentModuleSettings, IoTInstallAgent, IoTIPFilterDenyAll, IoTIPFilterPermissiveRule, IoTOpenPorts, IoTPermissiveFirewallPolicy, IoTPermissiveInputFirewallRules, IoTPermissiveOutputFirewallRules, IoTPrivilegedDockerOptions, IoTSharedCredentials, IoTVulnerableTLSCipherSuite} 794} 795 796// ReportedSeverity enumerates the values for reported severity. 797type ReportedSeverity string 798 799const ( 800 // High ... 801 High ReportedSeverity = "High" 802 // Informational ... 803 Informational ReportedSeverity = "Informational" 804 // Low ... 805 Low ReportedSeverity = "Low" 806 // Medium ... 807 Medium ReportedSeverity = "Medium" 808) 809 810// PossibleReportedSeverityValues returns an array of possible values for the ReportedSeverity const type. 811func PossibleReportedSeverityValues() []ReportedSeverity { 812 return []ReportedSeverity{High, Informational, Low, Medium} 813} 814 815// RuleSeverity enumerates the values for rule severity. 816type RuleSeverity string 817 818const ( 819 // RuleSeverityHigh High 820 RuleSeverityHigh RuleSeverity = "High" 821 // RuleSeverityInformational Informational 822 RuleSeverityInformational RuleSeverity = "Informational" 823 // RuleSeverityLow Low 824 RuleSeverityLow RuleSeverity = "Low" 825 // RuleSeverityMedium Medium 826 RuleSeverityMedium RuleSeverity = "Medium" 827 // RuleSeverityObsolete Obsolete 828 RuleSeverityObsolete RuleSeverity = "Obsolete" 829) 830 831// PossibleRuleSeverityValues returns an array of possible values for the RuleSeverity const type. 832func PossibleRuleSeverityValues() []RuleSeverity { 833 return []RuleSeverity{RuleSeverityHigh, RuleSeverityInformational, RuleSeverityLow, RuleSeverityMedium, RuleSeverityObsolete} 834} 835 836// RuleState enumerates the values for rule state. 837type RuleState string 838 839const ( 840 // RuleStateDisabled ... 841 RuleStateDisabled RuleState = "Disabled" 842 // RuleStateEnabled ... 843 RuleStateEnabled RuleState = "Enabled" 844 // RuleStateExpired ... 845 RuleStateExpired RuleState = "Expired" 846) 847 848// PossibleRuleStateValues returns an array of possible values for the RuleState const type. 849func PossibleRuleStateValues() []RuleState { 850 return []RuleState{RuleStateDisabled, RuleStateEnabled, RuleStateExpired} 851} 852 853// RuleStatus enumerates the values for rule status. 854type RuleStatus string 855 856const ( 857 // Finding Finding 858 Finding RuleStatus = "Finding" 859 // InternalError InternalError 860 InternalError RuleStatus = "InternalError" 861 // NonFinding NonFinding 862 NonFinding RuleStatus = "NonFinding" 863) 864 865// PossibleRuleStatusValues returns an array of possible values for the RuleStatus const type. 866func PossibleRuleStatusValues() []RuleStatus { 867 return []RuleStatus{Finding, InternalError, NonFinding} 868} 869 870// RuleType enumerates the values for rule type. 871type RuleType string 872 873const ( 874 // BaselineExpected BaselineExpected 875 BaselineExpected RuleType = "BaselineExpected" 876 // Binary Binary 877 Binary RuleType = "Binary" 878 // NegativeList NegativeList 879 NegativeList RuleType = "NegativeList" 880 // PositiveList PositiveList 881 PositiveList RuleType = "PositiveList" 882) 883 884// PossibleRuleTypeValues returns an array of possible values for the RuleType const type. 885func PossibleRuleTypeValues() []RuleType { 886 return []RuleType{BaselineExpected, Binary, NegativeList, PositiveList} 887} 888 889// RuleTypeBasicCustomAlertRule enumerates the values for rule type basic custom alert rule. 890type RuleTypeBasicCustomAlertRule string 891 892const ( 893 // RuleTypeActiveConnectionsNotInAllowedRange ... 894 RuleTypeActiveConnectionsNotInAllowedRange RuleTypeBasicCustomAlertRule = "ActiveConnectionsNotInAllowedRange" 895 // RuleTypeAllowlistCustomAlertRule ... 896 RuleTypeAllowlistCustomAlertRule RuleTypeBasicCustomAlertRule = "AllowlistCustomAlertRule" 897 // RuleTypeAmqpC2DMessagesNotInAllowedRange ... 898 RuleTypeAmqpC2DMessagesNotInAllowedRange RuleTypeBasicCustomAlertRule = "AmqpC2DMessagesNotInAllowedRange" 899 // RuleTypeAmqpC2DRejectedMessagesNotInAllowedRange ... 900 RuleTypeAmqpC2DRejectedMessagesNotInAllowedRange RuleTypeBasicCustomAlertRule = "AmqpC2DRejectedMessagesNotInAllowedRange" 901 // RuleTypeAmqpD2CMessagesNotInAllowedRange ... 902 RuleTypeAmqpD2CMessagesNotInAllowedRange RuleTypeBasicCustomAlertRule = "AmqpD2CMessagesNotInAllowedRange" 903 // RuleTypeConnectionToIPNotAllowed ... 904 RuleTypeConnectionToIPNotAllowed RuleTypeBasicCustomAlertRule = "ConnectionToIpNotAllowed" 905 // RuleTypeCustomAlertRule ... 906 RuleTypeCustomAlertRule RuleTypeBasicCustomAlertRule = "CustomAlertRule" 907 // RuleTypeDenylistCustomAlertRule ... 908 RuleTypeDenylistCustomAlertRule RuleTypeBasicCustomAlertRule = "DenylistCustomAlertRule" 909 // RuleTypeDirectMethodInvokesNotInAllowedRange ... 910 RuleTypeDirectMethodInvokesNotInAllowedRange RuleTypeBasicCustomAlertRule = "DirectMethodInvokesNotInAllowedRange" 911 // RuleTypeFailedLocalLoginsNotInAllowedRange ... 912 RuleTypeFailedLocalLoginsNotInAllowedRange RuleTypeBasicCustomAlertRule = "FailedLocalLoginsNotInAllowedRange" 913 // RuleTypeFileUploadsNotInAllowedRange ... 914 RuleTypeFileUploadsNotInAllowedRange RuleTypeBasicCustomAlertRule = "FileUploadsNotInAllowedRange" 915 // RuleTypeHTTPC2DMessagesNotInAllowedRange ... 916 RuleTypeHTTPC2DMessagesNotInAllowedRange RuleTypeBasicCustomAlertRule = "HttpC2DMessagesNotInAllowedRange" 917 // RuleTypeHTTPC2DRejectedMessagesNotInAllowedRange ... 918 RuleTypeHTTPC2DRejectedMessagesNotInAllowedRange RuleTypeBasicCustomAlertRule = "HttpC2DRejectedMessagesNotInAllowedRange" 919 // RuleTypeHTTPD2CMessagesNotInAllowedRange ... 920 RuleTypeHTTPD2CMessagesNotInAllowedRange RuleTypeBasicCustomAlertRule = "HttpD2CMessagesNotInAllowedRange" 921 // RuleTypeListCustomAlertRule ... 922 RuleTypeListCustomAlertRule RuleTypeBasicCustomAlertRule = "ListCustomAlertRule" 923 // RuleTypeLocalUserNotAllowed ... 924 RuleTypeLocalUserNotAllowed RuleTypeBasicCustomAlertRule = "LocalUserNotAllowed" 925 // RuleTypeMqttC2DMessagesNotInAllowedRange ... 926 RuleTypeMqttC2DMessagesNotInAllowedRange RuleTypeBasicCustomAlertRule = "MqttC2DMessagesNotInAllowedRange" 927 // RuleTypeMqttC2DRejectedMessagesNotInAllowedRange ... 928 RuleTypeMqttC2DRejectedMessagesNotInAllowedRange RuleTypeBasicCustomAlertRule = "MqttC2DRejectedMessagesNotInAllowedRange" 929 // RuleTypeMqttD2CMessagesNotInAllowedRange ... 930 RuleTypeMqttD2CMessagesNotInAllowedRange RuleTypeBasicCustomAlertRule = "MqttD2CMessagesNotInAllowedRange" 931 // RuleTypeProcessNotAllowed ... 932 RuleTypeProcessNotAllowed RuleTypeBasicCustomAlertRule = "ProcessNotAllowed" 933 // RuleTypeQueuePurgesNotInAllowedRange ... 934 RuleTypeQueuePurgesNotInAllowedRange RuleTypeBasicCustomAlertRule = "QueuePurgesNotInAllowedRange" 935 // RuleTypeThresholdCustomAlertRule ... 936 RuleTypeThresholdCustomAlertRule RuleTypeBasicCustomAlertRule = "ThresholdCustomAlertRule" 937 // RuleTypeTimeWindowCustomAlertRule ... 938 RuleTypeTimeWindowCustomAlertRule RuleTypeBasicCustomAlertRule = "TimeWindowCustomAlertRule" 939 // RuleTypeTwinUpdatesNotInAllowedRange ... 940 RuleTypeTwinUpdatesNotInAllowedRange RuleTypeBasicCustomAlertRule = "TwinUpdatesNotInAllowedRange" 941 // RuleTypeUnauthorizedOperationsNotInAllowedRange ... 942 RuleTypeUnauthorizedOperationsNotInAllowedRange RuleTypeBasicCustomAlertRule = "UnauthorizedOperationsNotInAllowedRange" 943) 944 945// PossibleRuleTypeBasicCustomAlertRuleValues returns an array of possible values for the RuleTypeBasicCustomAlertRule const type. 946func PossibleRuleTypeBasicCustomAlertRuleValues() []RuleTypeBasicCustomAlertRule { 947 return []RuleTypeBasicCustomAlertRule{RuleTypeActiveConnectionsNotInAllowedRange, RuleTypeAllowlistCustomAlertRule, RuleTypeAmqpC2DMessagesNotInAllowedRange, RuleTypeAmqpC2DRejectedMessagesNotInAllowedRange, RuleTypeAmqpD2CMessagesNotInAllowedRange, RuleTypeConnectionToIPNotAllowed, RuleTypeCustomAlertRule, RuleTypeDenylistCustomAlertRule, RuleTypeDirectMethodInvokesNotInAllowedRange, RuleTypeFailedLocalLoginsNotInAllowedRange, RuleTypeFileUploadsNotInAllowedRange, RuleTypeHTTPC2DMessagesNotInAllowedRange, RuleTypeHTTPC2DRejectedMessagesNotInAllowedRange, RuleTypeHTTPD2CMessagesNotInAllowedRange, RuleTypeListCustomAlertRule, RuleTypeLocalUserNotAllowed, RuleTypeMqttC2DMessagesNotInAllowedRange, RuleTypeMqttC2DRejectedMessagesNotInAllowedRange, RuleTypeMqttD2CMessagesNotInAllowedRange, RuleTypeProcessNotAllowed, RuleTypeQueuePurgesNotInAllowedRange, RuleTypeThresholdCustomAlertRule, RuleTypeTimeWindowCustomAlertRule, RuleTypeTwinUpdatesNotInAllowedRange, RuleTypeUnauthorizedOperationsNotInAllowedRange} 948} 949 950// ScanState enumerates the values for scan state. 951type ScanState string 952 953const ( 954 // ScanStateFailed Failed 955 ScanStateFailed ScanState = "Failed" 956 // ScanStateFailedToRun FailedToRun 957 ScanStateFailedToRun ScanState = "FailedToRun" 958 // ScanStateInProgress InProgress 959 ScanStateInProgress ScanState = "InProgress" 960 // ScanStatePassed Passed 961 ScanStatePassed ScanState = "Passed" 962) 963 964// PossibleScanStateValues returns an array of possible values for the ScanState const type. 965func PossibleScanStateValues() []ScanState { 966 return []ScanState{ScanStateFailed, ScanStateFailedToRun, ScanStateInProgress, ScanStatePassed} 967} 968 969// ScanTriggerType enumerates the values for scan trigger type. 970type ScanTriggerType string 971 972const ( 973 // OnDemand OnDemand 974 OnDemand ScanTriggerType = "OnDemand" 975 // Recurring Recurring 976 Recurring ScanTriggerType = "Recurring" 977) 978 979// PossibleScanTriggerTypeValues returns an array of possible values for the ScanTriggerType const type. 980func PossibleScanTriggerTypeValues() []ScanTriggerType { 981 return []ScanTriggerType{OnDemand, Recurring} 982} 983 984// Script enumerates the values for script. 985type Script string 986 987const ( 988 // ScriptAudit ... 989 ScriptAudit Script = "Audit" 990 // ScriptEnforce ... 991 ScriptEnforce Script = "Enforce" 992 // ScriptNone ... 993 ScriptNone Script = "None" 994) 995 996// PossibleScriptValues returns an array of possible values for the Script const type. 997func PossibleScriptValues() []Script { 998 return []Script{ScriptAudit, ScriptEnforce, ScriptNone} 999} 1000 1001// SettingKind enumerates the values for setting kind. 1002type SettingKind string 1003 1004const ( 1005 // SettingKindAlertSuppressionSetting ... 1006 SettingKindAlertSuppressionSetting SettingKind = "AlertSuppressionSetting" 1007 // SettingKindDataExportSetting ... 1008 SettingKindDataExportSetting SettingKind = "DataExportSetting" 1009) 1010 1011// PossibleSettingKindValues returns an array of possible values for the SettingKind const type. 1012func PossibleSettingKindValues() []SettingKind { 1013 return []SettingKind{SettingKindAlertSuppressionSetting, SettingKindDataExportSetting} 1014} 1015 1016// Severity enumerates the values for severity. 1017type Severity string 1018 1019const ( 1020 // SeverityHigh ... 1021 SeverityHigh Severity = "High" 1022 // SeverityLow ... 1023 SeverityLow Severity = "Low" 1024 // SeverityMedium ... 1025 SeverityMedium Severity = "Medium" 1026) 1027 1028// PossibleSeverityValues returns an array of possible values for the Severity const type. 1029func PossibleSeverityValues() []Severity { 1030 return []Severity{SeverityHigh, SeverityLow, SeverityMedium} 1031} 1032 1033// SolutionStatus enumerates the values for solution status. 1034type SolutionStatus string 1035 1036const ( 1037 // SolutionStatusDisabled ... 1038 SolutionStatusDisabled SolutionStatus = "Disabled" 1039 // SolutionStatusEnabled ... 1040 SolutionStatusEnabled SolutionStatus = "Enabled" 1041) 1042 1043// PossibleSolutionStatusValues returns an array of possible values for the SolutionStatus const type. 1044func PossibleSolutionStatusValues() []SolutionStatus { 1045 return []SolutionStatus{SolutionStatusDisabled, SolutionStatusEnabled} 1046} 1047 1048// Source enumerates the values for source. 1049type Source string 1050 1051const ( 1052 // SourceAzure ... 1053 SourceAzure Source = "Azure" 1054 // SourceOnPremise ... 1055 SourceOnPremise Source = "OnPremise" 1056 // SourceOnPremiseSQL ... 1057 SourceOnPremiseSQL Source = "OnPremiseSql" 1058 // SourceResourceDetails ... 1059 SourceResourceDetails Source = "ResourceDetails" 1060) 1061 1062// PossibleSourceValues returns an array of possible values for the Source const type. 1063func PossibleSourceValues() []Source { 1064 return []Source{SourceAzure, SourceOnPremise, SourceOnPremiseSQL, SourceResourceDetails} 1065} 1066 1067// SourceSystem enumerates the values for source system. 1068type SourceSystem string 1069 1070const ( 1071 // SourceSystemAzureAppLocker ... 1072 SourceSystemAzureAppLocker SourceSystem = "Azure_AppLocker" 1073 // SourceSystemAzureAuditD ... 1074 SourceSystemAzureAuditD SourceSystem = "Azure_AuditD" 1075 // SourceSystemNonAzureAppLocker ... 1076 SourceSystemNonAzureAppLocker SourceSystem = "NonAzure_AppLocker" 1077 // SourceSystemNonAzureAuditD ... 1078 SourceSystemNonAzureAuditD SourceSystem = "NonAzure_AuditD" 1079 // SourceSystemNone ... 1080 SourceSystemNone SourceSystem = "None" 1081) 1082 1083// PossibleSourceSystemValues returns an array of possible values for the SourceSystem const type. 1084func PossibleSourceSystemValues() []SourceSystem { 1085 return []SourceSystem{SourceSystemAzureAppLocker, SourceSystemAzureAuditD, SourceSystemNonAzureAppLocker, SourceSystemNonAzureAuditD, SourceSystemNone} 1086} 1087 1088// State enumerates the values for state. 1089type State string 1090 1091const ( 1092 // StateFailed At least one supported regulatory compliance control in the given standard has a state of 1093 // failed 1094 StateFailed State = "Failed" 1095 // StatePassed All supported regulatory compliance controls in the given standard have a passed state 1096 StatePassed State = "Passed" 1097 // StateSkipped All supported regulatory compliance controls in the given standard have a state of skipped 1098 StateSkipped State = "Skipped" 1099 // StateUnsupported No supported regulatory compliance data for the given standard 1100 StateUnsupported State = "Unsupported" 1101) 1102 1103// PossibleStateValues returns an array of possible values for the State const type. 1104func PossibleStateValues() []State { 1105 return []State{StateFailed, StatePassed, StateSkipped, StateUnsupported} 1106} 1107 1108// Status enumerates the values for status. 1109type Status string 1110 1111const ( 1112 // Initiated ... 1113 Initiated Status = "Initiated" 1114 // Revoked ... 1115 Revoked Status = "Revoked" 1116) 1117 1118// PossibleStatusValues returns an array of possible values for the Status const type. 1119func PossibleStatusValues() []Status { 1120 return []Status{Initiated, Revoked} 1121} 1122 1123// StatusReason enumerates the values for status reason. 1124type StatusReason string 1125 1126const ( 1127 // StatusReasonExpired ... 1128 StatusReasonExpired StatusReason = "Expired" 1129 // StatusReasonNewerRequestInitiated ... 1130 StatusReasonNewerRequestInitiated StatusReason = "NewerRequestInitiated" 1131 // StatusReasonUserRequested ... 1132 StatusReasonUserRequested StatusReason = "UserRequested" 1133) 1134 1135// PossibleStatusReasonValues returns an array of possible values for the StatusReason const type. 1136func PossibleStatusReasonValues() []StatusReason { 1137 return []StatusReason{StatusReasonExpired, StatusReasonNewerRequestInitiated, StatusReasonUserRequested} 1138} 1139 1140// SubAssessmentStatusCode enumerates the values for sub assessment status code. 1141type SubAssessmentStatusCode string 1142 1143const ( 1144 // Healthy The resource is healthy 1145 Healthy SubAssessmentStatusCode = "Healthy" 1146 // NotApplicable Assessment for this resource did not happen 1147 NotApplicable SubAssessmentStatusCode = "NotApplicable" 1148 // Unhealthy The resource has a security issue that needs to be addressed 1149 Unhealthy SubAssessmentStatusCode = "Unhealthy" 1150) 1151 1152// PossibleSubAssessmentStatusCodeValues returns an array of possible values for the SubAssessmentStatusCode const type. 1153func PossibleSubAssessmentStatusCodeValues() []SubAssessmentStatusCode { 1154 return []SubAssessmentStatusCode{Healthy, NotApplicable, Unhealthy} 1155} 1156 1157// TransportProtocol enumerates the values for transport protocol. 1158type TransportProtocol string 1159 1160const ( 1161 // TransportProtocolTCP ... 1162 TransportProtocolTCP TransportProtocol = "TCP" 1163 // TransportProtocolUDP ... 1164 TransportProtocolUDP TransportProtocol = "UDP" 1165) 1166 1167// PossibleTransportProtocolValues returns an array of possible values for the TransportProtocol const type. 1168func PossibleTransportProtocolValues() []TransportProtocol { 1169 return []TransportProtocol{TransportProtocolTCP, TransportProtocolUDP} 1170} 1171 1172// Type enumerates the values for type. 1173type Type string 1174 1175const ( 1176 // BinarySignature ... 1177 BinarySignature Type = "BinarySignature" 1178 // File ... 1179 File Type = "File" 1180 // FileHash ... 1181 FileHash Type = "FileHash" 1182 // ProductSignature ... 1183 ProductSignature Type = "ProductSignature" 1184 // PublisherSignature ... 1185 PublisherSignature Type = "PublisherSignature" 1186 // VersionAndAboveSignature ... 1187 VersionAndAboveSignature Type = "VersionAndAboveSignature" 1188) 1189 1190// PossibleTypeValues returns an array of possible values for the Type const type. 1191func PossibleTypeValues() []Type { 1192 return []Type{BinarySignature, File, FileHash, ProductSignature, PublisherSignature, VersionAndAboveSignature} 1193} 1194 1195// ValueType enumerates the values for value type. 1196type ValueType string 1197 1198const ( 1199 // ValueTypeIPCidr An IP range in CIDR format (e.g. '192.168.0.1/8'). 1200 ValueTypeIPCidr ValueType = "IpCidr" 1201 // ValueTypeString Any string value. 1202 ValueTypeString ValueType = "String" 1203) 1204 1205// PossibleValueTypeValues returns an array of possible values for the ValueType const type. 1206func PossibleValueTypeValues() []ValueType { 1207 return []ValueType{ValueTypeIPCidr, ValueTypeString} 1208} 1209