From 6b0911adadf421867720eb282977b39ef28eb960 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Tue, 22 Jan 2019 13:49:46 -0800 Subject: [PATCH 1/2] Generated from 5d46282b1371de397d3d60083b6485ff73332f93 (#3920) add comma --- .../mgmt/2017-08-01-preview/security/workspacesettings.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/services/preview/security/mgmt/2017-08-01-preview/security/workspacesettings.go b/services/preview/security/mgmt/2017-08-01-preview/security/workspacesettings.go index 26cfb662aee3..5bb6ae1ca0e8 100644 --- a/services/preview/security/mgmt/2017-08-01-preview/security/workspacesettings.go +++ b/services/preview/security/mgmt/2017-08-01-preview/security/workspacesettings.go @@ -210,7 +210,8 @@ func (client WorkspaceSettingsClient) DeleteResponder(resp *http.Response) (resu return } -// Get settings about where we should store your security data and logs +// Get settings about where we should store your security data and logs. If the result is empty, it means that no +// custom-workspace configuration was set // Parameters: // workspaceSettingName - name of the security setting func (client WorkspaceSettingsClient) Get(ctx context.Context, workspaceSettingName string) (result WorkspaceSetting, err error) { @@ -291,7 +292,8 @@ func (client WorkspaceSettingsClient) GetResponder(resp *http.Response) (result return } -// List settings about where we should store your security data and logs +// List settings about where we should store your security data and logs. If the result is empty, it means that no +// custom-workspace configuration was set func (client WorkspaceSettingsClient) List(ctx context.Context) (result WorkspaceSettingListPage, err error) { if tracing.IsEnabled() { ctx = tracing.StartSpan(ctx, fqdn+"/WorkspaceSettingsClient.List") From ba8bbea8aaba7ce4b2d39fb0cd841a06b3a7330a Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Fri, 1 Feb 2019 11:09:05 -0800 Subject: [PATCH 2/2] Generated from f862d11a6a08b6c7243a79c2996690518313ac9a (#3987) Rollback readme change --- .../preview/security/mgmt/security/models.go | 12 ++++++++ .../2017-08-01-preview/security/models.go | 30 +++++++++++++++++-- 2 files changed, 39 insertions(+), 3 deletions(-) diff --git a/profiles/preview/preview/security/mgmt/security/models.go b/profiles/preview/preview/security/mgmt/security/models.go index 95056d678d9a..041691e44a23 100644 --- a/profiles/preview/preview/security/mgmt/security/models.go +++ b/profiles/preview/preview/security/mgmt/security/models.go @@ -106,6 +106,15 @@ const ( UDP Protocol = original.UDP ) +type ReportedSeverity = original.ReportedSeverity + +const ( + High ReportedSeverity = original.High + Information ReportedSeverity = original.Information + Low ReportedSeverity = original.Low + Silent ReportedSeverity = original.Silent +) + type SettingKind = original.SettingKind const ( @@ -500,6 +509,9 @@ func PossiblePricingTierValues() []PricingTier { func PossibleProtocolValues() []Protocol { return original.PossibleProtocolValues() } +func PossibleReportedSeverityValues() []ReportedSeverity { + return original.PossibleReportedSeverityValues() +} func PossibleSettingKindValues() []SettingKind { return original.PossibleSettingKindValues() } diff --git a/services/preview/security/mgmt/2017-08-01-preview/security/models.go b/services/preview/security/mgmt/2017-08-01-preview/security/models.go index caecc3f08e35..e1f8a99366d0 100644 --- a/services/preview/security/mgmt/2017-08-01-preview/security/models.go +++ b/services/preview/security/mgmt/2017-08-01-preview/security/models.go @@ -195,6 +195,25 @@ func PossibleProtocolValues() []Protocol { return []Protocol{All, TCP, UDP} } +// ReportedSeverity enumerates the values for reported severity. +type ReportedSeverity string + +const ( + // High ... + High ReportedSeverity = "High" + // Information ... + Information ReportedSeverity = "Information" + // Low ... + Low ReportedSeverity = "Low" + // Silent ... + Silent ReportedSeverity = "Silent" +) + +// PossibleReportedSeverityValues returns an array of possible values for the ReportedSeverity const type. +func PossibleReportedSeverityValues() []ReportedSeverity { + return []ReportedSeverity{High, Information, Low, Silent} +} + // SettingKind enumerates the values for setting kind. type SettingKind string @@ -720,8 +739,8 @@ type AlertProperties struct { RemediationSteps *string `json:"remediationSteps,omitempty"` // ActionTaken - The action that was taken as a response to the alert (Active, Blocked etc.) ActionTaken *string `json:"actionTaken,omitempty"` - // ReportedSeverity - Estimated severity of this alert - ReportedSeverity *string `json:"reportedSeverity,omitempty"` + // ReportedSeverity - Estimated severity of this alert. Possible values include: 'Silent', 'Information', 'Low', 'High' + ReportedSeverity ReportedSeverity `json:"reportedSeverity,omitempty"` // CompromisedEntity - The entity that the incident happened on CompromisedEntity *string `json:"compromisedEntity,omitempty"` // AssociatedResource - Azure resource ID of the associated resource @@ -731,6 +750,8 @@ type AlertProperties struct { SystemSource *string `json:"systemSource,omitempty"` // CanBeInvestigated - Whether this alert can be investigated with Azure Security Center CanBeInvestigated *bool `json:"canBeInvestigated,omitempty"` + // IsIncident - Whether this alert is for incident type or not (otherwise - single alert) + IsIncident *bool `json:"isIncident,omitempty"` // Entities - objects that are related to this alerts Entities *[]AlertEntity `json:"entities,omitempty"` // ConfidenceScore - level of confidence we have on the alert @@ -775,7 +796,7 @@ func (ap AlertProperties) MarshalJSON() ([]byte, error) { if ap.ActionTaken != nil { objectMap["actionTaken"] = ap.ActionTaken } - if ap.ReportedSeverity != nil { + if ap.ReportedSeverity != "" { objectMap["reportedSeverity"] = ap.ReportedSeverity } if ap.CompromisedEntity != nil { @@ -793,6 +814,9 @@ func (ap AlertProperties) MarshalJSON() ([]byte, error) { if ap.CanBeInvestigated != nil { objectMap["canBeInvestigated"] = ap.CanBeInvestigated } + if ap.IsIncident != nil { + objectMap["isIncident"] = ap.IsIncident + } if ap.Entities != nil { objectMap["entities"] = ap.Entities }