From 472d1b4cd29524b5c110e7785538579ace950d7f Mon Sep 17 00:00:00 2001 From: Tom Harvey Date: Mon, 4 Jul 2022 07:31:35 +0100 Subject: [PATCH] data: removing `hardwaresecuritymodules` @ `2018-10-31-preview` (#1029) * data: removing hardwaresecuritymodules @ 2018-10-31-preview This is no longer needed since https://github.com/hashicorp/terraform-provider-azurerm/pull/17470 switches to using `2021-11-30` * data: removing `hardwaresecuritymodules` @ `2018-10-31-preview` --- config/resource-manager.hcl | 2 +- .../ApiVersionDefinition-GenerationSetting.cs | 6 --- .../ApiVersionDefinition.cs | 15 ------- .../DedicatedHsms/Constant-JsonWebKeyType.cs | 29 ------------ .../DedicatedHsms/Constant-SkuName.cs | 29 ------------ .../DedicatedHsms/Definition.cs | 23 ---------- .../DedicatedHsms/Model-ApiEntityReference.cs | 20 --------- .../DedicatedHsms/Model-DedicatedHsm.cs | 44 ------------------- .../Model-DedicatedHsmPatchParameters.cs | 20 --------- .../Model-DedicatedHsmProperties.cs | 29 ------------ .../DedicatedHsms/Model-NetworkInterface.cs | 23 ---------- .../DedicatedHsms/Model-NetworkProfile.cs | 23 ---------- .../DedicatedHsms/Model-Sku.cs | 20 --------- .../Operation-DedicatedHsmCreateOrUpdate.cs | 27 ------------ .../Operation-DedicatedHsmDelete.cs | 30 ------------- .../Operation-DedicatedHsmGet.cs | 23 ---------- ...eration-DedicatedHsmListByResourceGroup.cs | 34 -------------- ...peration-DedicatedHsmListBySubscription.cs | 34 -------------- .../Operation-DedicatedHsmUpdate.cs | 32 -------------- .../ResourceId-DedicatedHSMId.cs | 28 ------------ .../ResourceId-ResourceGroupId.cs | 21 --------- .../ResourceId-SubscriptionId.cs | 21 --------- 22 files changed, 1 insertion(+), 532 deletions(-) delete mode 100644 data/Pandora.Definitions.ResourceManager/HardwareSecurityModules/v2018_10_31_preview/ApiVersionDefinition-GenerationSetting.cs delete mode 100644 data/Pandora.Definitions.ResourceManager/HardwareSecurityModules/v2018_10_31_preview/ApiVersionDefinition.cs delete mode 100644 data/Pandora.Definitions.ResourceManager/HardwareSecurityModules/v2018_10_31_preview/DedicatedHsms/Constant-JsonWebKeyType.cs delete mode 100644 data/Pandora.Definitions.ResourceManager/HardwareSecurityModules/v2018_10_31_preview/DedicatedHsms/Constant-SkuName.cs delete mode 100644 data/Pandora.Definitions.ResourceManager/HardwareSecurityModules/v2018_10_31_preview/DedicatedHsms/Definition.cs delete mode 100644 data/Pandora.Definitions.ResourceManager/HardwareSecurityModules/v2018_10_31_preview/DedicatedHsms/Model-ApiEntityReference.cs delete mode 100644 data/Pandora.Definitions.ResourceManager/HardwareSecurityModules/v2018_10_31_preview/DedicatedHsms/Model-DedicatedHsm.cs delete mode 100644 data/Pandora.Definitions.ResourceManager/HardwareSecurityModules/v2018_10_31_preview/DedicatedHsms/Model-DedicatedHsmPatchParameters.cs delete mode 100644 data/Pandora.Definitions.ResourceManager/HardwareSecurityModules/v2018_10_31_preview/DedicatedHsms/Model-DedicatedHsmProperties.cs delete mode 100644 data/Pandora.Definitions.ResourceManager/HardwareSecurityModules/v2018_10_31_preview/DedicatedHsms/Model-NetworkInterface.cs delete mode 100644 data/Pandora.Definitions.ResourceManager/HardwareSecurityModules/v2018_10_31_preview/DedicatedHsms/Model-NetworkProfile.cs delete mode 100644 data/Pandora.Definitions.ResourceManager/HardwareSecurityModules/v2018_10_31_preview/DedicatedHsms/Model-Sku.cs delete mode 100644 data/Pandora.Definitions.ResourceManager/HardwareSecurityModules/v2018_10_31_preview/DedicatedHsms/Operation-DedicatedHsmCreateOrUpdate.cs delete mode 100644 data/Pandora.Definitions.ResourceManager/HardwareSecurityModules/v2018_10_31_preview/DedicatedHsms/Operation-DedicatedHsmDelete.cs delete mode 100644 data/Pandora.Definitions.ResourceManager/HardwareSecurityModules/v2018_10_31_preview/DedicatedHsms/Operation-DedicatedHsmGet.cs delete mode 100644 data/Pandora.Definitions.ResourceManager/HardwareSecurityModules/v2018_10_31_preview/DedicatedHsms/Operation-DedicatedHsmListByResourceGroup.cs delete mode 100644 data/Pandora.Definitions.ResourceManager/HardwareSecurityModules/v2018_10_31_preview/DedicatedHsms/Operation-DedicatedHsmListBySubscription.cs delete mode 100644 data/Pandora.Definitions.ResourceManager/HardwareSecurityModules/v2018_10_31_preview/DedicatedHsms/Operation-DedicatedHsmUpdate.cs delete mode 100644 data/Pandora.Definitions.ResourceManager/HardwareSecurityModules/v2018_10_31_preview/DedicatedHsms/ResourceId-DedicatedHSMId.cs delete mode 100644 data/Pandora.Definitions.ResourceManager/HardwareSecurityModules/v2018_10_31_preview/DedicatedHsms/ResourceId-ResourceGroupId.cs delete mode 100644 data/Pandora.Definitions.ResourceManager/HardwareSecurityModules/v2018_10_31_preview/DedicatedHsms/ResourceId-SubscriptionId.cs diff --git a/config/resource-manager.hcl b/config/resource-manager.hcl index 8acfe86717e..a24694ec494 100644 --- a/config/resource-manager.hcl +++ b/config/resource-manager.hcl @@ -101,7 +101,7 @@ service "frontdoor" { } service "hardwaresecuritymodules" { name = "HardwareSecurityModules" - available = ["2018-10-31-preview", "2021-11-30"] + available = ["2021-11-30"] } service "healthcareapis" { name = "HealthcareApis" diff --git a/data/Pandora.Definitions.ResourceManager/HardwareSecurityModules/v2018_10_31_preview/ApiVersionDefinition-GenerationSetting.cs b/data/Pandora.Definitions.ResourceManager/HardwareSecurityModules/v2018_10_31_preview/ApiVersionDefinition-GenerationSetting.cs deleted file mode 100644 index fae66ed1f4a..00000000000 --- a/data/Pandora.Definitions.ResourceManager/HardwareSecurityModules/v2018_10_31_preview/ApiVersionDefinition-GenerationSetting.cs +++ /dev/null @@ -1,6 +0,0 @@ -namespace Pandora.Definitions.ResourceManager.HardwareSecurityModules.v2018_10_31_preview; - -public partial class Definition -{ - public bool Generate => true; -} diff --git a/data/Pandora.Definitions.ResourceManager/HardwareSecurityModules/v2018_10_31_preview/ApiVersionDefinition.cs b/data/Pandora.Definitions.ResourceManager/HardwareSecurityModules/v2018_10_31_preview/ApiVersionDefinition.cs deleted file mode 100644 index 86953740dab..00000000000 --- a/data/Pandora.Definitions.ResourceManager/HardwareSecurityModules/v2018_10_31_preview/ApiVersionDefinition.cs +++ /dev/null @@ -1,15 +0,0 @@ -using System.Collections.Generic; -using Pandora.Definitions.Interfaces; - -namespace Pandora.Definitions.ResourceManager.HardwareSecurityModules.v2018_10_31_preview; -public partial class Definition : ApiVersionDefinition -{ - public string ApiVersion => "2018-10-31-preview"; - public bool Preview => true; - public Source Source => Source.ResourceManagerRestApiSpecs; - - public IEnumerable Resources => new List - { - new DedicatedHsms.Definition(), - }; -} diff --git a/data/Pandora.Definitions.ResourceManager/HardwareSecurityModules/v2018_10_31_preview/DedicatedHsms/Constant-JsonWebKeyType.cs b/data/Pandora.Definitions.ResourceManager/HardwareSecurityModules/v2018_10_31_preview/DedicatedHsms/Constant-JsonWebKeyType.cs deleted file mode 100644 index 34ff08b0c54..00000000000 --- a/data/Pandora.Definitions.ResourceManager/HardwareSecurityModules/v2018_10_31_preview/DedicatedHsms/Constant-JsonWebKeyType.cs +++ /dev/null @@ -1,29 +0,0 @@ -using Pandora.Definitions.Attributes; -using System.ComponentModel; - -namespace Pandora.Definitions.ResourceManager.HardwareSecurityModules.v2018_10_31_preview.DedicatedHsms; - -[ConstantType(ConstantTypeAttribute.ConstantType.String)] -internal enum JsonWebKeyTypeConstant -{ - [Description("Allocating")] - Allocating, - - [Description("CheckingQuota")] - CheckingQuota, - - [Description("Connecting")] - Connecting, - - [Description("Deleting")] - Deleting, - - [Description("Failed")] - Failed, - - [Description("Provisioning")] - Provisioning, - - [Description("Succeeded")] - Succeeded, -} diff --git a/data/Pandora.Definitions.ResourceManager/HardwareSecurityModules/v2018_10_31_preview/DedicatedHsms/Constant-SkuName.cs b/data/Pandora.Definitions.ResourceManager/HardwareSecurityModules/v2018_10_31_preview/DedicatedHsms/Constant-SkuName.cs deleted file mode 100644 index 75dd3e3e59f..00000000000 --- a/data/Pandora.Definitions.ResourceManager/HardwareSecurityModules/v2018_10_31_preview/DedicatedHsms/Constant-SkuName.cs +++ /dev/null @@ -1,29 +0,0 @@ -using Pandora.Definitions.Attributes; -using System.ComponentModel; - -namespace Pandora.Definitions.ResourceManager.HardwareSecurityModules.v2018_10_31_preview.DedicatedHsms; - -[ConstantType(ConstantTypeAttribute.ConstantType.String)] -internal enum SkuNameConstant -{ - [Description("payShield10K_LMK1_CPS60")] - PayShieldOneZeroKLMKOneCPSSixZero, - - [Description("payShield10K_LMK1_CPS250")] - PayShieldOneZeroKLMKOneCPSTwoFiveZero, - - [Description("payShield10K_LMK1_CPS2500")] - PayShieldOneZeroKLMKOneCPSTwoFiveZeroZero, - - [Description("payShield10K_LMK2_CPS60")] - PayShieldOneZeroKLMKTwoCPSSixZero, - - [Description("payShield10K_LMK2_CPS250")] - PayShieldOneZeroKLMKTwoCPSTwoFiveZero, - - [Description("payShield10K_LMK2_CPS2500")] - PayShieldOneZeroKLMKTwoCPSTwoFiveZeroZero, - - [Description("SafeNet Luna Network HSM A790")] - SafeNetLunaNetworkHSMASevenNineZero, -} diff --git a/data/Pandora.Definitions.ResourceManager/HardwareSecurityModules/v2018_10_31_preview/DedicatedHsms/Definition.cs b/data/Pandora.Definitions.ResourceManager/HardwareSecurityModules/v2018_10_31_preview/DedicatedHsms/Definition.cs deleted file mode 100644 index 60b6d7d9d46..00000000000 --- a/data/Pandora.Definitions.ResourceManager/HardwareSecurityModules/v2018_10_31_preview/DedicatedHsms/Definition.cs +++ /dev/null @@ -1,23 +0,0 @@ -using System.Collections.Generic; -using Pandora.Definitions.Interfaces; - - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - - -namespace Pandora.Definitions.ResourceManager.HardwareSecurityModules.v2018_10_31_preview.DedicatedHsms; - -internal class Definition : ResourceDefinition -{ - public string Name => "DedicatedHsms"; - public IEnumerable Operations => new List - { - new DedicatedHsmCreateOrUpdateOperation(), - new DedicatedHsmDeleteOperation(), - new DedicatedHsmGetOperation(), - new DedicatedHsmListByResourceGroupOperation(), - new DedicatedHsmListBySubscriptionOperation(), - new DedicatedHsmUpdateOperation(), - }; -} diff --git a/data/Pandora.Definitions.ResourceManager/HardwareSecurityModules/v2018_10_31_preview/DedicatedHsms/Model-ApiEntityReference.cs b/data/Pandora.Definitions.ResourceManager/HardwareSecurityModules/v2018_10_31_preview/DedicatedHsms/Model-ApiEntityReference.cs deleted file mode 100644 index dbdcce01603..00000000000 --- a/data/Pandora.Definitions.ResourceManager/HardwareSecurityModules/v2018_10_31_preview/DedicatedHsms/Model-ApiEntityReference.cs +++ /dev/null @@ -1,20 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; -using Pandora.Definitions.Attributes; -using Pandora.Definitions.Attributes.Validation; -using Pandora.Definitions.CustomTypes; - - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - - -namespace Pandora.Definitions.ResourceManager.HardwareSecurityModules.v2018_10_31_preview.DedicatedHsms; - - -internal class ApiEntityReferenceModel -{ - [JsonPropertyName("id")] - public string? Id { get; set; } -} diff --git a/data/Pandora.Definitions.ResourceManager/HardwareSecurityModules/v2018_10_31_preview/DedicatedHsms/Model-DedicatedHsm.cs b/data/Pandora.Definitions.ResourceManager/HardwareSecurityModules/v2018_10_31_preview/DedicatedHsms/Model-DedicatedHsm.cs deleted file mode 100644 index 93721fd55ec..00000000000 --- a/data/Pandora.Definitions.ResourceManager/HardwareSecurityModules/v2018_10_31_preview/DedicatedHsms/Model-DedicatedHsm.cs +++ /dev/null @@ -1,44 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; -using Pandora.Definitions.Attributes; -using Pandora.Definitions.Attributes.Validation; -using Pandora.Definitions.CustomTypes; - - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - - -namespace Pandora.Definitions.ResourceManager.HardwareSecurityModules.v2018_10_31_preview.DedicatedHsms; - - -internal class DedicatedHsmModel -{ - [JsonPropertyName("id")] - public string? Id { get; set; } - - [JsonPropertyName("location")] - [Required] - public CustomTypes.Location Location { get; set; } - - [JsonPropertyName("name")] - public string? Name { get; set; } - - [JsonPropertyName("properties")] - [Required] - public DedicatedHsmPropertiesModel Properties { get; set; } - - [JsonPropertyName("sku")] - [Required] - public SkuModel Sku { get; set; } - - [JsonPropertyName("tags")] - public CustomTypes.Tags? Tags { get; set; } - - [JsonPropertyName("type")] - public string? Type { get; set; } - - [JsonPropertyName("zones")] - public List? Zones { get; set; } -} diff --git a/data/Pandora.Definitions.ResourceManager/HardwareSecurityModules/v2018_10_31_preview/DedicatedHsms/Model-DedicatedHsmPatchParameters.cs b/data/Pandora.Definitions.ResourceManager/HardwareSecurityModules/v2018_10_31_preview/DedicatedHsms/Model-DedicatedHsmPatchParameters.cs deleted file mode 100644 index 7327f888f21..00000000000 --- a/data/Pandora.Definitions.ResourceManager/HardwareSecurityModules/v2018_10_31_preview/DedicatedHsms/Model-DedicatedHsmPatchParameters.cs +++ /dev/null @@ -1,20 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; -using Pandora.Definitions.Attributes; -using Pandora.Definitions.Attributes.Validation; -using Pandora.Definitions.CustomTypes; - - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - - -namespace Pandora.Definitions.ResourceManager.HardwareSecurityModules.v2018_10_31_preview.DedicatedHsms; - - -internal class DedicatedHsmPatchParametersModel -{ - [JsonPropertyName("tags")] - public CustomTypes.Tags? Tags { get; set; } -} diff --git a/data/Pandora.Definitions.ResourceManager/HardwareSecurityModules/v2018_10_31_preview/DedicatedHsms/Model-DedicatedHsmProperties.cs b/data/Pandora.Definitions.ResourceManager/HardwareSecurityModules/v2018_10_31_preview/DedicatedHsms/Model-DedicatedHsmProperties.cs deleted file mode 100644 index 8e6e360592e..00000000000 --- a/data/Pandora.Definitions.ResourceManager/HardwareSecurityModules/v2018_10_31_preview/DedicatedHsms/Model-DedicatedHsmProperties.cs +++ /dev/null @@ -1,29 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; -using Pandora.Definitions.Attributes; -using Pandora.Definitions.Attributes.Validation; -using Pandora.Definitions.CustomTypes; - - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - - -namespace Pandora.Definitions.ResourceManager.HardwareSecurityModules.v2018_10_31_preview.DedicatedHsms; - - -internal class DedicatedHsmPropertiesModel -{ - [JsonPropertyName("networkProfile")] - public NetworkProfileModel? NetworkProfile { get; set; } - - [JsonPropertyName("provisioningState")] - public JsonWebKeyTypeConstant? ProvisioningState { get; set; } - - [JsonPropertyName("stampId")] - public string? StampId { get; set; } - - [JsonPropertyName("statusMessage")] - public string? StatusMessage { get; set; } -} diff --git a/data/Pandora.Definitions.ResourceManager/HardwareSecurityModules/v2018_10_31_preview/DedicatedHsms/Model-NetworkInterface.cs b/data/Pandora.Definitions.ResourceManager/HardwareSecurityModules/v2018_10_31_preview/DedicatedHsms/Model-NetworkInterface.cs deleted file mode 100644 index 2764deaad8d..00000000000 --- a/data/Pandora.Definitions.ResourceManager/HardwareSecurityModules/v2018_10_31_preview/DedicatedHsms/Model-NetworkInterface.cs +++ /dev/null @@ -1,23 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; -using Pandora.Definitions.Attributes; -using Pandora.Definitions.Attributes.Validation; -using Pandora.Definitions.CustomTypes; - - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - - -namespace Pandora.Definitions.ResourceManager.HardwareSecurityModules.v2018_10_31_preview.DedicatedHsms; - - -internal class NetworkInterfaceModel -{ - [JsonPropertyName("id")] - public string? Id { get; set; } - - [JsonPropertyName("privateIpAddress")] - public string? PrivateIpAddress { get; set; } -} diff --git a/data/Pandora.Definitions.ResourceManager/HardwareSecurityModules/v2018_10_31_preview/DedicatedHsms/Model-NetworkProfile.cs b/data/Pandora.Definitions.ResourceManager/HardwareSecurityModules/v2018_10_31_preview/DedicatedHsms/Model-NetworkProfile.cs deleted file mode 100644 index 60e556e2cd3..00000000000 --- a/data/Pandora.Definitions.ResourceManager/HardwareSecurityModules/v2018_10_31_preview/DedicatedHsms/Model-NetworkProfile.cs +++ /dev/null @@ -1,23 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; -using Pandora.Definitions.Attributes; -using Pandora.Definitions.Attributes.Validation; -using Pandora.Definitions.CustomTypes; - - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - - -namespace Pandora.Definitions.ResourceManager.HardwareSecurityModules.v2018_10_31_preview.DedicatedHsms; - - -internal class NetworkProfileModel -{ - [JsonPropertyName("networkInterfaces")] - public List? NetworkInterfaces { get; set; } - - [JsonPropertyName("subnet")] - public ApiEntityReferenceModel? Subnet { get; set; } -} diff --git a/data/Pandora.Definitions.ResourceManager/HardwareSecurityModules/v2018_10_31_preview/DedicatedHsms/Model-Sku.cs b/data/Pandora.Definitions.ResourceManager/HardwareSecurityModules/v2018_10_31_preview/DedicatedHsms/Model-Sku.cs deleted file mode 100644 index b69529b845f..00000000000 --- a/data/Pandora.Definitions.ResourceManager/HardwareSecurityModules/v2018_10_31_preview/DedicatedHsms/Model-Sku.cs +++ /dev/null @@ -1,20 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; -using Pandora.Definitions.Attributes; -using Pandora.Definitions.Attributes.Validation; -using Pandora.Definitions.CustomTypes; - - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - - -namespace Pandora.Definitions.ResourceManager.HardwareSecurityModules.v2018_10_31_preview.DedicatedHsms; - - -internal class SkuModel -{ - [JsonPropertyName("name")] - public SkuNameConstant? Name { get; set; } -} diff --git a/data/Pandora.Definitions.ResourceManager/HardwareSecurityModules/v2018_10_31_preview/DedicatedHsms/Operation-DedicatedHsmCreateOrUpdate.cs b/data/Pandora.Definitions.ResourceManager/HardwareSecurityModules/v2018_10_31_preview/DedicatedHsms/Operation-DedicatedHsmCreateOrUpdate.cs deleted file mode 100644 index 51d90e59d98..00000000000 --- a/data/Pandora.Definitions.ResourceManager/HardwareSecurityModules/v2018_10_31_preview/DedicatedHsms/Operation-DedicatedHsmCreateOrUpdate.cs +++ /dev/null @@ -1,27 +0,0 @@ -using Pandora.Definitions.Attributes; -using Pandora.Definitions.CustomTypes; -using Pandora.Definitions.Interfaces; -using Pandora.Definitions.Operations; -using System; -using System.Collections.Generic; -using System.Net; - - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - - -namespace Pandora.Definitions.ResourceManager.HardwareSecurityModules.v2018_10_31_preview.DedicatedHsms; - -internal class DedicatedHsmCreateOrUpdateOperation : Operations.PutOperation -{ - public override bool LongRunning() => true; - - public override Type? RequestObject() => typeof(DedicatedHsmModel); - - public override ResourceID? ResourceId() => new DedicatedHSMId(); - - public override Type? ResponseObject() => typeof(DedicatedHsmModel); - - -} diff --git a/data/Pandora.Definitions.ResourceManager/HardwareSecurityModules/v2018_10_31_preview/DedicatedHsms/Operation-DedicatedHsmDelete.cs b/data/Pandora.Definitions.ResourceManager/HardwareSecurityModules/v2018_10_31_preview/DedicatedHsms/Operation-DedicatedHsmDelete.cs deleted file mode 100644 index 705eae45c60..00000000000 --- a/data/Pandora.Definitions.ResourceManager/HardwareSecurityModules/v2018_10_31_preview/DedicatedHsms/Operation-DedicatedHsmDelete.cs +++ /dev/null @@ -1,30 +0,0 @@ -using Pandora.Definitions.Attributes; -using Pandora.Definitions.CustomTypes; -using Pandora.Definitions.Interfaces; -using Pandora.Definitions.Operations; -using System; -using System.Collections.Generic; -using System.Net; - - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - - -namespace Pandora.Definitions.ResourceManager.HardwareSecurityModules.v2018_10_31_preview.DedicatedHsms; - -internal class DedicatedHsmDeleteOperation : Operations.DeleteOperation -{ - public override IEnumerable ExpectedStatusCodes() => new List - { - HttpStatusCode.Accepted, - HttpStatusCode.NoContent, - HttpStatusCode.OK, - }; - - public override bool LongRunning() => true; - - public override ResourceID? ResourceId() => new DedicatedHSMId(); - - -} diff --git a/data/Pandora.Definitions.ResourceManager/HardwareSecurityModules/v2018_10_31_preview/DedicatedHsms/Operation-DedicatedHsmGet.cs b/data/Pandora.Definitions.ResourceManager/HardwareSecurityModules/v2018_10_31_preview/DedicatedHsms/Operation-DedicatedHsmGet.cs deleted file mode 100644 index 976b1849309..00000000000 --- a/data/Pandora.Definitions.ResourceManager/HardwareSecurityModules/v2018_10_31_preview/DedicatedHsms/Operation-DedicatedHsmGet.cs +++ /dev/null @@ -1,23 +0,0 @@ -using Pandora.Definitions.Attributes; -using Pandora.Definitions.CustomTypes; -using Pandora.Definitions.Interfaces; -using Pandora.Definitions.Operations; -using System; -using System.Collections.Generic; -using System.Net; - - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - - -namespace Pandora.Definitions.ResourceManager.HardwareSecurityModules.v2018_10_31_preview.DedicatedHsms; - -internal class DedicatedHsmGetOperation : Operations.GetOperation -{ - public override ResourceID? ResourceId() => new DedicatedHSMId(); - - public override Type? ResponseObject() => typeof(DedicatedHsmModel); - - -} diff --git a/data/Pandora.Definitions.ResourceManager/HardwareSecurityModules/v2018_10_31_preview/DedicatedHsms/Operation-DedicatedHsmListByResourceGroup.cs b/data/Pandora.Definitions.ResourceManager/HardwareSecurityModules/v2018_10_31_preview/DedicatedHsms/Operation-DedicatedHsmListByResourceGroup.cs deleted file mode 100644 index ef69cacc843..00000000000 --- a/data/Pandora.Definitions.ResourceManager/HardwareSecurityModules/v2018_10_31_preview/DedicatedHsms/Operation-DedicatedHsmListByResourceGroup.cs +++ /dev/null @@ -1,34 +0,0 @@ -using Pandora.Definitions.Attributes; -using Pandora.Definitions.CustomTypes; -using Pandora.Definitions.Interfaces; -using Pandora.Definitions.Operations; -using System; -using System.Collections.Generic; -using System.Net; - - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - - -namespace Pandora.Definitions.ResourceManager.HardwareSecurityModules.v2018_10_31_preview.DedicatedHsms; - -internal class DedicatedHsmListByResourceGroupOperation : Operations.ListOperation -{ - public override string? FieldContainingPaginationDetails() => "nextLink"; - - public override ResourceID? ResourceId() => new ResourceGroupId(); - - public override Type NestedItemType() => typeof(DedicatedHsmModel); - - public override Type? OptionsObject() => typeof(DedicatedHsmListByResourceGroupOperation.DedicatedHsmListByResourceGroupOptions); - - public override string? UriSuffix() => "/providers/Microsoft.HardwareSecurityModules/dedicatedHSMs"; - - internal class DedicatedHsmListByResourceGroupOptions - { - [QueryStringName("$top")] - [Optional] - public int Top { get; set; } - } -} diff --git a/data/Pandora.Definitions.ResourceManager/HardwareSecurityModules/v2018_10_31_preview/DedicatedHsms/Operation-DedicatedHsmListBySubscription.cs b/data/Pandora.Definitions.ResourceManager/HardwareSecurityModules/v2018_10_31_preview/DedicatedHsms/Operation-DedicatedHsmListBySubscription.cs deleted file mode 100644 index 5c06d7935bd..00000000000 --- a/data/Pandora.Definitions.ResourceManager/HardwareSecurityModules/v2018_10_31_preview/DedicatedHsms/Operation-DedicatedHsmListBySubscription.cs +++ /dev/null @@ -1,34 +0,0 @@ -using Pandora.Definitions.Attributes; -using Pandora.Definitions.CustomTypes; -using Pandora.Definitions.Interfaces; -using Pandora.Definitions.Operations; -using System; -using System.Collections.Generic; -using System.Net; - - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - - -namespace Pandora.Definitions.ResourceManager.HardwareSecurityModules.v2018_10_31_preview.DedicatedHsms; - -internal class DedicatedHsmListBySubscriptionOperation : Operations.ListOperation -{ - public override string? FieldContainingPaginationDetails() => "nextLink"; - - public override ResourceID? ResourceId() => new SubscriptionId(); - - public override Type NestedItemType() => typeof(DedicatedHsmModel); - - public override Type? OptionsObject() => typeof(DedicatedHsmListBySubscriptionOperation.DedicatedHsmListBySubscriptionOptions); - - public override string? UriSuffix() => "/providers/Microsoft.HardwareSecurityModules/dedicatedHSMs"; - - internal class DedicatedHsmListBySubscriptionOptions - { - [QueryStringName("$top")] - [Optional] - public int Top { get; set; } - } -} diff --git a/data/Pandora.Definitions.ResourceManager/HardwareSecurityModules/v2018_10_31_preview/DedicatedHsms/Operation-DedicatedHsmUpdate.cs b/data/Pandora.Definitions.ResourceManager/HardwareSecurityModules/v2018_10_31_preview/DedicatedHsms/Operation-DedicatedHsmUpdate.cs deleted file mode 100644 index 66184894043..00000000000 --- a/data/Pandora.Definitions.ResourceManager/HardwareSecurityModules/v2018_10_31_preview/DedicatedHsms/Operation-DedicatedHsmUpdate.cs +++ /dev/null @@ -1,32 +0,0 @@ -using Pandora.Definitions.Attributes; -using Pandora.Definitions.CustomTypes; -using Pandora.Definitions.Interfaces; -using Pandora.Definitions.Operations; -using System; -using System.Collections.Generic; -using System.Net; - - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - - -namespace Pandora.Definitions.ResourceManager.HardwareSecurityModules.v2018_10_31_preview.DedicatedHsms; - -internal class DedicatedHsmUpdateOperation : Operations.PatchOperation -{ - public override IEnumerable ExpectedStatusCodes() => new List - { - HttpStatusCode.OK, - }; - - public override bool LongRunning() => true; - - public override Type? RequestObject() => typeof(DedicatedHsmPatchParametersModel); - - public override ResourceID? ResourceId() => new DedicatedHSMId(); - - public override Type? ResponseObject() => typeof(DedicatedHsmModel); - - -} diff --git a/data/Pandora.Definitions.ResourceManager/HardwareSecurityModules/v2018_10_31_preview/DedicatedHsms/ResourceId-DedicatedHSMId.cs b/data/Pandora.Definitions.ResourceManager/HardwareSecurityModules/v2018_10_31_preview/DedicatedHsms/ResourceId-DedicatedHSMId.cs deleted file mode 100644 index 88dd620987f..00000000000 --- a/data/Pandora.Definitions.ResourceManager/HardwareSecurityModules/v2018_10_31_preview/DedicatedHsms/ResourceId-DedicatedHSMId.cs +++ /dev/null @@ -1,28 +0,0 @@ -using System.Collections.Generic; -using Pandora.Definitions.Interfaces; - - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - - -namespace Pandora.Definitions.ResourceManager.HardwareSecurityModules.v2018_10_31_preview.DedicatedHsms; - -internal class DedicatedHSMId : ResourceID -{ - public string? CommonAlias => null; - - public string ID => "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/dedicatedHSMs/{name}"; - - public List Segments => new List - { - ResourceIDSegment.Static("staticSubscriptions", "subscriptions"), - ResourceIDSegment.SubscriptionId("subscriptionId"), - ResourceIDSegment.Static("staticResourceGroups", "resourceGroups"), - ResourceIDSegment.ResourceGroup("resourceGroupName"), - ResourceIDSegment.Static("staticProviders", "providers"), - ResourceIDSegment.ResourceProvider("staticMicrosoftHardwareSecurityModules", "Microsoft.HardwareSecurityModules"), - ResourceIDSegment.Static("staticDedicatedHSMs", "dedicatedHSMs"), - ResourceIDSegment.UserSpecified("name"), - }; -} diff --git a/data/Pandora.Definitions.ResourceManager/HardwareSecurityModules/v2018_10_31_preview/DedicatedHsms/ResourceId-ResourceGroupId.cs b/data/Pandora.Definitions.ResourceManager/HardwareSecurityModules/v2018_10_31_preview/DedicatedHsms/ResourceId-ResourceGroupId.cs deleted file mode 100644 index 4e0aa6de634..00000000000 --- a/data/Pandora.Definitions.ResourceManager/HardwareSecurityModules/v2018_10_31_preview/DedicatedHsms/ResourceId-ResourceGroupId.cs +++ /dev/null @@ -1,21 +0,0 @@ -using System.Collections.Generic; -using Pandora.Definitions.Interfaces; - - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - - -namespace Pandora.Definitions.ResourceManager.HardwareSecurityModules.v2018_10_31_preview.DedicatedHsms; - -internal class ResourceGroupId : ResourceID -{ - public string? CommonAlias => "ResourceGroup"; - - public string ID => "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}"; - - public List Segments => new List - { - - }; -} diff --git a/data/Pandora.Definitions.ResourceManager/HardwareSecurityModules/v2018_10_31_preview/DedicatedHsms/ResourceId-SubscriptionId.cs b/data/Pandora.Definitions.ResourceManager/HardwareSecurityModules/v2018_10_31_preview/DedicatedHsms/ResourceId-SubscriptionId.cs deleted file mode 100644 index 7b2dff4e1c0..00000000000 --- a/data/Pandora.Definitions.ResourceManager/HardwareSecurityModules/v2018_10_31_preview/DedicatedHsms/ResourceId-SubscriptionId.cs +++ /dev/null @@ -1,21 +0,0 @@ -using System.Collections.Generic; -using Pandora.Definitions.Interfaces; - - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - - -namespace Pandora.Definitions.ResourceManager.HardwareSecurityModules.v2018_10_31_preview.DedicatedHsms; - -internal class SubscriptionId : ResourceID -{ - public string? CommonAlias => "Subscription"; - - public string ID => "/subscriptions/{subscriptionId}"; - - public List Segments => new List - { - - }; -}