diff --git a/data/Pandora.Definitions.ResourceManager/HealthBot/ServiceDefinition-GenerationSettings.cs b/data/Pandora.Definitions.ResourceManager/HealthBot/ServiceDefinition-GenerationSettings.cs new file mode 100644 index 00000000000..14b2b4fff22 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/HealthBot/ServiceDefinition-GenerationSettings.cs @@ -0,0 +1,6 @@ +namespace Pandora.Definitions.ResourceManager.HealthBot; + +public partial class Service +{ + public bool Generate => true; +} diff --git a/data/Pandora.Definitions.ResourceManager/HealthBot/ServiceDefinition.cs b/data/Pandora.Definitions.ResourceManager/HealthBot/ServiceDefinition.cs new file mode 100644 index 00000000000..2354ce408f9 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/HealthBot/ServiceDefinition.cs @@ -0,0 +1,21 @@ +using Pandora.Definitions.Interfaces; +using System.Collections.Generic; + + +// 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.HealthBot; + +public partial class Service : ServiceDefinition +{ + public string Name => "HealthBot"; + public string? ResourceProvider => "Microsoft.HealthBot"; + public string? TerraformPackageName => null; + + public IEnumerable TerraformResources => new List + { + + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/HealthBot/v2020_12_08/ApiVersionDefinition-GenerationSetting.cs b/data/Pandora.Definitions.ResourceManager/HealthBot/v2020_12_08/ApiVersionDefinition-GenerationSetting.cs new file mode 100644 index 00000000000..76bd9d5db96 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/HealthBot/v2020_12_08/ApiVersionDefinition-GenerationSetting.cs @@ -0,0 +1,6 @@ +namespace Pandora.Definitions.ResourceManager.HealthBot.v2020_12_08; + +public partial class Definition +{ + public bool Generate => true; +} diff --git a/data/Pandora.Definitions.ResourceManager/HealthBot/v2020_12_08/ApiVersionDefinition.cs b/data/Pandora.Definitions.ResourceManager/HealthBot/v2020_12_08/ApiVersionDefinition.cs new file mode 100644 index 00000000000..8954319bdae --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/HealthBot/v2020_12_08/ApiVersionDefinition.cs @@ -0,0 +1,16 @@ +using System.Collections.Generic; +using Pandora.Definitions.Interfaces; + +namespace Pandora.Definitions.ResourceManager.HealthBot.v2020_12_08; + +public partial class Definition : ApiVersionDefinition +{ + public string ApiVersion => "2020-12-08"; + public bool Preview => false; + public Source Source => Source.ResourceManagerRestApiSpecs; + + public IEnumerable Resources => new List + { + new Healthbots.Definition(), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/HealthBot/v2020_12_08/Healthbots/Constant-SkuName.cs b/data/Pandora.Definitions.ResourceManager/HealthBot/v2020_12_08/Healthbots/Constant-SkuName.cs new file mode 100644 index 00000000000..2d89b33cef2 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/HealthBot/v2020_12_08/Healthbots/Constant-SkuName.cs @@ -0,0 +1,17 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.HealthBot.v2020_12_08.Healthbots; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum SkuNameConstant +{ + [Description("C0")] + CZero, + + [Description("F0")] + FZero, + + [Description("S1")] + SOne, +} diff --git a/data/Pandora.Definitions.ResourceManager/HealthBot/v2020_12_08/Healthbots/Definition.cs b/data/Pandora.Definitions.ResourceManager/HealthBot/v2020_12_08/Healthbots/Definition.cs new file mode 100644 index 00000000000..35ebfa81273 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/HealthBot/v2020_12_08/Healthbots/Definition.cs @@ -0,0 +1,23 @@ +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.HealthBot.v2020_12_08.Healthbots; + +internal class Definition : ResourceDefinition +{ + public string Name => "Healthbots"; + public IEnumerable Operations => new List + { + new BotsCreateOperation(), + new BotsDeleteOperation(), + new BotsGetOperation(), + new BotsListOperation(), + new BotsListByResourceGroupOperation(), + new BotsUpdateOperation(), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/HealthBot/v2020_12_08/Healthbots/Model-HealthBot.cs b/data/Pandora.Definitions.ResourceManager/HealthBot/v2020_12_08/Healthbots/Model-HealthBot.cs new file mode 100644 index 00000000000..e744f5f4de0 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/HealthBot/v2020_12_08/Healthbots/Model-HealthBot.cs @@ -0,0 +1,43 @@ +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.HealthBot.v2020_12_08.Healthbots; + + +internal class HealthBotModel +{ + [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")] + public HealthBotPropertiesModel? Properties { get; set; } + + [JsonPropertyName("sku")] + [Required] + public SkuModel Sku { get; set; } + + [JsonPropertyName("systemData")] + public CustomTypes.SystemData? SystemData { get; set; } + + [JsonPropertyName("tags")] + public CustomTypes.Tags? Tags { get; set; } + + [JsonPropertyName("type")] + public string? Type { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/HealthBot/v2020_12_08/Healthbots/Model-HealthBotProperties.cs b/data/Pandora.Definitions.ResourceManager/HealthBot/v2020_12_08/Healthbots/Model-HealthBotProperties.cs new file mode 100644 index 00000000000..143d36c90f4 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/HealthBot/v2020_12_08/Healthbots/Model-HealthBotProperties.cs @@ -0,0 +1,23 @@ +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.HealthBot.v2020_12_08.Healthbots; + + +internal class HealthBotPropertiesModel +{ + [JsonPropertyName("botManagementPortalLink")] + public string? BotManagementPortalLink { get; set; } + + [JsonPropertyName("provisioningState")] + public string? ProvisioningState { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/HealthBot/v2020_12_08/Healthbots/Model-HealthBotUpdateParameters.cs b/data/Pandora.Definitions.ResourceManager/HealthBot/v2020_12_08/Healthbots/Model-HealthBotUpdateParameters.cs new file mode 100644 index 00000000000..f477c69676b --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/HealthBot/v2020_12_08/Healthbots/Model-HealthBotUpdateParameters.cs @@ -0,0 +1,23 @@ +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.HealthBot.v2020_12_08.Healthbots; + + +internal class HealthBotUpdateParametersModel +{ + [JsonPropertyName("sku")] + public SkuModel? Sku { get; set; } + + [JsonPropertyName("tags")] + public CustomTypes.Tags? Tags { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/HealthBot/v2020_12_08/Healthbots/Model-Sku.cs b/data/Pandora.Definitions.ResourceManager/HealthBot/v2020_12_08/Healthbots/Model-Sku.cs new file mode 100644 index 00000000000..e4145d780f4 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/HealthBot/v2020_12_08/Healthbots/Model-Sku.cs @@ -0,0 +1,21 @@ +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.HealthBot.v2020_12_08.Healthbots; + + +internal class SkuModel +{ + [JsonPropertyName("name")] + [Required] + public SkuNameConstant Name { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/HealthBot/v2020_12_08/Healthbots/Operation-BotsCreate.cs b/data/Pandora.Definitions.ResourceManager/HealthBot/v2020_12_08/Healthbots/Operation-BotsCreate.cs new file mode 100644 index 00000000000..a0a31a1eb3b --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/HealthBot/v2020_12_08/Healthbots/Operation-BotsCreate.cs @@ -0,0 +1,27 @@ +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.HealthBot.v2020_12_08.Healthbots; + +internal class BotsCreateOperation : Operations.PutOperation +{ + public override bool LongRunning() => true; + + public override Type? RequestObject() => typeof(HealthBotModel); + + public override ResourceID? ResourceId() => new HealthBotId(); + + public override Type? ResponseObject() => typeof(HealthBotModel); + + +} diff --git a/data/Pandora.Definitions.ResourceManager/HealthBot/v2020_12_08/Healthbots/Operation-BotsDelete.cs b/data/Pandora.Definitions.ResourceManager/HealthBot/v2020_12_08/Healthbots/Operation-BotsDelete.cs new file mode 100644 index 00000000000..0d5de7dddf1 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/HealthBot/v2020_12_08/Healthbots/Operation-BotsDelete.cs @@ -0,0 +1,30 @@ +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.HealthBot.v2020_12_08.Healthbots; + +internal class BotsDeleteOperation : Operations.DeleteOperation +{ + public override IEnumerable ExpectedStatusCodes() => new List + { + HttpStatusCode.Accepted, + HttpStatusCode.NoContent, + HttpStatusCode.OK, + }; + + public override bool LongRunning() => true; + + public override ResourceID? ResourceId() => new HealthBotId(); + + +} diff --git a/data/Pandora.Definitions.ResourceManager/HealthBot/v2020_12_08/Healthbots/Operation-BotsGet.cs b/data/Pandora.Definitions.ResourceManager/HealthBot/v2020_12_08/Healthbots/Operation-BotsGet.cs new file mode 100644 index 00000000000..9c4d597201b --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/HealthBot/v2020_12_08/Healthbots/Operation-BotsGet.cs @@ -0,0 +1,23 @@ +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.HealthBot.v2020_12_08.Healthbots; + +internal class BotsGetOperation : Operations.GetOperation +{ + public override ResourceID? ResourceId() => new HealthBotId(); + + public override Type? ResponseObject() => typeof(HealthBotModel); + + +} diff --git a/data/Pandora.Definitions.ResourceManager/HealthBot/v2020_12_08/Healthbots/Operation-BotsList.cs b/data/Pandora.Definitions.ResourceManager/HealthBot/v2020_12_08/Healthbots/Operation-BotsList.cs new file mode 100644 index 00000000000..0a1411819aa --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/HealthBot/v2020_12_08/Healthbots/Operation-BotsList.cs @@ -0,0 +1,27 @@ +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.HealthBot.v2020_12_08.Healthbots; + +internal class BotsListOperation : Operations.ListOperation +{ + public override string? FieldContainingPaginationDetails() => "nextLink"; + + public override ResourceID? ResourceId() => new SubscriptionId(); + + public override Type NestedItemType() => typeof(HealthBotModel); + + public override string? UriSuffix() => "/providers/Microsoft.HealthBot/healthBots"; + + +} diff --git a/data/Pandora.Definitions.ResourceManager/HealthBot/v2020_12_08/Healthbots/Operation-BotsListByResourceGroup.cs b/data/Pandora.Definitions.ResourceManager/HealthBot/v2020_12_08/Healthbots/Operation-BotsListByResourceGroup.cs new file mode 100644 index 00000000000..03a093b0333 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/HealthBot/v2020_12_08/Healthbots/Operation-BotsListByResourceGroup.cs @@ -0,0 +1,27 @@ +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.HealthBot.v2020_12_08.Healthbots; + +internal class BotsListByResourceGroupOperation : Operations.ListOperation +{ + public override string? FieldContainingPaginationDetails() => "nextLink"; + + public override ResourceID? ResourceId() => new ResourceGroupId(); + + public override Type NestedItemType() => typeof(HealthBotModel); + + public override string? UriSuffix() => "/providers/Microsoft.HealthBot/healthBots"; + + +} diff --git a/data/Pandora.Definitions.ResourceManager/HealthBot/v2020_12_08/Healthbots/Operation-BotsUpdate.cs b/data/Pandora.Definitions.ResourceManager/HealthBot/v2020_12_08/Healthbots/Operation-BotsUpdate.cs new file mode 100644 index 00000000000..e275848813f --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/HealthBot/v2020_12_08/Healthbots/Operation-BotsUpdate.cs @@ -0,0 +1,25 @@ +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.HealthBot.v2020_12_08.Healthbots; + +internal class BotsUpdateOperation : Operations.PatchOperation +{ + public override Type? RequestObject() => typeof(HealthBotUpdateParametersModel); + + public override ResourceID? ResourceId() => new HealthBotId(); + + public override Type? ResponseObject() => typeof(HealthBotModel); + + +} diff --git a/data/Pandora.Definitions.ResourceManager/HealthBot/v2020_12_08/Healthbots/ResourceId-HealthBotId.cs b/data/Pandora.Definitions.ResourceManager/HealthBot/v2020_12_08/Healthbots/ResourceId-HealthBotId.cs new file mode 100644 index 00000000000..6b780732117 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/HealthBot/v2020_12_08/Healthbots/ResourceId-HealthBotId.cs @@ -0,0 +1,28 @@ +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.HealthBot.v2020_12_08.Healthbots; + +internal class HealthBotId : ResourceID +{ + public string? CommonAlias => null; + + public string ID => "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthBot/healthBots/{botName}"; + + 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("staticMicrosoftHealthBot", "Microsoft.HealthBot"), + ResourceIDSegment.Static("staticHealthBots", "healthBots"), + ResourceIDSegment.UserSpecified("botName"), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/HealthBot/v2020_12_08/Healthbots/ResourceId-ResourceGroupId.cs b/data/Pandora.Definitions.ResourceManager/HealthBot/v2020_12_08/Healthbots/ResourceId-ResourceGroupId.cs new file mode 100644 index 00000000000..06beb4ed80d --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/HealthBot/v2020_12_08/Healthbots/ResourceId-ResourceGroupId.cs @@ -0,0 +1,24 @@ +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.HealthBot.v2020_12_08.Healthbots; + +internal class ResourceGroupId : ResourceID +{ + public string? CommonAlias => "ResourceGroup"; + + public string ID => "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}"; + + public List Segments => new List + { + ResourceIDSegment.Static("subscriptions", "subscriptions"), + ResourceIDSegment.SubscriptionId("subscriptionId"), + ResourceIDSegment.Static("resourceGroups", "resourceGroups"), + ResourceIDSegment.ResourceGroup("resourceGroupName"), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/HealthBot/v2020_12_08/Healthbots/ResourceId-SubscriptionId.cs b/data/Pandora.Definitions.ResourceManager/HealthBot/v2020_12_08/Healthbots/ResourceId-SubscriptionId.cs new file mode 100644 index 00000000000..59f54237903 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/HealthBot/v2020_12_08/Healthbots/ResourceId-SubscriptionId.cs @@ -0,0 +1,22 @@ +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.HealthBot.v2020_12_08.Healthbots; + +internal class SubscriptionId : ResourceID +{ + public string? CommonAlias => "Subscription"; + + public string ID => "/subscriptions/{subscriptionId}"; + + public List Segments => new List + { + ResourceIDSegment.Static("subscriptions", "subscriptions"), + ResourceIDSegment.SubscriptionId("subscriptionId"), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/HealthBot/v2022_08_08/ApiVersionDefinition-GenerationSetting.cs b/data/Pandora.Definitions.ResourceManager/HealthBot/v2022_08_08/ApiVersionDefinition-GenerationSetting.cs new file mode 100644 index 00000000000..95ce12fc2cd --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/HealthBot/v2022_08_08/ApiVersionDefinition-GenerationSetting.cs @@ -0,0 +1,6 @@ +namespace Pandora.Definitions.ResourceManager.HealthBot.v2022_08_08; + +public partial class Definition +{ + public bool Generate => true; +} diff --git a/data/Pandora.Definitions.ResourceManager/HealthBot/v2022_08_08/ApiVersionDefinition.cs b/data/Pandora.Definitions.ResourceManager/HealthBot/v2022_08_08/ApiVersionDefinition.cs new file mode 100644 index 00000000000..78ce44ae568 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/HealthBot/v2022_08_08/ApiVersionDefinition.cs @@ -0,0 +1,16 @@ +using System.Collections.Generic; +using Pandora.Definitions.Interfaces; + +namespace Pandora.Definitions.ResourceManager.HealthBot.v2022_08_08; + +public partial class Definition : ApiVersionDefinition +{ + public string ApiVersion => "2022-08-08"; + public bool Preview => false; + public Source Source => Source.ResourceManagerRestApiSpecs; + + public IEnumerable Resources => new List + { + new Healthbots.Definition(), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/HealthBot/v2022_08_08/Healthbots/Constant-SkuName.cs b/data/Pandora.Definitions.ResourceManager/HealthBot/v2022_08_08/Healthbots/Constant-SkuName.cs new file mode 100644 index 00000000000..0abda768273 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/HealthBot/v2022_08_08/Healthbots/Constant-SkuName.cs @@ -0,0 +1,17 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.HealthBot.v2022_08_08.Healthbots; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum SkuNameConstant +{ + [Description("C0")] + CZero, + + [Description("F0")] + FZero, + + [Description("S1")] + SOne, +} diff --git a/data/Pandora.Definitions.ResourceManager/HealthBot/v2022_08_08/Healthbots/Definition.cs b/data/Pandora.Definitions.ResourceManager/HealthBot/v2022_08_08/Healthbots/Definition.cs new file mode 100644 index 00000000000..54d1bf22ee9 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/HealthBot/v2022_08_08/Healthbots/Definition.cs @@ -0,0 +1,25 @@ +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.HealthBot.v2022_08_08.Healthbots; + +internal class Definition : ResourceDefinition +{ + public string Name => "Healthbots"; + public IEnumerable Operations => new List + { + new BotsCreateOperation(), + new BotsDeleteOperation(), + new BotsGetOperation(), + new BotsListOperation(), + new BotsListByResourceGroupOperation(), + new BotsListSecretsOperation(), + new BotsRegenerateApiJwtSecretOperation(), + new BotsUpdateOperation(), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/HealthBot/v2022_08_08/Healthbots/Model-HealthBot.cs b/data/Pandora.Definitions.ResourceManager/HealthBot/v2022_08_08/Healthbots/Model-HealthBot.cs new file mode 100644 index 00000000000..1a3c46a9739 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/HealthBot/v2022_08_08/Healthbots/Model-HealthBot.cs @@ -0,0 +1,46 @@ +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.HealthBot.v2022_08_08.Healthbots; + + +internal class HealthBotModel +{ + [JsonPropertyName("id")] + public string? Id { get; set; } + + [JsonPropertyName("identity")] + public CustomTypes.SystemAndUserAssignedIdentityMap? Identity { get; set; } + + [JsonPropertyName("location")] + [Required] + public CustomTypes.Location Location { get; set; } + + [JsonPropertyName("name")] + public string? Name { get; set; } + + [JsonPropertyName("properties")] + public HealthBotPropertiesModel? Properties { get; set; } + + [JsonPropertyName("sku")] + [Required] + public SkuModel Sku { get; set; } + + [JsonPropertyName("systemData")] + public CustomTypes.SystemData? SystemData { get; set; } + + [JsonPropertyName("tags")] + public CustomTypes.Tags? Tags { get; set; } + + [JsonPropertyName("type")] + public string? Type { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/HealthBot/v2022_08_08/Healthbots/Model-HealthBotKey.cs b/data/Pandora.Definitions.ResourceManager/HealthBot/v2022_08_08/Healthbots/Model-HealthBotKey.cs new file mode 100644 index 00000000000..08b1387b377 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/HealthBot/v2022_08_08/Healthbots/Model-HealthBotKey.cs @@ -0,0 +1,23 @@ +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.HealthBot.v2022_08_08.Healthbots; + + +internal class HealthBotKeyModel +{ + [JsonPropertyName("keyName")] + public string? KeyName { get; set; } + + [JsonPropertyName("value")] + public string? Value { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/HealthBot/v2022_08_08/Healthbots/Model-HealthBotKeysResponse.cs b/data/Pandora.Definitions.ResourceManager/HealthBot/v2022_08_08/Healthbots/Model-HealthBotKeysResponse.cs new file mode 100644 index 00000000000..979cca0c5fa --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/HealthBot/v2022_08_08/Healthbots/Model-HealthBotKeysResponse.cs @@ -0,0 +1,20 @@ +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.HealthBot.v2022_08_08.Healthbots; + + +internal class HealthBotKeysResponseModel +{ + [JsonPropertyName("secrets")] + public List? Secrets { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/HealthBot/v2022_08_08/Healthbots/Model-HealthBotProperties.cs b/data/Pandora.Definitions.ResourceManager/HealthBot/v2022_08_08/Healthbots/Model-HealthBotProperties.cs new file mode 100644 index 00000000000..5d259895de8 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/HealthBot/v2022_08_08/Healthbots/Model-HealthBotProperties.cs @@ -0,0 +1,26 @@ +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.HealthBot.v2022_08_08.Healthbots; + + +internal class HealthBotPropertiesModel +{ + [JsonPropertyName("botManagementPortalLink")] + public string? BotManagementPortalLink { get; set; } + + [JsonPropertyName("keyVaultProperties")] + public KeyVaultPropertiesModel? KeyVaultProperties { get; set; } + + [JsonPropertyName("provisioningState")] + public string? ProvisioningState { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/HealthBot/v2022_08_08/Healthbots/Model-HealthBotUpdateParameters.cs b/data/Pandora.Definitions.ResourceManager/HealthBot/v2022_08_08/Healthbots/Model-HealthBotUpdateParameters.cs new file mode 100644 index 00000000000..f6148c151f1 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/HealthBot/v2022_08_08/Healthbots/Model-HealthBotUpdateParameters.cs @@ -0,0 +1,32 @@ +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.HealthBot.v2022_08_08.Healthbots; + + +internal class HealthBotUpdateParametersModel +{ + [JsonPropertyName("identity")] + public CustomTypes.SystemAndUserAssignedIdentityMap? Identity { get; set; } + + [JsonPropertyName("location")] + public CustomTypes.Location? Location { get; set; } + + [JsonPropertyName("properties")] + public HealthBotPropertiesModel? Properties { get; set; } + + [JsonPropertyName("sku")] + public SkuModel? Sku { get; set; } + + [JsonPropertyName("tags")] + public CustomTypes.Tags? Tags { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/HealthBot/v2022_08_08/Healthbots/Model-KeyVaultProperties.cs b/data/Pandora.Definitions.ResourceManager/HealthBot/v2022_08_08/Healthbots/Model-KeyVaultProperties.cs new file mode 100644 index 00000000000..2393c58320a --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/HealthBot/v2022_08_08/Healthbots/Model-KeyVaultProperties.cs @@ -0,0 +1,31 @@ +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.HealthBot.v2022_08_08.Healthbots; + + +internal class KeyVaultPropertiesModel +{ + [JsonPropertyName("keyName")] + [Required] + public string KeyName { get; set; } + + [JsonPropertyName("keyVaultUri")] + [Required] + public string KeyVaultUri { get; set; } + + [JsonPropertyName("keyVersion")] + public string? KeyVersion { get; set; } + + [JsonPropertyName("userIdentity")] + public string? UserIdentity { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/HealthBot/v2022_08_08/Healthbots/Model-Sku.cs b/data/Pandora.Definitions.ResourceManager/HealthBot/v2022_08_08/Healthbots/Model-Sku.cs new file mode 100644 index 00000000000..d60b0794d3f --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/HealthBot/v2022_08_08/Healthbots/Model-Sku.cs @@ -0,0 +1,21 @@ +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.HealthBot.v2022_08_08.Healthbots; + + +internal class SkuModel +{ + [JsonPropertyName("name")] + [Required] + public SkuNameConstant Name { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/HealthBot/v2022_08_08/Healthbots/Operation-BotsCreate.cs b/data/Pandora.Definitions.ResourceManager/HealthBot/v2022_08_08/Healthbots/Operation-BotsCreate.cs new file mode 100644 index 00000000000..24306ed9c33 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/HealthBot/v2022_08_08/Healthbots/Operation-BotsCreate.cs @@ -0,0 +1,27 @@ +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.HealthBot.v2022_08_08.Healthbots; + +internal class BotsCreateOperation : Operations.PutOperation +{ + public override bool LongRunning() => true; + + public override Type? RequestObject() => typeof(HealthBotModel); + + public override ResourceID? ResourceId() => new HealthBotId(); + + public override Type? ResponseObject() => typeof(HealthBotModel); + + +} diff --git a/data/Pandora.Definitions.ResourceManager/HealthBot/v2022_08_08/Healthbots/Operation-BotsDelete.cs b/data/Pandora.Definitions.ResourceManager/HealthBot/v2022_08_08/Healthbots/Operation-BotsDelete.cs new file mode 100644 index 00000000000..c8cfa190b01 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/HealthBot/v2022_08_08/Healthbots/Operation-BotsDelete.cs @@ -0,0 +1,30 @@ +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.HealthBot.v2022_08_08.Healthbots; + +internal class BotsDeleteOperation : Operations.DeleteOperation +{ + public override IEnumerable ExpectedStatusCodes() => new List + { + HttpStatusCode.Accepted, + HttpStatusCode.NoContent, + HttpStatusCode.OK, + }; + + public override bool LongRunning() => true; + + public override ResourceID? ResourceId() => new HealthBotId(); + + +} diff --git a/data/Pandora.Definitions.ResourceManager/HealthBot/v2022_08_08/Healthbots/Operation-BotsGet.cs b/data/Pandora.Definitions.ResourceManager/HealthBot/v2022_08_08/Healthbots/Operation-BotsGet.cs new file mode 100644 index 00000000000..3a491de115e --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/HealthBot/v2022_08_08/Healthbots/Operation-BotsGet.cs @@ -0,0 +1,23 @@ +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.HealthBot.v2022_08_08.Healthbots; + +internal class BotsGetOperation : Operations.GetOperation +{ + public override ResourceID? ResourceId() => new HealthBotId(); + + public override Type? ResponseObject() => typeof(HealthBotModel); + + +} diff --git a/data/Pandora.Definitions.ResourceManager/HealthBot/v2022_08_08/Healthbots/Operation-BotsList.cs b/data/Pandora.Definitions.ResourceManager/HealthBot/v2022_08_08/Healthbots/Operation-BotsList.cs new file mode 100644 index 00000000000..d4c019cc43c --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/HealthBot/v2022_08_08/Healthbots/Operation-BotsList.cs @@ -0,0 +1,27 @@ +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.HealthBot.v2022_08_08.Healthbots; + +internal class BotsListOperation : Operations.ListOperation +{ + public override string? FieldContainingPaginationDetails() => "nextLink"; + + public override ResourceID? ResourceId() => new SubscriptionId(); + + public override Type NestedItemType() => typeof(HealthBotModel); + + public override string? UriSuffix() => "/providers/Microsoft.HealthBot/healthBots"; + + +} diff --git a/data/Pandora.Definitions.ResourceManager/HealthBot/v2022_08_08/Healthbots/Operation-BotsListByResourceGroup.cs b/data/Pandora.Definitions.ResourceManager/HealthBot/v2022_08_08/Healthbots/Operation-BotsListByResourceGroup.cs new file mode 100644 index 00000000000..59abaa21bf3 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/HealthBot/v2022_08_08/Healthbots/Operation-BotsListByResourceGroup.cs @@ -0,0 +1,27 @@ +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.HealthBot.v2022_08_08.Healthbots; + +internal class BotsListByResourceGroupOperation : Operations.ListOperation +{ + public override string? FieldContainingPaginationDetails() => "nextLink"; + + public override ResourceID? ResourceId() => new ResourceGroupId(); + + public override Type NestedItemType() => typeof(HealthBotModel); + + public override string? UriSuffix() => "/providers/Microsoft.HealthBot/healthBots"; + + +} diff --git a/data/Pandora.Definitions.ResourceManager/HealthBot/v2022_08_08/Healthbots/Operation-BotsListSecrets.cs b/data/Pandora.Definitions.ResourceManager/HealthBot/v2022_08_08/Healthbots/Operation-BotsListSecrets.cs new file mode 100644 index 00000000000..3a4d6bdae5c --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/HealthBot/v2022_08_08/Healthbots/Operation-BotsListSecrets.cs @@ -0,0 +1,32 @@ +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.HealthBot.v2022_08_08.Healthbots; + +internal class BotsListSecretsOperation : Operations.PostOperation +{ + public override IEnumerable ExpectedStatusCodes() => new List + { + HttpStatusCode.OK, + }; + + public override Type? RequestObject() => null; + + public override ResourceID? ResourceId() => new HealthBotId(); + + public override Type? ResponseObject() => typeof(HealthBotKeysResponseModel); + + public override string? UriSuffix() => "/listSecrets"; + + +} diff --git a/data/Pandora.Definitions.ResourceManager/HealthBot/v2022_08_08/Healthbots/Operation-BotsRegenerateApiJwtSecret.cs b/data/Pandora.Definitions.ResourceManager/HealthBot/v2022_08_08/Healthbots/Operation-BotsRegenerateApiJwtSecret.cs new file mode 100644 index 00000000000..91b1c2f11d9 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/HealthBot/v2022_08_08/Healthbots/Operation-BotsRegenerateApiJwtSecret.cs @@ -0,0 +1,32 @@ +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.HealthBot.v2022_08_08.Healthbots; + +internal class BotsRegenerateApiJwtSecretOperation : Operations.PostOperation +{ + public override IEnumerable ExpectedStatusCodes() => new List + { + HttpStatusCode.OK, + }; + + public override Type? RequestObject() => null; + + public override ResourceID? ResourceId() => new HealthBotId(); + + public override Type? ResponseObject() => typeof(HealthBotKeyModel); + + public override string? UriSuffix() => "/regenerateApiJwtSecret"; + + +} diff --git a/data/Pandora.Definitions.ResourceManager/HealthBot/v2022_08_08/Healthbots/Operation-BotsUpdate.cs b/data/Pandora.Definitions.ResourceManager/HealthBot/v2022_08_08/Healthbots/Operation-BotsUpdate.cs new file mode 100644 index 00000000000..9953ab90950 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/HealthBot/v2022_08_08/Healthbots/Operation-BotsUpdate.cs @@ -0,0 +1,25 @@ +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.HealthBot.v2022_08_08.Healthbots; + +internal class BotsUpdateOperation : Operations.PatchOperation +{ + public override Type? RequestObject() => typeof(HealthBotUpdateParametersModel); + + public override ResourceID? ResourceId() => new HealthBotId(); + + public override Type? ResponseObject() => typeof(HealthBotModel); + + +} diff --git a/data/Pandora.Definitions.ResourceManager/HealthBot/v2022_08_08/Healthbots/ResourceId-HealthBotId.cs b/data/Pandora.Definitions.ResourceManager/HealthBot/v2022_08_08/Healthbots/ResourceId-HealthBotId.cs new file mode 100644 index 00000000000..58d90ceb570 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/HealthBot/v2022_08_08/Healthbots/ResourceId-HealthBotId.cs @@ -0,0 +1,28 @@ +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.HealthBot.v2022_08_08.Healthbots; + +internal class HealthBotId : ResourceID +{ + public string? CommonAlias => null; + + public string ID => "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthBot/healthBots/{botName}"; + + 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("staticMicrosoftHealthBot", "Microsoft.HealthBot"), + ResourceIDSegment.Static("staticHealthBots", "healthBots"), + ResourceIDSegment.UserSpecified("botName"), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/HealthBot/v2022_08_08/Healthbots/ResourceId-ResourceGroupId.cs b/data/Pandora.Definitions.ResourceManager/HealthBot/v2022_08_08/Healthbots/ResourceId-ResourceGroupId.cs new file mode 100644 index 00000000000..3ceaab62422 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/HealthBot/v2022_08_08/Healthbots/ResourceId-ResourceGroupId.cs @@ -0,0 +1,24 @@ +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.HealthBot.v2022_08_08.Healthbots; + +internal class ResourceGroupId : ResourceID +{ + public string? CommonAlias => "ResourceGroup"; + + public string ID => "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}"; + + public List Segments => new List + { + ResourceIDSegment.Static("subscriptions", "subscriptions"), + ResourceIDSegment.SubscriptionId("subscriptionId"), + ResourceIDSegment.Static("resourceGroups", "resourceGroups"), + ResourceIDSegment.ResourceGroup("resourceGroupName"), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/HealthBot/v2022_08_08/Healthbots/ResourceId-SubscriptionId.cs b/data/Pandora.Definitions.ResourceManager/HealthBot/v2022_08_08/Healthbots/ResourceId-SubscriptionId.cs new file mode 100644 index 00000000000..37645a98f0a --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/HealthBot/v2022_08_08/Healthbots/ResourceId-SubscriptionId.cs @@ -0,0 +1,22 @@ +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.HealthBot.v2022_08_08.Healthbots; + +internal class SubscriptionId : ResourceID +{ + public string? CommonAlias => "Subscription"; + + public string ID => "/subscriptions/{subscriptionId}"; + + public List Segments => new List + { + ResourceIDSegment.Static("subscriptions", "subscriptions"), + ResourceIDSegment.SubscriptionId("subscriptionId"), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/RecoveryServicesSiteRecovery/v2022_05_01/RecoveryPoints/ResourceId-ReplicationProtectedItemId.cs b/data/Pandora.Definitions.ResourceManager/RecoveryServicesSiteRecovery/v2022_05_01/RecoveryPoints/ResourceId-ReplicationProtectedItemId.cs index e55e5b59389..535e84413cd 100644 --- a/data/Pandora.Definitions.ResourceManager/RecoveryServicesSiteRecovery/v2022_05_01/RecoveryPoints/ResourceId-ReplicationProtectedItemId.cs +++ b/data/Pandora.Definitions.ResourceManager/RecoveryServicesSiteRecovery/v2022_05_01/RecoveryPoints/ResourceId-ReplicationProtectedItemId.cs @@ -12,7 +12,7 @@ internal class ReplicationProtectedItemId : ResourceID { public string? CommonAlias => null; - public string ID => "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}"; + public string ID => "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicationProtectedItemName}"; public List Segments => new List { @@ -29,6 +29,6 @@ internal class ReplicationProtectedItemId : ResourceID ResourceIDSegment.Static("staticReplicationProtectionContainers", "replicationProtectionContainers"), ResourceIDSegment.UserSpecified("protectionContainerName"), ResourceIDSegment.Static("staticReplicationProtectedItems", "replicationProtectedItems"), - ResourceIDSegment.UserSpecified("replicatedProtectedItemName"), + ResourceIDSegment.UserSpecified("replicationProtectedItemName"), }; } diff --git a/data/Pandora.Definitions.ResourceManager/RecoveryServicesSiteRecovery/v2022_05_01/ReplicationProtectedItems/ResourceId-ReplicationProtectedItemId.cs b/data/Pandora.Definitions.ResourceManager/RecoveryServicesSiteRecovery/v2022_05_01/ReplicationProtectedItems/ResourceId-ReplicationProtectedItemId.cs index 5853cb38a4c..ca2491c9b11 100644 --- a/data/Pandora.Definitions.ResourceManager/RecoveryServicesSiteRecovery/v2022_05_01/ReplicationProtectedItems/ResourceId-ReplicationProtectedItemId.cs +++ b/data/Pandora.Definitions.ResourceManager/RecoveryServicesSiteRecovery/v2022_05_01/ReplicationProtectedItems/ResourceId-ReplicationProtectedItemId.cs @@ -12,7 +12,7 @@ internal class ReplicationProtectedItemId : ResourceID { public string? CommonAlias => null; - public string ID => "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}"; + public string ID => "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicationProtectedItemName}"; public List Segments => new List { @@ -29,6 +29,6 @@ internal class ReplicationProtectedItemId : ResourceID ResourceIDSegment.Static("staticReplicationProtectionContainers", "replicationProtectionContainers"), ResourceIDSegment.UserSpecified("protectionContainerName"), ResourceIDSegment.Static("staticReplicationProtectedItems", "replicationProtectedItems"), - ResourceIDSegment.UserSpecified("replicatedProtectedItemName"), + ResourceIDSegment.UserSpecified("replicationProtectedItemName"), }; } diff --git a/data/Pandora.Definitions.ResourceManager/RecoveryServicesSiteRecovery/v2022_05_01/TargetComputeSizes/ResourceId-ReplicationProtectedItemId.cs b/data/Pandora.Definitions.ResourceManager/RecoveryServicesSiteRecovery/v2022_05_01/TargetComputeSizes/ResourceId-ReplicationProtectedItemId.cs index 5a11a918858..67ae87bd808 100644 --- a/data/Pandora.Definitions.ResourceManager/RecoveryServicesSiteRecovery/v2022_05_01/TargetComputeSizes/ResourceId-ReplicationProtectedItemId.cs +++ b/data/Pandora.Definitions.ResourceManager/RecoveryServicesSiteRecovery/v2022_05_01/TargetComputeSizes/ResourceId-ReplicationProtectedItemId.cs @@ -12,7 +12,7 @@ internal class ReplicationProtectedItemId : ResourceID { public string? CommonAlias => null; - public string ID => "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}"; + public string ID => "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicationProtectedItemName}"; public List Segments => new List { @@ -29,6 +29,6 @@ internal class ReplicationProtectedItemId : ResourceID ResourceIDSegment.Static("staticReplicationProtectionContainers", "replicationProtectionContainers"), ResourceIDSegment.UserSpecified("protectionContainerName"), ResourceIDSegment.Static("staticReplicationProtectedItems", "replicationProtectedItems"), - ResourceIDSegment.UserSpecified("replicatedProtectedItemName"), + ResourceIDSegment.UserSpecified("replicationProtectedItemName"), }; } diff --git a/data/Pandora.Definitions.ResourceManager/SwaggerRevision.cs b/data/Pandora.Definitions.ResourceManager/SwaggerRevision.cs index 5cbf312f1d8..8aa97fe4c4e 100644 --- a/data/Pandora.Definitions.ResourceManager/SwaggerRevision.cs +++ b/data/Pandora.Definitions.ResourceManager/SwaggerRevision.cs @@ -5,4 +5,4 @@ namespace Pandora.Definitions.ResourceManager; // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -// Generated from Swagger revision "1fefe3f5cee88319b17c08a2dbf95e1e983a9f8c" +// Generated from Swagger revision "495363bc011ce917f579adc1a5209073565d37f4"