From 3fd64dcf4449f604152e93b10eae11723b27dfc1 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Tue, 5 Apr 2022 17:45:40 +0000 Subject: [PATCH] CodeGen from PR 18555 in Azure/azure-rest-api-specs Merge 5b7cf096c338b1919e962056c21ecd73c7806502 into d521635d9d9543c0dab932d9d4b7911dcee1de3b --- .../src/Generated/Models/EntityAnalytics.cs | 16 ++-- .../src/Generated/Models/EntityProviders.cs | 22 ++++++ .../src/Generated/Models/IncidentOwnerInfo.cs | 6 +- .../src/Generated/Models/OauthDetail.cs | 69 +++++++++++++++++ .../Models/RepositoryResourceInfo.cs | 11 ++- .../src/Generated/Models/WatchlistItem.cs | 8 +- .../src/Generated/SdkInfo_SecurityInsights.cs | 75 ++++++++----------- .../src/Generated/SecurityInsights.cs | 2 +- 8 files changed, 151 insertions(+), 58 deletions(-) create mode 100644 sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/Models/EntityProviders.cs create mode 100644 sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/Models/OauthDetail.cs diff --git a/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/Models/EntityAnalytics.cs b/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/Models/EntityAnalytics.cs index 9cd4307b7aad..4b98f6bf4493 100644 --- a/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/Models/EntityAnalytics.cs +++ b/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/Models/EntityAnalytics.cs @@ -13,6 +13,8 @@ namespace Microsoft.Azure.Management.SecurityInsights.Models using Microsoft.Rest; using Microsoft.Rest.Serialization; using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; using System.Linq; /// @@ -41,12 +43,12 @@ public EntityAnalytics() /// Azure Resource Manager metadata containing /// createdBy and modifiedBy information. /// Etag of the azure resource - /// Determines whether the setting is enable or - /// disabled. - public EntityAnalytics(string id = default(string), string name = default(string), string type = default(string), SystemData systemData = default(SystemData), string etag = default(string), bool? isEnabled = default(bool?)) + /// The relevant entity providers that + /// are synced + public EntityAnalytics(string id = default(string), string name = default(string), string type = default(string), SystemData systemData = default(SystemData), string etag = default(string), IList entityProviders = default(IList)) : base(id, name, type, systemData, etag) { - IsEnabled = isEnabled; + EntityProviders = entityProviders; CustomInit(); } @@ -56,10 +58,10 @@ public EntityAnalytics() partial void CustomInit(); /// - /// Gets determines whether the setting is enable or disabled. + /// Gets or sets the relevant entity providers that are synced /// - [JsonProperty(PropertyName = "properties.isEnabled")] - public bool? IsEnabled { get; private set; } + [JsonProperty(PropertyName = "properties.entityProviders")] + public IList EntityProviders { get; set; } } } diff --git a/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/Models/EntityProviders.cs b/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/Models/EntityProviders.cs new file mode 100644 index 000000000000..56b3cb933866 --- /dev/null +++ b/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/Models/EntityProviders.cs @@ -0,0 +1,22 @@ +// +// 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 EntityProviders. + /// + public static class EntityProviders + { + public const string ActiveDirectory = "ActiveDirectory"; + public const string AzureActiveDirectory = "AzureActiveDirectory"; + } +} diff --git a/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/Models/IncidentOwnerInfo.cs b/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/Models/IncidentOwnerInfo.cs index 7f0e76a11915..cf1264ef3ea6 100644 --- a/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/Models/IncidentOwnerInfo.cs +++ b/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/Models/IncidentOwnerInfo.cs @@ -81,11 +81,11 @@ public IncidentOwnerInfo() public string UserPrincipalName { get; set; } /// - /// Gets the type of the owner the incident is assigned to. Possible - /// values include: 'Unknown', 'User', 'Group' + /// Gets or sets the type of the owner the incident is assigned to. + /// Possible values include: 'Unknown', 'User', 'Group' /// [JsonProperty(PropertyName = "ownerType")] - public string OwnerType { get; private set; } + public string OwnerType { get; set; } } } diff --git a/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/Models/OauthDetail.cs b/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/Models/OauthDetail.cs new file mode 100644 index 000000000000..e20bdd648217 --- /dev/null +++ b/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/Models/OauthDetail.cs @@ -0,0 +1,69 @@ +// +// 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 Newtonsoft.Json; + using System.Linq; + + /// + /// Resources created in GitHub repository. + /// + public partial class OauthDetail + { + /// + /// Initializes a new instance of the OauthDetail class. + /// + public OauthDetail() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the OauthDetail class. + /// + /// Repository access authentication + /// code. + /// Repository access authentication state. + /// Repository access authentication client + /// id. + public OauthDetail(string accessCode = default(string), string state = default(string), string clientId = default(string)) + { + AccessCode = accessCode; + State = state; + ClientId = clientId; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets repository access authentication code. + /// + [JsonProperty(PropertyName = "accessCode")] + public string AccessCode { get; set; } + + /// + /// Gets or sets repository access authentication state. + /// + [JsonProperty(PropertyName = "state")] + public string State { get; set; } + + /// + /// Gets or sets repository access authentication client id. + /// + [JsonProperty(PropertyName = "clientId")] + public string ClientId { get; set; } + + } +} diff --git a/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/Models/RepositoryResourceInfo.cs b/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/Models/RepositoryResourceInfo.cs index a9e6b6e846c6..e33e021538b7 100644 --- a/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/Models/RepositoryResourceInfo.cs +++ b/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/Models/RepositoryResourceInfo.cs @@ -29,14 +29,17 @@ public RepositoryResourceInfo() /// /// Initializes a new instance of the RepositoryResourceInfo class. /// + /// The repository access authentication + /// info. /// The webhook object created for the /// source-control. /// Resources created in GitHub for /// this source-control. /// Resources created in Azure /// DevOps for this source-control. - public RepositoryResourceInfo(Webhook webhook = default(Webhook), GitHubResourceInfo gitHubResourceInfo = default(GitHubResourceInfo), AzureDevOpsResourceInfo azureDevOpsResourceInfo = default(AzureDevOpsResourceInfo)) + public RepositoryResourceInfo(OauthDetail oauthInfo = default(OauthDetail), Webhook webhook = default(Webhook), GitHubResourceInfo gitHubResourceInfo = default(GitHubResourceInfo), AzureDevOpsResourceInfo azureDevOpsResourceInfo = default(AzureDevOpsResourceInfo)) { + OauthInfo = oauthInfo; Webhook = webhook; GitHubResourceInfo = gitHubResourceInfo; AzureDevOpsResourceInfo = azureDevOpsResourceInfo; @@ -48,6 +51,12 @@ public RepositoryResourceInfo() /// partial void CustomInit(); + /// + /// Gets or sets the repository access authentication info. + /// + [JsonProperty(PropertyName = "oauthInfo")] + public OauthDetail OauthInfo { get; set; } + /// /// Gets or sets the webhook object created for the source-control. /// diff --git a/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/Models/WatchlistItem.cs b/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/Models/WatchlistItem.cs index 161d2e5d31bc..520137054097 100644 --- a/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/Models/WatchlistItem.cs +++ b/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/Models/WatchlistItem.cs @@ -13,6 +13,8 @@ namespace Microsoft.Azure.Management.SecurityInsights.Models using Microsoft.Rest; using Microsoft.Rest.Serialization; using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; using System.Linq; /// @@ -61,7 +63,7 @@ public WatchlistItem() /// item /// key-value pairs for a watchlist item /// entity mapping - public WatchlistItem(object itemsKeyValue, string id = default(string), string name = default(string), string type = default(string), SystemData systemData = default(SystemData), string etag = default(string), string watchlistItemType = default(string), string watchlistItemId = default(string), string tenantId = default(string), bool? isDeleted = default(bool?), System.DateTime? created = default(System.DateTime?), System.DateTime? updated = default(System.DateTime?), UserInfo createdBy = default(UserInfo), UserInfo updatedBy = default(UserInfo), object entityMapping = default(object)) + public WatchlistItem(IDictionary itemsKeyValue, string id = default(string), string name = default(string), string type = default(string), SystemData systemData = default(SystemData), string etag = default(string), string watchlistItemType = default(string), string watchlistItemId = default(string), string tenantId = default(string), bool? isDeleted = default(bool?), System.DateTime? created = default(System.DateTime?), System.DateTime? updated = default(System.DateTime?), UserInfo createdBy = default(UserInfo), UserInfo updatedBy = default(UserInfo), IDictionary entityMapping = default(IDictionary)) : base(id, name, type, systemData, etag) { WatchlistItemType = watchlistItemType; @@ -135,13 +137,13 @@ public WatchlistItem() /// Gets or sets key-value pairs for a watchlist item /// [JsonProperty(PropertyName = "properties.itemsKeyValue")] - public object ItemsKeyValue { get; set; } + public IDictionary ItemsKeyValue { get; set; } /// /// Gets or sets key-value pairs for a watchlist item entity mapping /// [JsonProperty(PropertyName = "properties.entityMapping")] - public object EntityMapping { get; set; } + public IDictionary EntityMapping { get; set; } /// /// Validate the object. 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 60d9df8c0677..54fbaae3f574 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 @@ -19,51 +19,40 @@ public static IEnumerable> ApiInfo_SecurityInsight { return new Tuple[] { - new Tuple("OperationalInsights", "Actions", "2022-01-01-preview"), - new Tuple("OperationalInsights", "AlertRuleTemplates", "2022-01-01-preview"), - new Tuple("OperationalInsights", "AlertRules", "2022-01-01-preview"), - new Tuple("OperationalInsights", "AutomationRules", "2022-01-01-preview"), - new Tuple("OperationalInsights", "Bookmark", "2022-01-01-preview"), - new Tuple("OperationalInsights", "BookmarkRelations", "2022-01-01-preview"), - new Tuple("OperationalInsights", "Bookmarks", "2022-01-01-preview"), - new Tuple("OperationalInsights", "DataConnectors", "2022-01-01-preview"), - new Tuple("OperationalInsights", "DataConnectorsCheckRequirements", "2022-01-01-preview"), - new Tuple("OperationalInsights", "Entities", "2022-01-01-preview"), - new Tuple("OperationalInsights", "EntitiesGetTimeline", "2022-01-01-preview"), - new Tuple("OperationalInsights", "EntitiesRelations", "2022-01-01-preview"), - new Tuple("OperationalInsights", "EntityQueries", "2022-01-01-preview"), - new Tuple("OperationalInsights", "EntityQueryTemplates", "2022-01-01-preview"), - new Tuple("OperationalInsights", "EntityRelations", "2022-01-01-preview"), - new Tuple("OperationalInsights", "IncidentComments", "2022-01-01-preview"), - new Tuple("OperationalInsights", "IncidentRelations", "2022-01-01-preview"), - new Tuple("OperationalInsights", "Incidents", "2022-01-01-preview"), - new Tuple("OperationalInsights", "Metadata", "2022-01-01-preview"), - new Tuple("OperationalInsights", "OfficeConsents", "2022-01-01-preview"), - new Tuple("OperationalInsights", "ProductSettings", "2022-01-01-preview"), - new Tuple("OperationalInsights", "SentinelOnboardingStates", "2022-01-01-preview"), - new Tuple("OperationalInsights", "SourceControl", "2022-01-01-preview"), - new Tuple("OperationalInsights", "SourceControls", "2022-01-01-preview"), - new Tuple("OperationalInsights", "ThreatIntelligenceIndicator", "2022-01-01-preview"), - new Tuple("OperationalInsights", "ThreatIntelligenceIndicatorMetrics", "2022-01-01-preview"), - new Tuple("OperationalInsights", "ThreatIntelligenceIndicators", "2022-01-01-preview"), - new Tuple("OperationalInsights", "WatchlistItems", "2022-01-01-preview"), - new Tuple("OperationalInsights", "Watchlists", "2022-01-01-preview"), - new Tuple("SecurityInsights", "DomainWhois", "2022-01-01-preview"), - new Tuple("SecurityInsights", "IPGeodata", "2022-01-01-preview"), - new Tuple("SecurityInsights", "Operations", "2022-01-01-preview"), + new Tuple("OperationalInsights", "Actions", "2022-05-01-preview"), + new Tuple("OperationalInsights", "AlertRuleTemplates", "2022-05-01-preview"), + new Tuple("OperationalInsights", "AlertRules", "2022-05-01-preview"), + new Tuple("OperationalInsights", "AutomationRules", "2022-05-01-preview"), + new Tuple("OperationalInsights", "Bookmark", "2022-05-01-preview"), + new Tuple("OperationalInsights", "BookmarkRelations", "2022-05-01-preview"), + new Tuple("OperationalInsights", "Bookmarks", "2022-05-01-preview"), + new Tuple("OperationalInsights", "DataConnectors", "2022-05-01-preview"), + new Tuple("OperationalInsights", "DataConnectorsCheckRequirements", "2022-05-01-preview"), + new Tuple("OperationalInsights", "Entities", "2022-05-01-preview"), + new Tuple("OperationalInsights", "EntitiesGetTimeline", "2022-05-01-preview"), + new Tuple("OperationalInsights", "EntitiesRelations", "2022-05-01-preview"), + new Tuple("OperationalInsights", "EntityQueries", "2022-05-01-preview"), + new Tuple("OperationalInsights", "EntityQueryTemplates", "2022-05-01-preview"), + new Tuple("OperationalInsights", "EntityRelations", "2022-05-01-preview"), + new Tuple("OperationalInsights", "IncidentComments", "2022-05-01-preview"), + new Tuple("OperationalInsights", "IncidentRelations", "2022-05-01-preview"), + new Tuple("OperationalInsights", "Incidents", "2022-05-01-preview"), + new Tuple("OperationalInsights", "Metadata", "2022-05-01-preview"), + new Tuple("OperationalInsights", "OfficeConsents", "2022-05-01-preview"), + new Tuple("OperationalInsights", "ProductSettings", "2022-05-01-preview"), + new Tuple("OperationalInsights", "SentinelOnboardingStates", "2022-05-01-preview"), + new Tuple("OperationalInsights", "SourceControl", "2022-05-01-preview"), + new Tuple("OperationalInsights", "SourceControls", "2022-05-01-preview"), + new Tuple("OperationalInsights", "ThreatIntelligenceIndicator", "2022-05-01-preview"), + new Tuple("OperationalInsights", "ThreatIntelligenceIndicatorMetrics", "2022-05-01-preview"), + new Tuple("OperationalInsights", "ThreatIntelligenceIndicators", "2022-05-01-preview"), + new Tuple("OperationalInsights", "WatchlistItems", "2022-05-01-preview"), + new Tuple("OperationalInsights", "Watchlists", "2022-05-01-preview"), + new Tuple("SecurityInsights", "DomainWhois", "2022-05-01-preview"), + new Tuple("SecurityInsights", "IPGeodata", "2022-05-01-preview"), + new Tuple("SecurityInsights", "Operations", "2022-05-01-preview"), }.AsEnumerable(); } } - // BEGIN: Code Generation Metadata Section - public static readonly String AutoRestVersion = "2.0.4421"; - public static readonly String AutoRestBootStrapperVersion = "autorest@3.5.1"; - public static readonly String AutoRestCmdExecuted = "cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/main/specification/securityinsights/resource-manager/readme.md --csharp --version=2.0.4421 --reflect-api-versions --csharp-sdks-folder=C:\\One\\azure\\azure-sdk-for-net\\sdk"; - public static readonly String GithubForkName = "Azure"; - public static readonly String GithubBranchName = "main"; - public static readonly String GithubCommidId = "96da969aa75e2beb27c3dbc2d69a76900856cc52"; - 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/SecurityInsights.cs b/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/SecurityInsights.cs index 349e1e2ffd27..d55d9e752290 100644 --- a/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/SecurityInsights.cs +++ b/sdk/securityinsights/Microsoft.Azure.Management.SecurityInsights/src/Generated/SecurityInsights.cs @@ -509,7 +509,7 @@ private void Initialize() DataConnectorsCheckRequirements = new DataConnectorsCheckRequirementsOperations(this); Operations = new Operations(this); BaseUri = new System.Uri("https://management.azure.com"); - ApiVersion = "2022-01-01-preview"; + ApiVersion = "2022-05-01-preview"; AcceptLanguage = "en-US"; LongRunningOperationRetryTimeout = 30; GenerateClientRequestId = true;