diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/api/Azure.ResourceManager.SecurityCenter.netstandard2.0.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/api/Azure.ResourceManager.SecurityCenter.netstandard2.0.cs index b5868ccf91424..cf55cb411d1bf 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/api/Azure.ResourceManager.SecurityCenter.netstandard2.0.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/api/Azure.ResourceManager.SecurityCenter.netstandard2.0.cs @@ -3635,8 +3635,9 @@ public static partial class ArmSecurityCenterModelFactory public static Azure.ResourceManager.SecurityCenter.DefenderForStorageSettingData DefenderForStorageSettingData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, bool? isEnabled = default(bool?), bool? isOverrideSubscriptionLevelSettingsEnabled = default(bool?), bool? isSensitiveDataDiscoveryEnabled = default(bool?), Azure.ResourceManager.SecurityCenter.Models.ExtensionOperationStatus sensitiveDataDiscoveryOperationStatus = null, Azure.Core.ResourceIdentifier scanResultsEventGridTopicResourceId = null, Azure.ResourceManager.SecurityCenter.Models.ExtensionOperationStatus malwareScanningOperationStatus = null, bool? isMalwareScanningOnUploadEnabled = default(bool?), int? capGBPerMonth = default(int?)) { throw null; } public static Azure.ResourceManager.SecurityCenter.Models.DenylistCustomAlertRule DenylistCustomAlertRule(string displayName = null, string description = null, bool isEnabled = false, Azure.ResourceManager.SecurityCenter.Models.SecurityValueType? valueType = default(Azure.ResourceManager.SecurityCenter.Models.SecurityValueType?), System.Collections.Generic.IEnumerable denylistValues = null) { throw null; } public static Azure.ResourceManager.SecurityCenter.DeviceSecurityGroupData DeviceSecurityGroupData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IEnumerable thresholdRules = null, System.Collections.Generic.IEnumerable timeWindowRules = null, System.Collections.Generic.IEnumerable allowlistRules = null, System.Collections.Generic.IEnumerable denylistRules = null) { throw null; } + public static Azure.ResourceManager.SecurityCenter.Models.DevOpsCapability DevOpsCapability(string name = null, string value = null) { throw null; } public static Azure.ResourceManager.SecurityCenter.DevOpsConfigurationData DevOpsConfigurationData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.SecurityCenter.Models.DevOpsConfigurationProperties properties = null) { throw null; } - public static Azure.ResourceManager.SecurityCenter.Models.DevOpsConfigurationProperties DevOpsConfigurationProperties(string provisioningStatusMessage = null, System.DateTimeOffset? provisioningStatusUpdateTimeUtc = default(System.DateTimeOffset?), Azure.ResourceManager.SecurityCenter.Models.DevOpsProvisioningState? provisioningState = default(Azure.ResourceManager.SecurityCenter.Models.DevOpsProvisioningState?), string authorizationCode = null, Azure.ResourceManager.SecurityCenter.Models.DevOpsAutoDiscovery? autoDiscovery = default(Azure.ResourceManager.SecurityCenter.Models.DevOpsAutoDiscovery?), System.Collections.Generic.IEnumerable topLevelInventoryList = null) { throw null; } + public static Azure.ResourceManager.SecurityCenter.Models.DevOpsConfigurationProperties DevOpsConfigurationProperties(string provisioningStatusMessage = null, System.DateTimeOffset? provisioningStatusUpdateTimeUtc = default(System.DateTimeOffset?), Azure.ResourceManager.SecurityCenter.Models.DevOpsProvisioningState? provisioningState = default(Azure.ResourceManager.SecurityCenter.Models.DevOpsProvisioningState?), string authorizationCode = null, Azure.ResourceManager.SecurityCenter.Models.DevOpsAutoDiscovery? autoDiscovery = default(Azure.ResourceManager.SecurityCenter.Models.DevOpsAutoDiscovery?), System.Collections.Generic.IEnumerable topLevelInventoryList = null, System.Collections.Generic.IEnumerable capabilities = null) { throw null; } public static Azure.ResourceManager.SecurityCenter.DevOpsOrgData DevOpsOrgData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.SecurityCenter.Models.DevOpsOrgProperties properties = null) { throw null; } public static Azure.ResourceManager.SecurityCenter.Models.DevOpsOrgProperties DevOpsOrgProperties(string provisioningStatusMessage = null, System.DateTimeOffset? provisioningStatusUpdatedOn = default(System.DateTimeOffset?), Azure.ResourceManager.SecurityCenter.Models.DevOpsProvisioningState? provisioningState = default(Azure.ResourceManager.SecurityCenter.Models.DevOpsProvisioningState?), Azure.ResourceManager.SecurityCenter.Models.ResourceOnboardingState? onboardingState = default(Azure.ResourceManager.SecurityCenter.Models.ResourceOnboardingState?), Azure.ResourceManager.SecurityCenter.Models.ActionableRemediation actionableRemediation = null) { throw null; } public static Azure.ResourceManager.SecurityCenter.DevOpsProjectData DevOpsProjectData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.SecurityCenter.Models.DevOpsProjectProperties properties = null) { throw null; } @@ -4916,11 +4917,23 @@ public DenylistCustomAlertRule(bool isEnabled, System.Collections.Generic.IEnume public static bool operator !=(Azure.ResourceManager.SecurityCenter.Models.DevOpsAutoDiscovery left, Azure.ResourceManager.SecurityCenter.Models.DevOpsAutoDiscovery right) { throw null; } public override string ToString() { throw null; } } + public partial class DevOpsCapability : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal DevOpsCapability() { } + public string Name { get { throw null; } } + public string Value { get { throw null; } } + Azure.ResourceManager.SecurityCenter.Models.DevOpsCapability System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.SecurityCenter.Models.DevOpsCapability System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } public partial class DevOpsConfigurationProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public DevOpsConfigurationProperties() { } public string AuthorizationCode { get { throw null; } set { } } public Azure.ResourceManager.SecurityCenter.Models.DevOpsAutoDiscovery? AutoDiscovery { get { throw null; } set { } } + public System.Collections.Generic.IReadOnlyList Capabilities { get { throw null; } } public Azure.ResourceManager.SecurityCenter.Models.DevOpsProvisioningState? ProvisioningState { get { throw null; } set { } } public string ProvisioningStatusMessage { get { throw null; } } public System.DateTimeOffset? ProvisioningStatusUpdateTimeUtc { get { throw null; } } diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/samples/Generated/Samples/Sample_DevOpsConfigurationResource.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/samples/Generated/Samples/Sample_DevOpsConfigurationResource.cs index 3675bf5eab190..f04763c81e987 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/samples/Generated/Samples/Sample_DevOpsConfigurationResource.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/samples/Generated/Samples/Sample_DevOpsConfigurationResource.cs @@ -21,7 +21,7 @@ public partial class Sample_DevOpsConfigurationResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAvailableDevOpsOrgs_ListAvailableAzureDevOpsOrgs() { - // Generated from example definition: specification/security/resource-manager/Microsoft.Security/preview/2023-09-01-preview/examples/SecurityConnectorsDevOps/ListAvailableAzureDevOpsOrgs_example.json + // Generated from example definition: specification/security/resource-manager/Microsoft.Security/stable/2024-04-01/examples/SecurityConnectorsDevOps/ListAvailableAzureDevOpsOrgs_example.json // this example is just showing the usage of "AzureDevOpsOrgs_ListAvailable" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -55,7 +55,38 @@ public async Task GetAvailableDevOpsOrgs_ListAvailableAzureDevOpsOrgs() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetDevOpsConfigurations() { - // Generated from example definition: specification/security/resource-manager/Microsoft.Security/preview/2023-09-01-preview/examples/SecurityConnectorsDevOps/GetDevOpsConfigurations_example.json + // Generated from example definition: specification/security/resource-manager/Microsoft.Security/stable/2024-04-01/examples/SecurityConnectorsDevOps/GetDevOpsConfigurations_example.json + // this example is just showing the usage of "DevOpsConfigurations_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this DevOpsConfigurationResource created on azure + // for more information of creating DevOpsConfigurationResource, please refer to the document of DevOpsConfigurationResource + string subscriptionId = "0806e1cd-cfda-4ff8-b99c-2b0af42cffd3"; + string resourceGroupName = "myRg"; + string securityConnectorName = "mySecurityConnectorName"; + ResourceIdentifier devOpsConfigurationResourceId = DevOpsConfigurationResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, securityConnectorName); + DevOpsConfigurationResource devOpsConfiguration = client.GetDevOpsConfigurationResource(devOpsConfigurationResourceId); + + // invoke the operation + DevOpsConfigurationResource result = await devOpsConfiguration.GetAsync(); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + DevOpsConfigurationData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // Get_DevOpsConfigurations_WithCapabilities + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Get_GetDevOpsConfigurationsWithCapabilities() + { + // Generated from example definition: specification/security/resource-manager/Microsoft.Security/stable/2024-04-01/examples/SecurityConnectorsDevOps/GetDevOpsConfigurationsWithCapabilities_example.json // this example is just showing the usage of "DevOpsConfigurations_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -86,7 +117,7 @@ public async Task Get_GetDevOpsConfigurations() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateOrUpdateDevOpsConfigurationsOnboardCurrentAndFuture() { - // Generated from example definition: specification/security/resource-manager/Microsoft.Security/preview/2023-09-01-preview/examples/SecurityConnectorsDevOps/CreateOrUpdateDevOpsConfigurationsOnboardCurrentAndFuture_example.json + // Generated from example definition: specification/security/resource-manager/Microsoft.Security/stable/2024-04-01/examples/SecurityConnectorsDevOps/CreateOrUpdateDevOpsConfigurationsOnboardCurrentAndFuture_example.json // this example is just showing the usage of "DevOpsConfigurations_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -126,7 +157,7 @@ public async Task CreateOrUpdate_CreateOrUpdateDevOpsConfigurationsOnboardCurren [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateOrUpdateDevOpsConfigurationsOnboardCurrentOnly() { - // Generated from example definition: specification/security/resource-manager/Microsoft.Security/preview/2023-09-01-preview/examples/SecurityConnectorsDevOps/CreateOrUpdateDevOpsConfigurationsOnboardCurrentOnly_example.json + // Generated from example definition: specification/security/resource-manager/Microsoft.Security/stable/2024-04-01/examples/SecurityConnectorsDevOps/CreateOrUpdateDevOpsConfigurationsOnboardCurrentOnly_example.json // this example is just showing the usage of "DevOpsConfigurations_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -166,7 +197,7 @@ public async Task CreateOrUpdate_CreateOrUpdateDevOpsConfigurationsOnboardCurren [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateOrUpdateDevOpsConfigurationsOnboardSelected() { - // Generated from example definition: specification/security/resource-manager/Microsoft.Security/preview/2023-09-01-preview/examples/SecurityConnectorsDevOps/CreateOrUpdateDevOpsConfigurationsOnboardSelected_example.json + // Generated from example definition: specification/security/resource-manager/Microsoft.Security/stable/2024-04-01/examples/SecurityConnectorsDevOps/CreateOrUpdateDevOpsConfigurationsOnboardSelected_example.json // this example is just showing the usage of "DevOpsConfigurations_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -210,7 +241,7 @@ public async Task CreateOrUpdate_CreateOrUpdateDevOpsConfigurationsOnboardSelect [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_UpdateDevOpsConfigurations() { - // Generated from example definition: specification/security/resource-manager/Microsoft.Security/preview/2023-09-01-preview/examples/SecurityConnectorsDevOps/UpdateDevOpsConfigurations_example.json + // Generated from example definition: specification/security/resource-manager/Microsoft.Security/stable/2024-04-01/examples/SecurityConnectorsDevOps/UpdateDevOpsConfigurations_example.json // this example is just showing the usage of "DevOpsConfigurations_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -249,7 +280,7 @@ public async Task Update_UpdateDevOpsConfigurations() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteDevOpsConfigurations() { - // Generated from example definition: specification/security/resource-manager/Microsoft.Security/preview/2023-09-01-preview/examples/SecurityConnectorsDevOps/DeleteDevOpsConfigurations_example.json + // Generated from example definition: specification/security/resource-manager/Microsoft.Security/stable/2024-04-01/examples/SecurityConnectorsDevOps/DeleteDevOpsConfigurations_example.json // this example is just showing the usage of "DevOpsConfigurations_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -276,7 +307,7 @@ public async Task Delete_DeleteDevOpsConfigurations() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAvailableGitHubOwners_ListAvailableGitHubOwners() { - // Generated from example definition: specification/security/resource-manager/Microsoft.Security/preview/2023-09-01-preview/examples/SecurityConnectorsDevOps/ListAvailableGitHubOwners_example.json + // Generated from example definition: specification/security/resource-manager/Microsoft.Security/stable/2024-04-01/examples/SecurityConnectorsDevOps/ListAvailableGitHubOwners_example.json // this example is just showing the usage of "GitHubOwners_ListAvailable" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -310,7 +341,7 @@ public async Task GetAvailableGitHubOwners_ListAvailableGitHubOwners() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAvailableGitLabGroups_ListAvailableGitLabGroups() { - // Generated from example definition: specification/security/resource-manager/Microsoft.Security/preview/2023-09-01-preview/examples/SecurityConnectorsDevOps/ListAvailableGitLabGroups_example.json + // Generated from example definition: specification/security/resource-manager/Microsoft.Security/stable/2024-04-01/examples/SecurityConnectorsDevOps/ListAvailableGitLabGroups_example.json // this example is just showing the usage of "GitLabGroups_ListAvailable" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -344,7 +375,7 @@ public async Task GetAvailableGitLabGroups_ListAvailableGitLabGroups() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetDevOpsOperationResult_GetDevOpsOperationResultsFailed() { - // Generated from example definition: specification/security/resource-manager/Microsoft.Security/preview/2023-09-01-preview/examples/SecurityConnectorsDevOps/GetDevOpsOperationResultsFailed_example.json + // Generated from example definition: specification/security/resource-manager/Microsoft.Security/stable/2024-04-01/examples/SecurityConnectorsDevOps/GetDevOpsOperationResultsFailed_example.json // this example is just showing the usage of "DevOpsOperationResults_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -372,7 +403,7 @@ public async Task GetDevOpsOperationResult_GetDevOpsOperationResultsFailed() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetDevOpsOperationResult_GetDevOpsOperationResultsSucceeded() { - // Generated from example definition: specification/security/resource-manager/Microsoft.Security/preview/2023-09-01-preview/examples/SecurityConnectorsDevOps/GetDevOpsOperationResultsSucceeded_example.json + // Generated from example definition: specification/security/resource-manager/Microsoft.Security/stable/2024-04-01/examples/SecurityConnectorsDevOps/GetDevOpsOperationResultsSucceeded_example.json // this example is just showing the usage of "DevOpsOperationResults_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/samples/Generated/Samples/Sample_DevOpsOrgCollection.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/samples/Generated/Samples/Sample_DevOpsOrgCollection.cs index 10ddf557c3509..11df1242378c8 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/samples/Generated/Samples/Sample_DevOpsOrgCollection.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/samples/Generated/Samples/Sample_DevOpsOrgCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_DevOpsOrgCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListAzureDevOpsOrgs() { - // Generated from example definition: specification/security/resource-manager/Microsoft.Security/preview/2023-09-01-preview/examples/SecurityConnectorsDevOps/ListAzureDevOpsOrgs_example.json + // Generated from example definition: specification/security/resource-manager/Microsoft.Security/stable/2024-04-01/examples/SecurityConnectorsDevOps/ListAzureDevOpsOrgs_example.json // this example is just showing the usage of "AzureDevOpsOrgs_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -57,7 +57,7 @@ public async Task GetAll_ListAzureDevOpsOrgs() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetAzureDevOpsOrgs() { - // Generated from example definition: specification/security/resource-manager/Microsoft.Security/preview/2023-09-01-preview/examples/SecurityConnectorsDevOps/GetAzureDevOpsOrgs_example.json + // Generated from example definition: specification/security/resource-manager/Microsoft.Security/stable/2024-04-01/examples/SecurityConnectorsDevOps/GetAzureDevOpsOrgs_example.json // this example is just showing the usage of "AzureDevOpsOrgs_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -92,7 +92,7 @@ public async Task Get_GetAzureDevOpsOrgs() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetAzureDevOpsOrgs() { - // Generated from example definition: specification/security/resource-manager/Microsoft.Security/preview/2023-09-01-preview/examples/SecurityConnectorsDevOps/GetAzureDevOpsOrgs_example.json + // Generated from example definition: specification/security/resource-manager/Microsoft.Security/stable/2024-04-01/examples/SecurityConnectorsDevOps/GetAzureDevOpsOrgs_example.json // this example is just showing the usage of "AzureDevOpsOrgs_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -123,7 +123,7 @@ public async Task Exists_GetAzureDevOpsOrgs() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetAzureDevOpsOrgs() { - // Generated from example definition: specification/security/resource-manager/Microsoft.Security/preview/2023-09-01-preview/examples/SecurityConnectorsDevOps/GetAzureDevOpsOrgs_example.json + // Generated from example definition: specification/security/resource-manager/Microsoft.Security/stable/2024-04-01/examples/SecurityConnectorsDevOps/GetAzureDevOpsOrgs_example.json // this example is just showing the usage of "AzureDevOpsOrgs_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -166,7 +166,7 @@ public async Task GetIfExists_GetAzureDevOpsOrgs() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateOrUpdateAzureDevOpsOrgs() { - // Generated from example definition: specification/security/resource-manager/Microsoft.Security/preview/2023-09-01-preview/examples/SecurityConnectorsDevOps/CreateOrUpdateAzureDevOpsOrgs_example.json + // Generated from example definition: specification/security/resource-manager/Microsoft.Security/stable/2024-04-01/examples/SecurityConnectorsDevOps/CreateOrUpdateAzureDevOpsOrgs_example.json // this example is just showing the usage of "AzureDevOpsOrgs_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/samples/Generated/Samples/Sample_DevOpsOrgResource.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/samples/Generated/Samples/Sample_DevOpsOrgResource.cs index f1ba8819db361..c5bff2d23d8cb 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/samples/Generated/Samples/Sample_DevOpsOrgResource.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/samples/Generated/Samples/Sample_DevOpsOrgResource.cs @@ -20,7 +20,7 @@ public partial class Sample_DevOpsOrgResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetAzureDevOpsOrgs() { - // Generated from example definition: specification/security/resource-manager/Microsoft.Security/preview/2023-09-01-preview/examples/SecurityConnectorsDevOps/GetAzureDevOpsOrgs_example.json + // Generated from example definition: specification/security/resource-manager/Microsoft.Security/stable/2024-04-01/examples/SecurityConnectorsDevOps/GetAzureDevOpsOrgs_example.json // this example is just showing the usage of "AzureDevOpsOrgs_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -52,7 +52,7 @@ public async Task Get_GetAzureDevOpsOrgs() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_UpdateAzureDevOpsOrgs() { - // Generated from example definition: specification/security/resource-manager/Microsoft.Security/preview/2023-09-01-preview/examples/SecurityConnectorsDevOps/UpdateAzureDevOpsOrgs_example.json + // Generated from example definition: specification/security/resource-manager/Microsoft.Security/stable/2024-04-01/examples/SecurityConnectorsDevOps/UpdateAzureDevOpsOrgs_example.json // this example is just showing the usage of "AzureDevOpsOrgs_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/samples/Generated/Samples/Sample_DevOpsProjectCollection.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/samples/Generated/Samples/Sample_DevOpsProjectCollection.cs index 2a9f75b0d2bf7..04abead461636 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/samples/Generated/Samples/Sample_DevOpsProjectCollection.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/samples/Generated/Samples/Sample_DevOpsProjectCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_DevOpsProjectCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListAzureDevOpsProjects() { - // Generated from example definition: specification/security/resource-manager/Microsoft.Security/preview/2023-09-01-preview/examples/SecurityConnectorsDevOps/ListAzureDevOpsProjects_example.json + // Generated from example definition: specification/security/resource-manager/Microsoft.Security/stable/2024-04-01/examples/SecurityConnectorsDevOps/ListAzureDevOpsProjects_example.json // this example is just showing the usage of "AzureDevOpsProjects_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -58,7 +58,7 @@ public async Task GetAll_ListAzureDevOpsProjects() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetAzureDevOpsProjects() { - // Generated from example definition: specification/security/resource-manager/Microsoft.Security/preview/2023-09-01-preview/examples/SecurityConnectorsDevOps/GetAzureDevOpsProjects_example.json + // Generated from example definition: specification/security/resource-manager/Microsoft.Security/stable/2024-04-01/examples/SecurityConnectorsDevOps/GetAzureDevOpsProjects_example.json // this example is just showing the usage of "AzureDevOpsProjects_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -94,7 +94,7 @@ public async Task Get_GetAzureDevOpsProjects() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetAzureDevOpsProjects() { - // Generated from example definition: specification/security/resource-manager/Microsoft.Security/preview/2023-09-01-preview/examples/SecurityConnectorsDevOps/GetAzureDevOpsProjects_example.json + // Generated from example definition: specification/security/resource-manager/Microsoft.Security/stable/2024-04-01/examples/SecurityConnectorsDevOps/GetAzureDevOpsProjects_example.json // this example is just showing the usage of "AzureDevOpsProjects_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -126,7 +126,7 @@ public async Task Exists_GetAzureDevOpsProjects() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetAzureDevOpsProjects() { - // Generated from example definition: specification/security/resource-manager/Microsoft.Security/preview/2023-09-01-preview/examples/SecurityConnectorsDevOps/GetAzureDevOpsProjects_example.json + // Generated from example definition: specification/security/resource-manager/Microsoft.Security/stable/2024-04-01/examples/SecurityConnectorsDevOps/GetAzureDevOpsProjects_example.json // this example is just showing the usage of "AzureDevOpsProjects_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -170,7 +170,7 @@ public async Task GetIfExists_GetAzureDevOpsProjects() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateOrUpdateAzureDevOpsProjects() { - // Generated from example definition: specification/security/resource-manager/Microsoft.Security/preview/2023-09-01-preview/examples/SecurityConnectorsDevOps/CreateOrUpdateAzureDevOpsProjects_example.json + // Generated from example definition: specification/security/resource-manager/Microsoft.Security/stable/2024-04-01/examples/SecurityConnectorsDevOps/CreateOrUpdateAzureDevOpsProjects_example.json // this example is just showing the usage of "AzureDevOpsProjects_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/samples/Generated/Samples/Sample_DevOpsProjectResource.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/samples/Generated/Samples/Sample_DevOpsProjectResource.cs index 5aa9f9d5c5cd7..a7621a509b0d9 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/samples/Generated/Samples/Sample_DevOpsProjectResource.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/samples/Generated/Samples/Sample_DevOpsProjectResource.cs @@ -20,7 +20,7 @@ public partial class Sample_DevOpsProjectResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetAzureDevOpsProjects() { - // Generated from example definition: specification/security/resource-manager/Microsoft.Security/preview/2023-09-01-preview/examples/SecurityConnectorsDevOps/GetAzureDevOpsProjects_example.json + // Generated from example definition: specification/security/resource-manager/Microsoft.Security/stable/2024-04-01/examples/SecurityConnectorsDevOps/GetAzureDevOpsProjects_example.json // this example is just showing the usage of "AzureDevOpsProjects_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -53,7 +53,7 @@ public async Task Get_GetAzureDevOpsProjects() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_UpdateAzureDevOpsProjects() { - // Generated from example definition: specification/security/resource-manager/Microsoft.Security/preview/2023-09-01-preview/examples/SecurityConnectorsDevOps/UpdateAzureDevOpsProjects_example.json + // Generated from example definition: specification/security/resource-manager/Microsoft.Security/stable/2024-04-01/examples/SecurityConnectorsDevOps/UpdateAzureDevOpsProjects_example.json // this example is just showing the usage of "AzureDevOpsProjects_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/samples/Generated/Samples/Sample_DevOpsRepositoryCollection.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/samples/Generated/Samples/Sample_DevOpsRepositoryCollection.cs index 9d5dd779aef65..9921b0f2e5b9e 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/samples/Generated/Samples/Sample_DevOpsRepositoryCollection.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/samples/Generated/Samples/Sample_DevOpsRepositoryCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_DevOpsRepositoryCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListAzureDevOpsRepos() { - // Generated from example definition: specification/security/resource-manager/Microsoft.Security/preview/2023-09-01-preview/examples/SecurityConnectorsDevOps/ListAzureDevOpsRepos_example.json + // Generated from example definition: specification/security/resource-manager/Microsoft.Security/stable/2024-04-01/examples/SecurityConnectorsDevOps/ListAzureDevOpsRepos_example.json // this example is just showing the usage of "AzureDevOpsRepos_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -59,7 +59,7 @@ public async Task GetAll_ListAzureDevOpsRepos() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetAzureDevOpsRepos() { - // Generated from example definition: specification/security/resource-manager/Microsoft.Security/preview/2023-09-01-preview/examples/SecurityConnectorsDevOps/GetAzureDevOpsRepos_example.json + // Generated from example definition: specification/security/resource-manager/Microsoft.Security/stable/2024-04-01/examples/SecurityConnectorsDevOps/GetAzureDevOpsRepos_example.json // this example is just showing the usage of "AzureDevOpsRepos_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -96,7 +96,7 @@ public async Task Get_GetAzureDevOpsRepos() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetAzureDevOpsRepos() { - // Generated from example definition: specification/security/resource-manager/Microsoft.Security/preview/2023-09-01-preview/examples/SecurityConnectorsDevOps/GetAzureDevOpsRepos_example.json + // Generated from example definition: specification/security/resource-manager/Microsoft.Security/stable/2024-04-01/examples/SecurityConnectorsDevOps/GetAzureDevOpsRepos_example.json // this example is just showing the usage of "AzureDevOpsRepos_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -129,7 +129,7 @@ public async Task Exists_GetAzureDevOpsRepos() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetAzureDevOpsRepos() { - // Generated from example definition: specification/security/resource-manager/Microsoft.Security/preview/2023-09-01-preview/examples/SecurityConnectorsDevOps/GetAzureDevOpsRepos_example.json + // Generated from example definition: specification/security/resource-manager/Microsoft.Security/stable/2024-04-01/examples/SecurityConnectorsDevOps/GetAzureDevOpsRepos_example.json // this example is just showing the usage of "AzureDevOpsRepos_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -174,7 +174,7 @@ public async Task GetIfExists_GetAzureDevOpsRepos() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateOrUpdateAzureDevOpsRepos() { - // Generated from example definition: specification/security/resource-manager/Microsoft.Security/preview/2023-09-01-preview/examples/SecurityConnectorsDevOps/CreateOrUpdateAzureDevOpsRepos_example.json + // Generated from example definition: specification/security/resource-manager/Microsoft.Security/stable/2024-04-01/examples/SecurityConnectorsDevOps/CreateOrUpdateAzureDevOpsRepos_example.json // this example is just showing the usage of "AzureDevOpsRepos_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/samples/Generated/Samples/Sample_DevOpsRepositoryResource.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/samples/Generated/Samples/Sample_DevOpsRepositoryResource.cs index 000b2ee12a645..dbc4e3a55a009 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/samples/Generated/Samples/Sample_DevOpsRepositoryResource.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/samples/Generated/Samples/Sample_DevOpsRepositoryResource.cs @@ -20,7 +20,7 @@ public partial class Sample_DevOpsRepositoryResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetAzureDevOpsRepos() { - // Generated from example definition: specification/security/resource-manager/Microsoft.Security/preview/2023-09-01-preview/examples/SecurityConnectorsDevOps/GetAzureDevOpsRepos_example.json + // Generated from example definition: specification/security/resource-manager/Microsoft.Security/stable/2024-04-01/examples/SecurityConnectorsDevOps/GetAzureDevOpsRepos_example.json // this example is just showing the usage of "AzureDevOpsRepos_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -54,7 +54,7 @@ public async Task Get_GetAzureDevOpsRepos() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_UpdateAzureDevOpsRepos() { - // Generated from example definition: specification/security/resource-manager/Microsoft.Security/preview/2023-09-01-preview/examples/SecurityConnectorsDevOps/UpdateAzureDevOpsRepos_example.json + // Generated from example definition: specification/security/resource-manager/Microsoft.Security/stable/2024-04-01/examples/SecurityConnectorsDevOps/UpdateAzureDevOpsRepos_example.json // this example is just showing the usage of "AzureDevOpsRepos_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/samples/Generated/Samples/Sample_SecurityCloudConnectorCollection.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/samples/Generated/Samples/Sample_SecurityCloudConnectorCollection.cs index 645e8afc5b50a..dfff3dbc2b6a2 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/samples/Generated/Samples/Sample_SecurityCloudConnectorCollection.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/samples/Generated/Samples/Sample_SecurityCloudConnectorCollection.cs @@ -248,7 +248,7 @@ public async Task CreateOrUpdate_AwsCredCreateACloudAccountConnectorForASubscrip Secret = "", }, }, - AuthenticationDetails = new AwsCredsAuthenticationDetailsProperties("AKIARPZCNODDNAEQFSOE", ""), + AuthenticationDetails = new AwsCredsAuthenticationDetailsProperties("", ""), }; ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, connectorName, data); SecurityCloudConnectorResource result = lro.Value; diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/samples/Generated/Samples/Sample_SecurityCloudConnectorResource.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/samples/Generated/Samples/Sample_SecurityCloudConnectorResource.cs index fbc5bbcdb179d..28852d4c0668c 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/samples/Generated/Samples/Sample_SecurityCloudConnectorResource.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/samples/Generated/Samples/Sample_SecurityCloudConnectorResource.cs @@ -133,7 +133,7 @@ public async Task Update_AwsCredCreateACloudAccountConnectorForASubscription() Secret = "", }, }, - AuthenticationDetails = new AwsCredsAuthenticationDetailsProperties("AKIARPZCNODDNAEQFSOE", ""), + AuthenticationDetails = new AwsCredsAuthenticationDetailsProperties("", ""), }; ArmOperation lro = await securityCloudConnector.UpdateAsync(WaitUntil.Completed, data); SecurityCloudConnectorResource result = lro.Value; diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/samples/Generated/Samples/Sample_SecurityConnectorGitHubOwnerCollection.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/samples/Generated/Samples/Sample_SecurityConnectorGitHubOwnerCollection.cs index 0e36c59f5d6f7..0863a311ab8c8 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/samples/Generated/Samples/Sample_SecurityConnectorGitHubOwnerCollection.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/samples/Generated/Samples/Sample_SecurityConnectorGitHubOwnerCollection.cs @@ -19,7 +19,7 @@ public partial class Sample_SecurityConnectorGitHubOwnerCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListGitHubOwners() { - // Generated from example definition: specification/security/resource-manager/Microsoft.Security/preview/2023-09-01-preview/examples/SecurityConnectorsDevOps/ListGitHubOwners_example.json + // Generated from example definition: specification/security/resource-manager/Microsoft.Security/stable/2024-04-01/examples/SecurityConnectorsDevOps/ListGitHubOwners_example.json // this example is just showing the usage of "GitHubOwners_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -56,7 +56,7 @@ public async Task GetAll_ListGitHubOwners() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetGitHubOwners() { - // Generated from example definition: specification/security/resource-manager/Microsoft.Security/preview/2023-09-01-preview/examples/SecurityConnectorsDevOps/GetGitHubOwners_example.json + // Generated from example definition: specification/security/resource-manager/Microsoft.Security/stable/2024-04-01/examples/SecurityConnectorsDevOps/GetGitHubOwners_example.json // this example is just showing the usage of "GitHubOwners_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -91,7 +91,7 @@ public async Task Get_GetGitHubOwners() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetGitHubOwners() { - // Generated from example definition: specification/security/resource-manager/Microsoft.Security/preview/2023-09-01-preview/examples/SecurityConnectorsDevOps/GetGitHubOwners_example.json + // Generated from example definition: specification/security/resource-manager/Microsoft.Security/stable/2024-04-01/examples/SecurityConnectorsDevOps/GetGitHubOwners_example.json // this example is just showing the usage of "GitHubOwners_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -122,7 +122,7 @@ public async Task Exists_GetGitHubOwners() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetGitHubOwners() { - // Generated from example definition: specification/security/resource-manager/Microsoft.Security/preview/2023-09-01-preview/examples/SecurityConnectorsDevOps/GetGitHubOwners_example.json + // Generated from example definition: specification/security/resource-manager/Microsoft.Security/stable/2024-04-01/examples/SecurityConnectorsDevOps/GetGitHubOwners_example.json // this example is just showing the usage of "GitHubOwners_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/samples/Generated/Samples/Sample_SecurityConnectorGitHubOwnerResource.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/samples/Generated/Samples/Sample_SecurityConnectorGitHubOwnerResource.cs index d9e0e41fc05db..4276d52215e05 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/samples/Generated/Samples/Sample_SecurityConnectorGitHubOwnerResource.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/samples/Generated/Samples/Sample_SecurityConnectorGitHubOwnerResource.cs @@ -19,7 +19,7 @@ public partial class Sample_SecurityConnectorGitHubOwnerResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetGitHubOwners() { - // Generated from example definition: specification/security/resource-manager/Microsoft.Security/preview/2023-09-01-preview/examples/SecurityConnectorsDevOps/GetGitHubOwners_example.json + // Generated from example definition: specification/security/resource-manager/Microsoft.Security/stable/2024-04-01/examples/SecurityConnectorsDevOps/GetGitHubOwners_example.json // this example is just showing the usage of "GitHubOwners_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/samples/Generated/Samples/Sample_SecurityConnectorGitHubRepositoryCollection.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/samples/Generated/Samples/Sample_SecurityConnectorGitHubRepositoryCollection.cs index 69f931cde7db8..4be3cd7eee015 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/samples/Generated/Samples/Sample_SecurityConnectorGitHubRepositoryCollection.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/samples/Generated/Samples/Sample_SecurityConnectorGitHubRepositoryCollection.cs @@ -19,7 +19,7 @@ public partial class Sample_SecurityConnectorGitHubRepositoryCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListGitHubRepos() { - // Generated from example definition: specification/security/resource-manager/Microsoft.Security/preview/2023-09-01-preview/examples/SecurityConnectorsDevOps/ListGitHubRepos_example.json + // Generated from example definition: specification/security/resource-manager/Microsoft.Security/stable/2024-04-01/examples/SecurityConnectorsDevOps/ListGitHubRepos_example.json // this example is just showing the usage of "GitHubRepos_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -57,7 +57,7 @@ public async Task GetAll_ListGitHubRepos() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetGitHubRepos() { - // Generated from example definition: specification/security/resource-manager/Microsoft.Security/preview/2023-09-01-preview/examples/SecurityConnectorsDevOps/GetGitHubRepos_example.json + // Generated from example definition: specification/security/resource-manager/Microsoft.Security/stable/2024-04-01/examples/SecurityConnectorsDevOps/GetGitHubRepos_example.json // this example is just showing the usage of "GitHubRepos_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -93,7 +93,7 @@ public async Task Get_GetGitHubRepos() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetGitHubRepos() { - // Generated from example definition: specification/security/resource-manager/Microsoft.Security/preview/2023-09-01-preview/examples/SecurityConnectorsDevOps/GetGitHubRepos_example.json + // Generated from example definition: specification/security/resource-manager/Microsoft.Security/stable/2024-04-01/examples/SecurityConnectorsDevOps/GetGitHubRepos_example.json // this example is just showing the usage of "GitHubRepos_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -125,7 +125,7 @@ public async Task Exists_GetGitHubRepos() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetGitHubRepos() { - // Generated from example definition: specification/security/resource-manager/Microsoft.Security/preview/2023-09-01-preview/examples/SecurityConnectorsDevOps/GetGitHubRepos_example.json + // Generated from example definition: specification/security/resource-manager/Microsoft.Security/stable/2024-04-01/examples/SecurityConnectorsDevOps/GetGitHubRepos_example.json // this example is just showing the usage of "GitHubRepos_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/samples/Generated/Samples/Sample_SecurityConnectorGitHubRepositoryResource.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/samples/Generated/Samples/Sample_SecurityConnectorGitHubRepositoryResource.cs index ec3115cb617f6..1a0dc20c9d183 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/samples/Generated/Samples/Sample_SecurityConnectorGitHubRepositoryResource.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/samples/Generated/Samples/Sample_SecurityConnectorGitHubRepositoryResource.cs @@ -19,7 +19,7 @@ public partial class Sample_SecurityConnectorGitHubRepositoryResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetGitHubRepos() { - // Generated from example definition: specification/security/resource-manager/Microsoft.Security/preview/2023-09-01-preview/examples/SecurityConnectorsDevOps/GetGitHubRepos_example.json + // Generated from example definition: specification/security/resource-manager/Microsoft.Security/stable/2024-04-01/examples/SecurityConnectorsDevOps/GetGitHubRepos_example.json // this example is just showing the usage of "GitHubRepos_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/samples/Generated/Samples/Sample_SecurityConnectorGitLabGroupCollection.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/samples/Generated/Samples/Sample_SecurityConnectorGitLabGroupCollection.cs index 6fadce716e6a0..d77c69b18d6c2 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/samples/Generated/Samples/Sample_SecurityConnectorGitLabGroupCollection.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/samples/Generated/Samples/Sample_SecurityConnectorGitLabGroupCollection.cs @@ -19,7 +19,7 @@ public partial class Sample_SecurityConnectorGitLabGroupCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListGitLabGroups() { - // Generated from example definition: specification/security/resource-manager/Microsoft.Security/preview/2023-09-01-preview/examples/SecurityConnectorsDevOps/ListGitLabGroups_example.json + // Generated from example definition: specification/security/resource-manager/Microsoft.Security/stable/2024-04-01/examples/SecurityConnectorsDevOps/ListGitLabGroups_example.json // this example is just showing the usage of "GitLabGroups_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -56,7 +56,7 @@ public async Task GetAll_ListGitLabGroups() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetGitLabGroups() { - // Generated from example definition: specification/security/resource-manager/Microsoft.Security/preview/2023-09-01-preview/examples/SecurityConnectorsDevOps/GetGitLabGroups_example.json + // Generated from example definition: specification/security/resource-manager/Microsoft.Security/stable/2024-04-01/examples/SecurityConnectorsDevOps/GetGitLabGroups_example.json // this example is just showing the usage of "GitLabGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -91,7 +91,7 @@ public async Task Get_GetGitLabGroups() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetGitLabGroups() { - // Generated from example definition: specification/security/resource-manager/Microsoft.Security/preview/2023-09-01-preview/examples/SecurityConnectorsDevOps/GetGitLabGroups_example.json + // Generated from example definition: specification/security/resource-manager/Microsoft.Security/stable/2024-04-01/examples/SecurityConnectorsDevOps/GetGitLabGroups_example.json // this example is just showing the usage of "GitLabGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -122,7 +122,7 @@ public async Task Exists_GetGitLabGroups() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetGitLabGroups() { - // Generated from example definition: specification/security/resource-manager/Microsoft.Security/preview/2023-09-01-preview/examples/SecurityConnectorsDevOps/GetGitLabGroups_example.json + // Generated from example definition: specification/security/resource-manager/Microsoft.Security/stable/2024-04-01/examples/SecurityConnectorsDevOps/GetGitLabGroups_example.json // this example is just showing the usage of "GitLabGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -165,7 +165,7 @@ public async Task GetIfExists_GetGitLabGroups() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetGitLabSubgroups_ListGitLabSubgroups() { - // Generated from example definition: specification/security/resource-manager/Microsoft.Security/preview/2023-09-01-preview/examples/SecurityConnectorsDevOps/ListGitLabSubgroups_example.json + // Generated from example definition: specification/security/resource-manager/Microsoft.Security/stable/2024-04-01/examples/SecurityConnectorsDevOps/ListGitLabSubgroups_example.json // this example is just showing the usage of "GitLabSubgroups_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/samples/Generated/Samples/Sample_SecurityConnectorGitLabGroupResource.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/samples/Generated/Samples/Sample_SecurityConnectorGitLabGroupResource.cs index 7e9f66c11bd9a..463db638742fa 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/samples/Generated/Samples/Sample_SecurityConnectorGitLabGroupResource.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/samples/Generated/Samples/Sample_SecurityConnectorGitLabGroupResource.cs @@ -19,7 +19,7 @@ public partial class Sample_SecurityConnectorGitLabGroupResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetGitLabGroups() { - // Generated from example definition: specification/security/resource-manager/Microsoft.Security/preview/2023-09-01-preview/examples/SecurityConnectorsDevOps/GetGitLabGroups_example.json + // Generated from example definition: specification/security/resource-manager/Microsoft.Security/stable/2024-04-01/examples/SecurityConnectorsDevOps/GetGitLabGroups_example.json // this example is just showing the usage of "GitLabGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/samples/Generated/Samples/Sample_SecurityConnectorGitLabProjectCollection.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/samples/Generated/Samples/Sample_SecurityConnectorGitLabProjectCollection.cs index 137217a9b927d..c67e582f2318a 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/samples/Generated/Samples/Sample_SecurityConnectorGitLabProjectCollection.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/samples/Generated/Samples/Sample_SecurityConnectorGitLabProjectCollection.cs @@ -19,7 +19,7 @@ public partial class Sample_SecurityConnectorGitLabProjectCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListGitLabProjects() { - // Generated from example definition: specification/security/resource-manager/Microsoft.Security/preview/2023-09-01-preview/examples/SecurityConnectorsDevOps/ListGitLabProjects_example.json + // Generated from example definition: specification/security/resource-manager/Microsoft.Security/stable/2024-04-01/examples/SecurityConnectorsDevOps/ListGitLabProjects_example.json // this example is just showing the usage of "GitLabProjects_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -57,7 +57,7 @@ public async Task GetAll_ListGitLabProjects() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetGitLabProjects() { - // Generated from example definition: specification/security/resource-manager/Microsoft.Security/preview/2023-09-01-preview/examples/SecurityConnectorsDevOps/GetGitLabProjects_example.json + // Generated from example definition: specification/security/resource-manager/Microsoft.Security/stable/2024-04-01/examples/SecurityConnectorsDevOps/GetGitLabProjects_example.json // this example is just showing the usage of "GitLabProjects_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -93,7 +93,7 @@ public async Task Get_GetGitLabProjects() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetGitLabProjects() { - // Generated from example definition: specification/security/resource-manager/Microsoft.Security/preview/2023-09-01-preview/examples/SecurityConnectorsDevOps/GetGitLabProjects_example.json + // Generated from example definition: specification/security/resource-manager/Microsoft.Security/stable/2024-04-01/examples/SecurityConnectorsDevOps/GetGitLabProjects_example.json // this example is just showing the usage of "GitLabProjects_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -125,7 +125,7 @@ public async Task Exists_GetGitLabProjects() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetGitLabProjects() { - // Generated from example definition: specification/security/resource-manager/Microsoft.Security/preview/2023-09-01-preview/examples/SecurityConnectorsDevOps/GetGitLabProjects_example.json + // Generated from example definition: specification/security/resource-manager/Microsoft.Security/stable/2024-04-01/examples/SecurityConnectorsDevOps/GetGitLabProjects_example.json // this example is just showing the usage of "GitLabProjects_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/samples/Generated/Samples/Sample_SecurityConnectorGitLabProjectResource.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/samples/Generated/Samples/Sample_SecurityConnectorGitLabProjectResource.cs index 836400a24fed1..05fe2c191958a 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/samples/Generated/Samples/Sample_SecurityConnectorGitLabProjectResource.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/samples/Generated/Samples/Sample_SecurityConnectorGitLabProjectResource.cs @@ -19,7 +19,7 @@ public partial class Sample_SecurityConnectorGitLabProjectResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetGitLabProjects() { - // Generated from example definition: specification/security/resource-manager/Microsoft.Security/preview/2023-09-01-preview/examples/SecurityConnectorsDevOps/GetGitLabProjects_example.json + // Generated from example definition: specification/security/resource-manager/Microsoft.Security/stable/2024-04-01/examples/SecurityConnectorsDevOps/GetGitLabProjects_example.json // this example is just showing the usage of "GitLabProjects_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/samples/Generated/Samples/Sample_SensitivitySettingResource.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/samples/Generated/Samples/Sample_SensitivitySettingResource.cs index 6acb489b3eac8..2bf259d01c846 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/samples/Generated/Samples/Sample_SensitivitySettingResource.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/samples/Generated/Samples/Sample_SensitivitySettingResource.cs @@ -21,7 +21,7 @@ public partial class Sample_SensitivitySettingResource public async Task CreateOrUpdate_UpdateSensitivitySettings() { // Generated from example definition: specification/security/resource-manager/Microsoft.Security/preview/2023-02-15-preview/examples/SensitivitySettings/PutSensitivitySettings_example.json - // this example is just showing the usage of "UpdateSensitivitySettings" operation, for the dependent resources, they will have to be created separately. + // this example is just showing the usage of "SensitivitySettings_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line TokenCredential cred = new DefaultAzureCredential(); @@ -58,7 +58,7 @@ public async Task CreateOrUpdate_UpdateSensitivitySettings() public async Task Get_GetSensitivitySettings() { // Generated from example definition: specification/security/resource-manager/Microsoft.Security/preview/2023-02-15-preview/examples/SensitivitySettings/GetSensitivitySettings_example.json - // this example is just showing the usage of "GetSensitivitySettings" operation, for the dependent resources, they will have to be created separately. + // this example is just showing the usage of "SensitivitySettings_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line TokenCredential cred = new DefaultAzureCredential(); diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/ArmSecurityCenterModelFactory.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/ArmSecurityCenterModelFactory.cs index faee052cc44ea..b65ce8759b9ca 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/ArmSecurityCenterModelFactory.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/ArmSecurityCenterModelFactory.cs @@ -975,1822 +975,1834 @@ public static HealthReportStatus HealthReportStatus(HealthReportStatusName? code serializedAdditionalRawData: null); } - /// Initializes a new instance of . + /// Initializes a new instance of . /// The id. /// The name. /// The resourceType. /// The systemData. - /// Azure DevOps Organization properties. - /// A new instance for mocking. - public static DevOpsOrgData DevOpsOrgData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, DevOpsOrgProperties properties = null) + /// The tags. + /// The location. + /// The multi cloud resource identifier (account id in case of AWS connector, project number in case of GCP connector). + /// The date on which the trial period will end, if applicable. Trial period exists for 30 days after upgrading to payed offerings. + /// The multi cloud resource's cloud name. + /// + /// A collection of offerings for the security connector. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , , , , , , , , , , , , , and . + /// + /// + /// The security connector environment data. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , and . + /// + /// Kind of the resource. + /// Entity tag is used for comparing two or more entities from the same requested resource. + /// A new instance for mocking. + public static SecurityConnectorData SecurityConnectorData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, string hierarchyIdentifier = null, DateTimeOffset? hierarchyIdentifierTrialEndOn = null, SecurityCenterCloudName? environmentName = null, IEnumerable offerings = null, SecurityConnectorEnvironment environmentData = null, string kind = null, ETag? eTag = null) { - return new DevOpsOrgData( + tags ??= new Dictionary(); + offerings ??= new List(); + + return new SecurityConnectorData( id, name, resourceType, systemData, - properties, + tags, + location, + hierarchyIdentifier, + hierarchyIdentifierTrialEndOn, + environmentName, + offerings?.ToList(), + environmentData, + kind, + eTag, serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// Gets or sets resource status message. - /// Gets or sets time when resource was last checked. - /// - /// The provisioning state of the resource. - /// - /// Pending - Provisioning pending. - /// Failed - Provisioning failed. - /// Succeeded - Successful provisioning. - /// Canceled - Provisioning canceled. - /// PendingDeletion - Deletion pending. - /// DeletionSuccess - Deletion successful. - /// DeletionFailure - Deletion failure. - /// - /// - /// Details about resource onboarding status across all connectors. - /// - /// OnboardedByOtherConnector - this resource has already been onboarded to another connector. This is only applicable to top-level resources. - /// Onboarded - this resource has already been onboarded by the specified connector. - /// NotOnboarded - this resource has not been onboarded to any connector. - /// NotApplicable - the onboarding state is not applicable to the current endpoint. - /// - /// Configuration payload for PR Annotations. - /// A new instance for mocking. - public static DevOpsOrgProperties DevOpsOrgProperties(string provisioningStatusMessage = null, DateTimeOffset? provisioningStatusUpdatedOn = null, DevOpsProvisioningState? provisioningState = null, ResourceOnboardingState? onboardingState = null, ActionableRemediation actionableRemediation = null) + /// Initializes a new instance of . + /// The type of the security offering. + /// The offering description. + /// A new instance for mocking. + public static SecurityCenterCloudOffering SecurityCenterCloudOffering(string offeringType = null, string description = null) { - return new DevOpsOrgProperties( - provisioningStatusMessage, - provisioningStatusUpdatedOn, - provisioningState, - onboardingState, - actionableRemediation, - serializedAdditionalRawData: null); + return new UnknownCloudOffering(offeringType == null ? default : new OfferingType(offeringType), description, serializedAdditionalRawData: null); } - /// Initializes a new instance of . + /// Initializes a new instance of . /// The id. /// The name. /// The resourceType. /// The systemData. - /// Azure DevOps Project properties. - /// A new instance for mocking. - public static DevOpsProjectData DevOpsProjectData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, DevOpsProjectProperties properties = null) + /// The status of the resource regarding a single assessment. + /// A new instance for mocking. + public static ComplianceResultData ComplianceResultData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, SecurityAssessmentResourceStatus? resourceStatus = null) { - return new DevOpsProjectData( + return new ComplianceResultData( id, name, resourceType, systemData, - properties, - serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// Gets or sets resource status message. - /// Gets or sets time when resource was last checked. - /// - /// The provisioning state of the resource. - /// - /// Pending - Provisioning pending. - /// Failed - Provisioning failed. - /// Succeeded - Successful provisioning. - /// Canceled - Provisioning canceled. - /// PendingDeletion - Deletion pending. - /// DeletionSuccess - Deletion successful. - /// DeletionFailure - Deletion failure. - /// - /// Gets or sets parent Azure DevOps Organization name. - /// Gets or sets Azure DevOps Project id. - /// - /// Details about resource onboarding status across all connectors. - /// - /// OnboardedByOtherConnector - this resource has already been onboarded to another connector. This is only applicable to top-level resources. - /// Onboarded - this resource has already been onboarded by the specified connector. - /// NotOnboarded - this resource has not been onboarded to any connector. - /// NotApplicable - the onboarding state is not applicable to the current endpoint. - /// - /// Configuration payload for PR Annotations. - /// A new instance for mocking. - public static DevOpsProjectProperties DevOpsProjectProperties(string provisioningStatusMessage = null, DateTimeOffset? provisioningStatusUpdatedOn = null, DevOpsProvisioningState? provisioningState = null, string parentOrgName = null, string projectId = null, ResourceOnboardingState? onboardingState = null, ActionableRemediation actionableRemediation = null) - { - return new DevOpsProjectProperties( - provisioningStatusMessage, - provisioningStatusUpdatedOn, - provisioningState, - parentOrgName, - projectId, - onboardingState, - actionableRemediation, + resourceStatus, serializedAdditionalRawData: null); } - /// Initializes a new instance of . + /// Initializes a new instance of . /// The id. /// The name. /// The resourceType. /// The systemData. - /// Azure DevOps Repository properties. - /// A new instance for mocking. - public static DevOpsRepositoryData DevOpsRepositoryData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, DevOpsRepositoryProperties properties = null) + /// Indicates whether Advanced Threat Protection is enabled. + /// A new instance for mocking. + public static AdvancedThreatProtectionSettingData AdvancedThreatProtectionSettingData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, bool? isEnabled = null) { - return new DevOpsRepositoryData( + return new AdvancedThreatProtectionSettingData( id, name, resourceType, systemData, - properties, - serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// Gets or sets resource status message. - /// Gets or sets time when resource was last checked. - /// - /// The provisioning state of the resource. - /// - /// Pending - Provisioning pending. - /// Failed - Provisioning failed. - /// Succeeded - Successful provisioning. - /// Canceled - Provisioning canceled. - /// PendingDeletion - Deletion pending. - /// DeletionSuccess - Deletion successful. - /// DeletionFailure - Deletion failure. - /// - /// Gets or sets parent Azure DevOps Organization name. - /// Gets or sets parent Azure DevOps Project name. - /// Gets or sets Azure DevOps Repository id. - /// Gets or sets Azure DevOps Repository url. - /// Gets or sets Azure DevOps repository visibility, whether it is public or private etc. - /// - /// Details about resource onboarding status across all connectors. - /// - /// OnboardedByOtherConnector - this resource has already been onboarded to another connector. This is only applicable to top-level resources. - /// Onboarded - this resource has already been onboarded by the specified connector. - /// NotOnboarded - this resource has not been onboarded to any connector. - /// NotApplicable - the onboarding state is not applicable to the current endpoint. - /// - /// Configuration payload for PR Annotations. - /// A new instance for mocking. - public static DevOpsRepositoryProperties DevOpsRepositoryProperties(string provisioningStatusMessage = null, DateTimeOffset? provisioningStatusUpdatedOn = null, DevOpsProvisioningState? provisioningState = null, string parentOrgName = null, string parentProjectName = null, string repoId = null, Uri repoUri = null, string visibility = null, ResourceOnboardingState? onboardingState = null, ActionableRemediation actionableRemediation = null) - { - return new DevOpsRepositoryProperties( - provisioningStatusMessage, - provisioningStatusUpdatedOn, - provisioningState, - parentOrgName, - parentProjectName, - repoId, - repoUri, - visibility, - onboardingState, - actionableRemediation, + isEnabled, serializedAdditionalRawData: null); } - /// Initializes a new instance of . + /// Initializes a new instance of . /// The id. /// The name. /// The resourceType. /// The systemData. - /// DevOps Configuration properties. - /// A new instance for mocking. - public static DevOpsConfigurationData DevOpsConfigurationData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, DevOpsConfigurationProperties properties = null) + /// + /// The list of custom alert threshold rules. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , , , , , , , , , , , , , and . + /// + /// + /// The list of custom alert time-window rules. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , , , , , , , , , , , , and . + /// + /// + /// The allow-list custom alert rules. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , and . + /// + /// The deny-list custom alert rules. + /// A new instance for mocking. + public static DeviceSecurityGroupData DeviceSecurityGroupData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IEnumerable thresholdRules = null, IEnumerable timeWindowRules = null, IEnumerable allowlistRules = null, IEnumerable denylistRules = null) { - return new DevOpsConfigurationData( + thresholdRules ??= new List(); + timeWindowRules ??= new List(); + allowlistRules ??= new List(); + denylistRules ??= new List(); + + return new DeviceSecurityGroupData( id, name, resourceType, systemData, - properties, + thresholdRules?.ToList(), + timeWindowRules?.ToList(), + allowlistRules?.ToList(), + denylistRules?.ToList(), serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// Gets or sets resource status message. - /// Gets or sets time when resource was last checked. - /// - /// The provisioning state of the resource. - /// - /// Pending - Provisioning pending. - /// Failed - Provisioning failed. - /// Succeeded - Successful provisioning. - /// Canceled - Provisioning canceled. - /// PendingDeletion - Deletion pending. - /// DeletionSuccess - Deletion successful. - /// DeletionFailure - Deletion failure. - /// - /// Authorization payload. - /// AutoDiscovery states. - /// - /// List of top-level inventory to select when AutoDiscovery is disabled. - /// This field is ignored when AutoDiscovery is enabled. - /// - /// A new instance for mocking. - public static DevOpsConfigurationProperties DevOpsConfigurationProperties(string provisioningStatusMessage = null, DateTimeOffset? provisioningStatusUpdateTimeUtc = null, DevOpsProvisioningState? provisioningState = null, string authorizationCode = null, DevOpsAutoDiscovery? autoDiscovery = null, IEnumerable topLevelInventoryList = null) + /// Initializes a new instance of . + /// The display name of the custom alert. + /// The description of the custom alert. + /// Status of the custom alert. + /// The minimum threshold. + /// The maximum threshold. + /// A new instance for mocking. + public static ThresholdCustomAlertRule ThresholdCustomAlertRule(string displayName = null, string description = null, bool isEnabled = default, int minThreshold = default, int maxThreshold = default) { - topLevelInventoryList ??= new List(); - - return new DevOpsConfigurationProperties( - provisioningStatusMessage, - provisioningStatusUpdateTimeUtc, - provisioningState, - authorizationCode != null ? new DevOpsAuthorization(authorizationCode, serializedAdditionalRawData: null) : null, - autoDiscovery, - topLevelInventoryList?.ToList(), - serializedAdditionalRawData: null); + return new ThresholdCustomAlertRule( + displayName, + description, + isEnabled, + "ThresholdCustomAlertRule", + serializedAdditionalRawData: null, + minThreshold, + maxThreshold); } - /// Initializes a new instance of . + /// Initializes a new instance of . + /// The display name of the custom alert. + /// The description of the custom alert. + /// Status of the custom alert. + /// The type of the custom alert rule. + /// A new instance for mocking. + public static CustomAlertRule CustomAlertRule(string displayName = null, string description = null, bool isEnabled = default, string ruleType = null) + { + return new UnknownCustomAlertRule(displayName, description, isEnabled, ruleType, serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// The display name of the custom alert. + /// The description of the custom alert. + /// Status of the custom alert. + /// The minimum threshold. + /// The maximum threshold. + /// The time window size in iso8601 format. + /// A new instance for mocking. + public static TimeWindowCustomAlertRule TimeWindowCustomAlertRule(string displayName = null, string description = null, bool isEnabled = default, int minThreshold = default, int maxThreshold = default, TimeSpan timeWindowSize = default) + { + return new TimeWindowCustomAlertRule( + displayName, + description, + isEnabled, + "TimeWindowCustomAlertRule", + serializedAdditionalRawData: null, + minThreshold, + maxThreshold, + timeWindowSize); + } + + /// Initializes a new instance of . + /// The display name of the custom alert. + /// The description of the custom alert. + /// Status of the custom alert. + /// The value type of the items in the list. + /// The values to allow. The format of the values depends on the rule type. + /// A new instance for mocking. + public static AllowlistCustomAlertRule AllowlistCustomAlertRule(string displayName = null, string description = null, bool isEnabled = default, SecurityValueType? valueType = null, IEnumerable allowlistValues = null) + { + allowlistValues ??= new List(); + + return new AllowlistCustomAlertRule( + displayName, + description, + isEnabled, + "AllowlistCustomAlertRule", + serializedAdditionalRawData: null, + valueType, + allowlistValues?.ToList()); + } + + /// Initializes a new instance of . + /// The display name of the custom alert. + /// The description of the custom alert. + /// Status of the custom alert. + /// The value type of the items in the list. + /// A new instance for mocking. + public static ListCustomAlertRule ListCustomAlertRule(string displayName = null, string description = null, bool isEnabled = default, SecurityValueType? valueType = null) + { + return new ListCustomAlertRule( + displayName, + description, + isEnabled, + "ListCustomAlertRule", + serializedAdditionalRawData: null, + valueType); + } + + /// Initializes a new instance of . + /// The display name of the custom alert. + /// The description of the custom alert. + /// Status of the custom alert. + /// The value type of the items in the list. + /// The values to deny. The format of the values depends on the rule type. + /// A new instance for mocking. + public static DenylistCustomAlertRule DenylistCustomAlertRule(string displayName = null, string description = null, bool isEnabled = default, SecurityValueType? valueType = null, IEnumerable denylistValues = null) + { + denylistValues ??= new List(); + + return new DenylistCustomAlertRule( + displayName, + description, + isEnabled, + "DenylistCustomAlertRule", + serializedAdditionalRawData: null, + valueType, + denylistValues?.ToList()); + } + + /// Initializes a new instance of . /// The id. /// The name. /// The resourceType. /// The systemData. - /// GitHub Owner properties. - /// A new instance for mocking. - public static SecurityConnectorGitHubOwnerData SecurityConnectorGitHubOwnerData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, SecurityConnectorGitHubOwnerProperties properties = null) + /// Security analytics of your IoT Security solution. + /// Number of unhealthy devices within your IoT Security solution. + /// List of device metrics by the aggregation date. + /// List of the 3 devices with the most alerts. + /// List of the 3 most prevalent device alerts. + /// List of the 3 most prevalent device recommendations. + /// A new instance for mocking. + public static IotSecuritySolutionAnalyticsModelData IotSecuritySolutionAnalyticsModelData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IotSeverityMetrics metrics = null, long? unhealthyDeviceCount = null, IEnumerable devicesMetrics = null, IEnumerable topAlertedDevices = null, IEnumerable mostPrevalentDeviceAlerts = null, IEnumerable mostPrevalentDeviceRecommendations = null) { - return new SecurityConnectorGitHubOwnerData( + devicesMetrics ??= new List(); + topAlertedDevices ??= new List(); + mostPrevalentDeviceAlerts ??= new List(); + mostPrevalentDeviceRecommendations ??= new List(); + + return new IotSecuritySolutionAnalyticsModelData( id, name, resourceType, systemData, - properties, + metrics, + unhealthyDeviceCount, + devicesMetrics?.ToList(), + topAlertedDevices?.ToList(), + mostPrevalentDeviceAlerts?.ToList(), + mostPrevalentDeviceRecommendations?.ToList(), serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// Gets or sets resource status message. - /// Gets or sets time when resource was last checked. - /// - /// The provisioning state of the resource. - /// - /// Pending - Provisioning pending. - /// Failed - Provisioning failed. - /// Succeeded - Successful provisioning. - /// Canceled - Provisioning canceled. - /// PendingDeletion - Deletion pending. - /// DeletionSuccess - Deletion successful. - /// DeletionFailure - Deletion failure. - /// - /// Gets or sets GitHub Owner url. - /// Gets or sets internal GitHub id. - /// - /// Details about resource onboarding status across all connectors. - /// - /// OnboardedByOtherConnector - this resource has already been onboarded to another connector. This is only applicable to top-level resources. - /// Onboarded - this resource has already been onboarded by the specified connector. - /// NotOnboarded - this resource has not been onboarded to any connector. - /// NotApplicable - the onboarding state is not applicable to the current endpoint. - /// - /// A new instance for mocking. - public static SecurityConnectorGitHubOwnerProperties SecurityConnectorGitHubOwnerProperties(string provisioningStatusMessage = null, DateTimeOffset? provisioningStatusUpdateTimeUtc = null, DevOpsProvisioningState? provisioningState = null, Uri ownerUri = null, string gitHubInternalId = null, ResourceOnboardingState? onboardingState = null) + /// Initializes a new instance of . + /// Count of high severity alerts/recommendations. + /// Count of medium severity alerts/recommendations. + /// Count of low severity alerts/recommendations. + /// A new instance for mocking. + public static IotSeverityMetrics IotSeverityMetrics(long? high = null, long? medium = null, long? low = null) { - return new SecurityConnectorGitHubOwnerProperties( - provisioningStatusMessage, - provisioningStatusUpdateTimeUtc, - provisioningState, - ownerUri, - gitHubInternalId, - onboardingState, + return new IotSeverityMetrics(high, medium, low, serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// Aggregation of IoT Security solution device alert metrics by date. + /// Device alert count by severity. + /// A new instance for mocking. + public static IotSecuritySolutionAnalyticsModelDevicesMetrics IotSecuritySolutionAnalyticsModelDevicesMetrics(DateTimeOffset? date = null, IotSeverityMetrics devicesMetrics = null) + { + return new IotSecuritySolutionAnalyticsModelDevicesMetrics(date, devicesMetrics, serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// Device identifier. + /// Number of alerts raised for this device. + /// A new instance for mocking. + public static IotSecurityAlertedDevice IotSecurityAlertedDevice(string deviceId = null, long? alertsCount = null) + { + return new IotSecurityAlertedDevice(deviceId, alertsCount, serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// Display name of the alert. + /// Assessed Alert severity. + /// Number of alerts raised for this alert type. + /// A new instance for mocking. + public static IotSecurityDeviceAlert IotSecurityDeviceAlert(string alertDisplayName = null, ReportedSeverity? reportedSeverity = null, long? alertsCount = null) + { + return new IotSecurityDeviceAlert(alertDisplayName, reportedSeverity, alertsCount, serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// Display name of the recommendation. + /// Assessed recommendation severity. + /// Number of devices with this recommendation. + /// A new instance for mocking. + public static IotSecurityDeviceRecommendation IotSecurityDeviceRecommendation(string recommendationDisplayName = null, ReportedSeverity? reportedSeverity = null, long? devicesCount = null) + { + return new IotSecurityDeviceRecommendation(recommendationDisplayName, reportedSeverity, devicesCount, serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Name of the alert type. + /// Display name of the alert type. + /// Date of detection. + /// Name of the organization that raised the alert. + /// Assessed alert severity. + /// Recommended steps for remediation. + /// Description of the suspected vulnerability and meaning. + /// Number of alerts occurrences within the aggregated time window. + /// Azure resource ID of the resource that received the alerts. + /// The type of the alerted resource (Azure, Non-Azure). + /// IoT Security solution alert response. + /// Log analytics query for getting the list of affected devices/alerts. + /// 10 devices with the highest number of occurrences of this alert type, on this day. + /// Resource tags. + /// A new instance for mocking. + public static IotSecurityAggregatedAlertData IotSecurityAggregatedAlertData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string alertType = null, string alertDisplayName = null, DateTimeOffset? aggregatedOn = null, string vendorName = null, ReportedSeverity? reportedSeverity = null, string remediationSteps = null, string description = null, long? count = null, string effectedResourceType = null, string systemSource = null, string actionTaken = null, string logAnalyticsQuery = null, IEnumerable topDevicesList = null, IDictionary tags = null) + { + topDevicesList ??= new List(); + tags ??= new Dictionary(); + + return new IotSecurityAggregatedAlertData( + id, + name, + resourceType, + systemData, + alertType, + alertDisplayName, + aggregatedOn, + vendorName, + reportedSeverity, + remediationSteps, + description, + count, + effectedResourceType, + systemSource, + actionTaken, + logAnalyticsQuery, + topDevicesList?.ToList(), + tags, serializedAdditionalRawData: null); } - /// Initializes a new instance of . + /// Initializes a new instance of . + /// Name of the device. + /// Number of alerts raised for this device. + /// Most recent time this alert was raised for this device, on this day. + /// A new instance for mocking. + public static IotSecurityAggregatedAlertTopDevice IotSecurityAggregatedAlertTopDevice(string deviceId = null, long? alertsCount = null, string lastOccurrence = null) + { + return new IotSecurityAggregatedAlertTopDevice(deviceId, alertsCount, lastOccurrence, serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . /// The id. /// The name. /// The resourceType. /// The systemData. - /// GitHub Repository properties. - /// A new instance for mocking. - public static SecurityConnectorGitHubRepositoryData SecurityConnectorGitHubRepositoryData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, SecurityConnectorGitHubRepositoryProperties properties = null) + /// Name of the recommendation. + /// Display name of the recommendation type. + /// Description of the suspected vulnerability and meaning. + /// Recommendation-type GUID. + /// Name of the organization that made the recommendation. + /// Recommended steps for remediation. + /// Assessed recommendation severity. + /// Number of healthy devices within the IoT Security solution. + /// Number of unhealthy devices within the IoT Security solution. + /// Log analytics query for getting the list of affected devices/alerts. + /// Resource tags. + /// A new instance for mocking. + public static IotSecurityAggregatedRecommendationData IotSecurityAggregatedRecommendationData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string recommendationName = null, string recommendationDisplayName = null, string description = null, string recommendationTypeId = null, string detectedBy = null, string remediationSteps = null, ReportedSeverity? reportedSeverity = null, long? healthyDevices = null, long? unhealthyDeviceCount = null, string logAnalyticsQuery = null, IDictionary tags = null) { - return new SecurityConnectorGitHubRepositoryData( + tags ??= new Dictionary(); + + return new IotSecurityAggregatedRecommendationData( id, name, resourceType, systemData, - properties, + recommendationName, + recommendationDisplayName, + description, + recommendationTypeId, + detectedBy, + remediationSteps, + reportedSeverity, + healthyDevices, + unhealthyDeviceCount, + logAnalyticsQuery, + tags, serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// Gets or sets resource status message. - /// Gets or sets time when resource was last checked. - /// - /// The provisioning state of the resource. - /// - /// Pending - Provisioning pending. - /// Failed - Provisioning failed. - /// Succeeded - Successful provisioning. - /// Canceled - Provisioning canceled. - /// PendingDeletion - Deletion pending. - /// DeletionSuccess - Deletion successful. - /// DeletionFailure - Deletion failure. - /// - /// - /// Gets or sets GitHub Repository id. - /// - /// This is a numeric id defined by Github. - /// Eg: "123456". - /// - /// - /// Gets or sets GitHub Repository name. - /// Eg: "new-repo-1". - /// - /// - /// Gets or sets GitHub Full Name. - /// Repository name, prefixed with Owner name. - /// Eg: "my-org/new-repo-1". - /// - /// - /// Details about resource onboarding status across all connectors. - /// - /// OnboardedByOtherConnector - this resource has already been onboarded to another connector. This is only applicable to top-level resources. - /// Onboarded - this resource has already been onboarded by the specified connector. - /// NotOnboarded - this resource has not been onboarded to any connector. - /// NotApplicable - the onboarding state is not applicable to the current endpoint. - /// - /// Gets or sets GitHub Repository url. - /// Gets or sets parent GitHub Owner name. - /// A new instance for mocking. - public static SecurityConnectorGitHubRepositoryProperties SecurityConnectorGitHubRepositoryProperties(string provisioningStatusMessage = null, DateTimeOffset? provisioningStatusUpdateTimeUtc = null, DevOpsProvisioningState? provisioningState = null, string repoId = null, string repoName = null, string repoFullName = null, ResourceOnboardingState? onboardingState = null, Uri repoUri = null, string parentOwnerName = null) + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The tags. + /// The location. + /// Workspace resource ID. + /// Resource display name. + /// Status of the IoT Security solution. + /// List of additional options for exporting to workspace data. + /// Disabled data sources. Disabling these data sources compromises the system. + /// IoT Hub resource IDs. + /// Properties of the IoT Security solution's user defined resources. + /// List of resources that were automatically discovered as relevant to the security solution. + /// List of the configuration status for each recommendation type. + /// Unmasked IP address logging status. + /// List of additional workspaces. + /// A new instance for mocking. + public static IotSecuritySolutionData IotSecuritySolutionData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, string workspace = null, string displayName = null, SecuritySolutionStatus? status = null, IEnumerable export = null, IEnumerable disabledDataSources = null, IEnumerable iotHubs = null, UserDefinedResourcesProperties userDefinedResources = null, IEnumerable autoDiscoveredResources = null, IEnumerable recommendationsConfiguration = null, UnmaskedIPLoggingStatus? unmaskedIPLoggingStatus = null, IEnumerable additionalWorkspaces = null) { - return new SecurityConnectorGitHubRepositoryProperties( - provisioningStatusMessage, - provisioningStatusUpdateTimeUtc, - provisioningState, - repoId, - repoName, - repoFullName, - onboardingState, - repoUri, - parentOwnerName, + tags ??= new Dictionary(); + export ??= new List(); + disabledDataSources ??= new List(); + iotHubs ??= new List(); + autoDiscoveredResources ??= new List(); + recommendationsConfiguration ??= new List(); + additionalWorkspaces ??= new List(); + + return new IotSecuritySolutionData( + id, + name, + resourceType, + systemData, + tags, + location, + workspace, + displayName, + status, + export?.ToList(), + disabledDataSources?.ToList(), + iotHubs?.ToList(), + userDefinedResources, + autoDiscoveredResources?.ToList(), + recommendationsConfiguration?.ToList(), + unmaskedIPLoggingStatus, + additionalWorkspaces?.ToList(), serializedAdditionalRawData: null); } - /// Initializes a new instance of . + /// Initializes a new instance of . + /// The type of IoT Security recommendation. + /// + /// Recommendation status. When the recommendation status is disabled recommendations are not generated. + /// A new instance for mocking. + public static RecommendationConfigurationProperties RecommendationConfigurationProperties(IotSecurityRecommendationType recommendationType = default, string name = null, RecommendationConfigStatus status = default) + { + return new RecommendationConfigurationProperties(recommendationType, name, status, serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . /// The id. /// The name. /// The resourceType. /// The systemData. - /// GitLab Group properties. - /// A new instance for mocking. - public static SecurityConnectorGitLabGroupData SecurityConnectorGitLabGroupData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, SecurityConnectorGitLabGroupProperties properties = null) + /// The security rules which are recommended to be effective on the VM. + /// The UTC time on which the rules were calculated. + /// The Network Security Groups effective on the network interfaces of the protected resource. + /// A new instance for mocking. + public static AdaptiveNetworkHardeningData AdaptiveNetworkHardeningData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IEnumerable rules = null, DateTimeOffset? rulesCalculatedOn = null, IEnumerable effectiveNetworkSecurityGroups = null) { - return new SecurityConnectorGitLabGroupData( + rules ??= new List(); + effectiveNetworkSecurityGroups ??= new List(); + + return new AdaptiveNetworkHardeningData( id, name, resourceType, systemData, - properties, - serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// Gets or sets resource status message. - /// Gets or sets time when resource was last checked. - /// - /// The provisioning state of the resource. - /// - /// Pending - Provisioning pending. - /// Failed - Provisioning failed. - /// Succeeded - Successful provisioning. - /// Canceled - Provisioning canceled. - /// PendingDeletion - Deletion pending. - /// DeletionSuccess - Deletion successful. - /// DeletionFailure - Deletion failure. - /// - /// - /// Gets or sets the fully-qualified name of the Group object. - /// - /// This contains the entire namespace hierarchy where namespaces are separated by the '$' character. - /// - /// - /// Gets or sets the human readable fully-qualified name of the Group object. - /// - /// This contains the entire namespace hierarchy as seen on GitLab UI where namespaces are separated by the '/' character. - /// - /// Gets or sets the url of the GitLab Group. - /// - /// Details about resource onboarding status across all connectors. - /// - /// OnboardedByOtherConnector - this resource has already been onboarded to another connector. This is only applicable to top-level resources. - /// Onboarded - this resource has already been onboarded by the specified connector. - /// NotOnboarded - this resource has not been onboarded to any connector. - /// NotApplicable - the onboarding state is not applicable to the current endpoint. - /// - /// A new instance for mocking. - public static SecurityConnectorGitLabGroupProperties SecurityConnectorGitLabGroupProperties(string provisioningStatusMessage = null, DateTimeOffset? provisioningStatusUpdateTimeUtc = null, DevOpsProvisioningState? provisioningState = null, string fullyQualifiedName = null, string fullyQualifiedFriendlyName = null, Uri uri = null, ResourceOnboardingState? onboardingState = null) - { - return new SecurityConnectorGitLabGroupProperties( - provisioningStatusMessage, - provisioningStatusUpdateTimeUtc, - provisioningState, - fullyQualifiedName, - fullyQualifiedFriendlyName, - uri, - onboardingState, + rules?.ToList(), + rulesCalculatedOn, + effectiveNetworkSecurityGroups?.ToList(), serializedAdditionalRawData: null); } - /// Initializes a new instance of . + /// Initializes a new instance of . /// The id. /// The name. /// The resourceType. /// The systemData. - /// GitLab Project properties. - /// A new instance for mocking. - public static SecurityConnectorGitLabProjectData SecurityConnectorGitLabProjectData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, SecurityConnectorGitLabProjectProperties properties = null) + /// The UTC time on which the allowed connections resource was calculated. + /// List of connectable resources. + /// Location where the resource is stored. + /// A new instance for mocking. + public static SecurityCenterAllowedConnection SecurityCenterAllowedConnection(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, DateTimeOffset? calculatedOn = null, IEnumerable connectableResources = null, AzureLocation? location = null) { - return new SecurityConnectorGitLabProjectData( + connectableResources ??= new List(); + + return new SecurityCenterAllowedConnection( id, name, resourceType, systemData, - properties, + calculatedOn, + connectableResources?.ToList(), + location, serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// Gets or sets resource status message. - /// Gets or sets time when resource was last checked. - /// - /// The provisioning state of the resource. - /// - /// Pending - Provisioning pending. - /// Failed - Provisioning failed. - /// Succeeded - Successful provisioning. - /// Canceled - Provisioning canceled. - /// PendingDeletion - Deletion pending. - /// DeletionSuccess - Deletion successful. - /// DeletionFailure - Deletion failure. - /// - /// - /// Gets or sets the fully-qualified name of the project object. - /// - /// This contains the entire hierarchy where entities are separated by the '$' character. - /// - /// - /// Gets or sets the human readable fully-qualified name of the Project object. - /// - /// This contains the entire namespace hierarchy as seen on GitLab UI where entities are separated by the '/' character. - /// - /// - /// Gets or sets the fully-qualified name of the project's parent group object. - /// - /// This contains the entire hierarchy where namespaces are separated by the '$' character. - /// - /// Gets or sets the url of the GitLab Project. - /// - /// Details about resource onboarding status across all connectors. - /// - /// OnboardedByOtherConnector - this resource has already been onboarded to another connector. This is only applicable to top-level resources. - /// Onboarded - this resource has already been onboarded by the specified connector. - /// NotOnboarded - this resource has not been onboarded to any connector. - /// NotApplicable - the onboarding state is not applicable to the current endpoint. - /// - /// A new instance for mocking. - public static SecurityConnectorGitLabProjectProperties SecurityConnectorGitLabProjectProperties(string provisioningStatusMessage = null, DateTimeOffset? provisioningStatusUpdateTimeUtc = null, DevOpsProvisioningState? provisioningState = null, string fullyQualifiedName = null, string fullyQualifiedFriendlyName = null, string fullyQualifiedParentGroupName = null, Uri uri = null, ResourceOnboardingState? onboardingState = null) + /// Initializes a new instance of . + /// The Azure resource id. + /// The list of Azure resources that the resource has inbound allowed connection from. + /// The list of Azure resources that the resource has outbound allowed connection to. + /// A new instance for mocking. + public static ConnectableResourceInfo ConnectableResourceInfo(ResourceIdentifier id = null, IEnumerable inboundConnectedResources = null, IEnumerable outboundConnectedResources = null) { - return new SecurityConnectorGitLabProjectProperties( - provisioningStatusMessage, - provisioningStatusUpdateTimeUtc, - provisioningState, - fullyQualifiedName, - fullyQualifiedFriendlyName, - fullyQualifiedParentGroupName, - uri, - onboardingState, - serializedAdditionalRawData: null); + inboundConnectedResources ??= new List(); + outboundConnectedResources ??= new List(); + + return new ConnectableResourceInfo(id, inboundConnectedResources?.ToList(), outboundConnectedResources?.ToList(), serializedAdditionalRawData: null); } - /// Initializes a new instance of . + /// Initializes a new instance of . + /// The Azure resource id of the connected resource. + /// The allowed tcp ports. + /// The allowed udp ports. + /// A new instance for mocking. + public static ConnectedResourceInfo ConnectedResourceInfo(ResourceIdentifier connectedResourceId = null, string tcpPorts = null, string udpPorts = null) + { + return new ConnectedResourceInfo(connectedResourceId, tcpPorts, udpPorts, serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . /// The id. /// The name. /// The resourceType. /// The systemData. - /// The tags. - /// The location. - /// The multi cloud resource identifier (account id in case of AWS connector, project number in case of GCP connector). - /// The date on which the trial period will end, if applicable. Trial period exists for 30 days after upgrading to payed offerings. - /// The multi cloud resource's cloud name. - /// - /// A collection of offerings for the security connector. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , , , , , , , , , , , , , and . - /// - /// - /// The security connector environment data. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , and . - /// - /// Kind of the resource. - /// Entity tag is used for comparing two or more entities from the same requested resource. - /// A new instance for mocking. - public static SecurityConnectorData SecurityConnectorData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, string hierarchyIdentifier = null, DateTimeOffset? hierarchyIdentifierTrialEndOn = null, SecurityCenterCloudName? environmentName = null, IEnumerable offerings = null, SecurityConnectorEnvironment environmentData = null, string kind = null, ETag? eTag = null) + /// The application control policy enforcement/protection mode of the machine group. + /// The protection mode of the collection/file types. Exe/Msi/Script are used for Windows, Executable is used for Linux. + /// The configuration status of the machines group or machine or rule. + /// The initial recommendation status of the machine group or machine. + /// + /// The source type of the machine group. + /// + /// + /// Location where the resource is stored. + /// A new instance for mocking. + public static AdaptiveApplicationControlGroupData AdaptiveApplicationControlGroupData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, AdaptiveApplicationControlEnforcementMode? enforcementMode = null, SecurityCenterFileProtectionMode protectionMode = null, SecurityCenterConfigurationStatus? configurationStatus = null, RecommendationStatus? recommendationStatus = null, IEnumerable issues = null, AdaptiveApplicationControlGroupSourceSystem? sourceSystem = null, IEnumerable vmRecommendations = null, IEnumerable pathRecommendations = null, AzureLocation? location = null) { - tags ??= new Dictionary(); - offerings ??= new List(); + issues ??= new List(); + vmRecommendations ??= new List(); + pathRecommendations ??= new List(); - return new SecurityConnectorData( + return new AdaptiveApplicationControlGroupData( id, name, resourceType, systemData, - tags, + enforcementMode, + protectionMode, + configurationStatus, + recommendationStatus, + issues?.ToList(), + sourceSystem, + vmRecommendations?.ToList(), + pathRecommendations?.ToList(), location, - hierarchyIdentifier, - hierarchyIdentifierTrialEndOn, - environmentName, - offerings?.ToList(), - environmentData, - kind, - eTag, serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// The type of the security offering. - /// The offering description. - /// A new instance for mocking. - public static SecurityCenterCloudOffering SecurityCenterCloudOffering(string offeringType = null, string description = null) + /// Initializes a new instance of . + /// An alert that machines within a group can have. + /// The number of machines in the group that have this alert. + /// A new instance for mocking. + public static AdaptiveApplicationControlIssueSummary AdaptiveApplicationControlIssueSummary(AdaptiveApplicationControlIssue? issue = null, float? numberOfVms = null) { - return new UnknownCloudOffering(offeringType == null ? default : new OfferingType(offeringType), description, serializedAdditionalRawData: null); + return new AdaptiveApplicationControlIssueSummary(issue, numberOfVms, serializedAdditionalRawData: null); } - /// Initializes a new instance of . + /// Initializes a new instance of . /// The id. /// The name. /// The resourceType. /// The systemData. - /// The status of the resource regarding a single assessment. - /// A new instance for mocking. - public static ComplianceResultData ComplianceResultData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, SecurityAssessmentResourceStatus? resourceStatus = null) + /// The security family of the discovered solution. + /// The security solutions' image offer. + /// The security solutions' image publisher. + /// The security solutions' image sku. + /// Location where the resource is stored. + /// A new instance for mocking. + public static DiscoveredSecuritySolution DiscoveredSecuritySolution(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, SecurityFamily securityFamily = default, string offer = null, string publisher = null, string sku = null, AzureLocation? location = null) { - return new ComplianceResultData( + return new DiscoveredSecuritySolution( id, name, resourceType, systemData, - resourceStatus, + securityFamily, + offer, + publisher, + sku, + location, serializedAdditionalRawData: null); } - /// Initializes a new instance of . + /// Initializes a new instance of . /// The id. /// The name. /// The resourceType. /// The systemData. - /// Indicates whether Advanced Threat Protection is enabled. - /// A new instance for mocking. - public static AdvancedThreatProtectionSettingData AdvancedThreatProtectionSettingData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, bool? isEnabled = null) + /// The kind of the external solution. + /// Location where the resource is stored. + /// A new instance for mocking. + public static ExternalSecuritySolution ExternalSecuritySolution(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string kind = null, AzureLocation? location = null) { - return new AdvancedThreatProtectionSettingData( + return new ExternalSecuritySolution( id, name, resourceType, systemData, - isEnabled, + kind == null ? null : new ExternalSecuritySolutionKind?(kind), + location, serializedAdditionalRawData: null); } - /// Initializes a new instance of . + /// Initializes a new instance of . /// The id. /// The name. /// The resourceType. /// The systemData. - /// - /// The list of custom alert threshold rules. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , , , , , , , , , , , , , and . - /// - /// - /// The list of custom alert time-window rules. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , , , , , , , , , , , , and . - /// - /// - /// The allow-list custom alert rules. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , and . - /// - /// The deny-list custom alert rules. - /// A new instance for mocking. - public static DeviceSecurityGroupData DeviceSecurityGroupData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IEnumerable thresholdRules = null, IEnumerable timeWindowRules = null, IEnumerable allowlistRules = null, IEnumerable denylistRules = null) + /// Configurations for Microsoft.Compute/virtualMachines resource type. + /// + /// Gets the provisioning state of the Just-in-Time policy. + /// Kind of the resource. + /// Location where the resource is stored. + /// A new instance for mocking. + public static JitNetworkAccessPolicyData JitNetworkAccessPolicyData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IEnumerable virtualMachines = null, IEnumerable requests = null, string provisioningState = null, string kind = null, AzureLocation? location = null) { - thresholdRules ??= new List(); - timeWindowRules ??= new List(); - allowlistRules ??= new List(); - denylistRules ??= new List(); + virtualMachines ??= new List(); + requests ??= new List(); - return new DeviceSecurityGroupData( + return new JitNetworkAccessPolicyData( id, name, resourceType, systemData, - thresholdRules?.ToList(), - timeWindowRules?.ToList(), - allowlistRules?.ToList(), - denylistRules?.ToList(), + virtualMachines?.ToList(), + requests?.ToList(), + provisioningState, + kind, + location, serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// The display name of the custom alert. - /// The description of the custom alert. - /// Status of the custom alert. - /// The minimum threshold. - /// The maximum threshold. - /// A new instance for mocking. - public static ThresholdCustomAlertRule ThresholdCustomAlertRule(string displayName = null, string description = null, bool isEnabled = default, int minThreshold = default, int maxThreshold = default) - { - return new ThresholdCustomAlertRule( - displayName, - description, - isEnabled, - "ThresholdCustomAlertRule", - serializedAdditionalRawData: null, - minThreshold, - maxThreshold); - } - - /// Initializes a new instance of . - /// The display name of the custom alert. - /// The description of the custom alert. - /// Status of the custom alert. - /// The type of the custom alert rule. - /// A new instance for mocking. - public static CustomAlertRule CustomAlertRule(string displayName = null, string description = null, bool isEnabled = default, string ruleType = null) - { - return new UnknownCustomAlertRule(displayName, description, isEnabled, ruleType, serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// The display name of the custom alert. - /// The description of the custom alert. - /// Status of the custom alert. - /// The minimum threshold. - /// The maximum threshold. - /// The time window size in iso8601 format. - /// A new instance for mocking. - public static TimeWindowCustomAlertRule TimeWindowCustomAlertRule(string displayName = null, string description = null, bool isEnabled = default, int minThreshold = default, int maxThreshold = default, TimeSpan timeWindowSize = default) - { - return new TimeWindowCustomAlertRule( - displayName, - description, - isEnabled, - "TimeWindowCustomAlertRule", - serializedAdditionalRawData: null, - minThreshold, - maxThreshold, - timeWindowSize); - } - - /// Initializes a new instance of . - /// The display name of the custom alert. - /// The description of the custom alert. - /// Status of the custom alert. - /// The value type of the items in the list. - /// The values to allow. The format of the values depends on the rule type. - /// A new instance for mocking. - public static AllowlistCustomAlertRule AllowlistCustomAlertRule(string displayName = null, string description = null, bool isEnabled = default, SecurityValueType? valueType = null, IEnumerable allowlistValues = null) - { - allowlistValues ??= new List(); - - return new AllowlistCustomAlertRule( - displayName, - description, - isEnabled, - "AllowlistCustomAlertRule", - serializedAdditionalRawData: null, - valueType, - allowlistValues?.ToList()); - } - - /// Initializes a new instance of . - /// The display name of the custom alert. - /// The description of the custom alert. - /// Status of the custom alert. - /// The value type of the items in the list. - /// A new instance for mocking. - public static ListCustomAlertRule ListCustomAlertRule(string displayName = null, string description = null, bool isEnabled = default, SecurityValueType? valueType = null) - { - return new ListCustomAlertRule( - displayName, - description, - isEnabled, - "ListCustomAlertRule", - serializedAdditionalRawData: null, - valueType); - } - - /// Initializes a new instance of . - /// The display name of the custom alert. - /// The description of the custom alert. - /// Status of the custom alert. - /// The value type of the items in the list. - /// The values to deny. The format of the values depends on the rule type. - /// A new instance for mocking. - public static DenylistCustomAlertRule DenylistCustomAlertRule(string displayName = null, string description = null, bool isEnabled = default, SecurityValueType? valueType = null, IEnumerable denylistValues = null) + /// Initializes a new instance of . + /// + /// Source of the allowed traffic. If omitted, the request will be for the source IP address of the initiate request. + /// The time to close the request in UTC. + /// A new instance for mocking. + public static JitNetworkAccessPolicyInitiatePort JitNetworkAccessPolicyInitiatePort(int number = default, string allowedSourceAddressPrefix = null, DateTimeOffset endOn = default) { - denylistValues ??= new List(); - - return new DenylistCustomAlertRule( - displayName, - description, - isEnabled, - "DenylistCustomAlertRule", - serializedAdditionalRawData: null, - valueType, - denylistValues?.ToList()); + return new JitNetworkAccessPolicyInitiatePort(number, allowedSourceAddressPrefix, endOn, serializedAdditionalRawData: null); } - /// Initializes a new instance of . + /// Initializes a new instance of . /// The id. /// The name. /// The resourceType. /// The systemData. - /// Security analytics of your IoT Security solution. - /// Number of unhealthy devices within your IoT Security solution. - /// List of device metrics by the aggregation date. - /// List of the 3 devices with the most alerts. - /// List of the 3 most prevalent device alerts. - /// List of the 3 most prevalent device recommendations. - /// A new instance for mocking. - public static IotSecuritySolutionAnalyticsModelData IotSecuritySolutionAnalyticsModelData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IotSeverityMetrics metrics = null, long? unhealthyDeviceCount = null, IEnumerable devicesMetrics = null, IEnumerable topAlertedDevices = null, IEnumerable mostPrevalentDeviceAlerts = null, IEnumerable mostPrevalentDeviceRecommendations = null) + /// The initiative’s name. + /// The relative weight for each subscription. Used when calculating an aggregated secure score for multiple subscriptions. + /// Maximum score available. + /// Current score. + /// Ratio of the current score divided by the maximum. Rounded to 4 digits after the decimal point. + /// A new instance for mocking. + public static SecureScoreData SecureScoreData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string displayName = null, long? weight = null, int? max = null, double? current = null, double? percentage = null) { - devicesMetrics ??= new List(); - topAlertedDevices ??= new List(); - mostPrevalentDeviceAlerts ??= new List(); - mostPrevalentDeviceRecommendations ??= new List(); - - return new IotSecuritySolutionAnalyticsModelData( + return new SecureScoreData( id, name, resourceType, systemData, - metrics, - unhealthyDeviceCount, - devicesMetrics?.ToList(), - topAlertedDevices?.ToList(), - mostPrevalentDeviceAlerts?.ToList(), - mostPrevalentDeviceRecommendations?.ToList(), + displayName, + weight, + max, + current, + percentage, serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// Count of high severity alerts/recommendations. - /// Count of medium severity alerts/recommendations. - /// Count of low severity alerts/recommendations. - /// A new instance for mocking. - public static IotSeverityMetrics IotSeverityMetrics(long? high = null, long? medium = null, long? low = null) - { - return new IotSeverityMetrics(high, medium, low, serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// Aggregation of IoT Security solution device alert metrics by date. - /// Device alert count by severity. - /// A new instance for mocking. - public static IotSecuritySolutionAnalyticsModelDevicesMetrics IotSecuritySolutionAnalyticsModelDevicesMetrics(DateTimeOffset? date = null, IotSeverityMetrics devicesMetrics = null) - { - return new IotSecuritySolutionAnalyticsModelDevicesMetrics(date, devicesMetrics, serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// Device identifier. - /// Number of alerts raised for this device. - /// A new instance for mocking. - public static IotSecurityAlertedDevice IotSecurityAlertedDevice(string deviceId = null, long? alertsCount = null) - { - return new IotSecurityAlertedDevice(deviceId, alertsCount, serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// Display name of the alert. - /// Assessed Alert severity. - /// Number of alerts raised for this alert type. - /// A new instance for mocking. - public static IotSecurityDeviceAlert IotSecurityDeviceAlert(string alertDisplayName = null, ReportedSeverity? reportedSeverity = null, long? alertsCount = null) - { - return new IotSecurityDeviceAlert(alertDisplayName, reportedSeverity, alertsCount, serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// Display name of the recommendation. - /// Assessed recommendation severity. - /// Number of devices with this recommendation. - /// A new instance for mocking. - public static IotSecurityDeviceRecommendation IotSecurityDeviceRecommendation(string recommendationDisplayName = null, ReportedSeverity? reportedSeverity = null, long? devicesCount = null) + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// User friendly display name of the control. + /// Number of healthy resources in the control. + /// Number of unhealthy resources in the control. + /// Number of not applicable resources in the control. + /// The relative weight for this specific control in each of your subscriptions. Used when calculating an aggregated score for this control across all of your subscriptions. + /// Information about the security control. + /// Maximum score available. + /// Current score. + /// Ratio of the current score divided by the maximum. Rounded to 4 digits after the decimal point. + /// A new instance for mocking. + public static SecureScoreControlDetails SecureScoreControlDetails(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string displayName = null, int? healthyResourceCount = null, int? unhealthyResourceCount = null, int? notApplicableResourceCount = null, long? weight = null, SecureScoreControlDefinitionItem definition = null, int? max = null, double? current = null, double? percentage = null) { - return new IotSecurityDeviceRecommendation(recommendationDisplayName, reportedSeverity, devicesCount, serializedAdditionalRawData: null); + return new SecureScoreControlDetails( + id, + name, + resourceType, + systemData, + displayName, + healthyResourceCount, + unhealthyResourceCount, + notApplicableResourceCount, + weight, + definition, + max, + current, + percentage, + serializedAdditionalRawData: null); } - /// Initializes a new instance of . + /// Initializes a new instance of . /// The id. /// The name. /// The resourceType. /// The systemData. - /// Name of the alert type. - /// Display name of the alert type. - /// Date of detection. - /// Name of the organization that raised the alert. - /// Assessed alert severity. - /// Recommended steps for remediation. - /// Description of the suspected vulnerability and meaning. - /// Number of alerts occurrences within the aggregated time window. - /// Azure resource ID of the resource that received the alerts. - /// The type of the alerted resource (Azure, Non-Azure). - /// IoT Security solution alert response. - /// Log analytics query for getting the list of affected devices/alerts. - /// 10 devices with the highest number of occurrences of this alert type, on this day. - /// Resource tags. - /// A new instance for mocking. - public static IotSecurityAggregatedAlertData IotSecurityAggregatedAlertData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string alertType = null, string alertDisplayName = null, DateTimeOffset? aggregatedOn = null, string vendorName = null, ReportedSeverity? reportedSeverity = null, string remediationSteps = null, string description = null, long? count = null, string effectedResourceType = null, string systemSource = null, string actionTaken = null, string logAnalyticsQuery = null, IEnumerable topDevicesList = null, IDictionary tags = null) + /// User friendly display name of the control. + /// User friendly description of the control. + /// Maximum control score (0..10). + /// Source object from which the control was created. + /// Array of assessments metadata IDs that are included in this security control. + /// A new instance for mocking. + public static SecureScoreControlDefinitionItem SecureScoreControlDefinitionItem(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string displayName = null, string description = null, int? maxScore = null, SecurityControlType? sourceType = null, IEnumerable assessmentDefinitions = null) { - topDevicesList ??= new List(); - tags ??= new Dictionary(); + assessmentDefinitions ??= new List(); - return new IotSecurityAggregatedAlertData( + return new SecureScoreControlDefinitionItem( id, name, resourceType, systemData, - alertType, - alertDisplayName, - aggregatedOn, - vendorName, - reportedSeverity, - remediationSteps, + displayName, description, - count, - effectedResourceType, - systemSource, - actionTaken, - logAnalyticsQuery, - topDevicesList?.ToList(), - tags, + maxScore, + sourceType != null ? new SecureScoreControlDefinitionSource(sourceType, serializedAdditionalRawData: null) : null, + assessmentDefinitions?.ToList(), serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// Name of the device. - /// Number of alerts raised for this device. - /// Most recent time this alert was raised for this device, on this day. - /// A new instance for mocking. - public static IotSecurityAggregatedAlertTopDevice IotSecurityAggregatedAlertTopDevice(string deviceId = null, long? alertsCount = null, string lastOccurrence = null) - { - return new IotSecurityAggregatedAlertTopDevice(deviceId, alertsCount, lastOccurrence, serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . + /// Initializes a new instance of . /// The id. /// The name. /// The resourceType. /// The systemData. - /// Name of the recommendation. - /// Display name of the recommendation type. - /// Description of the suspected vulnerability and meaning. - /// Recommendation-type GUID. - /// Name of the organization that made the recommendation. - /// Recommended steps for remediation. - /// Assessed recommendation severity. - /// Number of healthy devices within the IoT Security solution. - /// Number of unhealthy devices within the IoT Security solution. - /// Log analytics query for getting the list of affected devices/alerts. - /// Resource tags. - /// A new instance for mocking. - public static IotSecurityAggregatedRecommendationData IotSecurityAggregatedRecommendationData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string recommendationName = null, string recommendationDisplayName = null, string description = null, string recommendationTypeId = null, string detectedBy = null, string remediationSteps = null, ReportedSeverity? reportedSeverity = null, long? healthyDevices = null, long? unhealthyDeviceCount = null, string logAnalyticsQuery = null, IDictionary tags = null) + /// The security family of the security solution. + /// The security family provisioning State. + /// The security solutions' template. + /// The security solutions' status. + /// Location where the resource is stored. + /// A new instance for mocking. + public static SecuritySolution SecuritySolution(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, SecurityFamily? securityFamily = null, SecurityFamilyProvisioningState? provisioningState = null, string template = null, string protectionStatus = null, AzureLocation? location = null) { - tags ??= new Dictionary(); - - return new IotSecurityAggregatedRecommendationData( + return new SecuritySolution( id, name, resourceType, systemData, - recommendationName, - recommendationDisplayName, - description, - recommendationTypeId, - detectedBy, - remediationSteps, - reportedSeverity, - healthyDevices, - unhealthyDeviceCount, - logAnalyticsQuery, - tags, + securityFamily, + provisioningState, + template, + protectionStatus, + location, serializedAdditionalRawData: null); } - /// Initializes a new instance of . + /// Initializes a new instance of . /// The id. /// The name. /// The resourceType. /// The systemData. - /// The tags. - /// The location. - /// Workspace resource ID. - /// Resource display name. - /// Status of the IoT Security solution. - /// List of additional options for exporting to workspace data. - /// Disabled data sources. Disabling these data sources compromises the system. - /// IoT Hub resource IDs. - /// Properties of the IoT Security solution's user defined resources. - /// List of resources that were automatically discovered as relevant to the security solution. - /// List of the configuration status for each recommendation type. - /// Unmasked IP address logging status. - /// List of additional workspaces. - /// A new instance for mocking. - public static IotSecuritySolutionData IotSecuritySolutionData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, string workspace = null, string displayName = null, SecuritySolutionStatus? status = null, IEnumerable export = null, IEnumerable disabledDataSources = null, IEnumerable iotHubs = null, UserDefinedResourcesProperties userDefinedResources = null, IEnumerable autoDiscoveredResources = null, IEnumerable recommendationsConfiguration = null, UnmaskedIPLoggingStatus? unmaskedIPLoggingStatus = null, IEnumerable additionalWorkspaces = null) + /// The security family of the security solution. + /// The security solutions' vendor name. + /// The security solutions' package info url. + /// The security solutions' product name. + /// The security solutions' publisher. + /// The security solutions' publisher display name. + /// The security solutions' template. + /// Location where the resource is stored. + /// A new instance for mocking. + public static SecuritySolutionsReferenceData SecuritySolutionsReferenceData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, SecurityFamily securityFamily = default, string alertVendorName = null, Uri packageInfoUri = null, string productName = null, string publisher = null, string publisherDisplayName = null, string template = null, AzureLocation? location = null) { - tags ??= new Dictionary(); - export ??= new List(); - disabledDataSources ??= new List(); - iotHubs ??= new List(); - autoDiscoveredResources ??= new List(); - recommendationsConfiguration ??= new List(); - additionalWorkspaces ??= new List(); - - return new IotSecuritySolutionData( + return new SecuritySolutionsReferenceData( id, name, resourceType, systemData, - tags, + securityFamily, + alertVendorName, + packageInfoUri, + productName, + publisher, + publisherDisplayName, + template, location, - workspace, - displayName, - status, - export?.ToList(), - disabledDataSources?.ToList(), - iotHubs?.ToList(), - userDefinedResources, - autoDiscoveredResources?.ToList(), - recommendationsConfiguration?.ToList(), - unmaskedIPLoggingStatus, - additionalWorkspaces?.ToList(), serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// The type of IoT Security recommendation. - /// - /// Recommendation status. When the recommendation status is disabled recommendations are not generated. - /// A new instance for mocking. - public static RecommendationConfigurationProperties RecommendationConfigurationProperties(IotSecurityRecommendationType recommendationType = default, string name = null, RecommendationConfigStatus status = default) + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The provisioningState of the vulnerability assessment capability on the VM. + /// A new instance for mocking. + public static ServerVulnerabilityAssessmentData ServerVulnerabilityAssessmentData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, ServerVulnerabilityAssessmentPropertiesProvisioningState? provisioningState = null) { - return new RecommendationConfigurationProperties(recommendationType, name, status, serializedAdditionalRawData: null); + return new ServerVulnerabilityAssessmentData( + id, + name, + resourceType, + systemData, + provisioningState, + serializedAdditionalRawData: null); } - /// Initializes a new instance of . + /// Initializes a new instance of . /// The id. /// The name. /// The resourceType. /// The systemData. - /// The security rules which are recommended to be effective on the VM. - /// The UTC time on which the rules were calculated. - /// The Network Security Groups effective on the network interfaces of the protected resource. - /// A new instance for mocking. - public static AdaptiveNetworkHardeningData AdaptiveNetworkHardeningData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IEnumerable rules = null, DateTimeOffset? rulesCalculatedOn = null, IEnumerable effectiveNetworkSecurityGroups = null) + /// The UTC time on which the topology was calculated. + /// Azure resources which are part of this topology resource. + /// Location where the resource is stored. + /// A new instance for mocking. + public static SecurityTopologyResource SecurityTopologyResource(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, DateTimeOffset? calculatedOn = null, IEnumerable topologyResources = null, AzureLocation? location = null) + { + topologyResources ??= new List(); + + return new SecurityTopologyResource( + id, + name, + resourceType, + systemData, + calculatedOn, + topologyResources?.ToList(), + location, + serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// Azure resource id. + /// The security severity of the resource. + /// Indicates if the resource has security recommendations. + /// Indicates the resource connectivity level to the Internet (InternetFacing, Internal ,etc.). + /// Score of the resource based on its security severity. + /// The location of this resource. + /// Azure resources connected to this resource which are in higher level in the topology view. + /// Azure resources connected to this resource which are in lower level in the topology view. + /// A new instance for mocking. + public static TopologySingleResource TopologySingleResource(ResourceIdentifier resourceId = null, string severity = null, bool? recommendationsExist = null, string networkZones = null, int? topologyScore = null, AzureLocation? location = null, IEnumerable parents = null, IEnumerable children = null) + { + parents ??= new List(); + children ??= new List(); + + return new TopologySingleResource( + resourceId, + severity, + recommendationsExist, + networkZones, + topologyScore, + location, + parents?.ToList(), + children?.ToList(), + serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// Azure resource id which serves as parent resource in topology view. + /// A new instance for mocking. + public static TopologySingleResourceParent TopologySingleResourceParent(ResourceIdentifier resourceId = null) { - rules ??= new List(); - effectiveNetworkSecurityGroups ??= new List(); + return new TopologySingleResourceParent(resourceId, serializedAdditionalRawData: null); + } - return new AdaptiveNetworkHardeningData( - id, - name, - resourceType, - systemData, - rules?.ToList(), - rulesCalculatedOn, - effectiveNetworkSecurityGroups?.ToList(), - serializedAdditionalRawData: null); + /// Initializes a new instance of . + /// Azure resource id which serves as child resource in topology view. + /// A new instance for mocking. + public static TopologySingleResourceChild TopologySingleResourceChild(ResourceIdentifier resourceId = null) + { + return new TopologySingleResourceChild(resourceId, serializedAdditionalRawData: null); } - /// Initializes a new instance of . + /// Initializes a new instance of . /// The id. /// The name. /// The resourceType. /// The systemData. - /// The UTC time on which the allowed connections resource was calculated. - /// List of connectable resources. - /// Location where the resource is stored. - /// A new instance for mocking. - public static SecurityCenterAllowedConnection SecurityCenterAllowedConnection(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, DateTimeOffset? calculatedOn = null, IEnumerable connectableResources = null, AzureLocation? location = null) + /// User friendly display name of the assessment. + /// Azure resource ID of the policy definition that turns this assessment calculation on. + /// Human readable description of the assessment. + /// Human readable description of what you should do to mitigate this security issue. + /// + /// The severity level of the assessment. + /// The user impact of the assessment. + /// The implementation effort required to remediate this assessment. + /// + /// True if this assessment is in preview release status. + /// BuiltIn if the assessment based on built-in Azure Policy definition, Custom if the assessment based on custom Azure Policy definition. + /// Describes the partner that created the assessment. + /// + /// + /// + /// + /// A new instance for mocking. + public static SecurityAssessmentMetadataData SecurityAssessmentMetadataData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string displayName = null, ResourceIdentifier policyDefinitionId = null, string description = null, string remediationDescription = null, IEnumerable categories = null, SecurityAssessmentSeverity? severity = null, SecurityAssessmentUserImpact? userImpact = null, ImplementationEffort? implementationEffort = null, IEnumerable threats = null, bool? isPreview = null, SecurityAssessmentType? assessmentType = null, SecurityAssessmentMetadataPartner partnerData = null, SecurityAssessmentPublishDates publishDates = null, string plannedDeprecationDate = null, IEnumerable tactics = null, IEnumerable techniques = null) { - connectableResources ??= new List(); + categories ??= new List(); + threats ??= new List(); + tactics ??= new List(); + techniques ??= new List(); - return new SecurityCenterAllowedConnection( + return new SecurityAssessmentMetadataData( id, name, resourceType, systemData, - calculatedOn, - connectableResources?.ToList(), - location, + displayName, + policyDefinitionId, + description, + remediationDescription, + categories?.ToList(), + severity, + userImpact, + implementationEffort, + threats?.ToList(), + isPreview, + assessmentType, + partnerData, + publishDates, + plannedDeprecationDate, + tactics?.ToList(), + techniques?.ToList(), serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// The Azure resource id. - /// The list of Azure resources that the resource has inbound allowed connection from. - /// The list of Azure resources that the resource has outbound allowed connection to. - /// A new instance for mocking. - public static ConnectableResourceInfo ConnectableResourceInfo(ResourceIdentifier id = null, IEnumerable inboundConnectedResources = null, IEnumerable outboundConnectedResources = null) + /// Initializes a new instance of . + /// User friendly display name of the assessment. + /// Azure resource ID of the policy definition that turns this assessment calculation on. + /// Human readable description of the assessment. + /// Human readable description of what you should do to mitigate this security issue. + /// + /// The severity level of the assessment. + /// The user impact of the assessment. + /// The implementation effort required to remediate this assessment. + /// + /// True if this assessment is in preview release status. + /// BuiltIn if the assessment based on built-in Azure Policy definition, Custom if the assessment based on custom Azure Policy definition. + /// Describes the partner that created the assessment. + /// A new instance for mocking. + public static SecurityAssessmentMetadataProperties SecurityAssessmentMetadataProperties(string displayName = null, ResourceIdentifier policyDefinitionId = null, string description = null, string remediationDescription = null, IEnumerable categories = null, SecurityAssessmentSeverity severity = default, SecurityAssessmentUserImpact? userImpact = null, ImplementationEffort? implementationEffort = null, IEnumerable threats = null, bool? isPreview = null, SecurityAssessmentType assessmentType = default, SecurityAssessmentMetadataPartner partnerData = null) { - inboundConnectedResources ??= new List(); - outboundConnectedResources ??= new List(); - - return new ConnectableResourceInfo(id, inboundConnectedResources?.ToList(), outboundConnectedResources?.ToList(), serializedAdditionalRawData: null); - } + categories ??= new List(); + threats ??= new List(); - /// Initializes a new instance of . - /// The Azure resource id of the connected resource. - /// The allowed tcp ports. - /// The allowed udp ports. - /// A new instance for mocking. - public static ConnectedResourceInfo ConnectedResourceInfo(ResourceIdentifier connectedResourceId = null, string tcpPorts = null, string udpPorts = null) - { - return new ConnectedResourceInfo(connectedResourceId, tcpPorts, udpPorts, serializedAdditionalRawData: null); + return new SecurityAssessmentMetadataProperties( + displayName, + policyDefinitionId, + description, + remediationDescription, + categories?.ToList(), + severity, + userImpact, + implementationEffort, + threats?.ToList(), + isPreview, + assessmentType, + partnerData, + serializedAdditionalRawData: null); } - /// Initializes a new instance of . + /// Initializes a new instance of . /// The id. /// The name. /// The resourceType. /// The systemData. - /// The application control policy enforcement/protection mode of the machine group. - /// The protection mode of the collection/file types. Exe/Msi/Script are used for Windows, Executable is used for Linux. - /// The configuration status of the machines group or machine or rule. - /// The initial recommendation status of the machine group or machine. - /// - /// The source type of the machine group. - /// - /// - /// Location where the resource is stored. - /// A new instance for mocking. - public static AdaptiveApplicationControlGroupData AdaptiveApplicationControlGroupData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, AdaptiveApplicationControlEnforcementMode? enforcementMode = null, SecurityCenterFileProtectionMode protectionMode = null, SecurityCenterConfigurationStatus? configurationStatus = null, RecommendationStatus? recommendationStatus = null, IEnumerable issues = null, AdaptiveApplicationControlGroupSourceSystem? sourceSystem = null, IEnumerable vmRecommendations = null, IEnumerable pathRecommendations = null, AzureLocation? location = null) + /// + /// Details of the resource that was assessed + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , and . + /// + /// User friendly display name of the assessment. + /// Additional data regarding the assessment. + /// Links relevant to the assessment. + /// Describes properties of an assessment metadata. + /// Data regarding 3rd party partner integration. + /// The result of the assessment. + /// A new instance for mocking. + public static SecurityAssessmentData SecurityAssessmentData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, SecurityCenterResourceDetails resourceDetails = null, string displayName = null, IDictionary additionalData = null, Uri linksAzurePortalUri = null, SecurityAssessmentMetadataProperties metadata = null, SecurityAssessmentPartner partnersData = null, SecurityAssessmentStatusResult status = null) { - issues ??= new List(); - vmRecommendations ??= new List(); - pathRecommendations ??= new List(); + additionalData ??= new Dictionary(); - return new AdaptiveApplicationControlGroupData( + return new SecurityAssessmentData( id, name, resourceType, systemData, - enforcementMode, - protectionMode, - configurationStatus, - recommendationStatus, - issues?.ToList(), - sourceSystem, - vmRecommendations?.ToList(), - pathRecommendations?.ToList(), - location, + resourceDetails, + displayName, + additionalData, + linksAzurePortalUri != null ? new AssessmentLinks(linksAzurePortalUri, serializedAdditionalRawData: null) : null, + metadata, + partnersData, + status, serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// An alert that machines within a group can have. - /// The number of machines in the group that have this alert. - /// A new instance for mocking. - public static AdaptiveApplicationControlIssueSummary AdaptiveApplicationControlIssueSummary(AdaptiveApplicationControlIssue? issue = null, float? numberOfVms = null) + /// Initializes a new instance of . + /// Programmatic code for the status of the assessment. + /// Programmatic code for the cause of the assessment status. + /// Human readable description of the assessment status. + /// The time that the assessment was created and first evaluated. Returned as UTC time in ISO 8601 format. + /// The time that the status of the assessment last changed. Returned as UTC time in ISO 8601 format. + /// A new instance for mocking. + public static SecurityAssessmentStatusResult SecurityAssessmentStatusResult(SecurityAssessmentStatusCode code = default, string cause = null, string description = null, DateTimeOffset? firstEvaluatedOn = null, DateTimeOffset? statusChangeOn = null) { - return new AdaptiveApplicationControlIssueSummary(issue, numberOfVms, serializedAdditionalRawData: null); + return new SecurityAssessmentStatusResult( + code, + cause, + description, + serializedAdditionalRawData: null, + firstEvaluatedOn, + statusChangeOn); } - /// Initializes a new instance of . + /// Initializes a new instance of . /// The id. /// The name. /// The resourceType. /// The systemData. - /// The security family of the discovered solution. - /// The security solutions' image offer. - /// The security solutions' image publisher. - /// The security solutions' image sku. - /// Location where the resource is stored. - /// A new instance for mocking. - public static DiscoveredSecuritySolution DiscoveredSecuritySolution(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, SecurityFamily securityFamily = default, string offer = null, string publisher = null, string sku = null, AzureLocation? location = null) + /// + /// Details of the resource that was assessed + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , and . + /// + /// User friendly display name of the assessment. + /// Additional data regarding the assessment. + /// Links relevant to the assessment. + /// Describes properties of an assessment metadata. + /// Data regarding 3rd party partner integration. + /// The result of the assessment. + /// A new instance for mocking. + public static SecurityAssessmentCreateOrUpdateContent SecurityAssessmentCreateOrUpdateContent(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, SecurityCenterResourceDetails resourceDetails = null, string displayName = null, IDictionary additionalData = null, Uri linksAzurePortalUri = null, SecurityAssessmentMetadataProperties metadata = null, SecurityAssessmentPartner partnersData = null, SecurityAssessmentStatus status = null) { - return new DiscoveredSecuritySolution( + additionalData ??= new Dictionary(); + + return new SecurityAssessmentCreateOrUpdateContent( id, name, resourceType, systemData, - securityFamily, - offer, - publisher, - sku, - location, + resourceDetails, + displayName, + additionalData, + linksAzurePortalUri != null ? new AssessmentLinks(linksAzurePortalUri, serializedAdditionalRawData: null) : null, + metadata, + partnersData, + status, serializedAdditionalRawData: null); } - /// Initializes a new instance of . + /// Initializes a new instance of . /// The id. /// The name. /// The resourceType. /// The systemData. - /// The kind of the external solution. - /// Location where the resource is stored. - /// A new instance for mocking. - public static ExternalSecuritySolution ExternalSecuritySolution(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string kind = null, AzureLocation? location = null) + /// Schema version. + /// Unique identifier for the detection logic (all alert instances from the same detection logic will have the same alertType). + /// Unique identifier for the alert. + /// The name of Azure Security Center pricing tier which powering this alert. Learn more: https://docs.microsoft.com/en-us/azure/security-center/security-center-pricing. + /// The display name of the alert. + /// Description of the suspicious activity that was detected. + /// The risk level of the threat that was detected. Learn more: https://docs.microsoft.com/en-us/azure/security-center/security-center-alerts-overview#how-are-alerts-classified. + /// The kill chain related intent behind the alert. For list of supported values, and explanations of Azure Security Center's supported kill chain intents. + /// The UTC time of the first event or activity included in the alert in ISO8601 format. + /// The UTC time of the last event or activity included in the alert in ISO8601 format. + /// + /// The resource identifiers that can be used to direct the alert to the right product exposure group (tenant, workspace, subscription etc.). There can be multiple identifiers of different type per alert. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include and . + /// + /// Manual action items to take to remediate the alert. + /// The name of the vendor that raises the alert. + /// The life cycle status of the alert. + /// Links related to the alert. + /// A direct link to the alert page in Azure Portal. + /// The UTC time the alert was generated in ISO8601 format. + /// The name of the product which published this alert (Microsoft Sentinel, Microsoft Defender for Identity, Microsoft Defender for Endpoint, Microsoft Defender for Office, Microsoft Defender for Cloud Apps, and so on). + /// The UTC processing end time of the alert in ISO8601 format. + /// A list of entities related to the alert. + /// This field determines whether the alert is an incident (a compound grouping of several alerts) or a single alert. + /// Key for corelating related alerts. Alerts with the same correlation key considered to be related. + /// Custom properties for the alert. + /// The display name of the resource most related to this alert. + /// kill chain related techniques behind the alert. + /// Kill chain related sub-techniques behind the alert. + /// Changing set of properties depending on the supportingEvidence type. + /// A new instance for mocking. + public static SecurityAlertData SecurityAlertData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string version = null, string alertType = null, string systemAlertId = null, string productComponentName = null, string alertDisplayName = null, string description = null, SecurityAlertSeverity? severity = null, KillChainIntent? intent = null, DateTimeOffset? startOn = null, DateTimeOffset? endOn = null, IEnumerable resourceIdentifiers = null, IEnumerable remediationSteps = null, string vendorName = null, SecurityAlertStatus? status = null, IEnumerable> extendedLinks = null, Uri alertUri = null, DateTimeOffset? generatedOn = null, string productName = null, DateTimeOffset? processingEndOn = null, IEnumerable entities = null, bool? isIncident = null, string correlationKey = null, IDictionary extendedProperties = null, string compromisedEntity = null, IEnumerable techniques = null, IEnumerable subTechniques = null, SecurityAlertSupportingEvidence supportingEvidence = null) { - return new ExternalSecuritySolution( + resourceIdentifiers ??= new List(); + remediationSteps ??= new List(); + extendedLinks ??= new List>(); + entities ??= new List(); + extendedProperties ??= new Dictionary(); + techniques ??= new List(); + subTechniques ??= new List(); + + return new SecurityAlertData( id, name, resourceType, systemData, - kind == null ? null : new ExternalSecuritySolutionKind?(kind), - location, + version, + alertType, + systemAlertId, + productComponentName, + alertDisplayName, + description, + severity, + intent, + startOn, + endOn, + resourceIdentifiers?.ToList(), + remediationSteps?.ToList(), + vendorName, + status, + extendedLinks?.ToList(), + alertUri, + generatedOn, + productName, + processingEndOn, + entities?.ToList(), + isIncident, + correlationKey, + extendedProperties, + compromisedEntity, + techniques?.ToList(), + subTechniques?.ToList(), + supportingEvidence, serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// The id. - /// The name. - /// The resourceType. - /// The systemData. - /// Configurations for Microsoft.Compute/virtualMachines resource type. - /// - /// Gets the provisioning state of the Just-in-Time policy. - /// Kind of the resource. - /// Location where the resource is stored. - /// A new instance for mocking. - public static JitNetworkAccessPolicyData JitNetworkAccessPolicyData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IEnumerable virtualMachines = null, IEnumerable requests = null, string provisioningState = null, string kind = null, AzureLocation? location = null) + /// Initializes a new instance of . + /// Type of entity. + /// Additional Properties. + /// A new instance for mocking. + public static SecurityAlertEntity SecurityAlertEntity(string alertEntityType = null, IReadOnlyDictionary additionalProperties = null) { - virtualMachines ??= new List(); - requests ??= new List(); + additionalProperties ??= new Dictionary(); - return new JitNetworkAccessPolicyData( - id, - name, - resourceType, - systemData, - virtualMachines?.ToList(), - requests?.ToList(), - provisioningState, - kind, - location, - serializedAdditionalRawData: null); + return new SecurityAlertEntity(alertEntityType, additionalProperties); } - /// Initializes a new instance of . - /// - /// Source of the allowed traffic. If omitted, the request will be for the source IP address of the initiate request. - /// The time to close the request in UTC. - /// A new instance for mocking. - public static JitNetworkAccessPolicyInitiatePort JitNetworkAccessPolicyInitiatePort(int number = default, string allowedSourceAddressPrefix = null, DateTimeOffset endOn = default) + /// Initializes a new instance of . + /// Type of the supportingEvidence. + /// Additional Properties. + /// A new instance for mocking. + public static SecurityAlertSupportingEvidence SecurityAlertSupportingEvidence(string securityAlertSupportingEvidenceType = null, IDictionary additionalProperties = null) { - return new JitNetworkAccessPolicyInitiatePort(number, allowedSourceAddressPrefix, endOn, serializedAdditionalRawData: null); + additionalProperties ??= new Dictionary(); + + return new SecurityAlertSupportingEvidence(securityAlertSupportingEvidenceType, additionalProperties); } - /// Initializes a new instance of . + /// Initializes a new instance of . /// The id. /// The name. /// The resourceType. /// The systemData. - /// The initiative’s name. - /// The relative weight for each subscription. Used when calculating an aggregated secure score for multiple subscriptions. - /// Maximum score available. - /// Current score. - /// Ratio of the current score divided by the maximum. Rounded to 4 digits after the decimal point. - /// A new instance for mocking. - public static SecureScoreData SecureScoreData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string displayName = null, long? weight = null, int? max = null, double? current = null, double? percentage = null) + /// the kind of the settings string. + /// A new instance for mocking. + public static SecuritySettingData SecuritySettingData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string kind = null) { - return new SecureScoreData( + return new SecuritySettingData( id, name, resourceType, systemData, - displayName, - weight, - max, - current, - percentage, + kind == null ? default : new SettingKind(kind), serializedAdditionalRawData: null); } - /// Initializes a new instance of . + /// Initializes a new instance of . /// The id. /// The name. /// The resourceType. /// The systemData. - /// User friendly display name of the control. - /// Number of healthy resources in the control. - /// Number of unhealthy resources in the control. - /// Number of not applicable resources in the control. - /// The relative weight for this specific control in each of your subscriptions. Used when calculating an aggregated score for this control across all of your subscriptions. - /// Information about the security control. - /// Maximum score available. - /// Current score. - /// Ratio of the current score divided by the maximum. Rounded to 4 digits after the decimal point. - /// A new instance for mocking. - public static SecureScoreControlDetails SecureScoreControlDetails(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string displayName = null, int? healthyResourceCount = null, int? unhealthyResourceCount = null, int? notApplicableResourceCount = null, long? weight = null, SecureScoreControlDefinitionItem definition = null, int? max = null, double? current = null, double? percentage = null) + /// The pricing tier value. Microsoft Defender for Cloud is provided in two pricing tiers: free and standard. The standard tier offers advanced security capabilities, while the free tier offers basic security features. + /// The sub-plan selected for a Standard pricing configuration, when more than one sub-plan is available. Each sub-plan enables a set of security features. When not specified, full plan is applied. + /// The duration left for the subscriptions free trial period - in ISO 8601 format (e.g. P3Y6M4DT12H30M5S). + /// Optional. If `pricingTier` is `Standard` then this property holds the date of the last time the `pricingTier` was set to `Standard`, when available (e.g 2023-03-01T12:42:42.1921106Z). + /// Optional. True if the plan is deprecated. If there are replacing plans they will appear in `replacedBy` property. + /// Optional. List of plans that replace this plan. This property exists only if this plan is deprecated. + /// Optional. List of extensions offered under a plan. + /// A new instance for mocking. + public static SecurityCenterPricingData SecurityCenterPricingData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, SecurityCenterPricingTier? pricingTier = null, string subPlan = null, TimeSpan? freeTrialRemainingTime = null, DateTimeOffset? enabledOn = null, bool? isDeprecated = null, IEnumerable replacedBy = null, IEnumerable extensions = null) { - return new SecureScoreControlDetails( + replacedBy ??= new List(); + extensions ??= new List(); + + return new SecurityCenterPricingData( id, name, resourceType, systemData, - displayName, - healthyResourceCount, - unhealthyResourceCount, - notApplicableResourceCount, - weight, - definition, - max, - current, - percentage, + pricingTier, + subPlan, + freeTrialRemainingTime, + enabledOn, + isDeprecated, + replacedBy?.ToList(), + extensions?.ToList(), serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// The id. - /// The name. - /// The resourceType. - /// The systemData. - /// User friendly display name of the control. - /// User friendly description of the control. - /// Maximum control score (0..10). - /// Source object from which the control was created. - /// Array of assessments metadata IDs that are included in this security control. - /// A new instance for mocking. - public static SecureScoreControlDefinitionItem SecureScoreControlDefinitionItem(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string displayName = null, string description = null, int? maxScore = null, SecurityControlType? sourceType = null, IEnumerable assessmentDefinitions = null) + /// Initializes a new instance of . + /// + /// The extension name. Supported values are: <br><br>**AgentlessDiscoveryForKubernetes** - API-based discovery of information about Kubernetes cluster architecture, workload objects, and setup. Required for Kubernetes inventory, identity and network exposure detection, attack path analysis and risk hunting as part of the cloud security explorer. + /// Available for CloudPosture plan.<br><br>**OnUploadMalwareScanning** - Limits the GB to be scanned per month for each storage account within the subscription. Once this limit reached on a given storage account, Blobs won't be scanned during current calendar month. + /// Available for StorageAccounts plan.<br><br>**SensitiveDataDiscovery** - Sensitive data discovery identifies Blob storage container with sensitive data such as credentials, credit cards, and more, to help prioritize and investigate security events. + /// Available for StorageAccounts and CloudPosture plans.<br><br>**ContainerRegistriesVulnerabilityAssessments** - Provides vulnerability management for images stored in your container registries. + /// Available for CloudPosture and Containers plans. + /// + /// Indicates whether the extension is enabled. + /// Property values associated with the extension. + /// Optional. A status describing the success/failure of the extension's enablement/disablement operation. + /// A new instance for mocking. + public static PlanExtension PlanExtension(string name = null, IsExtensionEnabled isEnabled = default, IDictionary additionalExtensionProperties = null, OperationStatusAutoGenerated operationStatus = null) { - assessmentDefinitions ??= new List(); + additionalExtensionProperties ??= new Dictionary(); - return new SecureScoreControlDefinitionItem( - id, - name, - resourceType, - systemData, - displayName, - description, - maxScore, - sourceType != null ? new SecureScoreControlDefinitionSource(sourceType, serializedAdditionalRawData: null) : null, - assessmentDefinitions?.ToList(), - serializedAdditionalRawData: null); + return new PlanExtension(name, isEnabled, additionalExtensionProperties, operationStatus, serializedAdditionalRawData: null); } - /// Initializes a new instance of . + /// Initializes a new instance of . + /// The operation status code. + /// Additional information regarding the success/failure of the operation. + /// A new instance for mocking. + public static OperationStatusAutoGenerated OperationStatusAutoGenerated(ExtensionOperationStatusCode? code = null, string message = null) + { + return new OperationStatusAutoGenerated(code, message, serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . /// The id. /// The name. /// The resourceType. /// The systemData. - /// The security family of the security solution. - /// The security family provisioning State. - /// The security solutions' template. - /// The security solutions' status. - /// Location where the resource is stored. - /// A new instance for mocking. - public static SecuritySolution SecuritySolution(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, SecurityFamily? securityFamily = null, SecurityFamilyProvisioningState? provisioningState = null, string template = null, string protectionStatus = null, AzureLocation? location = null) + /// The kind of the server vulnerability assessments setting. + /// A new instance for mocking. + public static ServerVulnerabilityAssessmentsSettingData ServerVulnerabilityAssessmentsSettingData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string kind = null) { - return new SecuritySolution( + return new UnknownServerVulnerabilityAssessmentsSetting( id, name, resourceType, systemData, - securityFamily, - provisioningState, - template, - protectionStatus, - location, + kind == null ? default : new ServerVulnerabilityAssessmentsSettingKind(kind), serializedAdditionalRawData: null); } - /// Initializes a new instance of . + /// Initializes a new instance of . /// The id. /// The name. /// The resourceType. /// The systemData. - /// The security family of the security solution. - /// The security solutions' vendor name. - /// The security solutions' package info url. - /// The security solutions' product name. - /// The security solutions' publisher. - /// The security solutions' publisher display name. - /// The security solutions' template. - /// Location where the resource is stored. - /// A new instance for mocking. - public static SecuritySolutionsReferenceData SecuritySolutionsReferenceData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, SecurityFamily securityFamily = default, string alertVendorName = null, Uri packageInfoUri = null, string productName = null, string publisher = null, string publisherDisplayName = null, string template = null, AzureLocation? location = null) + /// Gets the provisioning state of the API collection. + /// The display name of the API collection. + /// The resource Id of the resource from where this API collection was discovered. + /// The base URI for this API collection. All endpoints of this API collection extend this base URI. + /// The number of API endpoints discovered in this API collection. + /// The number of API endpoints in this API collection that have not received any API traffic in the last 30 days. + /// The number of API endpoints in this API collection that are unauthenticated. + /// The number of API endpoints in this API collection for which API traffic from the internet was observed. + /// The number of API endpoints in this API collection which are exposing sensitive data in their requests and/or responses. + /// The highest priority sensitivity label from Microsoft Purview in this API collection. + /// A new instance for mocking. + public static SecurityCenterApiCollectionData SecurityCenterApiCollectionData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, SecurityFamilyProvisioningState? provisioningState = null, string displayName = null, ResourceIdentifier discoveredVia = null, Uri baseUri = null, long? numberOfApiEndpoints = null, long? numberOfInactiveApiEndpoints = null, long? numberOfUnauthenticatedApiEndpoints = null, long? numberOfExternalApiEndpoints = null, long? numberOfApiEndpointsWithSensitiveDataExposed = null, string sensitivityLabel = null) { - return new SecuritySolutionsReferenceData( + return new SecurityCenterApiCollectionData( id, name, resourceType, systemData, - securityFamily, - alertVendorName, - packageInfoUri, - productName, - publisher, - publisherDisplayName, - template, - location, + provisioningState, + displayName, + discoveredVia, + baseUri, + numberOfApiEndpoints, + numberOfInactiveApiEndpoints, + numberOfUnauthenticatedApiEndpoints, + numberOfExternalApiEndpoints, + numberOfApiEndpointsWithSensitiveDataExposed, + sensitivityLabel, serializedAdditionalRawData: null); } - /// Initializes a new instance of . + /// Initializes a new instance of . /// The id. /// The name. /// The resourceType. /// The systemData. - /// The provisioningState of the vulnerability assessment capability on the VM. - /// A new instance for mocking. - public static ServerVulnerabilityAssessmentData ServerVulnerabilityAssessmentData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, ServerVulnerabilityAssessmentPropertiesProvisioningState? provisioningState = null) + /// Azure DevOps Organization properties. + /// A new instance for mocking. + public static DevOpsOrgData DevOpsOrgData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, DevOpsOrgProperties properties = null) { - return new ServerVulnerabilityAssessmentData( + return new DevOpsOrgData( id, name, resourceType, systemData, + properties, + serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// Gets or sets resource status message. + /// Gets or sets time when resource was last checked. + /// + /// The provisioning state of the resource. + /// + /// Pending - Provisioning pending. + /// Failed - Provisioning failed. + /// Succeeded - Successful provisioning. + /// Canceled - Provisioning canceled. + /// PendingDeletion - Deletion pending. + /// DeletionSuccess - Deletion successful. + /// DeletionFailure - Deletion failure. + /// + /// + /// Details about resource onboarding status across all connectors. + /// + /// OnboardedByOtherConnector - this resource has already been onboarded to another connector. This is only applicable to top-level resources. + /// Onboarded - this resource has already been onboarded by the specified connector. + /// NotOnboarded - this resource has not been onboarded to any connector. + /// NotApplicable - the onboarding state is not applicable to the current endpoint. + /// + /// Configuration payload for PR Annotations. + /// A new instance for mocking. + public static DevOpsOrgProperties DevOpsOrgProperties(string provisioningStatusMessage = null, DateTimeOffset? provisioningStatusUpdatedOn = null, DevOpsProvisioningState? provisioningState = null, ResourceOnboardingState? onboardingState = null, ActionableRemediation actionableRemediation = null) + { + return new DevOpsOrgProperties( + provisioningStatusMessage, + provisioningStatusUpdatedOn, provisioningState, + onboardingState, + actionableRemediation, serializedAdditionalRawData: null); } - /// Initializes a new instance of . + /// Initializes a new instance of . /// The id. /// The name. /// The resourceType. /// The systemData. - /// The UTC time on which the topology was calculated. - /// Azure resources which are part of this topology resource. - /// Location where the resource is stored. - /// A new instance for mocking. - public static SecurityTopologyResource SecurityTopologyResource(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, DateTimeOffset? calculatedOn = null, IEnumerable topologyResources = null, AzureLocation? location = null) + /// Azure DevOps Project properties. + /// A new instance for mocking. + public static DevOpsProjectData DevOpsProjectData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, DevOpsProjectProperties properties = null) { - topologyResources ??= new List(); - - return new SecurityTopologyResource( + return new DevOpsProjectData( id, name, resourceType, systemData, - calculatedOn, - topologyResources?.ToList(), - location, + properties, serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// Azure resource id. - /// The security severity of the resource. - /// Indicates if the resource has security recommendations. - /// Indicates the resource connectivity level to the Internet (InternetFacing, Internal ,etc.). - /// Score of the resource based on its security severity. - /// The location of this resource. - /// Azure resources connected to this resource which are in higher level in the topology view. - /// Azure resources connected to this resource which are in lower level in the topology view. - /// A new instance for mocking. - public static TopologySingleResource TopologySingleResource(ResourceIdentifier resourceId = null, string severity = null, bool? recommendationsExist = null, string networkZones = null, int? topologyScore = null, AzureLocation? location = null, IEnumerable parents = null, IEnumerable children = null) + /// Initializes a new instance of . + /// Gets or sets resource status message. + /// Gets or sets time when resource was last checked. + /// + /// The provisioning state of the resource. + /// + /// Pending - Provisioning pending. + /// Failed - Provisioning failed. + /// Succeeded - Successful provisioning. + /// Canceled - Provisioning canceled. + /// PendingDeletion - Deletion pending. + /// DeletionSuccess - Deletion successful. + /// DeletionFailure - Deletion failure. + /// + /// Gets or sets parent Azure DevOps Organization name. + /// Gets or sets Azure DevOps Project id. + /// + /// Details about resource onboarding status across all connectors. + /// + /// OnboardedByOtherConnector - this resource has already been onboarded to another connector. This is only applicable to top-level resources. + /// Onboarded - this resource has already been onboarded by the specified connector. + /// NotOnboarded - this resource has not been onboarded to any connector. + /// NotApplicable - the onboarding state is not applicable to the current endpoint. + /// + /// Configuration payload for PR Annotations. + /// A new instance for mocking. + public static DevOpsProjectProperties DevOpsProjectProperties(string provisioningStatusMessage = null, DateTimeOffset? provisioningStatusUpdatedOn = null, DevOpsProvisioningState? provisioningState = null, string parentOrgName = null, string projectId = null, ResourceOnboardingState? onboardingState = null, ActionableRemediation actionableRemediation = null) { - parents ??= new List(); - children ??= new List(); - - return new TopologySingleResource( - resourceId, - severity, - recommendationsExist, - networkZones, - topologyScore, - location, - parents?.ToList(), - children?.ToList(), + return new DevOpsProjectProperties( + provisioningStatusMessage, + provisioningStatusUpdatedOn, + provisioningState, + parentOrgName, + projectId, + onboardingState, + actionableRemediation, serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// Azure resource id which serves as parent resource in topology view. - /// A new instance for mocking. - public static TopologySingleResourceParent TopologySingleResourceParent(ResourceIdentifier resourceId = null) - { - return new TopologySingleResourceParent(resourceId, serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// Azure resource id which serves as child resource in topology view. - /// A new instance for mocking. - public static TopologySingleResourceChild TopologySingleResourceChild(ResourceIdentifier resourceId = null) - { - return new TopologySingleResourceChild(resourceId, serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . + /// Initializes a new instance of . /// The id. /// The name. /// The resourceType. /// The systemData. - /// User friendly display name of the assessment. - /// Azure resource ID of the policy definition that turns this assessment calculation on. - /// Human readable description of the assessment. - /// Human readable description of what you should do to mitigate this security issue. - /// - /// The severity level of the assessment. - /// The user impact of the assessment. - /// The implementation effort required to remediate this assessment. - /// - /// True if this assessment is in preview release status. - /// BuiltIn if the assessment based on built-in Azure Policy definition, Custom if the assessment based on custom Azure Policy definition. - /// Describes the partner that created the assessment. - /// - /// - /// - /// - /// A new instance for mocking. - public static SecurityAssessmentMetadataData SecurityAssessmentMetadataData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string displayName = null, ResourceIdentifier policyDefinitionId = null, string description = null, string remediationDescription = null, IEnumerable categories = null, SecurityAssessmentSeverity? severity = null, SecurityAssessmentUserImpact? userImpact = null, ImplementationEffort? implementationEffort = null, IEnumerable threats = null, bool? isPreview = null, SecurityAssessmentType? assessmentType = null, SecurityAssessmentMetadataPartner partnerData = null, SecurityAssessmentPublishDates publishDates = null, string plannedDeprecationDate = null, IEnumerable tactics = null, IEnumerable techniques = null) + /// Azure DevOps Repository properties. + /// A new instance for mocking. + public static DevOpsRepositoryData DevOpsRepositoryData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, DevOpsRepositoryProperties properties = null) { - categories ??= new List(); - threats ??= new List(); - tactics ??= new List(); - techniques ??= new List(); - - return new SecurityAssessmentMetadataData( + return new DevOpsRepositoryData( id, name, resourceType, systemData, - displayName, - policyDefinitionId, - description, - remediationDescription, - categories?.ToList(), - severity, - userImpact, - implementationEffort, - threats?.ToList(), - isPreview, - assessmentType, - partnerData, - publishDates, - plannedDeprecationDate, - tactics?.ToList(), - techniques?.ToList(), + properties, serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// User friendly display name of the assessment. - /// Azure resource ID of the policy definition that turns this assessment calculation on. - /// Human readable description of the assessment. - /// Human readable description of what you should do to mitigate this security issue. - /// - /// The severity level of the assessment. - /// The user impact of the assessment. - /// The implementation effort required to remediate this assessment. - /// - /// True if this assessment is in preview release status. - /// BuiltIn if the assessment based on built-in Azure Policy definition, Custom if the assessment based on custom Azure Policy definition. - /// Describes the partner that created the assessment. - /// A new instance for mocking. - public static SecurityAssessmentMetadataProperties SecurityAssessmentMetadataProperties(string displayName = null, ResourceIdentifier policyDefinitionId = null, string description = null, string remediationDescription = null, IEnumerable categories = null, SecurityAssessmentSeverity severity = default, SecurityAssessmentUserImpact? userImpact = null, ImplementationEffort? implementationEffort = null, IEnumerable threats = null, bool? isPreview = null, SecurityAssessmentType assessmentType = default, SecurityAssessmentMetadataPartner partnerData = null) - { - categories ??= new List(); - threats ??= new List(); - - return new SecurityAssessmentMetadataProperties( - displayName, - policyDefinitionId, - description, - remediationDescription, - categories?.ToList(), - severity, - userImpact, - implementationEffort, - threats?.ToList(), - isPreview, - assessmentType, - partnerData, + /// Initializes a new instance of . + /// Gets or sets resource status message. + /// Gets or sets time when resource was last checked. + /// + /// The provisioning state of the resource. + /// + /// Pending - Provisioning pending. + /// Failed - Provisioning failed. + /// Succeeded - Successful provisioning. + /// Canceled - Provisioning canceled. + /// PendingDeletion - Deletion pending. + /// DeletionSuccess - Deletion successful. + /// DeletionFailure - Deletion failure. + /// + /// Gets or sets parent Azure DevOps Organization name. + /// Gets or sets parent Azure DevOps Project name. + /// Gets or sets Azure DevOps Repository id. + /// Gets or sets Azure DevOps Repository url. + /// Gets or sets Azure DevOps repository visibility, whether it is public or private etc. + /// + /// Details about resource onboarding status across all connectors. + /// + /// OnboardedByOtherConnector - this resource has already been onboarded to another connector. This is only applicable to top-level resources. + /// Onboarded - this resource has already been onboarded by the specified connector. + /// NotOnboarded - this resource has not been onboarded to any connector. + /// NotApplicable - the onboarding state is not applicable to the current endpoint. + /// + /// Configuration payload for PR Annotations. + /// A new instance for mocking. + public static DevOpsRepositoryProperties DevOpsRepositoryProperties(string provisioningStatusMessage = null, DateTimeOffset? provisioningStatusUpdatedOn = null, DevOpsProvisioningState? provisioningState = null, string parentOrgName = null, string parentProjectName = null, string repoId = null, Uri repoUri = null, string visibility = null, ResourceOnboardingState? onboardingState = null, ActionableRemediation actionableRemediation = null) + { + return new DevOpsRepositoryProperties( + provisioningStatusMessage, + provisioningStatusUpdatedOn, + provisioningState, + parentOrgName, + parentProjectName, + repoId, + repoUri, + visibility, + onboardingState, + actionableRemediation, serializedAdditionalRawData: null); } - /// Initializes a new instance of . + /// Initializes a new instance of . /// The id. /// The name. /// The resourceType. /// The systemData. - /// - /// Details of the resource that was assessed - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , and . - /// - /// User friendly display name of the assessment. - /// Additional data regarding the assessment. - /// Links relevant to the assessment. - /// Describes properties of an assessment metadata. - /// Data regarding 3rd party partner integration. - /// The result of the assessment. - /// A new instance for mocking. - public static SecurityAssessmentData SecurityAssessmentData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, SecurityCenterResourceDetails resourceDetails = null, string displayName = null, IDictionary additionalData = null, Uri linksAzurePortalUri = null, SecurityAssessmentMetadataProperties metadata = null, SecurityAssessmentPartner partnersData = null, SecurityAssessmentStatusResult status = null) + /// DevOps Configuration properties. + /// A new instance for mocking. + public static DevOpsConfigurationData DevOpsConfigurationData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, DevOpsConfigurationProperties properties = null) { - additionalData ??= new Dictionary(); - - return new SecurityAssessmentData( + return new DevOpsConfigurationData( id, name, resourceType, systemData, - resourceDetails, - displayName, - additionalData, - linksAzurePortalUri != null ? new AssessmentLinks(linksAzurePortalUri, serializedAdditionalRawData: null) : null, - metadata, - partnersData, - status, + properties, serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// Programmatic code for the status of the assessment. - /// Programmatic code for the cause of the assessment status. - /// Human readable description of the assessment status. - /// The time that the assessment was created and first evaluated. Returned as UTC time in ISO 8601 format. - /// The time that the status of the assessment last changed. Returned as UTC time in ISO 8601 format. - /// A new instance for mocking. - public static SecurityAssessmentStatusResult SecurityAssessmentStatusResult(SecurityAssessmentStatusCode code = default, string cause = null, string description = null, DateTimeOffset? firstEvaluatedOn = null, DateTimeOffset? statusChangeOn = null) - { - return new SecurityAssessmentStatusResult( - code, - cause, - description, - serializedAdditionalRawData: null, - firstEvaluatedOn, - statusChangeOn); - } - - /// Initializes a new instance of . - /// The id. - /// The name. - /// The resourceType. - /// The systemData. - /// - /// Details of the resource that was assessed - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , and . + /// Initializes a new instance of . + /// Gets or sets resource status message. + /// Gets or sets time when resource was last checked. + /// + /// The provisioning state of the resource. + /// + /// Pending - Provisioning pending. + /// Failed - Provisioning failed. + /// Succeeded - Successful provisioning. + /// Canceled - Provisioning canceled. + /// PendingDeletion - Deletion pending. + /// DeletionSuccess - Deletion successful. + /// DeletionFailure - Deletion failure. /// - /// User friendly display name of the assessment. - /// Additional data regarding the assessment. - /// Links relevant to the assessment. - /// Describes properties of an assessment metadata. - /// Data regarding 3rd party partner integration. - /// The result of the assessment. - /// A new instance for mocking. - public static SecurityAssessmentCreateOrUpdateContent SecurityAssessmentCreateOrUpdateContent(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, SecurityCenterResourceDetails resourceDetails = null, string displayName = null, IDictionary additionalData = null, Uri linksAzurePortalUri = null, SecurityAssessmentMetadataProperties metadata = null, SecurityAssessmentPartner partnersData = null, SecurityAssessmentStatus status = null) + /// Authorization payload. + /// AutoDiscovery states. + /// + /// List of top-level inventory to select when AutoDiscovery is disabled. + /// This field is ignored when AutoDiscovery is enabled. + /// + /// List of capabilities assigned to the DevOps configuration during the discovery process. + /// A new instance for mocking. + public static DevOpsConfigurationProperties DevOpsConfigurationProperties(string provisioningStatusMessage = null, DateTimeOffset? provisioningStatusUpdateTimeUtc = null, DevOpsProvisioningState? provisioningState = null, string authorizationCode = null, DevOpsAutoDiscovery? autoDiscovery = null, IEnumerable topLevelInventoryList = null, IEnumerable capabilities = null) { - additionalData ??= new Dictionary(); + topLevelInventoryList ??= new List(); + capabilities ??= new List(); - return new SecurityAssessmentCreateOrUpdateContent( - id, - name, - resourceType, - systemData, - resourceDetails, - displayName, - additionalData, - linksAzurePortalUri != null ? new AssessmentLinks(linksAzurePortalUri, serializedAdditionalRawData: null) : null, - metadata, - partnersData, - status, + return new DevOpsConfigurationProperties( + provisioningStatusMessage, + provisioningStatusUpdateTimeUtc, + provisioningState, + authorizationCode != null ? new DevOpsAuthorization(authorizationCode, serializedAdditionalRawData: null) : null, + autoDiscovery, + topLevelInventoryList?.ToList(), + capabilities?.ToList(), serializedAdditionalRawData: null); } - /// Initializes a new instance of . + /// Initializes a new instance of . + /// Gets the name of the DevOps capability. + /// Gets the value of the DevOps capability. + /// A new instance for mocking. + public static DevOpsCapability DevOpsCapability(string name = null, string value = null) + { + return new DevOpsCapability(name, value, serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . /// The id. /// The name. /// The resourceType. /// The systemData. - /// Schema version. - /// Unique identifier for the detection logic (all alert instances from the same detection logic will have the same alertType). - /// Unique identifier for the alert. - /// The name of Azure Security Center pricing tier which powering this alert. Learn more: https://docs.microsoft.com/en-us/azure/security-center/security-center-pricing. - /// The display name of the alert. - /// Description of the suspicious activity that was detected. - /// The risk level of the threat that was detected. Learn more: https://docs.microsoft.com/en-us/azure/security-center/security-center-alerts-overview#how-are-alerts-classified. - /// The kill chain related intent behind the alert. For list of supported values, and explanations of Azure Security Center's supported kill chain intents. - /// The UTC time of the first event or activity included in the alert in ISO8601 format. - /// The UTC time of the last event or activity included in the alert in ISO8601 format. - /// - /// The resource identifiers that can be used to direct the alert to the right product exposure group (tenant, workspace, subscription etc.). There can be multiple identifiers of different type per alert. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include and . - /// - /// Manual action items to take to remediate the alert. - /// The name of the vendor that raises the alert. - /// The life cycle status of the alert. - /// Links related to the alert. - /// A direct link to the alert page in Azure Portal. - /// The UTC time the alert was generated in ISO8601 format. - /// The name of the product which published this alert (Microsoft Sentinel, Microsoft Defender for Identity, Microsoft Defender for Endpoint, Microsoft Defender for Office, Microsoft Defender for Cloud Apps, and so on). - /// The UTC processing end time of the alert in ISO8601 format. - /// A list of entities related to the alert. - /// This field determines whether the alert is an incident (a compound grouping of several alerts) or a single alert. - /// Key for corelating related alerts. Alerts with the same correlation key considered to be related. - /// Custom properties for the alert. - /// The display name of the resource most related to this alert. - /// kill chain related techniques behind the alert. - /// Kill chain related sub-techniques behind the alert. - /// Changing set of properties depending on the supportingEvidence type. - /// A new instance for mocking. - public static SecurityAlertData SecurityAlertData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string version = null, string alertType = null, string systemAlertId = null, string productComponentName = null, string alertDisplayName = null, string description = null, SecurityAlertSeverity? severity = null, KillChainIntent? intent = null, DateTimeOffset? startOn = null, DateTimeOffset? endOn = null, IEnumerable resourceIdentifiers = null, IEnumerable remediationSteps = null, string vendorName = null, SecurityAlertStatus? status = null, IEnumerable> extendedLinks = null, Uri alertUri = null, DateTimeOffset? generatedOn = null, string productName = null, DateTimeOffset? processingEndOn = null, IEnumerable entities = null, bool? isIncident = null, string correlationKey = null, IDictionary extendedProperties = null, string compromisedEntity = null, IEnumerable techniques = null, IEnumerable subTechniques = null, SecurityAlertSupportingEvidence supportingEvidence = null) + /// GitHub Owner properties. + /// A new instance for mocking. + public static SecurityConnectorGitHubOwnerData SecurityConnectorGitHubOwnerData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, SecurityConnectorGitHubOwnerProperties properties = null) { - resourceIdentifiers ??= new List(); - remediationSteps ??= new List(); - extendedLinks ??= new List>(); - entities ??= new List(); - extendedProperties ??= new Dictionary(); - techniques ??= new List(); - subTechniques ??= new List(); - - return new SecurityAlertData( + return new SecurityConnectorGitHubOwnerData( id, name, resourceType, systemData, - version, - alertType, - systemAlertId, - productComponentName, - alertDisplayName, - description, - severity, - intent, - startOn, - endOn, - resourceIdentifiers?.ToList(), - remediationSteps?.ToList(), - vendorName, - status, - extendedLinks?.ToList(), - alertUri, - generatedOn, - productName, - processingEndOn, - entities?.ToList(), - isIncident, - correlationKey, - extendedProperties, - compromisedEntity, - techniques?.ToList(), - subTechniques?.ToList(), - supportingEvidence, + properties, serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// Type of entity. - /// Additional Properties. - /// A new instance for mocking. - public static SecurityAlertEntity SecurityAlertEntity(string alertEntityType = null, IReadOnlyDictionary additionalProperties = null) - { - additionalProperties ??= new Dictionary(); - - return new SecurityAlertEntity(alertEntityType, additionalProperties); - } - - /// Initializes a new instance of . - /// Type of the supportingEvidence. - /// Additional Properties. - /// A new instance for mocking. - public static SecurityAlertSupportingEvidence SecurityAlertSupportingEvidence(string securityAlertSupportingEvidenceType = null, IDictionary additionalProperties = null) + /// Initializes a new instance of . + /// Gets or sets resource status message. + /// Gets or sets time when resource was last checked. + /// + /// The provisioning state of the resource. + /// + /// Pending - Provisioning pending. + /// Failed - Provisioning failed. + /// Succeeded - Successful provisioning. + /// Canceled - Provisioning canceled. + /// PendingDeletion - Deletion pending. + /// DeletionSuccess - Deletion successful. + /// DeletionFailure - Deletion failure. + /// + /// Gets or sets GitHub Owner url. + /// Gets or sets internal GitHub id. + /// + /// Details about resource onboarding status across all connectors. + /// + /// OnboardedByOtherConnector - this resource has already been onboarded to another connector. This is only applicable to top-level resources. + /// Onboarded - this resource has already been onboarded by the specified connector. + /// NotOnboarded - this resource has not been onboarded to any connector. + /// NotApplicable - the onboarding state is not applicable to the current endpoint. + /// + /// A new instance for mocking. + public static SecurityConnectorGitHubOwnerProperties SecurityConnectorGitHubOwnerProperties(string provisioningStatusMessage = null, DateTimeOffset? provisioningStatusUpdateTimeUtc = null, DevOpsProvisioningState? provisioningState = null, Uri ownerUri = null, string gitHubInternalId = null, ResourceOnboardingState? onboardingState = null) { - additionalProperties ??= new Dictionary(); - - return new SecurityAlertSupportingEvidence(securityAlertSupportingEvidenceType, additionalProperties); + return new SecurityConnectorGitHubOwnerProperties( + provisioningStatusMessage, + provisioningStatusUpdateTimeUtc, + provisioningState, + ownerUri, + gitHubInternalId, + onboardingState, + serializedAdditionalRawData: null); } - /// Initializes a new instance of . + /// Initializes a new instance of . /// The id. /// The name. /// The resourceType. /// The systemData. - /// the kind of the settings string. - /// A new instance for mocking. - public static SecuritySettingData SecuritySettingData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string kind = null) + /// GitHub Repository properties. + /// A new instance for mocking. + public static SecurityConnectorGitHubRepositoryData SecurityConnectorGitHubRepositoryData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, SecurityConnectorGitHubRepositoryProperties properties = null) { - return new SecuritySettingData( + return new SecurityConnectorGitHubRepositoryData( id, name, resourceType, systemData, - kind == null ? default : new SettingKind(kind), + properties, serializedAdditionalRawData: null); } - /// Initializes a new instance of . + /// Initializes a new instance of . + /// Gets or sets resource status message. + /// Gets or sets time when resource was last checked. + /// + /// The provisioning state of the resource. + /// + /// Pending - Provisioning pending. + /// Failed - Provisioning failed. + /// Succeeded - Successful provisioning. + /// Canceled - Provisioning canceled. + /// PendingDeletion - Deletion pending. + /// DeletionSuccess - Deletion successful. + /// DeletionFailure - Deletion failure. + /// + /// + /// Gets or sets GitHub Repository id. + /// + /// This is a numeric id defined by Github. + /// Eg: "123456". + /// + /// + /// Gets or sets GitHub Repository name. + /// Eg: "new-repo-1". + /// + /// + /// Gets or sets GitHub Full Name. + /// Repository name, prefixed with Owner name. + /// Eg: "my-org/new-repo-1". + /// + /// + /// Details about resource onboarding status across all connectors. + /// + /// OnboardedByOtherConnector - this resource has already been onboarded to another connector. This is only applicable to top-level resources. + /// Onboarded - this resource has already been onboarded by the specified connector. + /// NotOnboarded - this resource has not been onboarded to any connector. + /// NotApplicable - the onboarding state is not applicable to the current endpoint. + /// + /// Gets or sets GitHub Repository url. + /// Gets or sets parent GitHub Owner name. + /// A new instance for mocking. + public static SecurityConnectorGitHubRepositoryProperties SecurityConnectorGitHubRepositoryProperties(string provisioningStatusMessage = null, DateTimeOffset? provisioningStatusUpdateTimeUtc = null, DevOpsProvisioningState? provisioningState = null, string repoId = null, string repoName = null, string repoFullName = null, ResourceOnboardingState? onboardingState = null, Uri repoUri = null, string parentOwnerName = null) + { + return new SecurityConnectorGitHubRepositoryProperties( + provisioningStatusMessage, + provisioningStatusUpdateTimeUtc, + provisioningState, + repoId, + repoName, + repoFullName, + onboardingState, + repoUri, + parentOwnerName, + serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . /// The id. /// The name. /// The resourceType. /// The systemData. - /// The pricing tier value. Microsoft Defender for Cloud is provided in two pricing tiers: free and standard. The standard tier offers advanced security capabilities, while the free tier offers basic security features. - /// The sub-plan selected for a Standard pricing configuration, when more than one sub-plan is available. Each sub-plan enables a set of security features. When not specified, full plan is applied. - /// The duration left for the subscriptions free trial period - in ISO 8601 format (e.g. P3Y6M4DT12H30M5S). - /// Optional. If `pricingTier` is `Standard` then this property holds the date of the last time the `pricingTier` was set to `Standard`, when available (e.g 2023-03-01T12:42:42.1921106Z). - /// Optional. True if the plan is deprecated. If there are replacing plans they will appear in `replacedBy` property. - /// Optional. List of plans that replace this plan. This property exists only if this plan is deprecated. - /// Optional. List of extensions offered under a plan. - /// A new instance for mocking. - public static SecurityCenterPricingData SecurityCenterPricingData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, SecurityCenterPricingTier? pricingTier = null, string subPlan = null, TimeSpan? freeTrialRemainingTime = null, DateTimeOffset? enabledOn = null, bool? isDeprecated = null, IEnumerable replacedBy = null, IEnumerable extensions = null) + /// GitLab Group properties. + /// A new instance for mocking. + public static SecurityConnectorGitLabGroupData SecurityConnectorGitLabGroupData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, SecurityConnectorGitLabGroupProperties properties = null) { - replacedBy ??= new List(); - extensions ??= new List(); - - return new SecurityCenterPricingData( + return new SecurityConnectorGitLabGroupData( id, name, resourceType, systemData, - pricingTier, - subPlan, - freeTrialRemainingTime, - enabledOn, - isDeprecated, - replacedBy?.ToList(), - extensions?.ToList(), + properties, serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// - /// The extension name. Supported values are: <br><br>**AgentlessDiscoveryForKubernetes** - API-based discovery of information about Kubernetes cluster architecture, workload objects, and setup. Required for Kubernetes inventory, identity and network exposure detection, attack path analysis and risk hunting as part of the cloud security explorer. - /// Available for CloudPosture plan.<br><br>**OnUploadMalwareScanning** - Limits the GB to be scanned per month for each storage account within the subscription. Once this limit reached on a given storage account, Blobs won't be scanned during current calendar month. - /// Available for StorageAccounts plan.<br><br>**SensitiveDataDiscovery** - Sensitive data discovery identifies Blob storage container with sensitive data such as credentials, credit cards, and more, to help prioritize and investigate security events. - /// Available for StorageAccounts and CloudPosture plans.<br><br>**ContainerRegistriesVulnerabilityAssessments** - Provides vulnerability management for images stored in your container registries. - /// Available for CloudPosture and Containers plans. + /// Initializes a new instance of . + /// Gets or sets resource status message. + /// Gets or sets time when resource was last checked. + /// + /// The provisioning state of the resource. + /// + /// Pending - Provisioning pending. + /// Failed - Provisioning failed. + /// Succeeded - Successful provisioning. + /// Canceled - Provisioning canceled. + /// PendingDeletion - Deletion pending. + /// DeletionSuccess - Deletion successful. + /// DeletionFailure - Deletion failure. /// - /// Indicates whether the extension is enabled. - /// Property values associated with the extension. - /// Optional. A status describing the success/failure of the extension's enablement/disablement operation. - /// A new instance for mocking. - public static PlanExtension PlanExtension(string name = null, IsExtensionEnabled isEnabled = default, IDictionary additionalExtensionProperties = null, OperationStatusAutoGenerated operationStatus = null) - { - additionalExtensionProperties ??= new Dictionary(); - - return new PlanExtension(name, isEnabled, additionalExtensionProperties, operationStatus, serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// The operation status code. - /// Additional information regarding the success/failure of the operation. - /// A new instance for mocking. - public static OperationStatusAutoGenerated OperationStatusAutoGenerated(ExtensionOperationStatusCode? code = null, string message = null) + /// + /// Gets or sets the fully-qualified name of the Group object. + /// + /// This contains the entire namespace hierarchy where namespaces are separated by the '$' character. + /// + /// + /// Gets or sets the human readable fully-qualified name of the Group object. + /// + /// This contains the entire namespace hierarchy as seen on GitLab UI where namespaces are separated by the '/' character. + /// + /// Gets or sets the url of the GitLab Group. + /// + /// Details about resource onboarding status across all connectors. + /// + /// OnboardedByOtherConnector - this resource has already been onboarded to another connector. This is only applicable to top-level resources. + /// Onboarded - this resource has already been onboarded by the specified connector. + /// NotOnboarded - this resource has not been onboarded to any connector. + /// NotApplicable - the onboarding state is not applicable to the current endpoint. + /// + /// A new instance for mocking. + public static SecurityConnectorGitLabGroupProperties SecurityConnectorGitLabGroupProperties(string provisioningStatusMessage = null, DateTimeOffset? provisioningStatusUpdateTimeUtc = null, DevOpsProvisioningState? provisioningState = null, string fullyQualifiedName = null, string fullyQualifiedFriendlyName = null, Uri uri = null, ResourceOnboardingState? onboardingState = null) { - return new OperationStatusAutoGenerated(code, message, serializedAdditionalRawData: null); + return new SecurityConnectorGitLabGroupProperties( + provisioningStatusMessage, + provisioningStatusUpdateTimeUtc, + provisioningState, + fullyQualifiedName, + fullyQualifiedFriendlyName, + uri, + onboardingState, + serializedAdditionalRawData: null); } - /// Initializes a new instance of . + /// Initializes a new instance of . /// The id. /// The name. /// The resourceType. /// The systemData. - /// The kind of the server vulnerability assessments setting. - /// A new instance for mocking. - public static ServerVulnerabilityAssessmentsSettingData ServerVulnerabilityAssessmentsSettingData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string kind = null) + /// GitLab Project properties. + /// A new instance for mocking. + public static SecurityConnectorGitLabProjectData SecurityConnectorGitLabProjectData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, SecurityConnectorGitLabProjectProperties properties = null) { - return new UnknownServerVulnerabilityAssessmentsSetting( + return new SecurityConnectorGitLabProjectData( id, name, resourceType, systemData, - kind == null ? default : new ServerVulnerabilityAssessmentsSettingKind(kind), + properties, serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// The id. - /// The name. - /// The resourceType. - /// The systemData. - /// Gets the provisioning state of the API collection. - /// The display name of the API collection. - /// The resource Id of the resource from where this API collection was discovered. - /// The base URI for this API collection. All endpoints of this API collection extend this base URI. - /// The number of API endpoints discovered in this API collection. - /// The number of API endpoints in this API collection that have not received any API traffic in the last 30 days. - /// The number of API endpoints in this API collection that are unauthenticated. - /// The number of API endpoints in this API collection for which API traffic from the internet was observed. - /// The number of API endpoints in this API collection which are exposing sensitive data in their requests and/or responses. - /// The highest priority sensitivity label from Microsoft Purview in this API collection. - /// A new instance for mocking. - public static SecurityCenterApiCollectionData SecurityCenterApiCollectionData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, SecurityFamilyProvisioningState? provisioningState = null, string displayName = null, ResourceIdentifier discoveredVia = null, Uri baseUri = null, long? numberOfApiEndpoints = null, long? numberOfInactiveApiEndpoints = null, long? numberOfUnauthenticatedApiEndpoints = null, long? numberOfExternalApiEndpoints = null, long? numberOfApiEndpointsWithSensitiveDataExposed = null, string sensitivityLabel = null) + /// Initializes a new instance of . + /// Gets or sets resource status message. + /// Gets or sets time when resource was last checked. + /// + /// The provisioning state of the resource. + /// + /// Pending - Provisioning pending. + /// Failed - Provisioning failed. + /// Succeeded - Successful provisioning. + /// Canceled - Provisioning canceled. + /// PendingDeletion - Deletion pending. + /// DeletionSuccess - Deletion successful. + /// DeletionFailure - Deletion failure. + /// + /// + /// Gets or sets the fully-qualified name of the project object. + /// + /// This contains the entire hierarchy where entities are separated by the '$' character. + /// + /// + /// Gets or sets the human readable fully-qualified name of the Project object. + /// + /// This contains the entire namespace hierarchy as seen on GitLab UI where entities are separated by the '/' character. + /// + /// + /// Gets or sets the fully-qualified name of the project's parent group object. + /// + /// This contains the entire hierarchy where namespaces are separated by the '$' character. + /// + /// Gets or sets the url of the GitLab Project. + /// + /// Details about resource onboarding status across all connectors. + /// + /// OnboardedByOtherConnector - this resource has already been onboarded to another connector. This is only applicable to top-level resources. + /// Onboarded - this resource has already been onboarded by the specified connector. + /// NotOnboarded - this resource has not been onboarded to any connector. + /// NotApplicable - the onboarding state is not applicable to the current endpoint. + /// + /// A new instance for mocking. + public static SecurityConnectorGitLabProjectProperties SecurityConnectorGitLabProjectProperties(string provisioningStatusMessage = null, DateTimeOffset? provisioningStatusUpdateTimeUtc = null, DevOpsProvisioningState? provisioningState = null, string fullyQualifiedName = null, string fullyQualifiedFriendlyName = null, string fullyQualifiedParentGroupName = null, Uri uri = null, ResourceOnboardingState? onboardingState = null) { - return new SecurityCenterApiCollectionData( - id, - name, - resourceType, - systemData, + return new SecurityConnectorGitLabProjectProperties( + provisioningStatusMessage, + provisioningStatusUpdateTimeUtc, provisioningState, - displayName, - discoveredVia, - baseUri, - numberOfApiEndpoints, - numberOfInactiveApiEndpoints, - numberOfUnauthenticatedApiEndpoints, - numberOfExternalApiEndpoints, - numberOfApiEndpointsWithSensitiveDataExposed, - sensitivityLabel, + fullyQualifiedName, + fullyQualifiedFriendlyName, + fullyQualifiedParentGroupName, + uri, + onboardingState, serializedAdditionalRawData: null); } diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/DevOpsConfigurationResource.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/DevOpsConfigurationResource.cs index d6f4f83994c41..e4b7035bb0faa 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/DevOpsConfigurationResource.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/DevOpsConfigurationResource.cs @@ -128,7 +128,7 @@ public virtual DevOpsOrgCollection GetDevOpsOrgs() /// /// /// Default Api Version - /// 2023-09-01-preview + /// 2024-04-01 /// /// /// Resource @@ -159,7 +159,7 @@ public virtual async Task> GetDevOpsOrgAsync(string /// /// /// Default Api Version - /// 2023-09-01-preview + /// 2024-04-01 /// /// /// Resource @@ -197,7 +197,7 @@ public virtual SecurityConnectorGitHubOwnerCollection GetSecurityConnectorGitHub /// /// /// Default Api Version - /// 2023-09-01-preview + /// 2024-04-01 /// /// /// Resource @@ -228,7 +228,7 @@ public virtual async Task> GetSec /// /// /// Default Api Version - /// 2023-09-01-preview + /// 2024-04-01 /// /// /// Resource @@ -266,7 +266,7 @@ public virtual SecurityConnectorGitLabGroupCollection GetSecurityConnectorGitLab /// /// /// Default Api Version - /// 2023-09-01-preview + /// 2024-04-01 /// /// /// Resource @@ -297,7 +297,7 @@ public virtual async Task> GetSec /// /// /// Default Api Version - /// 2023-09-01-preview + /// 2024-04-01 /// /// /// Resource @@ -328,7 +328,7 @@ public virtual Response GetSecurityConnect /// /// /// Default Api Version - /// 2023-09-01-preview + /// 2024-04-01 /// /// /// Resource @@ -368,7 +368,7 @@ public virtual async Task> GetAsync(Cancel /// /// /// Default Api Version - /// 2023-09-01-preview + /// 2024-04-01 /// /// /// Resource @@ -408,7 +408,7 @@ public virtual Response Get(CancellationToken cance /// /// /// Default Api Version - /// 2023-09-01-preview + /// 2024-04-01 /// /// /// Resource @@ -450,7 +450,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-09-01-preview + /// 2024-04-01 /// /// /// Resource @@ -492,7 +492,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-09-01-preview + /// 2024-04-01 /// /// /// Resource @@ -538,7 +538,7 @@ public virtual async Task> UpdateAsync /// /// /// Default Api Version - /// 2023-09-01-preview + /// 2024-04-01 /// /// /// Resource @@ -584,7 +584,7 @@ public virtual ArmOperation Update(WaitUntil waitUn /// /// /// Default Api Version - /// 2023-09-01-preview + /// 2024-04-01 /// /// /// Resource @@ -630,7 +630,7 @@ public virtual async Task> CreateOrUpd /// /// /// Default Api Version - /// 2023-09-01-preview + /// 2024-04-01 /// /// /// Resource @@ -676,7 +676,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUnti /// /// /// Default Api Version - /// 2023-09-01-preview + /// 2024-04-01 /// /// /// Resource @@ -705,7 +705,7 @@ public virtual AsyncPageable GetAvailableDevOpsOrgsAsync(Canc /// /// /// Default Api Version - /// 2023-09-01-preview + /// 2024-04-01 /// /// /// Resource @@ -734,7 +734,7 @@ public virtual Pageable GetAvailableDevOpsOrgs(CancellationTo /// /// /// Default Api Version - /// 2023-09-01-preview + /// 2024-04-01 /// /// /// Resource @@ -763,7 +763,7 @@ public virtual AsyncPageable GetAvailableG /// /// /// Default Api Version - /// 2023-09-01-preview + /// 2024-04-01 /// /// /// Resource @@ -792,7 +792,7 @@ public virtual Pageable GetAvailableGitHub /// /// /// Default Api Version - /// 2023-09-01-preview + /// 2024-04-01 /// /// /// Resource @@ -821,7 +821,7 @@ public virtual AsyncPageable GetAvailableG /// /// /// Default Api Version - /// 2023-09-01-preview + /// 2024-04-01 /// /// /// Resource @@ -850,7 +850,7 @@ public virtual Pageable GetAvailableGitLab /// /// /// Default Api Version - /// 2023-09-01-preview + /// 2024-04-01 /// /// /// @@ -889,7 +889,7 @@ public virtual async Task> GetDevOpsOperationRes /// /// /// Default Api Version - /// 2023-09-01-preview + /// 2024-04-01 /// /// /// diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/DevOpsOrgCollection.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/DevOpsOrgCollection.cs index 9c6edb93dc269..a0a8712b121e4 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/DevOpsOrgCollection.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/DevOpsOrgCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-09-01-preview + /// 2024-04-01 /// /// /// Resource @@ -113,7 +113,7 @@ public virtual async Task> CreateOrUpdateAsync(W /// /// /// Default Api Version - /// 2023-09-01-preview + /// 2024-04-01 /// /// /// Resource @@ -162,7 +162,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitUnti /// /// /// Default Api Version - /// 2023-09-01-preview + /// 2024-04-01 /// /// /// Resource @@ -207,7 +207,7 @@ public virtual async Task> GetAsync(string orgName, /// /// /// Default Api Version - /// 2023-09-01-preview + /// 2024-04-01 /// /// /// Resource @@ -252,7 +252,7 @@ public virtual Response Get(string orgName, CancellationToken /// /// /// Default Api Version - /// 2023-09-01-preview + /// 2024-04-01 /// /// /// Resource @@ -282,7 +282,7 @@ public virtual AsyncPageable GetAllAsync(CancellationToken ca /// /// /// Default Api Version - /// 2023-09-01-preview + /// 2024-04-01 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual Pageable GetAll(CancellationToken cancellation /// /// /// Default Api Version - /// 2023-09-01-preview + /// 2024-04-01 /// /// /// Resource @@ -355,7 +355,7 @@ public virtual async Task> ExistsAsync(string orgName, Cancellati /// /// /// Default Api Version - /// 2023-09-01-preview + /// 2024-04-01 /// /// /// Resource @@ -398,7 +398,7 @@ public virtual Response Exists(string orgName, CancellationToken cancellat /// /// /// Default Api Version - /// 2023-09-01-preview + /// 2024-04-01 /// /// /// Resource @@ -443,7 +443,7 @@ public virtual async Task> GetIfExistsAsync( /// /// /// Default Api Version - /// 2023-09-01-preview + /// 2024-04-01 /// /// /// Resource diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/DevOpsOrgResource.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/DevOpsOrgResource.cs index e7e200b5b16d2..2edbbd1ec3bdc 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/DevOpsOrgResource.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/DevOpsOrgResource.cs @@ -108,7 +108,7 @@ public virtual DevOpsProjectCollection GetDevOpsProjects() /// /// /// Default Api Version - /// 2023-09-01-preview + /// 2024-04-01 /// /// /// Resource @@ -139,7 +139,7 @@ public virtual async Task> GetDevOpsProjectAsync /// /// /// Default Api Version - /// 2023-09-01-preview + /// 2024-04-01 /// /// /// Resource @@ -170,7 +170,7 @@ public virtual Response GetDevOpsProject(string projectNa /// /// /// Default Api Version - /// 2023-09-01-preview + /// 2024-04-01 /// /// /// Resource @@ -210,7 +210,7 @@ public virtual async Task> GetAsync(CancellationToke /// /// /// Default Api Version - /// 2023-09-01-preview + /// 2024-04-01 /// /// /// Resource @@ -250,7 +250,7 @@ public virtual Response Get(CancellationToken cancellationTok /// /// /// Default Api Version - /// 2023-09-01-preview + /// 2024-04-01 /// /// /// Resource @@ -296,7 +296,7 @@ public virtual async Task> UpdateAsync(WaitUntil /// /// /// Default Api Version - /// 2023-09-01-preview + /// 2024-04-01 /// /// /// Resource diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/DevOpsProjectCollection.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/DevOpsProjectCollection.cs index c9ad831c9f49b..500e0278e3b3e 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/DevOpsProjectCollection.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/DevOpsProjectCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-09-01-preview + /// 2024-04-01 /// /// /// Resource @@ -113,7 +113,7 @@ public virtual async Task> CreateOrUpdateAsy /// /// /// Default Api Version - /// 2023-09-01-preview + /// 2024-04-01 /// /// /// Resource @@ -162,7 +162,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wait /// /// /// Default Api Version - /// 2023-09-01-preview + /// 2024-04-01 /// /// /// Resource @@ -207,7 +207,7 @@ public virtual async Task> GetAsync(string proje /// /// /// Default Api Version - /// 2023-09-01-preview + /// 2024-04-01 /// /// /// Resource @@ -252,7 +252,7 @@ public virtual Response Get(string projectName, Cancellat /// /// /// Default Api Version - /// 2023-09-01-preview + /// 2024-04-01 /// /// /// Resource @@ -282,7 +282,7 @@ public virtual AsyncPageable GetAllAsync(CancellationToke /// /// /// Default Api Version - /// 2023-09-01-preview + /// 2024-04-01 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual Pageable GetAll(CancellationToken cancella /// /// /// Default Api Version - /// 2023-09-01-preview + /// 2024-04-01 /// /// /// Resource @@ -355,7 +355,7 @@ public virtual async Task> ExistsAsync(string projectName, Cancel /// /// /// Default Api Version - /// 2023-09-01-preview + /// 2024-04-01 /// /// /// Resource @@ -398,7 +398,7 @@ public virtual Response Exists(string projectName, CancellationToken cance /// /// /// Default Api Version - /// 2023-09-01-preview + /// 2024-04-01 /// /// /// Resource @@ -443,7 +443,7 @@ public virtual async Task> GetIfExistsAs /// /// /// Default Api Version - /// 2023-09-01-preview + /// 2024-04-01 /// /// /// Resource diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/DevOpsProjectResource.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/DevOpsProjectResource.cs index 3c033bdb78a19..d8846561b1adf 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/DevOpsProjectResource.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/DevOpsProjectResource.cs @@ -109,7 +109,7 @@ public virtual DevOpsRepositoryCollection GetDevOpsRepositories() /// /// /// Default Api Version - /// 2023-09-01-preview + /// 2024-04-01 /// /// /// Resource @@ -140,7 +140,7 @@ public virtual async Task> GetDevOpsRepositor /// /// /// Default Api Version - /// 2023-09-01-preview + /// 2024-04-01 /// /// /// Resource @@ -171,7 +171,7 @@ public virtual Response GetDevOpsRepository(string rep /// /// /// Default Api Version - /// 2023-09-01-preview + /// 2024-04-01 /// /// /// Resource @@ -211,7 +211,7 @@ public virtual async Task> GetAsync(Cancellation /// /// /// Default Api Version - /// 2023-09-01-preview + /// 2024-04-01 /// /// /// Resource @@ -251,7 +251,7 @@ public virtual Response Get(CancellationToken cancellatio /// /// /// Default Api Version - /// 2023-09-01-preview + /// 2024-04-01 /// /// /// Resource @@ -297,7 +297,7 @@ public virtual async Task> UpdateAsync(WaitU /// /// /// Default Api Version - /// 2023-09-01-preview + /// 2024-04-01 /// /// /// Resource diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/DevOpsRepositoryCollection.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/DevOpsRepositoryCollection.cs index a27f60afc6a26..317fb07d0b9f6 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/DevOpsRepositoryCollection.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/DevOpsRepositoryCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-09-01-preview + /// 2024-04-01 /// /// /// Resource @@ -113,7 +113,7 @@ public virtual async Task> CreateOrUpdate /// /// /// Default Api Version - /// 2023-09-01-preview + /// 2024-04-01 /// /// /// Resource @@ -162,7 +162,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil w /// /// /// Default Api Version - /// 2023-09-01-preview + /// 2024-04-01 /// /// /// Resource @@ -207,7 +207,7 @@ public virtual async Task> GetAsync(string re /// /// /// Default Api Version - /// 2023-09-01-preview + /// 2024-04-01 /// /// /// Resource @@ -252,7 +252,7 @@ public virtual Response Get(string repoName, Cancellat /// /// /// Default Api Version - /// 2023-09-01-preview + /// 2024-04-01 /// /// /// Resource @@ -282,7 +282,7 @@ public virtual AsyncPageable GetAllAsync(CancellationT /// /// /// Default Api Version - /// 2023-09-01-preview + /// 2024-04-01 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual Pageable GetAll(CancellationToken cance /// /// /// Default Api Version - /// 2023-09-01-preview + /// 2024-04-01 /// /// /// Resource @@ -355,7 +355,7 @@ public virtual async Task> ExistsAsync(string repoName, Cancellat /// /// /// Default Api Version - /// 2023-09-01-preview + /// 2024-04-01 /// /// /// Resource @@ -398,7 +398,7 @@ public virtual Response Exists(string repoName, CancellationToken cancella /// /// /// Default Api Version - /// 2023-09-01-preview + /// 2024-04-01 /// /// /// Resource @@ -443,7 +443,7 @@ public virtual async Task> GetIfExist /// /// /// Default Api Version - /// 2023-09-01-preview + /// 2024-04-01 /// /// /// Resource diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/DevOpsRepositoryResource.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/DevOpsRepositoryResource.cs index 030300b9f67c6..ba16e52360e03 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/DevOpsRepositoryResource.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/DevOpsRepositoryResource.cs @@ -103,7 +103,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-09-01-preview + /// 2024-04-01 /// /// /// Resource @@ -143,7 +143,7 @@ public virtual async Task> GetAsync(Cancellat /// /// /// Default Api Version - /// 2023-09-01-preview + /// 2024-04-01 /// /// /// Resource @@ -183,7 +183,7 @@ public virtual Response Get(CancellationToken cancella /// /// /// Default Api Version - /// 2023-09-01-preview + /// 2024-04-01 /// /// /// Resource @@ -229,7 +229,7 @@ public virtual async Task> UpdateAsync(Wa /// /// /// Default Api Version - /// 2023-09-01-preview + /// 2024-04-01 /// /// /// Resource diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Extensions/MockableSecurityCenterArmClient.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Extensions/MockableSecurityCenterArmClient.cs index 775d06d8e2aa6..97dade651fe2a 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Extensions/MockableSecurityCenterArmClient.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Extensions/MockableSecurityCenterArmClient.cs @@ -1313,102 +1313,6 @@ public virtual SecurityHealthReportResource GetSecurityHealthReportResource(Reso return new SecurityHealthReportResource(Client, id); } - /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. - /// - /// The resource ID of the resource to get. - /// Returns a object. - public virtual DevOpsOrgResource GetDevOpsOrgResource(ResourceIdentifier id) - { - DevOpsOrgResource.ValidateResourceId(id); - return new DevOpsOrgResource(Client, id); - } - - /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. - /// - /// The resource ID of the resource to get. - /// Returns a object. - public virtual DevOpsProjectResource GetDevOpsProjectResource(ResourceIdentifier id) - { - DevOpsProjectResource.ValidateResourceId(id); - return new DevOpsProjectResource(Client, id); - } - - /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. - /// - /// The resource ID of the resource to get. - /// Returns a object. - public virtual DevOpsRepositoryResource GetDevOpsRepositoryResource(ResourceIdentifier id) - { - DevOpsRepositoryResource.ValidateResourceId(id); - return new DevOpsRepositoryResource(Client, id); - } - - /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. - /// - /// The resource ID of the resource to get. - /// Returns a object. - public virtual DevOpsConfigurationResource GetDevOpsConfigurationResource(ResourceIdentifier id) - { - DevOpsConfigurationResource.ValidateResourceId(id); - return new DevOpsConfigurationResource(Client, id); - } - - /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. - /// - /// The resource ID of the resource to get. - /// Returns a object. - public virtual SecurityConnectorGitHubOwnerResource GetSecurityConnectorGitHubOwnerResource(ResourceIdentifier id) - { - SecurityConnectorGitHubOwnerResource.ValidateResourceId(id); - return new SecurityConnectorGitHubOwnerResource(Client, id); - } - - /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. - /// - /// The resource ID of the resource to get. - /// Returns a object. - public virtual SecurityConnectorGitHubRepositoryResource GetSecurityConnectorGitHubRepositoryResource(ResourceIdentifier id) - { - SecurityConnectorGitHubRepositoryResource.ValidateResourceId(id); - return new SecurityConnectorGitHubRepositoryResource(Client, id); - } - - /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. - /// - /// The resource ID of the resource to get. - /// Returns a object. - public virtual SecurityConnectorGitLabGroupResource GetSecurityConnectorGitLabGroupResource(ResourceIdentifier id) - { - SecurityConnectorGitLabGroupResource.ValidateResourceId(id); - return new SecurityConnectorGitLabGroupResource(Client, id); - } - - /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. - /// - /// The resource ID of the resource to get. - /// Returns a object. - public virtual SecurityConnectorGitLabProjectResource GetSecurityConnectorGitLabProjectResource(ResourceIdentifier id) - { - SecurityConnectorGitLabProjectResource.ValidateResourceId(id); - return new SecurityConnectorGitLabProjectResource(Client, id); - } - /// /// Gets an object representing a along with the instance operations that can be performed on it but with no data. /// You can use to create a from its components. @@ -1672,5 +1576,101 @@ public virtual SecurityCenterApiCollectionResource GetSecurityCenterApiCollectio SecurityCenterApiCollectionResource.ValidateResourceId(id); return new SecurityCenterApiCollectionResource(Client, id); } + + /// + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. + /// + /// The resource ID of the resource to get. + /// Returns a object. + public virtual DevOpsOrgResource GetDevOpsOrgResource(ResourceIdentifier id) + { + DevOpsOrgResource.ValidateResourceId(id); + return new DevOpsOrgResource(Client, id); + } + + /// + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. + /// + /// The resource ID of the resource to get. + /// Returns a object. + public virtual DevOpsProjectResource GetDevOpsProjectResource(ResourceIdentifier id) + { + DevOpsProjectResource.ValidateResourceId(id); + return new DevOpsProjectResource(Client, id); + } + + /// + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. + /// + /// The resource ID of the resource to get. + /// Returns a object. + public virtual DevOpsRepositoryResource GetDevOpsRepositoryResource(ResourceIdentifier id) + { + DevOpsRepositoryResource.ValidateResourceId(id); + return new DevOpsRepositoryResource(Client, id); + } + + /// + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. + /// + /// The resource ID of the resource to get. + /// Returns a object. + public virtual DevOpsConfigurationResource GetDevOpsConfigurationResource(ResourceIdentifier id) + { + DevOpsConfigurationResource.ValidateResourceId(id); + return new DevOpsConfigurationResource(Client, id); + } + + /// + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. + /// + /// The resource ID of the resource to get. + /// Returns a object. + public virtual SecurityConnectorGitHubOwnerResource GetSecurityConnectorGitHubOwnerResource(ResourceIdentifier id) + { + SecurityConnectorGitHubOwnerResource.ValidateResourceId(id); + return new SecurityConnectorGitHubOwnerResource(Client, id); + } + + /// + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. + /// + /// The resource ID of the resource to get. + /// Returns a object. + public virtual SecurityConnectorGitHubRepositoryResource GetSecurityConnectorGitHubRepositoryResource(ResourceIdentifier id) + { + SecurityConnectorGitHubRepositoryResource.ValidateResourceId(id); + return new SecurityConnectorGitHubRepositoryResource(Client, id); + } + + /// + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. + /// + /// The resource ID of the resource to get. + /// Returns a object. + public virtual SecurityConnectorGitLabGroupResource GetSecurityConnectorGitLabGroupResource(ResourceIdentifier id) + { + SecurityConnectorGitLabGroupResource.ValidateResourceId(id); + return new SecurityConnectorGitLabGroupResource(Client, id); + } + + /// + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. + /// + /// The resource ID of the resource to get. + /// Returns a object. + public virtual SecurityConnectorGitLabProjectResource GetSecurityConnectorGitLabProjectResource(ResourceIdentifier id) + { + SecurityConnectorGitLabProjectResource.ValidateResourceId(id); + return new SecurityConnectorGitLabProjectResource(Client, id); + } } } diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Extensions/SecurityCenterExtensions.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Extensions/SecurityCenterExtensions.cs index 75836e01b7ae4..b49f3a741454e 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Extensions/SecurityCenterExtensions.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Extensions/SecurityCenterExtensions.cs @@ -1713,158 +1713,6 @@ public static SecurityHealthReportResource GetSecurityHealthReportResource(this return GetMockableSecurityCenterArmClient(client).GetSecurityHealthReportResource(id); } - /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. - /// - /// Mocking - /// To mock this method, please mock instead. - /// - /// - /// The instance the method will execute against. - /// The resource ID of the resource to get. - /// is null. - /// Returns a object. - public static DevOpsOrgResource GetDevOpsOrgResource(this ArmClient client, ResourceIdentifier id) - { - Argument.AssertNotNull(client, nameof(client)); - - return GetMockableSecurityCenterArmClient(client).GetDevOpsOrgResource(id); - } - - /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. - /// - /// Mocking - /// To mock this method, please mock instead. - /// - /// - /// The instance the method will execute against. - /// The resource ID of the resource to get. - /// is null. - /// Returns a object. - public static DevOpsProjectResource GetDevOpsProjectResource(this ArmClient client, ResourceIdentifier id) - { - Argument.AssertNotNull(client, nameof(client)); - - return GetMockableSecurityCenterArmClient(client).GetDevOpsProjectResource(id); - } - - /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. - /// - /// Mocking - /// To mock this method, please mock instead. - /// - /// - /// The instance the method will execute against. - /// The resource ID of the resource to get. - /// is null. - /// Returns a object. - public static DevOpsRepositoryResource GetDevOpsRepositoryResource(this ArmClient client, ResourceIdentifier id) - { - Argument.AssertNotNull(client, nameof(client)); - - return GetMockableSecurityCenterArmClient(client).GetDevOpsRepositoryResource(id); - } - - /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. - /// - /// Mocking - /// To mock this method, please mock instead. - /// - /// - /// The instance the method will execute against. - /// The resource ID of the resource to get. - /// is null. - /// Returns a object. - public static DevOpsConfigurationResource GetDevOpsConfigurationResource(this ArmClient client, ResourceIdentifier id) - { - Argument.AssertNotNull(client, nameof(client)); - - return GetMockableSecurityCenterArmClient(client).GetDevOpsConfigurationResource(id); - } - - /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. - /// - /// Mocking - /// To mock this method, please mock instead. - /// - /// - /// The instance the method will execute against. - /// The resource ID of the resource to get. - /// is null. - /// Returns a object. - public static SecurityConnectorGitHubOwnerResource GetSecurityConnectorGitHubOwnerResource(this ArmClient client, ResourceIdentifier id) - { - Argument.AssertNotNull(client, nameof(client)); - - return GetMockableSecurityCenterArmClient(client).GetSecurityConnectorGitHubOwnerResource(id); - } - - /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. - /// - /// Mocking - /// To mock this method, please mock instead. - /// - /// - /// The instance the method will execute against. - /// The resource ID of the resource to get. - /// is null. - /// Returns a object. - public static SecurityConnectorGitHubRepositoryResource GetSecurityConnectorGitHubRepositoryResource(this ArmClient client, ResourceIdentifier id) - { - Argument.AssertNotNull(client, nameof(client)); - - return GetMockableSecurityCenterArmClient(client).GetSecurityConnectorGitHubRepositoryResource(id); - } - - /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. - /// - /// Mocking - /// To mock this method, please mock instead. - /// - /// - /// The instance the method will execute against. - /// The resource ID of the resource to get. - /// is null. - /// Returns a object. - public static SecurityConnectorGitLabGroupResource GetSecurityConnectorGitLabGroupResource(this ArmClient client, ResourceIdentifier id) - { - Argument.AssertNotNull(client, nameof(client)); - - return GetMockableSecurityCenterArmClient(client).GetSecurityConnectorGitLabGroupResource(id); - } - - /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. - /// - /// Mocking - /// To mock this method, please mock instead. - /// - /// - /// The instance the method will execute against. - /// The resource ID of the resource to get. - /// is null. - /// Returns a object. - public static SecurityConnectorGitLabProjectResource GetSecurityConnectorGitLabProjectResource(this ArmClient client, ResourceIdentifier id) - { - Argument.AssertNotNull(client, nameof(client)); - - return GetMockableSecurityCenterArmClient(client).GetSecurityConnectorGitLabProjectResource(id); - } - /// /// Gets an object representing a along with the instance operations that can be performed on it but with no data. /// You can use to create a from its components. @@ -2283,6 +2131,158 @@ public static SecurityCenterApiCollectionResource GetSecurityCenterApiCollection return GetMockableSecurityCenterArmClient(client).GetSecurityCenterApiCollectionResource(id); } + /// + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. + /// + /// Mocking + /// To mock this method, please mock instead. + /// + /// + /// The instance the method will execute against. + /// The resource ID of the resource to get. + /// is null. + /// Returns a object. + public static DevOpsOrgResource GetDevOpsOrgResource(this ArmClient client, ResourceIdentifier id) + { + Argument.AssertNotNull(client, nameof(client)); + + return GetMockableSecurityCenterArmClient(client).GetDevOpsOrgResource(id); + } + + /// + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. + /// + /// Mocking + /// To mock this method, please mock instead. + /// + /// + /// The instance the method will execute against. + /// The resource ID of the resource to get. + /// is null. + /// Returns a object. + public static DevOpsProjectResource GetDevOpsProjectResource(this ArmClient client, ResourceIdentifier id) + { + Argument.AssertNotNull(client, nameof(client)); + + return GetMockableSecurityCenterArmClient(client).GetDevOpsProjectResource(id); + } + + /// + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. + /// + /// Mocking + /// To mock this method, please mock instead. + /// + /// + /// The instance the method will execute against. + /// The resource ID of the resource to get. + /// is null. + /// Returns a object. + public static DevOpsRepositoryResource GetDevOpsRepositoryResource(this ArmClient client, ResourceIdentifier id) + { + Argument.AssertNotNull(client, nameof(client)); + + return GetMockableSecurityCenterArmClient(client).GetDevOpsRepositoryResource(id); + } + + /// + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. + /// + /// Mocking + /// To mock this method, please mock instead. + /// + /// + /// The instance the method will execute against. + /// The resource ID of the resource to get. + /// is null. + /// Returns a object. + public static DevOpsConfigurationResource GetDevOpsConfigurationResource(this ArmClient client, ResourceIdentifier id) + { + Argument.AssertNotNull(client, nameof(client)); + + return GetMockableSecurityCenterArmClient(client).GetDevOpsConfigurationResource(id); + } + + /// + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. + /// + /// Mocking + /// To mock this method, please mock instead. + /// + /// + /// The instance the method will execute against. + /// The resource ID of the resource to get. + /// is null. + /// Returns a object. + public static SecurityConnectorGitHubOwnerResource GetSecurityConnectorGitHubOwnerResource(this ArmClient client, ResourceIdentifier id) + { + Argument.AssertNotNull(client, nameof(client)); + + return GetMockableSecurityCenterArmClient(client).GetSecurityConnectorGitHubOwnerResource(id); + } + + /// + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. + /// + /// Mocking + /// To mock this method, please mock instead. + /// + /// + /// The instance the method will execute against. + /// The resource ID of the resource to get. + /// is null. + /// Returns a object. + public static SecurityConnectorGitHubRepositoryResource GetSecurityConnectorGitHubRepositoryResource(this ArmClient client, ResourceIdentifier id) + { + Argument.AssertNotNull(client, nameof(client)); + + return GetMockableSecurityCenterArmClient(client).GetSecurityConnectorGitHubRepositoryResource(id); + } + + /// + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. + /// + /// Mocking + /// To mock this method, please mock instead. + /// + /// + /// The instance the method will execute against. + /// The resource ID of the resource to get. + /// is null. + /// Returns a object. + public static SecurityConnectorGitLabGroupResource GetSecurityConnectorGitLabGroupResource(this ArmClient client, ResourceIdentifier id) + { + Argument.AssertNotNull(client, nameof(client)); + + return GetMockableSecurityCenterArmClient(client).GetSecurityConnectorGitLabGroupResource(id); + } + + /// + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. + /// + /// Mocking + /// To mock this method, please mock instead. + /// + /// + /// The instance the method will execute against. + /// The resource ID of the resource to get. + /// is null. + /// Returns a object. + public static SecurityConnectorGitLabProjectResource GetSecurityConnectorGitLabProjectResource(this ArmClient client, ResourceIdentifier id) + { + Argument.AssertNotNull(client, nameof(client)); + + return GetMockableSecurityCenterArmClient(client).GetSecurityConnectorGitLabProjectResource(id); + } + /// /// Gets a collection of ResourceGroupSecurityTaskResources in the ResourceGroupResource. /// diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/DevOpsCapability.Serialization.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/DevOpsCapability.Serialization.cs new file mode 100644 index 0000000000000..0784444bdd459 --- /dev/null +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/DevOpsCapability.Serialization.cs @@ -0,0 +1,133 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.SecurityCenter.Models +{ + public partial class DevOpsCapability : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(DevOpsCapability)} does not support writing '{format}' format."); + } + + writer.WriteStartObject(); + if (options.Format != "W" && Optional.IsDefined(Name)) + { + writer.WritePropertyName("name"u8); + writer.WriteStringValue(Name); + } + if (options.Format != "W" && Optional.IsDefined(Value)) + { + writer.WritePropertyName("value"u8); + writer.WriteStringValue(Value); + } + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + writer.WriteEndObject(); + } + + DevOpsCapability IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(DevOpsCapability)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeDevOpsCapability(document.RootElement, options); + } + + internal static DevOpsCapability DeserializeDevOpsCapability(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + string name = default; + string value = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("name"u8)) + { + name = property.Value.GetString(); + continue; + } + if (property.NameEquals("value"u8)) + { + value = property.Value.GetString(); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new DevOpsCapability(name, value, serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options); + default: + throw new FormatException($"The model {nameof(DevOpsCapability)} does not support writing '{options.Format}' format."); + } + } + + DevOpsCapability IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data); + return DeserializeDevOpsCapability(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(DevOpsCapability)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/DevOpsCapability.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/DevOpsCapability.cs new file mode 100644 index 0000000000000..e34c3f4901939 --- /dev/null +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/DevOpsCapability.cs @@ -0,0 +1,69 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.ResourceManager.SecurityCenter.Models +{ + /// Details about DevOps capability. + public partial class DevOpsCapability + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + internal DevOpsCapability() + { + } + + /// Initializes a new instance of . + /// Gets the name of the DevOps capability. + /// Gets the value of the DevOps capability. + /// Keeps track of any properties unknown to the library. + internal DevOpsCapability(string name, string value, IDictionary serializedAdditionalRawData) + { + Name = name; + Value = value; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// Gets the name of the DevOps capability. + public string Name { get; } + /// Gets the value of the DevOps capability. + public string Value { get; } + } +} diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/DevOpsConfigurationProperties.Serialization.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/DevOpsConfigurationProperties.Serialization.cs index e8af4c8cf7c6f..5efa8479d710d 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/DevOpsConfigurationProperties.Serialization.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/DevOpsConfigurationProperties.Serialization.cs @@ -61,6 +61,16 @@ void IJsonModel.Write(Utf8JsonWriter writer, Mode } writer.WriteEndArray(); } + if (options.Format != "W" && Optional.IsCollectionDefined(Capabilities)) + { + writer.WritePropertyName("capabilities"u8); + writer.WriteStartArray(); + foreach (var item in Capabilities) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + } if (options.Format != "W" && _serializedAdditionalRawData != null) { foreach (var item in _serializedAdditionalRawData) @@ -105,6 +115,7 @@ internal static DevOpsConfigurationProperties DeserializeDevOpsConfigurationProp DevOpsAuthorization authorization = default; DevOpsAutoDiscovery? autoDiscovery = default; IList topLevelInventoryList = default; + IReadOnlyList capabilities = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -164,6 +175,20 @@ internal static DevOpsConfigurationProperties DeserializeDevOpsConfigurationProp topLevelInventoryList = array; continue; } + if (property.NameEquals("capabilities"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(DevOpsCapability.DeserializeDevOpsCapability(item, options)); + } + capabilities = array; + continue; + } if (options.Format != "W") { rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); @@ -177,6 +202,7 @@ internal static DevOpsConfigurationProperties DeserializeDevOpsConfigurationProp authorization, autoDiscovery, topLevelInventoryList ?? new ChangeTrackingList(), + capabilities ?? new ChangeTrackingList(), serializedAdditionalRawData); } diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/DevOpsConfigurationProperties.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/DevOpsConfigurationProperties.cs index a6c177d50362a..be293eb109acd 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/DevOpsConfigurationProperties.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/DevOpsConfigurationProperties.cs @@ -49,6 +49,7 @@ public partial class DevOpsConfigurationProperties public DevOpsConfigurationProperties() { TopLevelInventoryList = new ChangeTrackingList(); + Capabilities = new ChangeTrackingList(); } /// Initializes a new instance of . @@ -71,8 +72,9 @@ public DevOpsConfigurationProperties() /// List of top-level inventory to select when AutoDiscovery is disabled. /// This field is ignored when AutoDiscovery is enabled. /// + /// List of capabilities assigned to the DevOps configuration during the discovery process. /// Keeps track of any properties unknown to the library. - internal DevOpsConfigurationProperties(string provisioningStatusMessage, DateTimeOffset? provisioningStatusUpdateTimeUtc, DevOpsProvisioningState? provisioningState, DevOpsAuthorization authorization, DevOpsAutoDiscovery? autoDiscovery, IList topLevelInventoryList, IDictionary serializedAdditionalRawData) + internal DevOpsConfigurationProperties(string provisioningStatusMessage, DateTimeOffset? provisioningStatusUpdateTimeUtc, DevOpsProvisioningState? provisioningState, DevOpsAuthorization authorization, DevOpsAutoDiscovery? autoDiscovery, IList topLevelInventoryList, IReadOnlyList capabilities, IDictionary serializedAdditionalRawData) { ProvisioningStatusMessage = provisioningStatusMessage; ProvisioningStatusUpdateTimeUtc = provisioningStatusUpdateTimeUtc; @@ -80,6 +82,7 @@ internal DevOpsConfigurationProperties(string provisioningStatusMessage, DateTim Authorization = authorization; AutoDiscovery = autoDiscovery; TopLevelInventoryList = topLevelInventoryList; + Capabilities = capabilities; _serializedAdditionalRawData = serializedAdditionalRawData; } @@ -124,5 +127,7 @@ public string AuthorizationCode /// This field is ignored when AutoDiscovery is enabled. /// public IList TopLevelInventoryList { get; } + /// List of capabilities assigned to the DevOps configuration during the discovery process. + public IReadOnlyList Capabilities { get; } } } diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/GetSensitivitySettingsListResponse.Serialization.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/GetSensitivitySettingsListResponse.Serialization.cs new file mode 100644 index 0000000000000..4776f9c913185 --- /dev/null +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/GetSensitivitySettingsListResponse.Serialization.cs @@ -0,0 +1,136 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.SecurityCenter.Models +{ + internal partial class GetSensitivitySettingsListResponse : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(GetSensitivitySettingsListResponse)} does not support writing '{format}' format."); + } + + writer.WriteStartObject(); + if (Optional.IsCollectionDefined(Value)) + { + writer.WritePropertyName("value"u8); + writer.WriteStartArray(); + foreach (var item in Value) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + } + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + writer.WriteEndObject(); + } + + GetSensitivitySettingsListResponse IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(GetSensitivitySettingsListResponse)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeGetSensitivitySettingsListResponse(document.RootElement, options); + } + + internal static GetSensitivitySettingsListResponse DeserializeGetSensitivitySettingsListResponse(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + IReadOnlyList value = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("value"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(SensitivitySettingData.DeserializeSensitivitySettingData(item, options)); + } + value = array; + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new GetSensitivitySettingsListResponse(value ?? new ChangeTrackingList(), serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options); + default: + throw new FormatException($"The model {nameof(GetSensitivitySettingsListResponse)} does not support writing '{options.Format}' format."); + } + } + + GetSensitivitySettingsListResponse IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data); + return DeserializeGetSensitivitySettingsListResponse(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(GetSensitivitySettingsListResponse)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/GetSensitivitySettingsListResponse.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/GetSensitivitySettingsListResponse.cs new file mode 100644 index 0000000000000..5df1d7e5f4ec8 --- /dev/null +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/Models/GetSensitivitySettingsListResponse.cs @@ -0,0 +1,66 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.ResourceManager.SecurityCenter.Models +{ + /// A list with a single sensitivity settings resource. + internal partial class GetSensitivitySettingsListResponse + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + internal GetSensitivitySettingsListResponse() + { + Value = new ChangeTrackingList(); + } + + /// Initializes a new instance of . + /// + /// Keeps track of any properties unknown to the library. + internal GetSensitivitySettingsListResponse(IReadOnlyList value, IDictionary serializedAdditionalRawData) + { + Value = value; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// Gets the value. + public IReadOnlyList Value { get; } + } +} diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/AzureDevOpsOrgsRestOperations.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/AzureDevOpsOrgsRestOperations.cs index 20015b43552d9..cba501f6a820d 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/AzureDevOpsOrgsRestOperations.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/AzureDevOpsOrgsRestOperations.cs @@ -32,7 +32,7 @@ public AzureDevOpsOrgsRestOperations(HttpPipeline pipeline, string applicationId { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-09-01-preview"; + _apiVersion = apiVersion ?? "2024-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/AzureDevOpsProjectsRestOperations.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/AzureDevOpsProjectsRestOperations.cs index df5616b23c662..1867c1c1c3527 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/AzureDevOpsProjectsRestOperations.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/AzureDevOpsProjectsRestOperations.cs @@ -32,7 +32,7 @@ public AzureDevOpsProjectsRestOperations(HttpPipeline pipeline, string applicati { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-09-01-preview"; + _apiVersion = apiVersion ?? "2024-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/AzureDevOpsReposRestOperations.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/AzureDevOpsReposRestOperations.cs index b7711518039d2..5fab63b793f18 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/AzureDevOpsReposRestOperations.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/AzureDevOpsReposRestOperations.cs @@ -32,7 +32,7 @@ public AzureDevOpsReposRestOperations(HttpPipeline pipeline, string applicationI { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-09-01-preview"; + _apiVersion = apiVersion ?? "2024-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/DevOpsConfigurationsRestOperations.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/DevOpsConfigurationsRestOperations.cs index e5fafddfb14bc..22e93deddcaff 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/DevOpsConfigurationsRestOperations.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/DevOpsConfigurationsRestOperations.cs @@ -32,7 +32,7 @@ public DevOpsConfigurationsRestOperations(HttpPipeline pipeline, string applicat { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-09-01-preview"; + _apiVersion = apiVersion ?? "2024-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/DevOpsOperationResultsRestOperations.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/DevOpsOperationResultsRestOperations.cs index 8b5955c978fdf..0aedafa13e555 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/DevOpsOperationResultsRestOperations.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/DevOpsOperationResultsRestOperations.cs @@ -32,7 +32,7 @@ public DevOpsOperationResultsRestOperations(HttpPipeline pipeline, string applic { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-09-01-preview"; + _apiVersion = apiVersion ?? "2024-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/GitHubOwnersRestOperations.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/GitHubOwnersRestOperations.cs index 411c33a5a592a..1fe3b0699b30f 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/GitHubOwnersRestOperations.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/GitHubOwnersRestOperations.cs @@ -32,7 +32,7 @@ public GitHubOwnersRestOperations(HttpPipeline pipeline, string applicationId, U { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-09-01-preview"; + _apiVersion = apiVersion ?? "2024-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/GitHubReposRestOperations.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/GitHubReposRestOperations.cs index 64ba96eebbae0..c907dc7fac09e 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/GitHubReposRestOperations.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/GitHubReposRestOperations.cs @@ -32,7 +32,7 @@ public GitHubReposRestOperations(HttpPipeline pipeline, string applicationId, Ur { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-09-01-preview"; + _apiVersion = apiVersion ?? "2024-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/GitLabGroupsRestOperations.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/GitLabGroupsRestOperations.cs index d695b4a9ad55f..f8016f2bb6e11 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/GitLabGroupsRestOperations.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/GitLabGroupsRestOperations.cs @@ -32,7 +32,7 @@ public GitLabGroupsRestOperations(HttpPipeline pipeline, string applicationId, U { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-09-01-preview"; + _apiVersion = apiVersion ?? "2024-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/GitLabProjectsRestOperations.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/GitLabProjectsRestOperations.cs index 294e2de2d120e..7c628f539aead 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/GitLabProjectsRestOperations.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/GitLabProjectsRestOperations.cs @@ -32,7 +32,7 @@ public GitLabProjectsRestOperations(HttpPipeline pipeline, string applicationId, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-09-01-preview"; + _apiVersion = apiVersion ?? "2024-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/GitLabSubgroupsRestOperations.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/GitLabSubgroupsRestOperations.cs index 81f2c8e205ed9..58bb9c190b9f6 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/GitLabSubgroupsRestOperations.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/GitLabSubgroupsRestOperations.cs @@ -32,7 +32,7 @@ public GitLabSubgroupsRestOperations(HttpPipeline pipeline, string applicationId { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-09-01-preview"; + _apiVersion = apiVersion ?? "2024-04-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/SecurityCenterRestOperations.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/SensitivitySettingsRestOperations.cs similarity index 61% rename from sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/SecurityCenterRestOperations.cs rename to sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/SensitivitySettingsRestOperations.cs index d766583c17af5..a3dbd32a3eaec 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/SecurityCenterRestOperations.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/RestOperations/SensitivitySettingsRestOperations.cs @@ -15,20 +15,20 @@ namespace Azure.ResourceManager.SecurityCenter { - internal partial class SecurityCenterRestOperations + internal partial class SensitivitySettingsRestOperations { private readonly TelemetryDetails _userAgent; private readonly HttpPipeline _pipeline; private readonly Uri _endpoint; private readonly string _apiVersion; - /// Initializes a new instance of SecurityCenterRestOperations. + /// Initializes a new instance of SensitivitySettingsRestOperations. /// The HTTP pipeline for sending and receiving REST requests and responses. /// The application id to use for user agent. /// server parameter. /// Api Version. /// or is null. - public SecurityCenterRestOperations(HttpPipeline pipeline, string applicationId, Uri endpoint = null, string apiVersion = default) + public SensitivitySettingsRestOperations(HttpPipeline pipeline, string applicationId, Uri endpoint = null, string apiVersion = default) { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); @@ -36,7 +36,7 @@ public SecurityCenterRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } - internal RequestUriBuilder CreateUpdateSensitivitySettingsRequestUri(SensitivitySettingCreateOrUpdateContent content) + internal RequestUriBuilder CreateCreateOrUpdateRequestUri(SensitivitySettingCreateOrUpdateContent content) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -45,7 +45,7 @@ internal RequestUriBuilder CreateUpdateSensitivitySettingsRequestUri(Sensitivity return uri; } - internal HttpMessage CreateUpdateSensitivitySettingsRequest(SensitivitySettingCreateOrUpdateContent content) + internal HttpMessage CreateCreateOrUpdateRequest(SensitivitySettingCreateOrUpdateContent content) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -64,15 +64,15 @@ internal HttpMessage CreateUpdateSensitivitySettingsRequest(SensitivitySettingCr return message; } - /// Updates data sensitivity settings for sensitive data discovery. + /// Create or update data sensitivity settings for sensitive data discovery. /// The data sensitivity settings to update. /// The cancellation token to use. /// is null. - public async Task> UpdateSensitivitySettingsAsync(SensitivitySettingCreateOrUpdateContent content, CancellationToken cancellationToken = default) + public async Task> CreateOrUpdateAsync(SensitivitySettingCreateOrUpdateContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNull(content, nameof(content)); - using var message = CreateUpdateSensitivitySettingsRequest(content); + using var message = CreateCreateOrUpdateRequest(content); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -88,15 +88,15 @@ public async Task> UpdateSensitivitySettingsAsy } } - /// Updates data sensitivity settings for sensitive data discovery. + /// Create or update data sensitivity settings for sensitive data discovery. /// The data sensitivity settings to update. /// The cancellation token to use. /// is null. - public Response UpdateSensitivitySettings(SensitivitySettingCreateOrUpdateContent content, CancellationToken cancellationToken = default) + public Response CreateOrUpdate(SensitivitySettingCreateOrUpdateContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNull(content, nameof(content)); - using var message = CreateUpdateSensitivitySettingsRequest(content); + using var message = CreateCreateOrUpdateRequest(content); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -112,7 +112,7 @@ public Response UpdateSensitivitySettings(SensitivitySet } } - internal RequestUriBuilder CreateGetSensitivitySettingsRequestUri() + internal RequestUriBuilder CreateGetRequestUri() { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -121,7 +121,7 @@ internal RequestUriBuilder CreateGetSensitivitySettingsRequestUri() return uri; } - internal HttpMessage CreateGetSensitivitySettingsRequest() + internal HttpMessage CreateGetRequest() { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -138,9 +138,9 @@ internal HttpMessage CreateGetSensitivitySettingsRequest() /// Gets data sensitivity settings for sensitive data discovery. /// The cancellation token to use. - public async Task> GetSensitivitySettingsAsync(CancellationToken cancellationToken = default) + public async Task> GetAsync(CancellationToken cancellationToken = default) { - using var message = CreateGetSensitivitySettingsRequest(); + using var message = CreateGetRequest(); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -160,9 +160,9 @@ public async Task> GetSensitivitySettingsAsync( /// Gets data sensitivity settings for sensitive data discovery. /// The cancellation token to use. - public Response GetSensitivitySettings(CancellationToken cancellationToken = default) + public Response Get(CancellationToken cancellationToken = default) { - using var message = CreateGetSensitivitySettingsRequest(); + using var message = CreateGetRequest(); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -179,5 +179,69 @@ public Response GetSensitivitySettings(CancellationToken throw new RequestFailedException(message.Response); } } + + internal RequestUriBuilder CreateListRequestUri() + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Security/sensitivitySettings", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + + internal HttpMessage CreateListRequest() + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Security/sensitivitySettings", false); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Gets a list with a single sensitivity settings resource. + /// The cancellation token to use. + public async Task> ListAsync(CancellationToken cancellationToken = default) + { + using var message = CreateListRequest(); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + GetSensitivitySettingsListResponse value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = GetSensitivitySettingsListResponse.DeserializeGetSensitivitySettingsListResponse(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Gets a list with a single sensitivity settings resource. + /// The cancellation token to use. + public Response List(CancellationToken cancellationToken = default) + { + using var message = CreateListRequest(); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + GetSensitivitySettingsListResponse value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = GetSensitivitySettingsListResponse.DeserializeGetSensitivitySettingsListResponse(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } } } diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SecurityConnectorGitHubOwnerCollection.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SecurityConnectorGitHubOwnerCollection.cs index 53399b29b5686..5762050c795fc 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SecurityConnectorGitHubOwnerCollection.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SecurityConnectorGitHubOwnerCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-09-01-preview + /// 2024-04-01 /// /// /// Resource @@ -109,7 +109,7 @@ public virtual async Task> GetAsy /// /// /// Default Api Version - /// 2023-09-01-preview + /// 2024-04-01 /// /// /// Resource @@ -154,7 +154,7 @@ public virtual Response Get(string ownerNa /// /// /// Default Api Version - /// 2023-09-01-preview + /// 2024-04-01 /// /// /// Resource @@ -184,7 +184,7 @@ public virtual AsyncPageable GetAllAsync(C /// /// /// Default Api Version - /// 2023-09-01-preview + /// 2024-04-01 /// /// /// Resource @@ -214,7 +214,7 @@ public virtual Pageable GetAll(Cancellatio /// /// /// Default Api Version - /// 2023-09-01-preview + /// 2024-04-01 /// /// /// Resource @@ -257,7 +257,7 @@ public virtual async Task> ExistsAsync(string ownerName, Cancella /// /// /// Default Api Version - /// 2023-09-01-preview + /// 2024-04-01 /// /// /// Resource @@ -300,7 +300,7 @@ public virtual Response Exists(string ownerName, CancellationToken cancell /// /// /// Default Api Version - /// 2023-09-01-preview + /// 2024-04-01 /// /// /// Resource @@ -345,7 +345,7 @@ public virtual async Task /// /// /// Default Api Version - /// 2023-09-01-preview + /// 2024-04-01 /// /// /// Resource diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SecurityConnectorGitHubOwnerResource.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SecurityConnectorGitHubOwnerResource.cs index e58754f7bdb7f..ae73ecfdea447 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SecurityConnectorGitHubOwnerResource.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SecurityConnectorGitHubOwnerResource.cs @@ -108,7 +108,7 @@ public virtual SecurityConnectorGitHubRepositoryCollection GetSecurityConnectorG /// /// /// Default Api Version - /// 2023-09-01-preview + /// 2024-04-01 /// /// /// Resource @@ -139,7 +139,7 @@ public virtual async Task> G /// /// /// Default Api Version - /// 2023-09-01-preview + /// 2024-04-01 /// /// /// Resource @@ -170,7 +170,7 @@ public virtual Response GetSecurityCo /// /// /// Default Api Version - /// 2023-09-01-preview + /// 2024-04-01 /// /// /// Resource @@ -210,7 +210,7 @@ public virtual async Task> GetAsy /// /// /// Default Api Version - /// 2023-09-01-preview + /// 2024-04-01 /// /// /// Resource diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SecurityConnectorGitHubRepositoryCollection.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SecurityConnectorGitHubRepositoryCollection.cs index 968fb5ba20dce..8a0608e81ca16 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SecurityConnectorGitHubRepositoryCollection.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SecurityConnectorGitHubRepositoryCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-09-01-preview + /// 2024-04-01 /// /// /// Resource @@ -109,7 +109,7 @@ public virtual async Task> G /// /// /// Default Api Version - /// 2023-09-01-preview + /// 2024-04-01 /// /// /// Resource @@ -154,7 +154,7 @@ public virtual Response Get(string re /// /// /// Default Api Version - /// 2023-09-01-preview + /// 2024-04-01 /// /// /// Resource @@ -184,7 +184,7 @@ public virtual AsyncPageable GetAllAs /// /// /// Default Api Version - /// 2023-09-01-preview + /// 2024-04-01 /// /// /// Resource @@ -214,7 +214,7 @@ public virtual Pageable GetAll(Cancel /// /// /// Default Api Version - /// 2023-09-01-preview + /// 2024-04-01 /// /// /// Resource @@ -257,7 +257,7 @@ public virtual async Task> ExistsAsync(string repoName, Cancellat /// /// /// Default Api Version - /// 2023-09-01-preview + /// 2024-04-01 /// /// /// Resource @@ -300,7 +300,7 @@ public virtual Response Exists(string repoName, CancellationToken cancella /// /// /// Default Api Version - /// 2023-09-01-preview + /// 2024-04-01 /// /// /// Resource @@ -345,7 +345,7 @@ public virtual async Task /// /// Default Api Version - /// 2023-09-01-preview + /// 2024-04-01 /// /// /// Resource diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SecurityConnectorGitHubRepositoryResource.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SecurityConnectorGitHubRepositoryResource.cs index f657122c9479e..b2bb9f5c2be78 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SecurityConnectorGitHubRepositoryResource.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SecurityConnectorGitHubRepositoryResource.cs @@ -102,7 +102,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-09-01-preview + /// 2024-04-01 /// /// /// Resource @@ -142,7 +142,7 @@ public virtual async Task> G /// /// /// Default Api Version - /// 2023-09-01-preview + /// 2024-04-01 /// /// /// Resource diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SecurityConnectorGitLabGroupCollection.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SecurityConnectorGitLabGroupCollection.cs index fb4449b7480bf..1a03f29d2bc22 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SecurityConnectorGitLabGroupCollection.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SecurityConnectorGitLabGroupCollection.cs @@ -68,7 +68,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-09-01-preview + /// 2024-04-01 /// /// /// Resource @@ -113,7 +113,7 @@ public virtual async Task> GetAsy /// /// /// Default Api Version - /// 2023-09-01-preview + /// 2024-04-01 /// /// /// Resource @@ -158,7 +158,7 @@ public virtual Response Get(string groupFQ /// /// /// Default Api Version - /// 2023-09-01-preview + /// 2024-04-01 /// /// /// Resource @@ -188,7 +188,7 @@ public virtual AsyncPageable GetAllAsync(C /// /// /// Default Api Version - /// 2023-09-01-preview + /// 2024-04-01 /// /// /// Resource @@ -218,7 +218,7 @@ public virtual Pageable GetAll(Cancellatio /// /// /// Default Api Version - /// 2023-09-01-preview + /// 2024-04-01 /// /// /// @@ -248,7 +248,7 @@ public virtual AsyncPageable GetGitLabSubg /// /// /// Default Api Version - /// 2023-09-01-preview + /// 2024-04-01 /// /// /// @@ -278,7 +278,7 @@ public virtual Pageable GetGitLabSubgroups /// /// /// Default Api Version - /// 2023-09-01-preview + /// 2024-04-01 /// /// /// Resource @@ -321,7 +321,7 @@ public virtual async Task> ExistsAsync(string groupFQName, Cancel /// /// /// Default Api Version - /// 2023-09-01-preview + /// 2024-04-01 /// /// /// Resource @@ -364,7 +364,7 @@ public virtual Response Exists(string groupFQName, CancellationToken cance /// /// /// Default Api Version - /// 2023-09-01-preview + /// 2024-04-01 /// /// /// Resource @@ -409,7 +409,7 @@ public virtual async Task /// /// /// Default Api Version - /// 2023-09-01-preview + /// 2024-04-01 /// /// /// Resource diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SecurityConnectorGitLabGroupResource.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SecurityConnectorGitLabGroupResource.cs index 104ba022397e8..dfdd7b183e457 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SecurityConnectorGitLabGroupResource.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SecurityConnectorGitLabGroupResource.cs @@ -108,7 +108,7 @@ public virtual SecurityConnectorGitLabProjectCollection GetSecurityConnectorGitL /// /// /// Default Api Version - /// 2023-09-01-preview + /// 2024-04-01 /// /// /// Resource @@ -139,7 +139,7 @@ public virtual async Task> GetS /// /// /// Default Api Version - /// 2023-09-01-preview + /// 2024-04-01 /// /// /// Resource @@ -170,7 +170,7 @@ public virtual Response GetSecurityConne /// /// /// Default Api Version - /// 2023-09-01-preview + /// 2024-04-01 /// /// /// Resource @@ -210,7 +210,7 @@ public virtual async Task> GetAsy /// /// /// Default Api Version - /// 2023-09-01-preview + /// 2024-04-01 /// /// /// Resource diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SecurityConnectorGitLabProjectCollection.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SecurityConnectorGitLabProjectCollection.cs index 5b8b5b9d5d8a4..5ccedfe4f2f94 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SecurityConnectorGitLabProjectCollection.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SecurityConnectorGitLabProjectCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-09-01-preview + /// 2024-04-01 /// /// /// Resource @@ -109,7 +109,7 @@ public virtual async Task> GetA /// /// /// Default Api Version - /// 2023-09-01-preview + /// 2024-04-01 /// /// /// Resource @@ -154,7 +154,7 @@ public virtual Response Get(string proje /// /// /// Default Api Version - /// 2023-09-01-preview + /// 2024-04-01 /// /// /// Resource @@ -184,7 +184,7 @@ public virtual AsyncPageable GetAllAsync /// /// /// Default Api Version - /// 2023-09-01-preview + /// 2024-04-01 /// /// /// Resource @@ -214,7 +214,7 @@ public virtual Pageable GetAll(Cancellat /// /// /// Default Api Version - /// 2023-09-01-preview + /// 2024-04-01 /// /// /// Resource @@ -257,7 +257,7 @@ public virtual async Task> ExistsAsync(string projectName, Cancel /// /// /// Default Api Version - /// 2023-09-01-preview + /// 2024-04-01 /// /// /// Resource @@ -300,7 +300,7 @@ public virtual Response Exists(string projectName, CancellationToken cance /// /// /// Default Api Version - /// 2023-09-01-preview + /// 2024-04-01 /// /// /// Resource @@ -345,7 +345,7 @@ public virtual async Task /// /// Default Api Version - /// 2023-09-01-preview + /// 2024-04-01 /// /// /// Resource diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SecurityConnectorGitLabProjectResource.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SecurityConnectorGitLabProjectResource.cs index ad7dfd18d3117..4756e1319ac63 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SecurityConnectorGitLabProjectResource.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SecurityConnectorGitLabProjectResource.cs @@ -102,7 +102,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-09-01-preview + /// 2024-04-01 /// /// /// Resource @@ -142,7 +142,7 @@ public virtual async Task> GetA /// /// /// Default Api Version - /// 2023-09-01-preview + /// 2024-04-01 /// /// /// Resource diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SensitivitySettingResource.cs b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SensitivitySettingResource.cs index a3fb4ce32dce4..bed8e0484cc7a 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SensitivitySettingResource.cs +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/Generated/SensitivitySettingResource.cs @@ -32,7 +32,7 @@ public static ResourceIdentifier CreateResourceIdentifier() } private readonly ClientDiagnostics _sensitivitySettingClientDiagnostics; - private readonly SecurityCenterRestOperations _sensitivitySettingRestClient; + private readonly SensitivitySettingsRestOperations _sensitivitySettingRestClient; private readonly SensitivitySettingData _data; /// Gets the resource type for the operations. @@ -59,7 +59,7 @@ internal SensitivitySettingResource(ArmClient client, ResourceIdentifier id) : b { _sensitivitySettingClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.SecurityCenter", ResourceType.Namespace, Diagnostics); TryGetApiVersion(ResourceType, out string sensitivitySettingApiVersion); - _sensitivitySettingRestClient = new SecurityCenterRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, sensitivitySettingApiVersion); + _sensitivitySettingRestClient = new SensitivitySettingsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, sensitivitySettingApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -95,7 +95,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Operation Id - /// GetSensitivitySettings + /// SensitivitySettings_Get /// /// /// Default Api Version @@ -114,7 +114,7 @@ public virtual async Task> GetAsync(Cancell scope.Start(); try { - var response = await _sensitivitySettingRestClient.GetSensitivitySettingsAsync(cancellationToken).ConfigureAwait(false); + var response = await _sensitivitySettingRestClient.GetAsync(cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); return Response.FromValue(new SensitivitySettingResource(Client, response.Value), response.GetRawResponse()); @@ -135,7 +135,7 @@ public virtual async Task> GetAsync(Cancell /// /// /// Operation Id - /// GetSensitivitySettings + /// SensitivitySettings_Get /// /// /// Default Api Version @@ -154,7 +154,7 @@ public virtual Response Get(CancellationToken cancel scope.Start(); try { - var response = _sensitivitySettingRestClient.GetSensitivitySettings(cancellationToken); + var response = _sensitivitySettingRestClient.Get(cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); return Response.FromValue(new SensitivitySettingResource(Client, response.Value), response.GetRawResponse()); @@ -167,7 +167,7 @@ public virtual Response Get(CancellationToken cancel } /// - /// Updates data sensitivity settings for sensitive data discovery + /// Create or update data sensitivity settings for sensitive data discovery /// /// /// Request Path @@ -175,7 +175,7 @@ public virtual Response Get(CancellationToken cancel /// /// /// Operation Id - /// UpdateSensitivitySettings + /// SensitivitySettings_CreateOrUpdate /// /// /// Default Api Version @@ -199,8 +199,8 @@ public virtual async Task> CreateOrUpda scope.Start(); try { - var response = await _sensitivitySettingRestClient.UpdateSensitivitySettingsAsync(content, cancellationToken).ConfigureAwait(false); - var uri = _sensitivitySettingRestClient.CreateUpdateSensitivitySettingsRequestUri(content); + var response = await _sensitivitySettingRestClient.CreateOrUpdateAsync(content, cancellationToken).ConfigureAwait(false); + var uri = _sensitivitySettingRestClient.CreateCreateOrUpdateRequestUri(content); var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), "None", null, OperationFinalStateVia.OriginalUri.ToString()); var operation = new SecurityCenterArmOperation(Response.FromValue(new SensitivitySettingResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) @@ -215,7 +215,7 @@ public virtual async Task> CreateOrUpda } /// - /// Updates data sensitivity settings for sensitive data discovery + /// Create or update data sensitivity settings for sensitive data discovery /// /// /// Request Path @@ -223,7 +223,7 @@ public virtual async Task> CreateOrUpda /// /// /// Operation Id - /// UpdateSensitivitySettings + /// SensitivitySettings_CreateOrUpdate /// /// /// Default Api Version @@ -247,8 +247,8 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil scope.Start(); try { - var response = _sensitivitySettingRestClient.UpdateSensitivitySettings(content, cancellationToken); - var uri = _sensitivitySettingRestClient.CreateUpdateSensitivitySettingsRequestUri(content); + var response = _sensitivitySettingRestClient.CreateOrUpdate(content, cancellationToken); + var uri = _sensitivitySettingRestClient.CreateCreateOrUpdateRequestUri(content); var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), "None", null, OperationFinalStateVia.OriginalUri.ToString()); var operation = new SecurityCenterArmOperation(Response.FromValue(new SensitivitySettingResource(Client, response), response.GetRawResponse()), rehydrationToken); if (waitUntil == WaitUntil.Completed) diff --git a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/autorest.md b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/autorest.md index ea6cb9835811c..31d661398706b 100644 --- a/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/autorest.md +++ b/sdk/securitycenter/Azure.ResourceManager.SecurityCenter/src/autorest.md @@ -8,7 +8,7 @@ azure-arm: true csharp: true library-name: SecurityCenter namespace: Azure.ResourceManager.SecurityCenter -require: https://github.com/Azure/azure-rest-api-specs/blob/6c4497e6b0aaad8127f2dd50fa8a29aaf68f24e6/specification/security/resource-manager/readme.md +require: /mnt/vss/_work/1/s/azure-rest-api-specs/specification/security/resource-manager/readme.md tag: package-dotnet-sdk output-folder: $(this-folder)/Generated clear-output-folder: true