From 62919bf16f18fa313d7739a87d087f73630ab977 Mon Sep 17 00:00:00 2001 From: SDK Automation Date: Tue, 21 Apr 2020 07:45:32 +0000 Subject: [PATCH] Generated from 5d589159392a077e00cc4a788c374a6041d5cb2d remove duplicate APIs from package composite --- .../AdaptiveApplicationControlsOperations.cs | 11 ++- ...ApplicationControlsOperationsExtensions.cs | 6 +- .../IAdaptiveApplicationControlsOperations.cs | 3 +- .../src/Generated/ISecurityCenterClient.cs | 10 +-- .../Generated/Models/AppWhitelistingGroup.cs | 20 ++--- .../Models/AppWhitelistingPutGroupData.cs | 83 ------------------- .../src/Generated/SdkInfo_SecurityCenter.cs | 2 +- .../src/Generated/SecurityCenterClient.cs | 12 +-- 8 files changed, 30 insertions(+), 117 deletions(-) delete mode 100644 sdk/securitycenter/Microsoft.Azure.Management.SecurityCenter/src/Generated/Models/AppWhitelistingPutGroupData.cs diff --git a/sdk/securitycenter/Microsoft.Azure.Management.SecurityCenter/src/Generated/AdaptiveApplicationControlsOperations.cs b/sdk/securitycenter/Microsoft.Azure.Management.SecurityCenter/src/Generated/AdaptiveApplicationControlsOperations.cs index 060e4dda85ce..3938fd49d061 100644 --- a/sdk/securitycenter/Microsoft.Azure.Management.SecurityCenter/src/Generated/AdaptiveApplicationControlsOperations.cs +++ b/sdk/securitycenter/Microsoft.Azure.Management.SecurityCenter/src/Generated/AdaptiveApplicationControlsOperations.cs @@ -93,7 +93,7 @@ internal AdaptiveApplicationControlsOperations(SecurityCenterClient client) throw new ValidationException(ValidationRules.Pattern, "Client.SubscriptionId", "^[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}$"); } } - string apiVersion = "2015-06-01-preview"; + string apiVersion = "2020-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -297,7 +297,7 @@ internal AdaptiveApplicationControlsOperations(SecurityCenterClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "groupName"); } - string apiVersion = "2015-06-01-preview"; + string apiVersion = "2020-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -453,7 +453,6 @@ internal AdaptiveApplicationControlsOperations(SecurityCenterClient client) /// Name of an application control VM/server group /// /// - /// The updated VM/server group data /// /// /// Headers that will be added to request. @@ -476,7 +475,7 @@ internal AdaptiveApplicationControlsOperations(SecurityCenterClient client) /// /// A response object containing the response body and response headers. /// - public async Task> PutWithHttpMessagesAsync(string groupName, AppWhitelistingPutGroupData body, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> PutWithHttpMessagesAsync(string groupName, AppWhitelistingGroup body, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.SubscriptionId == null) { @@ -501,7 +500,7 @@ internal AdaptiveApplicationControlsOperations(SecurityCenterClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "body"); } - string apiVersion = "2015-06-01-preview"; + string apiVersion = "2020-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -702,7 +701,7 @@ internal AdaptiveApplicationControlsOperations(SecurityCenterClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "groupName"); } - string apiVersion = "2015-06-01-preview"; + string apiVersion = "2020-01-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/securitycenter/Microsoft.Azure.Management.SecurityCenter/src/Generated/AdaptiveApplicationControlsOperationsExtensions.cs b/sdk/securitycenter/Microsoft.Azure.Management.SecurityCenter/src/Generated/AdaptiveApplicationControlsOperationsExtensions.cs index 7fc7b6c141e0..73722ded1f71 100644 --- a/sdk/securitycenter/Microsoft.Azure.Management.SecurityCenter/src/Generated/AdaptiveApplicationControlsOperationsExtensions.cs +++ b/sdk/securitycenter/Microsoft.Azure.Management.SecurityCenter/src/Generated/AdaptiveApplicationControlsOperationsExtensions.cs @@ -105,9 +105,8 @@ public static AppWhitelistingGroup Get(this IAdaptiveApplicationControlsOperatio /// Name of an application control VM/server group /// /// - /// The updated VM/server group data /// - public static AppWhitelistingGroup Put(this IAdaptiveApplicationControlsOperations operations, string groupName, AppWhitelistingPutGroupData body) + public static AppWhitelistingGroup Put(this IAdaptiveApplicationControlsOperations operations, string groupName, AppWhitelistingGroup body) { return operations.PutAsync(groupName, body).GetAwaiter().GetResult(); } @@ -122,12 +121,11 @@ public static AppWhitelistingGroup Put(this IAdaptiveApplicationControlsOperatio /// Name of an application control VM/server group /// /// - /// The updated VM/server group data /// /// /// The cancellation token. /// - public static async Task PutAsync(this IAdaptiveApplicationControlsOperations operations, string groupName, AppWhitelistingPutGroupData body, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task PutAsync(this IAdaptiveApplicationControlsOperations operations, string groupName, AppWhitelistingGroup body, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.PutWithHttpMessagesAsync(groupName, body, null, cancellationToken).ConfigureAwait(false)) { diff --git a/sdk/securitycenter/Microsoft.Azure.Management.SecurityCenter/src/Generated/IAdaptiveApplicationControlsOperations.cs b/sdk/securitycenter/Microsoft.Azure.Management.SecurityCenter/src/Generated/IAdaptiveApplicationControlsOperations.cs index 4cbd277b7c35..8b2594822288 100644 --- a/sdk/securitycenter/Microsoft.Azure.Management.SecurityCenter/src/Generated/IAdaptiveApplicationControlsOperations.cs +++ b/sdk/securitycenter/Microsoft.Azure.Management.SecurityCenter/src/Generated/IAdaptiveApplicationControlsOperations.cs @@ -78,7 +78,6 @@ public partial interface IAdaptiveApplicationControlsOperations /// Name of an application control VM/server group /// /// - /// The updated VM/server group data /// /// /// The headers that will be added to request. @@ -95,7 +94,7 @@ public partial interface IAdaptiveApplicationControlsOperations /// /// Thrown when a required parameter is null /// - Task> PutWithHttpMessagesAsync(string groupName, AppWhitelistingPutGroupData body, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> PutWithHttpMessagesAsync(string groupName, AppWhitelistingGroup body, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Delete an application control VM/server group /// diff --git a/sdk/securitycenter/Microsoft.Azure.Management.SecurityCenter/src/Generated/ISecurityCenterClient.cs b/sdk/securitycenter/Microsoft.Azure.Management.SecurityCenter/src/Generated/ISecurityCenterClient.cs index dc8a71503777..dbae800cbaa5 100644 --- a/sdk/securitycenter/Microsoft.Azure.Management.SecurityCenter/src/Generated/ISecurityCenterClient.cs +++ b/sdk/securitycenter/Microsoft.Azure.Management.SecurityCenter/src/Generated/ISecurityCenterClient.cs @@ -131,11 +131,6 @@ public partial interface ISecurityCenterClient : System.IDisposable /// IExternalSecuritySolutionsOperations ExternalSecuritySolutions { get; } - /// - /// Gets the IAdaptiveApplicationControlsOperations. - /// - IAdaptiveApplicationControlsOperations AdaptiveApplicationControls { get; } - /// /// Gets the ILocationsOperations. /// @@ -216,6 +211,11 @@ public partial interface ISecurityCenterClient : System.IDisposable /// IAssessmentsOperations Assessments { get; } + /// + /// Gets the IAdaptiveApplicationControlsOperations. + /// + IAdaptiveApplicationControlsOperations AdaptiveApplicationControls { get; } + /// /// Gets the IAdaptiveNetworkHardeningsOperations. /// diff --git a/sdk/securitycenter/Microsoft.Azure.Management.SecurityCenter/src/Generated/Models/AppWhitelistingGroup.cs b/sdk/securitycenter/Microsoft.Azure.Management.SecurityCenter/src/Generated/Models/AppWhitelistingGroup.cs index 8bd1d03f8661..a30d9870c6c9 100644 --- a/sdk/securitycenter/Microsoft.Azure.Management.SecurityCenter/src/Generated/Models/AppWhitelistingGroup.cs +++ b/sdk/securitycenter/Microsoft.Azure.Management.SecurityCenter/src/Generated/Models/AppWhitelistingGroup.cs @@ -104,30 +104,30 @@ public AppWhitelistingGroup() public ProtectionMode ProtectionMode { get; set; } /// - /// Gets or sets possible values include: 'Configured', - /// 'NotConfigured', 'InProgress', 'Failed', 'NoStatus' + /// Gets possible values include: 'Configured', 'NotConfigured', + /// 'InProgress', 'Failed', 'NoStatus' /// [JsonProperty(PropertyName = "properties.configurationStatus")] - public string ConfigurationStatus { get; set; } + public string ConfigurationStatus { get; private set; } /// - /// Gets or sets possible values include: 'Recommended', - /// 'NotRecommended', 'NotAvailable', 'NoStatus' + /// Gets possible values include: 'Recommended', 'NotRecommended', + /// 'NotAvailable', 'NoStatus' /// [JsonProperty(PropertyName = "properties.recommendationStatus")] - public string RecommendationStatus { get; set; } + public string RecommendationStatus { get; private set; } /// /// [JsonProperty(PropertyName = "properties.issues")] - public IList Issues { get; set; } + public IList Issues { get; private set; } /// - /// Gets or sets possible values include: 'Azure_AppLocker', - /// 'Azure_AuditD', 'NonAzure_AppLocker', 'NonAzure_AuditD', 'None' + /// Gets possible values include: 'Azure_AppLocker', 'Azure_AuditD', + /// 'NonAzure_AppLocker', 'NonAzure_AuditD', 'None' /// [JsonProperty(PropertyName = "properties.sourceSystem")] - public string SourceSystem { get; set; } + public string SourceSystem { get; private set; } /// /// diff --git a/sdk/securitycenter/Microsoft.Azure.Management.SecurityCenter/src/Generated/Models/AppWhitelistingPutGroupData.cs b/sdk/securitycenter/Microsoft.Azure.Management.SecurityCenter/src/Generated/Models/AppWhitelistingPutGroupData.cs deleted file mode 100644 index bd1f357bfb40..000000000000 --- a/sdk/securitycenter/Microsoft.Azure.Management.SecurityCenter/src/Generated/Models/AppWhitelistingPutGroupData.cs +++ /dev/null @@ -1,83 +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.Security.Models -{ - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// The altered data of the recommended VM/server group policy - /// - public partial class AppWhitelistingPutGroupData - { - /// - /// Initializes a new instance of the AppWhitelistingPutGroupData - /// class. - /// - public AppWhitelistingPutGroupData() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the AppWhitelistingPutGroupData - /// class. - /// - /// The enforcement mode of the group. - /// Can also be defined per collection type by using ProtectionMode. - /// Possible values include: 'Audit', 'Enforce', 'None' - /// The protection mode of the group per - /// collection type. Can also be defined for all collection types by - /// using EnforcementMode - public AppWhitelistingPutGroupData(string enforcementMode = default(string), ProtectionMode protectionMode = default(ProtectionMode), IList vmRecommendations = default(IList), IList pathRecommendations = default(IList)) - { - EnforcementMode = enforcementMode; - ProtectionMode = protectionMode; - VmRecommendations = vmRecommendations; - PathRecommendations = pathRecommendations; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the enforcement mode of the group. Can also be defined - /// per collection type by using ProtectionMode. Possible values - /// include: 'Audit', 'Enforce', 'None' - /// - [JsonProperty(PropertyName = "enforcementMode")] - public string EnforcementMode { get; set; } - - /// - /// Gets or sets the protection mode of the group per collection type. - /// Can also be defined for all collection types by using - /// EnforcementMode - /// - [JsonProperty(PropertyName = "protectionMode")] - public ProtectionMode ProtectionMode { get; set; } - - /// - /// - [JsonProperty(PropertyName = "vmRecommendations")] - public IList VmRecommendations { get; set; } - - /// - /// - [JsonProperty(PropertyName = "pathRecommendations")] - public IList PathRecommendations { get; set; } - - } -} diff --git a/sdk/securitycenter/Microsoft.Azure.Management.SecurityCenter/src/Generated/SdkInfo_SecurityCenter.cs b/sdk/securitycenter/Microsoft.Azure.Management.SecurityCenter/src/Generated/SdkInfo_SecurityCenter.cs index 965f2df3b516..fd71e058653e 100644 --- a/sdk/securitycenter/Microsoft.Azure.Management.SecurityCenter/src/Generated/SdkInfo_SecurityCenter.cs +++ b/sdk/securitycenter/Microsoft.Azure.Management.SecurityCenter/src/Generated/SdkInfo_SecurityCenter.cs @@ -19,7 +19,7 @@ public static IEnumerable> ApiInfo_SecurityCenter { return new Tuple[] { - new Tuple("Security", "AdaptiveApplicationControls", "2015-06-01-preview"), + new Tuple("Security", "AdaptiveApplicationControls", "2020-01-01"), new Tuple("Security", "AdaptiveNetworkHardenings", "2020-01-01"), new Tuple("Security", "AdvancedThreatProtection", "2019-01-01"), new Tuple("Security", "Alerts", "2019-01-01"), diff --git a/sdk/securitycenter/Microsoft.Azure.Management.SecurityCenter/src/Generated/SecurityCenterClient.cs b/sdk/securitycenter/Microsoft.Azure.Management.SecurityCenter/src/Generated/SecurityCenterClient.cs index 8085df8eaf38..7bbde09ad29a 100644 --- a/sdk/securitycenter/Microsoft.Azure.Management.SecurityCenter/src/Generated/SecurityCenterClient.cs +++ b/sdk/securitycenter/Microsoft.Azure.Management.SecurityCenter/src/Generated/SecurityCenterClient.cs @@ -136,11 +136,6 @@ public partial class SecurityCenterClient : ServiceClient, /// public virtual IExternalSecuritySolutionsOperations ExternalSecuritySolutions { get; private set; } - /// - /// Gets the IAdaptiveApplicationControlsOperations. - /// - public virtual IAdaptiveApplicationControlsOperations AdaptiveApplicationControls { get; private set; } - /// /// Gets the ILocationsOperations. /// @@ -221,6 +216,11 @@ public partial class SecurityCenterClient : ServiceClient, /// public virtual IAssessmentsOperations Assessments { get; private set; } + /// + /// Gets the IAdaptiveApplicationControlsOperations. + /// + public virtual IAdaptiveApplicationControlsOperations AdaptiveApplicationControls { get; private set; } + /// /// Gets the IAdaptiveNetworkHardeningsOperations. /// @@ -494,7 +494,6 @@ private void Initialize() IotSecuritySolutionsAnalyticsRecommendation = new IotSecuritySolutionsAnalyticsRecommendationOperations(this); DiscoveredSecuritySolutions = new DiscoveredSecuritySolutionsOperations(this); ExternalSecuritySolutions = new ExternalSecuritySolutionsOperations(this); - AdaptiveApplicationControls = new AdaptiveApplicationControlsOperations(this); Locations = new LocationsOperations(this); Operations = new Operations(this); Tasks = new TasksOperations(this); @@ -511,6 +510,7 @@ private void Initialize() Automations = new AutomationsOperations(this); AssessmentsMetadata = new AssessmentsMetadataOperations(this); Assessments = new AssessmentsOperations(this); + AdaptiveApplicationControls = new AdaptiveApplicationControlsOperations(this); AdaptiveNetworkHardenings = new AdaptiveNetworkHardeningsOperations(this); AllowedConnections = new AllowedConnectionsOperations(this); Topology = new TopologyOperations(this);