From 7f1bf4c55f8aa5cbcf77b5328c511a363b860fcc Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Tue, 5 Oct 2021 01:18:14 +0000 Subject: [PATCH] CodeGen from PR 16280 in Azure/azure-rest-api-specs Merge 9c46ef4ef5202a44602788cfb902308e82e8c2a9 into 6788122d366f19ccb65f020dab8a81c5d4a2ab81 --- .../src/Generated/ISecurityInsightsClient.cs | 18 ++-- .../src/Generated/Models/CaseSeverity.cs | 40 --------- .../src/Generated/Models/IncidentInfo.cs | 5 +- .../src/Generated/Models/LicenseStatus.cs | 22 ----- .../src/Generated/Models/Operation.cs | 10 ++- .../src/Generated/Models/SettingKind.cs | 22 ----- .../src/Generated/Models/Settings.cs | 47 ----------- .../src/Generated/Models/StatusInMcas.cs | 22 ----- .../src/Generated/Models/ToggleSettings.cs | 60 ------------- .../src/Generated/Models/UebaSettings.cs | 84 ------------------- .../src/Generated/SdkInfo_SecurityInsights.cs | 11 --- .../src/Generated/SecurityInsightsClient.cs | 22 +++-- 12 files changed, 30 insertions(+), 333 deletions(-) delete mode 100644 sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/Models/CaseSeverity.cs delete mode 100644 sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/Models/LicenseStatus.cs delete mode 100644 sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/Models/SettingKind.cs delete mode 100644 sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/Models/Settings.cs delete mode 100644 sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/Models/StatusInMcas.cs delete mode 100644 sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/Models/ToggleSettings.cs delete mode 100644 sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/Models/UebaSettings.cs diff --git a/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/ISecurityInsightsClient.cs b/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/ISecurityInsightsClient.cs index 5b212079b6286..6ea69098d011d 100644 --- a/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/ISecurityInsightsClient.cs +++ b/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/ISecurityInsightsClient.cs @@ -42,14 +42,14 @@ public partial interface ISecurityInsightsClient : System.IDisposable ServiceClientCredentials Credentials { get; } /// - /// API version for the operation + /// Azure subscription ID /// - string ApiVersion { get; } + string SubscriptionId { get; set; } /// - /// Azure subscription ID + /// API version for the operation /// - string SubscriptionId { get; set; } + string ApiVersion { get; } /// /// The preferred language for the response. @@ -70,11 +70,6 @@ public partial interface ISecurityInsightsClient : System.IDisposable bool? GenerateClientRequestId { get; set; } - /// - /// Gets the IOperations. - /// - IOperations Operations { get; } - /// /// Gets the IAlertRulesOperations. /// @@ -100,6 +95,11 @@ public partial interface ISecurityInsightsClient : System.IDisposable /// IDataConnectorsOperations DataConnectors { get; } + /// + /// Gets the IOperations. + /// + IOperations Operations { get; } + /// /// Gets the IIncidentsOperations. /// diff --git a/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/Models/CaseSeverity.cs b/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/Models/CaseSeverity.cs deleted file mode 100644 index c6780bb5236a3..0000000000000 --- a/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/Models/CaseSeverity.cs +++ /dev/null @@ -1,40 +0,0 @@ -// -// 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. -// - -namespace Microsoft.Azure.Management.SecurityInsights.Models -{ - - /// - /// Defines values for CaseSeverity. - /// - public static class CaseSeverity - { - /// - /// Critical severity - /// - public const string Critical = "Critical"; - /// - /// High severity - /// - public const string High = "High"; - /// - /// Medium severity - /// - public const string Medium = "Medium"; - /// - /// Low severity - /// - public const string Low = "Low"; - /// - /// Informational severity - /// - public const string Informational = "Informational"; - } -} diff --git a/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/Models/IncidentInfo.cs b/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/Models/IncidentInfo.cs index ad9298165dfde..4bff183b19a84 100644 --- a/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/Models/IncidentInfo.cs +++ b/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/Models/IncidentInfo.cs @@ -31,8 +31,7 @@ public IncidentInfo() /// /// Incident Id /// The severity of the incident. Possible - /// values include: 'Critical', 'High', 'Medium', 'Low', - /// 'Informational' + /// values include: 'High', 'Medium', 'Low', 'Informational' /// The title of the incident /// Relation Name public IncidentInfo(string incidentId = default(string), string severity = default(string), string title = default(string), string relationName = default(string)) @@ -57,7 +56,7 @@ public IncidentInfo() /// /// Gets or sets the severity of the incident. Possible values include: - /// 'Critical', 'High', 'Medium', 'Low', 'Informational' + /// 'High', 'Medium', 'Low', 'Informational' /// [JsonProperty(PropertyName = "severity")] public string Severity { get; set; } diff --git a/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/Models/LicenseStatus.cs b/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/Models/LicenseStatus.cs deleted file mode 100644 index 5791bdcbd9b92..0000000000000 --- a/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/Models/LicenseStatus.cs +++ /dev/null @@ -1,22 +0,0 @@ -// -// 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. -// - -namespace Microsoft.Azure.Management.SecurityInsights.Models -{ - - /// - /// Defines values for LicenseStatus. - /// - public static class LicenseStatus - { - public const string Enabled = "Enabled"; - public const string Disabled = "Disabled"; - } -} diff --git a/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/Models/Operation.cs b/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/Models/Operation.cs index c5d3af3929eb8..31a7102091967 100644 --- a/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/Models/Operation.cs +++ b/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/Models/Operation.cs @@ -31,10 +31,12 @@ public Operation() /// /// Properties of the operation /// Name of the operation - public Operation(OperationDisplay display = default(OperationDisplay), string name = default(string)) + /// The origin of the operation + public Operation(OperationDisplay display = default(OperationDisplay), string name = default(string), string origin = default(string)) { Display = display; Name = name; + Origin = origin; CustomInit(); } @@ -55,5 +57,11 @@ public Operation() [JsonProperty(PropertyName = "name")] public string Name { get; set; } + /// + /// Gets or sets the origin of the operation + /// + [JsonProperty(PropertyName = "origin")] + public string Origin { get; set; } + } } diff --git a/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/Models/SettingKind.cs b/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/Models/SettingKind.cs deleted file mode 100644 index 663b0f801f7f0..0000000000000 --- a/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/Models/SettingKind.cs +++ /dev/null @@ -1,22 +0,0 @@ -// -// 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. -// - -namespace Microsoft.Azure.Management.SecurityInsights.Models -{ - - /// - /// Defines values for SettingKind. - /// - public static class SettingKind - { - public const string UebaSettings = "UebaSettings"; - public const string ToggleSettings = "ToggleSettings"; - } -} diff --git a/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/Models/Settings.cs b/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/Models/Settings.cs deleted file mode 100644 index 8c278ec9b2f50..0000000000000 --- a/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/Models/Settings.cs +++ /dev/null @@ -1,47 +0,0 @@ -// -// 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. -// - -namespace Microsoft.Azure.Management.SecurityInsights.Models -{ - using System.Linq; - - /// - /// The Settings. - /// - public partial class Settings : ResourceWithEtag - { - /// - /// Initializes a new instance of the Settings class. - /// - public Settings() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the Settings class. - /// - /// Azure resource Id - /// Azure resource name - /// Azure resource type - /// Etag of the azure resource - public Settings(string id = default(string), string name = default(string), string type = default(string), string etag = default(string)) - : base(id, name, type, etag) - { - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - } -} diff --git a/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/Models/StatusInMcas.cs b/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/Models/StatusInMcas.cs deleted file mode 100644 index 397794960d901..0000000000000 --- a/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/Models/StatusInMcas.cs +++ /dev/null @@ -1,22 +0,0 @@ -// -// 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. -// - -namespace Microsoft.Azure.Management.SecurityInsights.Models -{ - - /// - /// Defines values for StatusInMcas. - /// - public static class StatusInMcas - { - public const string Enabled = "Enabled"; - public const string Disabled = "Disabled"; - } -} diff --git a/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/Models/ToggleSettings.cs b/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/Models/ToggleSettings.cs deleted file mode 100644 index 076630967b68c..0000000000000 --- a/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/Models/ToggleSettings.cs +++ /dev/null @@ -1,60 +0,0 @@ -// -// 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. -// - -namespace Microsoft.Azure.Management.SecurityInsights.Models -{ - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Linq; - - /// - /// Settings with single toggle. - /// - [Rest.Serialization.JsonTransformation] - public partial class ToggleSettings : Settings - { - /// - /// Initializes a new instance of the ToggleSettings class. - /// - public ToggleSettings() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the ToggleSettings class. - /// - /// Azure resource Id - /// Azure resource name - /// Azure resource type - /// Etag of the azure resource - /// Determines whether the setting is enable or - /// disabled. - public ToggleSettings(string id = default(string), string name = default(string), string type = default(string), string etag = default(string), bool? isEnabled = default(bool?)) - : base(id, name, type, etag) - { - IsEnabled = isEnabled; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets determines whether the setting is enable or disabled. - /// - [JsonProperty(PropertyName = "properties.isEnabled")] - public bool? IsEnabled { get; set; } - - } -} diff --git a/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/Models/UebaSettings.cs b/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/Models/UebaSettings.cs deleted file mode 100644 index 840992edae715..0000000000000 --- a/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/Models/UebaSettings.cs +++ /dev/null @@ -1,84 +0,0 @@ -// -// 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. -// - -namespace Microsoft.Azure.Management.SecurityInsights.Models -{ - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Linq; - - /// - /// Represents settings for User and Entity Behavior Analytics enablement. - /// - [Rest.Serialization.JsonTransformation] - public partial class UebaSettings : Settings - { - /// - /// Initializes a new instance of the UebaSettings class. - /// - public UebaSettings() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the UebaSettings class. - /// - /// Azure resource Id - /// Azure resource name - /// Azure resource type - /// Etag of the azure resource - /// Determines whether the tenant has - /// ATP (Advanced Threat Protection) license. Possible values include: - /// 'Enabled', 'Disabled' - /// Determines whether User and Entity Behavior - /// Analytics is enabled for this workspace. - /// Determines whether User and Entity - /// Behavior Analytics is enabled from MCAS (Microsoft Cloud App - /// Security). Possible values include: 'Enabled', 'Disabled' - public UebaSettings(string id = default(string), string name = default(string), string type = default(string), string etag = default(string), string atpLicenseStatus = default(string), bool? isEnabled = default(bool?), string statusInMcas = default(string)) - : base(id, name, type, etag) - { - AtpLicenseStatus = atpLicenseStatus; - IsEnabled = isEnabled; - StatusInMcas = statusInMcas; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets determines whether the tenant has ATP (Advanced Threat - /// Protection) license. Possible values include: 'Enabled', 'Disabled' - /// - [JsonProperty(PropertyName = "properties.atpLicenseStatus")] - public string AtpLicenseStatus { get; private set; } - - /// - /// Gets or sets determines whether User and Entity Behavior Analytics - /// is enabled for this workspace. - /// - [JsonProperty(PropertyName = "properties.isEnabled")] - public bool? IsEnabled { get; set; } - - /// - /// Gets determines whether User and Entity Behavior Analytics is - /// enabled from MCAS (Microsoft Cloud App Security). Possible values - /// include: 'Enabled', 'Disabled' - /// - [JsonProperty(PropertyName = "properties.statusInMcas")] - public string StatusInMcas { get; private set; } - - } -} diff --git a/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/SdkInfo_SecurityInsights.cs b/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/SdkInfo_SecurityInsights.cs index 6a833696e11f7..64ffa0f18fb74 100644 --- a/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/SdkInfo_SecurityInsights.cs +++ b/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/SdkInfo_SecurityInsights.cs @@ -30,16 +30,5 @@ public static IEnumerable> ApiInfo_SecurityInsight }.AsEnumerable(); } } - // BEGIN: Code Generation Metadata Section - public static readonly String AutoRestVersion = "v2"; - public static readonly String AutoRestBootStrapperVersion = "autorest@2.0.4413"; - public static readonly String AutoRestCmdExecuted = "cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/securityinsights/resource-manager/readme.md --csharp --version=v2 --reflect-api-versions --csharp-sdks-folder=E:\\azure-sdk-for-net\\sdk"; - public static readonly String GithubForkName = "Azure"; - public static readonly String GithubBranchName = "master"; - public static readonly String GithubCommidId = "fb680afc380cccb44a59ed277232ad4224ac809b"; - public static readonly String CodeGenerationErrors = ""; - public static readonly String GithubRepoName = "azure-rest-api-specs"; - // END: Code Generation Metadata Section } } - diff --git a/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/SecurityInsightsClient.cs b/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/SecurityInsightsClient.cs index 1b02da754ef26..2db4c0d54a900 100644 --- a/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/SecurityInsightsClient.cs +++ b/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/SecurityInsightsClient.cs @@ -48,14 +48,14 @@ public partial class SecurityInsightsClient : ServiceClient - /// API version for the operation + /// Azure subscription ID /// - public string ApiVersion { get; private set; } + public string SubscriptionId { get; set; } /// - /// Azure subscription ID + /// API version for the operation /// - public string SubscriptionId { get; set; } + public string ApiVersion { get; private set; } /// /// The preferred language for the response. @@ -75,11 +75,6 @@ public partial class SecurityInsightsClient : ServiceClient public bool? GenerateClientRequestId { get; set; } - /// - /// Gets the IOperations. - /// - public virtual IOperations Operations { get; private set; } - /// /// Gets the IAlertRulesOperations. /// @@ -105,6 +100,11 @@ public partial class SecurityInsightsClient : ServiceClient public virtual IDataConnectorsOperations DataConnectors { get; private set; } + /// + /// Gets the IOperations. + /// + public virtual IOperations Operations { get; private set; } + /// /// Gets the IIncidentsOperations. /// @@ -356,12 +356,12 @@ public SecurityInsightsClient(System.Uri baseUri, ServiceClientCredentials crede /// private void Initialize() { - Operations = new Operations(this); AlertRules = new AlertRulesOperations(this); Actions = new ActionsOperations(this); AlertRuleTemplates = new AlertRuleTemplatesOperations(this); Bookmarks = new BookmarksOperations(this); DataConnectors = new DataConnectorsOperations(this); + Operations = new Operations(this); Incidents = new IncidentsOperations(this); IncidentComments = new IncidentCommentsOperations(this); BaseUri = new System.Uri("https://management.azure.com"); @@ -401,8 +401,6 @@ private void Initialize() DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("kind")); SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("kind")); DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("kind")); - SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("kind")); - DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("kind")); CustomInitialize(); DeserializationSettings.Converters.Add(new TransformationJsonConverter()); DeserializationSettings.Converters.Add(new CloudErrorJsonConverter());