diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/ApiVersionDefinition-GenerationSetting.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/ApiVersionDefinition-GenerationSetting.cs new file mode 100644 index 00000000000..1c423d54216 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/ApiVersionDefinition-GenerationSetting.cs @@ -0,0 +1,6 @@ +namespace Pandora.Definitions.ResourceManager.AzureStackHCI.v2023_08_01; + +public partial class Definition +{ + public bool Generate => true; +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/ApiVersionDefinition.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/ApiVersionDefinition.cs new file mode 100644 index 00000000000..ba362ec7a92 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/ApiVersionDefinition.cs @@ -0,0 +1,25 @@ +using System.Collections.Generic; +using Pandora.Definitions.Interfaces; + +namespace Pandora.Definitions.ResourceManager.AzureStackHCI.v2023_08_01; + +public partial class Definition : ApiVersionDefinition +{ + public string ApiVersion => "2023-08-01"; + public bool Preview => false; + public Source Source => Source.ResourceManagerRestApiSpecs; + + public IEnumerable Resources => new List + { + new ArcSettings.Definition(), + new Cluster.Definition(), + new Clusters.Definition(), + new Extensions.Definition(), + new Offers.Definition(), + new Publishers.Definition(), + new Skuses.Definition(), + new UpdateRuns.Definition(), + new UpdateSummaries.Definition(), + new Updates.Definition(), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/ArcSettings/Constant-ArcSettingAggregateState.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/ArcSettings/Constant-ArcSettingAggregateState.cs new file mode 100644 index 00000000000..1860ae2987a --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/ArcSettings/Constant-ArcSettingAggregateState.cs @@ -0,0 +1,62 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.AzureStackHCI.v2023_08_01.ArcSettings; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum ArcSettingAggregateStateConstant +{ + [Description("Accepted")] + Accepted, + + [Description("Canceled")] + Canceled, + + [Description("Connected")] + Connected, + + [Description("Creating")] + Creating, + + [Description("Deleted")] + Deleted, + + [Description("Deleting")] + Deleting, + + [Description("DisableInProgress")] + DisableInProgress, + + [Description("Disconnected")] + Disconnected, + + [Description("Error")] + Error, + + [Description("Failed")] + Failed, + + [Description("InProgress")] + InProgress, + + [Description("Moving")] + Moving, + + [Description("NotSpecified")] + NotSpecified, + + [Description("PartiallyConnected")] + PartiallyConnected, + + [Description("PartiallySucceeded")] + PartiallySucceeded, + + [Description("Provisioning")] + Provisioning, + + [Description("Succeeded")] + Succeeded, + + [Description("Updating")] + Updating, +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/ArcSettings/Constant-NodeArcState.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/ArcSettings/Constant-NodeArcState.cs new file mode 100644 index 00000000000..c86e31c1847 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/ArcSettings/Constant-NodeArcState.cs @@ -0,0 +1,62 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.AzureStackHCI.v2023_08_01.ArcSettings; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum NodeArcStateConstant +{ + [Description("Accepted")] + Accepted, + + [Description("Canceled")] + Canceled, + + [Description("Connected")] + Connected, + + [Description("Creating")] + Creating, + + [Description("Deleted")] + Deleted, + + [Description("Deleting")] + Deleting, + + [Description("DisableInProgress")] + DisableInProgress, + + [Description("Disconnected")] + Disconnected, + + [Description("Error")] + Error, + + [Description("Failed")] + Failed, + + [Description("InProgress")] + InProgress, + + [Description("Moving")] + Moving, + + [Description("NotSpecified")] + NotSpecified, + + [Description("PartiallyConnected")] + PartiallyConnected, + + [Description("PartiallySucceeded")] + PartiallySucceeded, + + [Description("Provisioning")] + Provisioning, + + [Description("Succeeded")] + Succeeded, + + [Description("Updating")] + Updating, +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/ArcSettings/Constant-ProvisioningState.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/ArcSettings/Constant-ProvisioningState.cs new file mode 100644 index 00000000000..7e8cbfd08f0 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/ArcSettings/Constant-ProvisioningState.cs @@ -0,0 +1,62 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.AzureStackHCI.v2023_08_01.ArcSettings; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum ProvisioningStateConstant +{ + [Description("Accepted")] + Accepted, + + [Description("Canceled")] + Canceled, + + [Description("Connected")] + Connected, + + [Description("Creating")] + Creating, + + [Description("Deleted")] + Deleted, + + [Description("Deleting")] + Deleting, + + [Description("DisableInProgress")] + DisableInProgress, + + [Description("Disconnected")] + Disconnected, + + [Description("Error")] + Error, + + [Description("Failed")] + Failed, + + [Description("InProgress")] + InProgress, + + [Description("Moving")] + Moving, + + [Description("NotSpecified")] + NotSpecified, + + [Description("PartiallyConnected")] + PartiallyConnected, + + [Description("PartiallySucceeded")] + PartiallySucceeded, + + [Description("Provisioning")] + Provisioning, + + [Description("Succeeded")] + Succeeded, + + [Description("Updating")] + Updating, +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/ArcSettings/Definition.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/ArcSettings/Definition.cs new file mode 100644 index 00000000000..b4348a9a758 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/ArcSettings/Definition.cs @@ -0,0 +1,44 @@ +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.AzureStackHCI.v2023_08_01.ArcSettings; + +internal class Definition : ResourceDefinition +{ + public string Name => "ArcSettings"; + public IEnumerable Operations => new List + { + new ArcSettingsCreateOperation(), + new ArcSettingsDeleteOperation(), + new ArcSettingsGetOperation(), + new ArcSettingsListByClusterOperation(), + new ArcSettingsUpdateOperation(), + new ConsentAndInstallDefaultExtensionsOperation(), + new CreateIdentityOperation(), + new GeneratePasswordOperation(), + new InitializeDisableProcessOperation(), + }; + public IEnumerable Constants => new List + { + typeof(ArcSettingAggregateStateConstant), + typeof(NodeArcStateConstant), + typeof(ProvisioningStateConstant), + }; + public IEnumerable Models => new List + { + typeof(ArcIdentityResponseModel), + typeof(ArcIdentityResponsePropertiesModel), + typeof(ArcSettingModel), + typeof(ArcSettingPropertiesModel), + typeof(ArcSettingsPatchModel), + typeof(ArcSettingsPatchPropertiesModel), + typeof(DefaultExtensionDetailsModel), + typeof(PasswordCredentialModel), + typeof(PerNodeStateModel), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/ArcSettings/Model-ArcIdentityResponse.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/ArcSettings/Model-ArcIdentityResponse.cs new file mode 100644 index 00000000000..1bc315783ff --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/ArcSettings/Model-ArcIdentityResponse.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.AzureStackHCI.v2023_08_01.ArcSettings; + + +internal class ArcIdentityResponseModel +{ + [JsonPropertyName("properties")] + public ArcIdentityResponsePropertiesModel? Properties { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/ArcSettings/Model-ArcIdentityResponseProperties.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/ArcSettings/Model-ArcIdentityResponseProperties.cs new file mode 100644 index 00000000000..665c127fa28 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/ArcSettings/Model-ArcIdentityResponseProperties.cs @@ -0,0 +1,29 @@ +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.AzureStackHCI.v2023_08_01.ArcSettings; + + +internal class ArcIdentityResponsePropertiesModel +{ + [JsonPropertyName("arcApplicationClientId")] + public string? ArcApplicationClientId { get; set; } + + [JsonPropertyName("arcApplicationObjectId")] + public string? ArcApplicationObjectId { get; set; } + + [JsonPropertyName("arcApplicationTenantId")] + public string? ArcApplicationTenantId { get; set; } + + [JsonPropertyName("arcServicePrincipalObjectId")] + public string? ArcServicePrincipalObjectId { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/ArcSettings/Model-ArcSetting.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/ArcSettings/Model-ArcSetting.cs new file mode 100644 index 00000000000..8fb457c9ff4 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/ArcSettings/Model-ArcSetting.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.AzureStackHCI.v2023_08_01.ArcSettings; + + +internal class ArcSettingModel +{ + [JsonPropertyName("id")] + public string? Id { get; set; } + + [JsonPropertyName("name")] + public string? Name { get; set; } + + [JsonPropertyName("properties")] + public ArcSettingPropertiesModel? Properties { get; set; } + + [JsonPropertyName("systemData")] + public CustomTypes.SystemData? SystemData { get; set; } + + [JsonPropertyName("type")] + public string? Type { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/ArcSettings/Model-ArcSettingProperties.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/ArcSettings/Model-ArcSettingProperties.cs new file mode 100644 index 00000000000..21d6ea8254b --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/ArcSettings/Model-ArcSettingProperties.cs @@ -0,0 +1,47 @@ +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.AzureStackHCI.v2023_08_01.ArcSettings; + + +internal class ArcSettingPropertiesModel +{ + [JsonPropertyName("aggregateState")] + public ArcSettingAggregateStateConstant? AggregateState { get; set; } + + [JsonPropertyName("arcApplicationClientId")] + public string? ArcApplicationClientId { get; set; } + + [JsonPropertyName("arcApplicationObjectId")] + public string? ArcApplicationObjectId { get; set; } + + [JsonPropertyName("arcApplicationTenantId")] + public string? ArcApplicationTenantId { get; set; } + + [JsonPropertyName("arcInstanceResourceGroup")] + public string? ArcInstanceResourceGroup { get; set; } + + [JsonPropertyName("arcServicePrincipalObjectId")] + public string? ArcServicePrincipalObjectId { get; set; } + + [JsonPropertyName("connectivityProperties")] + public object? ConnectivityProperties { get; set; } + + [JsonPropertyName("defaultExtensions")] + public List? DefaultExtensions { get; set; } + + [JsonPropertyName("perNodeDetails")] + public List? PerNodeDetails { get; set; } + + [JsonPropertyName("provisioningState")] + public ProvisioningStateConstant? ProvisioningState { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/ArcSettings/Model-ArcSettingsPatch.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/ArcSettings/Model-ArcSettingsPatch.cs new file mode 100644 index 00000000000..1696d546ec3 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/ArcSettings/Model-ArcSettingsPatch.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.AzureStackHCI.v2023_08_01.ArcSettings; + + +internal class ArcSettingsPatchModel +{ + [JsonPropertyName("properties")] + public ArcSettingsPatchPropertiesModel? Properties { get; set; } + + [JsonPropertyName("tags")] + public CustomTypes.Tags? Tags { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/ArcSettings/Model-ArcSettingsPatchProperties.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/ArcSettings/Model-ArcSettingsPatchProperties.cs new file mode 100644 index 00000000000..11f73adcfd6 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/ArcSettings/Model-ArcSettingsPatchProperties.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.AzureStackHCI.v2023_08_01.ArcSettings; + + +internal class ArcSettingsPatchPropertiesModel +{ + [JsonPropertyName("connectivityProperties")] + public object? ConnectivityProperties { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/ArcSettings/Model-DefaultExtensionDetails.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/ArcSettings/Model-DefaultExtensionDetails.cs new file mode 100644 index 00000000000..c6d6d370c57 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/ArcSettings/Model-DefaultExtensionDetails.cs @@ -0,0 +1,24 @@ +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.AzureStackHCI.v2023_08_01.ArcSettings; + + +internal class DefaultExtensionDetailsModel +{ + [JsonPropertyName("category")] + public string? Category { get; set; } + + [DateFormat(DateFormatAttribute.DateFormat.RFC3339)] + [JsonPropertyName("consentTime")] + public DateTime? ConsentTime { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/ArcSettings/Model-PasswordCredential.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/ArcSettings/Model-PasswordCredential.cs new file mode 100644 index 00000000000..8b66ee2d99d --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/ArcSettings/Model-PasswordCredential.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.AzureStackHCI.v2023_08_01.ArcSettings; + + +internal class PasswordCredentialModel +{ + [DateFormat(DateFormatAttribute.DateFormat.RFC3339)] + [JsonPropertyName("endDateTime")] + public DateTime? EndDateTime { get; set; } + + [JsonPropertyName("keyId")] + public string? KeyId { get; set; } + + [JsonPropertyName("secretText")] + public string? SecretText { get; set; } + + [DateFormat(DateFormatAttribute.DateFormat.RFC3339)] + [JsonPropertyName("startDateTime")] + public DateTime? StartDateTime { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/ArcSettings/Model-PerNodeState.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/ArcSettings/Model-PerNodeState.cs new file mode 100644 index 00000000000..552aff311d9 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/ArcSettings/Model-PerNodeState.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.AzureStackHCI.v2023_08_01.ArcSettings; + + +internal class PerNodeStateModel +{ + [JsonPropertyName("arcInstance")] + public string? ArcInstance { get; set; } + + [JsonPropertyName("name")] + public string? Name { get; set; } + + [JsonPropertyName("state")] + public NodeArcStateConstant? State { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/ArcSettings/Operation-ArcSettingsCreate.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/ArcSettings/Operation-ArcSettingsCreate.cs new file mode 100644 index 00000000000..87d2e296c84 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/ArcSettings/Operation-ArcSettingsCreate.cs @@ -0,0 +1,29 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +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.AzureStackHCI.v2023_08_01.ArcSettings; + +internal class ArcSettingsCreateOperation : Pandora.Definitions.Operations.PutOperation +{ + public override IEnumerable ExpectedStatusCodes() => new List + { + HttpStatusCode.OK, + }; + + public override Type? RequestObject() => typeof(ArcSettingModel); + + public override ResourceID? ResourceId() => new ArcSettingId(); + + public override Type? ResponseObject() => typeof(ArcSettingModel); + + +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/ArcSettings/Operation-ArcSettingsDelete.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/ArcSettings/Operation-ArcSettingsDelete.cs new file mode 100644 index 00000000000..f82d7efb19a --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/ArcSettings/Operation-ArcSettingsDelete.cs @@ -0,0 +1,29 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +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.AzureStackHCI.v2023_08_01.ArcSettings; + +internal class ArcSettingsDeleteOperation : Pandora.Definitions.Operations.DeleteOperation +{ + public override IEnumerable ExpectedStatusCodes() => new List + { + HttpStatusCode.Accepted, + HttpStatusCode.NoContent, + HttpStatusCode.OK, + }; + + public override bool LongRunning() => true; + + public override ResourceID? ResourceId() => new ArcSettingId(); + + +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/ArcSettings/Operation-ArcSettingsGet.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/ArcSettings/Operation-ArcSettingsGet.cs new file mode 100644 index 00000000000..4e1e3bfd0f3 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/ArcSettings/Operation-ArcSettingsGet.cs @@ -0,0 +1,22 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +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.AzureStackHCI.v2023_08_01.ArcSettings; + +internal class ArcSettingsGetOperation : Pandora.Definitions.Operations.GetOperation +{ + public override ResourceID? ResourceId() => new ArcSettingId(); + + public override Type? ResponseObject() => typeof(ArcSettingModel); + + +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/ArcSettings/Operation-ArcSettingsListByCluster.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/ArcSettings/Operation-ArcSettingsListByCluster.cs new file mode 100644 index 00000000000..118fb92ae80 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/ArcSettings/Operation-ArcSettingsListByCluster.cs @@ -0,0 +1,26 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +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.AzureStackHCI.v2023_08_01.ArcSettings; + +internal class ArcSettingsListByClusterOperation : Pandora.Definitions.Operations.ListOperation +{ + public override string? FieldContainingPaginationDetails() => "nextLink"; + + public override ResourceID? ResourceId() => new ClusterId(); + + public override Type NestedItemType() => typeof(ArcSettingModel); + + public override string? UriSuffix() => "/arcSettings"; + + +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/ArcSettings/Operation-ArcSettingsUpdate.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/ArcSettings/Operation-ArcSettingsUpdate.cs new file mode 100644 index 00000000000..03035468faf --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/ArcSettings/Operation-ArcSettingsUpdate.cs @@ -0,0 +1,29 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +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.AzureStackHCI.v2023_08_01.ArcSettings; + +internal class ArcSettingsUpdateOperation : Pandora.Definitions.Operations.PatchOperation +{ + public override IEnumerable ExpectedStatusCodes() => new List + { + HttpStatusCode.OK, + }; + + public override Type? RequestObject() => typeof(ArcSettingsPatchModel); + + public override ResourceID? ResourceId() => new ArcSettingId(); + + public override Type? ResponseObject() => typeof(ArcSettingModel); + + +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/ArcSettings/Operation-ConsentAndInstallDefaultExtensions.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/ArcSettings/Operation-ConsentAndInstallDefaultExtensions.cs new file mode 100644 index 00000000000..17c7d2ce8ad --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/ArcSettings/Operation-ConsentAndInstallDefaultExtensions.cs @@ -0,0 +1,31 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +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.AzureStackHCI.v2023_08_01.ArcSettings; + +internal class ConsentAndInstallDefaultExtensionsOperation : Pandora.Definitions.Operations.PostOperation +{ + public override IEnumerable ExpectedStatusCodes() => new List + { + HttpStatusCode.OK, + }; + + public override Type? RequestObject() => null; + + public override ResourceID? ResourceId() => new ArcSettingId(); + + public override Type? ResponseObject() => typeof(ArcSettingModel); + + public override string? UriSuffix() => "/consentAndInstallDefaultExtensions"; + + +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/ArcSettings/Operation-CreateIdentity.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/ArcSettings/Operation-CreateIdentity.cs new file mode 100644 index 00000000000..1a9dafb4342 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/ArcSettings/Operation-CreateIdentity.cs @@ -0,0 +1,34 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +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.AzureStackHCI.v2023_08_01.ArcSettings; + +internal class CreateIdentityOperation : Pandora.Definitions.Operations.PostOperation +{ + public override IEnumerable ExpectedStatusCodes() => new List + { + HttpStatusCode.Accepted, + HttpStatusCode.OK, + }; + + public override bool LongRunning() => true; + + public override Type? RequestObject() => null; + + public override ResourceID? ResourceId() => new ArcSettingId(); + + public override Type? ResponseObject() => typeof(ArcIdentityResponseModel); + + public override string? UriSuffix() => "/createArcIdentity"; + + +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/ArcSettings/Operation-GeneratePassword.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/ArcSettings/Operation-GeneratePassword.cs new file mode 100644 index 00000000000..a007cb553a1 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/ArcSettings/Operation-GeneratePassword.cs @@ -0,0 +1,31 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +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.AzureStackHCI.v2023_08_01.ArcSettings; + +internal class GeneratePasswordOperation : Pandora.Definitions.Operations.PostOperation +{ + public override IEnumerable ExpectedStatusCodes() => new List + { + HttpStatusCode.OK, + }; + + public override Type? RequestObject() => null; + + public override ResourceID? ResourceId() => new ArcSettingId(); + + public override Type? ResponseObject() => typeof(PasswordCredentialModel); + + public override string? UriSuffix() => "/generatePassword"; + + +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/ArcSettings/Operation-InitializeDisableProcess.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/ArcSettings/Operation-InitializeDisableProcess.cs new file mode 100644 index 00000000000..ed9daa88327 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/ArcSettings/Operation-InitializeDisableProcess.cs @@ -0,0 +1,32 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +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.AzureStackHCI.v2023_08_01.ArcSettings; + +internal class InitializeDisableProcessOperation : Pandora.Definitions.Operations.PostOperation +{ + public override IEnumerable ExpectedStatusCodes() => new List + { + HttpStatusCode.Accepted, + HttpStatusCode.OK, + }; + + public override bool LongRunning() => true; + + public override Type? RequestObject() => null; + + public override ResourceID? ResourceId() => new ArcSettingId(); + + public override string? UriSuffix() => "/initializeDisableProcess"; + + +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/ArcSettings/ResourceId-ArcSettingId.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/ArcSettings/ResourceId-ArcSettingId.cs new file mode 100644 index 00000000000..eaa672e1430 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/ArcSettings/ResourceId-ArcSettingId.cs @@ -0,0 +1,30 @@ +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.AzureStackHCI.v2023_08_01.ArcSettings; + +internal class ArcSettingId : ResourceID +{ + public string? CommonAlias => null; + + public string ID => "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/arcSettings/{arcSettingName}"; + + 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("staticMicrosoftAzureStackHCI", "Microsoft.AzureStackHCI"), + ResourceIDSegment.Static("staticClusters", "clusters"), + ResourceIDSegment.UserSpecified("clusterName"), + ResourceIDSegment.Static("staticArcSettings", "arcSettings"), + ResourceIDSegment.UserSpecified("arcSettingName"), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/ArcSettings/ResourceId-ClusterId.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/ArcSettings/ResourceId-ClusterId.cs new file mode 100644 index 00000000000..ad50e1668a6 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/ArcSettings/ResourceId-ClusterId.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.AzureStackHCI.v2023_08_01.ArcSettings; + +internal class ClusterId : ResourceID +{ + public string? CommonAlias => null; + + public string ID => "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}"; + + 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("staticMicrosoftAzureStackHCI", "Microsoft.AzureStackHCI"), + ResourceIDSegment.Static("staticClusters", "clusters"), + ResourceIDSegment.UserSpecified("clusterName"), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Cluster/Constant-ClusterNodeType.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Cluster/Constant-ClusterNodeType.cs new file mode 100644 index 00000000000..4e3da697c79 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Cluster/Constant-ClusterNodeType.cs @@ -0,0 +1,14 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.AzureStackHCI.v2023_08_01.Cluster; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum ClusterNodeTypeConstant +{ + [Description("FirstParty")] + FirstParty, + + [Description("ThirdParty")] + ThirdParty, +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Cluster/Constant-ConnectivityStatus.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Cluster/Constant-ConnectivityStatus.cs new file mode 100644 index 00000000000..33145af9ca9 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Cluster/Constant-ConnectivityStatus.cs @@ -0,0 +1,26 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.AzureStackHCI.v2023_08_01.Cluster; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum ConnectivityStatusConstant +{ + [Description("Connected")] + Connected, + + [Description("Disconnected")] + Disconnected, + + [Description("NotConnectedRecently")] + NotConnectedRecently, + + [Description("NotSpecified")] + NotSpecified, + + [Description("NotYetRegistered")] + NotYetRegistered, + + [Description("PartiallyConnected")] + PartiallyConnected, +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Cluster/Constant-DiagnosticLevel.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Cluster/Constant-DiagnosticLevel.cs new file mode 100644 index 00000000000..2990420f5ef --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Cluster/Constant-DiagnosticLevel.cs @@ -0,0 +1,17 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.AzureStackHCI.v2023_08_01.Cluster; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum DiagnosticLevelConstant +{ + [Description("Basic")] + Basic, + + [Description("Enhanced")] + Enhanced, + + [Description("Off")] + Off, +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Cluster/Constant-ImdsAttestation.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Cluster/Constant-ImdsAttestation.cs new file mode 100644 index 00000000000..569a10608c8 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Cluster/Constant-ImdsAttestation.cs @@ -0,0 +1,14 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.AzureStackHCI.v2023_08_01.Cluster; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum ImdsAttestationConstant +{ + [Description("Disabled")] + Disabled, + + [Description("Enabled")] + Enabled, +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Cluster/Constant-OemActivation.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Cluster/Constant-OemActivation.cs new file mode 100644 index 00000000000..2c6786f35e1 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Cluster/Constant-OemActivation.cs @@ -0,0 +1,14 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.AzureStackHCI.v2023_08_01.Cluster; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum OemActivationConstant +{ + [Description("Disabled")] + Disabled, + + [Description("Enabled")] + Enabled, +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Cluster/Constant-ProvisioningState.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Cluster/Constant-ProvisioningState.cs new file mode 100644 index 00000000000..b194c1a34ca --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Cluster/Constant-ProvisioningState.cs @@ -0,0 +1,59 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.AzureStackHCI.v2023_08_01.Cluster; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum ProvisioningStateConstant +{ + [Description("Accepted")] + Accepted, + + [Description("Canceled")] + Canceled, + + [Description("Connected")] + Connected, + + [Description("Creating")] + Creating, + + [Description("Deleted")] + Deleted, + + [Description("Deleting")] + Deleting, + + [Description("DisableInProgress")] + DisableInProgress, + + [Description("Disconnected")] + Disconnected, + + [Description("Failed")] + Failed, + + [Description("InProgress")] + InProgress, + + [Description("Moving")] + Moving, + + [Description("NotSpecified")] + NotSpecified, + + [Description("PartiallyConnected")] + PartiallyConnected, + + [Description("PartiallySucceeded")] + PartiallySucceeded, + + [Description("Provisioning")] + Provisioning, + + [Description("Succeeded")] + Succeeded, + + [Description("Updating")] + Updating, +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Cluster/Constant-SoftwareAssuranceIntent.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Cluster/Constant-SoftwareAssuranceIntent.cs new file mode 100644 index 00000000000..4f9d0f91760 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Cluster/Constant-SoftwareAssuranceIntent.cs @@ -0,0 +1,14 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.AzureStackHCI.v2023_08_01.Cluster; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum SoftwareAssuranceIntentConstant +{ + [Description("Disable")] + Disable, + + [Description("Enable")] + Enable, +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Cluster/Constant-SoftwareAssuranceStatus.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Cluster/Constant-SoftwareAssuranceStatus.cs new file mode 100644 index 00000000000..6ce420e497c --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Cluster/Constant-SoftwareAssuranceStatus.cs @@ -0,0 +1,14 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.AzureStackHCI.v2023_08_01.Cluster; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum SoftwareAssuranceStatusConstant +{ + [Description("Disabled")] + Disabled, + + [Description("Enabled")] + Enabled, +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Cluster/Constant-Status.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Cluster/Constant-Status.cs new file mode 100644 index 00000000000..8ef37dd2ac9 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Cluster/Constant-Status.cs @@ -0,0 +1,26 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.AzureStackHCI.v2023_08_01.Cluster; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum StatusConstant +{ + [Description("ConnectedRecently")] + ConnectedRecently, + + [Description("Disconnected")] + Disconnected, + + [Description("Error")] + Error, + + [Description("NotConnectedRecently")] + NotConnectedRecently, + + [Description("NotSpecified")] + NotSpecified, + + [Description("NotYetRegistered")] + NotYetRegistered, +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Cluster/Constant-WindowsServerSubscription.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Cluster/Constant-WindowsServerSubscription.cs new file mode 100644 index 00000000000..e87cf99941e --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Cluster/Constant-WindowsServerSubscription.cs @@ -0,0 +1,14 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.AzureStackHCI.v2023_08_01.Cluster; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum WindowsServerSubscriptionConstant +{ + [Description("Disabled")] + Disabled, + + [Description("Enabled")] + Enabled, +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Cluster/Definition.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Cluster/Definition.cs new file mode 100644 index 00000000000..79cac5a7cf6 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Cluster/Definition.cs @@ -0,0 +1,49 @@ +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.AzureStackHCI.v2023_08_01.Cluster; + +internal class Definition : ResourceDefinition +{ + public string Name => "Cluster"; + public IEnumerable Operations => new List + { + new CreateIdentityOperation(), + new ExtendSoftwareAssuranceBenefitOperation(), + new UploadCertificateOperation(), + }; + public IEnumerable Constants => new List + { + typeof(ClusterNodeTypeConstant), + typeof(ConnectivityStatusConstant), + typeof(DiagnosticLevelConstant), + typeof(ImdsAttestationConstant), + typeof(OemActivationConstant), + typeof(ProvisioningStateConstant), + typeof(SoftwareAssuranceIntentConstant), + typeof(SoftwareAssuranceStatusConstant), + typeof(StatusConstant), + typeof(WindowsServerSubscriptionConstant), + }; + public IEnumerable Models => new List + { + typeof(ClusterModel), + typeof(ClusterDesiredPropertiesModel), + typeof(ClusterIdentityResponseModel), + typeof(ClusterIdentityResponsePropertiesModel), + typeof(ClusterNodeModel), + typeof(ClusterPropertiesModel), + typeof(ClusterReportedPropertiesModel), + typeof(IsolatedVMAttestationConfigurationModel), + typeof(RawCertificateDataModel), + typeof(SoftwareAssuranceChangeRequestModel), + typeof(SoftwareAssuranceChangeRequestPropertiesModel), + typeof(SoftwareAssurancePropertiesModel), + typeof(UploadCertificateRequestModel), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Cluster/Model-Cluster.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Cluster/Model-Cluster.cs new file mode 100644 index 00000000000..7de4c21d7ce --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Cluster/Model-Cluster.cs @@ -0,0 +1,42 @@ +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.AzureStackHCI.v2023_08_01.Cluster; + + +internal class ClusterModel +{ + [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 ClusterPropertiesModel? Properties { 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/AzureStackHCI/v2023_08_01/Cluster/Model-ClusterDesiredProperties.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Cluster/Model-ClusterDesiredProperties.cs new file mode 100644 index 00000000000..b66f7d2456c --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Cluster/Model-ClusterDesiredProperties.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.AzureStackHCI.v2023_08_01.Cluster; + + +internal class ClusterDesiredPropertiesModel +{ + [JsonPropertyName("diagnosticLevel")] + public DiagnosticLevelConstant? DiagnosticLevel { get; set; } + + [JsonPropertyName("windowsServerSubscription")] + public WindowsServerSubscriptionConstant? WindowsServerSubscription { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Cluster/Model-ClusterIdentityResponse.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Cluster/Model-ClusterIdentityResponse.cs new file mode 100644 index 00000000000..14faf2e2870 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Cluster/Model-ClusterIdentityResponse.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.AzureStackHCI.v2023_08_01.Cluster; + + +internal class ClusterIdentityResponseModel +{ + [JsonPropertyName("properties")] + public ClusterIdentityResponsePropertiesModel? Properties { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Cluster/Model-ClusterIdentityResponseProperties.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Cluster/Model-ClusterIdentityResponseProperties.cs new file mode 100644 index 00000000000..d555fe80c12 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Cluster/Model-ClusterIdentityResponseProperties.cs @@ -0,0 +1,29 @@ +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.AzureStackHCI.v2023_08_01.Cluster; + + +internal class ClusterIdentityResponsePropertiesModel +{ + [JsonPropertyName("aadApplicationObjectId")] + public string? AadApplicationObjectId { get; set; } + + [JsonPropertyName("aadClientId")] + public string? AadClientId { get; set; } + + [JsonPropertyName("aadServicePrincipalObjectId")] + public string? AadServicePrincipalObjectId { get; set; } + + [JsonPropertyName("aadTenantId")] + public string? AadTenantId { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Cluster/Model-ClusterNode.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Cluster/Model-ClusterNode.cs new file mode 100644 index 00000000000..c49bafc2651 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Cluster/Model-ClusterNode.cs @@ -0,0 +1,63 @@ +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.AzureStackHCI.v2023_08_01.Cluster; + + +internal class ClusterNodeModel +{ + [JsonPropertyName("coreCount")] + public float? CoreCount { get; set; } + + [JsonPropertyName("ehcResourceId")] + public string? EhcResourceId { get; set; } + + [JsonPropertyName("id")] + public float? Id { get; set; } + + [DateFormat(DateFormatAttribute.DateFormat.RFC3339)] + [JsonPropertyName("lastLicensingTimestamp")] + public DateTime? LastLicensingTimestamp { get; set; } + + [JsonPropertyName("manufacturer")] + public string? Manufacturer { get; set; } + + [JsonPropertyName("memoryInGiB")] + public float? MemoryInGiB { get; set; } + + [JsonPropertyName("model")] + public string? Model { get; set; } + + [JsonPropertyName("name")] + public string? Name { get; set; } + + [JsonPropertyName("nodeType")] + public ClusterNodeTypeConstant? NodeType { get; set; } + + [JsonPropertyName("oemActivation")] + public OemActivationConstant? OemActivation { get; set; } + + [JsonPropertyName("osDisplayVersion")] + public string? OsDisplayVersion { get; set; } + + [JsonPropertyName("osName")] + public string? OsName { get; set; } + + [JsonPropertyName("osVersion")] + public string? OsVersion { get; set; } + + [JsonPropertyName("serialNumber")] + public string? SerialNumber { get; set; } + + [JsonPropertyName("windowsServerSubscription")] + public WindowsServerSubscriptionConstant? WindowsServerSubscription { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Cluster/Model-ClusterProperties.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Cluster/Model-ClusterProperties.cs new file mode 100644 index 00000000000..62a8c462f77 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Cluster/Model-ClusterProperties.cs @@ -0,0 +1,80 @@ +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.AzureStackHCI.v2023_08_01.Cluster; + + +internal class ClusterPropertiesModel +{ + [JsonPropertyName("aadApplicationObjectId")] + public string? AadApplicationObjectId { get; set; } + + [JsonPropertyName("aadClientId")] + public string? AadClientId { get; set; } + + [JsonPropertyName("aadServicePrincipalObjectId")] + public string? AadServicePrincipalObjectId { get; set; } + + [JsonPropertyName("aadTenantId")] + public string? AadTenantId { get; set; } + + [JsonPropertyName("billingModel")] + public string? BillingModel { get; set; } + + [JsonPropertyName("cloudId")] + public string? CloudId { get; set; } + + [JsonPropertyName("cloudManagementEndpoint")] + public string? CloudManagementEndpoint { get; set; } + + [JsonPropertyName("connectivityStatus")] + public ConnectivityStatusConstant? ConnectivityStatus { get; set; } + + [JsonPropertyName("desiredProperties")] + public ClusterDesiredPropertiesModel? DesiredProperties { get; set; } + + [JsonPropertyName("isolatedVmAttestationConfiguration")] + public IsolatedVMAttestationConfigurationModel? IsolatedVMAttestationConfiguration { get; set; } + + [DateFormat(DateFormatAttribute.DateFormat.RFC3339)] + [JsonPropertyName("lastBillingTimestamp")] + public DateTime? LastBillingTimestamp { get; set; } + + [DateFormat(DateFormatAttribute.DateFormat.RFC3339)] + [JsonPropertyName("lastSyncTimestamp")] + public DateTime? LastSyncTimestamp { get; set; } + + [JsonPropertyName("provisioningState")] + public ProvisioningStateConstant? ProvisioningState { get; set; } + + [DateFormat(DateFormatAttribute.DateFormat.RFC3339)] + [JsonPropertyName("registrationTimestamp")] + public DateTime? RegistrationTimestamp { get; set; } + + [JsonPropertyName("reportedProperties")] + public ClusterReportedPropertiesModel? ReportedProperties { get; set; } + + [JsonPropertyName("resourceProviderObjectId")] + public string? ResourceProviderObjectId { get; set; } + + [JsonPropertyName("serviceEndpoint")] + public string? ServiceEndpoint { get; set; } + + [JsonPropertyName("softwareAssuranceProperties")] + public SoftwareAssurancePropertiesModel? SoftwareAssuranceProperties { get; set; } + + [JsonPropertyName("status")] + public StatusConstant? Status { get; set; } + + [JsonPropertyName("trialDaysRemaining")] + public float? TrialDaysRemaining { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Cluster/Model-ClusterReportedProperties.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Cluster/Model-ClusterReportedProperties.cs new file mode 100644 index 00000000000..06ba75b6a45 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Cluster/Model-ClusterReportedProperties.cs @@ -0,0 +1,51 @@ +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.AzureStackHCI.v2023_08_01.Cluster; + + +internal class ClusterReportedPropertiesModel +{ + [JsonPropertyName("clusterId")] + public string? ClusterId { get; set; } + + [JsonPropertyName("clusterName")] + public string? ClusterName { get; set; } + + [JsonPropertyName("clusterType")] + public ClusterNodeTypeConstant? ClusterType { get; set; } + + [JsonPropertyName("clusterVersion")] + public string? ClusterVersion { get; set; } + + [JsonPropertyName("diagnosticLevel")] + public DiagnosticLevelConstant? DiagnosticLevel { get; set; } + + [JsonPropertyName("imdsAttestation")] + public ImdsAttestationConstant? ImdsAttestation { get; set; } + + [DateFormat(DateFormatAttribute.DateFormat.RFC3339)] + [JsonPropertyName("lastUpdated")] + public DateTime? LastUpdated { get; set; } + + [JsonPropertyName("manufacturer")] + public string? Manufacturer { get; set; } + + [JsonPropertyName("nodes")] + public List? Nodes { get; set; } + + [JsonPropertyName("oemActivation")] + public OemActivationConstant? OemActivation { get; set; } + + [JsonPropertyName("supportedCapabilities")] + public List? SupportedCapabilities { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Cluster/Model-IsolatedVMAttestationConfiguration.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Cluster/Model-IsolatedVMAttestationConfiguration.cs new file mode 100644 index 00000000000..45d338c9bd9 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Cluster/Model-IsolatedVMAttestationConfiguration.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.AzureStackHCI.v2023_08_01.Cluster; + + +internal class IsolatedVMAttestationConfigurationModel +{ + [JsonPropertyName("attestationResourceId")] + public string? AttestationResourceId { get; set; } + + [JsonPropertyName("attestationServiceEndpoint")] + public string? AttestationServiceEndpoint { get; set; } + + [JsonPropertyName("relyingPartyServiceEndpoint")] + public string? RelyingPartyServiceEndpoint { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Cluster/Model-RawCertificateData.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Cluster/Model-RawCertificateData.cs new file mode 100644 index 00000000000..3754cc478e6 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Cluster/Model-RawCertificateData.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.AzureStackHCI.v2023_08_01.Cluster; + + +internal class RawCertificateDataModel +{ + [JsonPropertyName("certificates")] + public List? Certificates { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Cluster/Model-SoftwareAssuranceChangeRequest.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Cluster/Model-SoftwareAssuranceChangeRequest.cs new file mode 100644 index 00000000000..8ea8f7f9583 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Cluster/Model-SoftwareAssuranceChangeRequest.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.AzureStackHCI.v2023_08_01.Cluster; + + +internal class SoftwareAssuranceChangeRequestModel +{ + [JsonPropertyName("properties")] + public SoftwareAssuranceChangeRequestPropertiesModel? Properties { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Cluster/Model-SoftwareAssuranceChangeRequestProperties.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Cluster/Model-SoftwareAssuranceChangeRequestProperties.cs new file mode 100644 index 00000000000..939fb90df50 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Cluster/Model-SoftwareAssuranceChangeRequestProperties.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.AzureStackHCI.v2023_08_01.Cluster; + + +internal class SoftwareAssuranceChangeRequestPropertiesModel +{ + [JsonPropertyName("softwareAssuranceIntent")] + public SoftwareAssuranceIntentConstant? SoftwareAssuranceIntent { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Cluster/Model-SoftwareAssuranceProperties.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Cluster/Model-SoftwareAssuranceProperties.cs new file mode 100644 index 00000000000..b9dedd194f1 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Cluster/Model-SoftwareAssuranceProperties.cs @@ -0,0 +1,27 @@ +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.AzureStackHCI.v2023_08_01.Cluster; + + +internal class SoftwareAssurancePropertiesModel +{ + [DateFormat(DateFormatAttribute.DateFormat.RFC3339)] + [JsonPropertyName("lastUpdated")] + public DateTime? LastUpdated { get; set; } + + [JsonPropertyName("softwareAssuranceIntent")] + public SoftwareAssuranceIntentConstant? SoftwareAssuranceIntent { get; set; } + + [JsonPropertyName("softwareAssuranceStatus")] + public SoftwareAssuranceStatusConstant? SoftwareAssuranceStatus { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Cluster/Model-UploadCertificateRequest.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Cluster/Model-UploadCertificateRequest.cs new file mode 100644 index 00000000000..d8ac4a459ff --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Cluster/Model-UploadCertificateRequest.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.AzureStackHCI.v2023_08_01.Cluster; + + +internal class UploadCertificateRequestModel +{ + [JsonPropertyName("properties")] + public RawCertificateDataModel? Properties { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Cluster/Operation-CreateIdentity.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Cluster/Operation-CreateIdentity.cs new file mode 100644 index 00000000000..7101a17f9e1 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Cluster/Operation-CreateIdentity.cs @@ -0,0 +1,34 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +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.AzureStackHCI.v2023_08_01.Cluster; + +internal class CreateIdentityOperation : Pandora.Definitions.Operations.PostOperation +{ + public override IEnumerable ExpectedStatusCodes() => new List + { + HttpStatusCode.Accepted, + HttpStatusCode.OK, + }; + + public override bool LongRunning() => true; + + public override Type? RequestObject() => null; + + public override ResourceID? ResourceId() => new ClusterId(); + + public override Type? ResponseObject() => typeof(ClusterIdentityResponseModel); + + public override string? UriSuffix() => "/createClusterIdentity"; + + +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Cluster/Operation-ExtendSoftwareAssuranceBenefit.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Cluster/Operation-ExtendSoftwareAssuranceBenefit.cs new file mode 100644 index 00000000000..44eb967b8ce --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Cluster/Operation-ExtendSoftwareAssuranceBenefit.cs @@ -0,0 +1,34 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +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.AzureStackHCI.v2023_08_01.Cluster; + +internal class ExtendSoftwareAssuranceBenefitOperation : Pandora.Definitions.Operations.PostOperation +{ + public override IEnumerable ExpectedStatusCodes() => new List + { + HttpStatusCode.Accepted, + HttpStatusCode.OK, + }; + + public override bool LongRunning() => true; + + public override Type? RequestObject() => typeof(SoftwareAssuranceChangeRequestModel); + + public override ResourceID? ResourceId() => new ClusterId(); + + public override Type? ResponseObject() => typeof(ClusterModel); + + public override string? UriSuffix() => "/extendSoftwareAssuranceBenefit"; + + +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Cluster/Operation-UploadCertificate.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Cluster/Operation-UploadCertificate.cs new file mode 100644 index 00000000000..4478f82a35d --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Cluster/Operation-UploadCertificate.cs @@ -0,0 +1,31 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +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.AzureStackHCI.v2023_08_01.Cluster; + +internal class UploadCertificateOperation : Pandora.Definitions.Operations.PostOperation +{ + public override IEnumerable ExpectedStatusCodes() => new List + { + HttpStatusCode.Accepted, + }; + + public override bool LongRunning() => true; + + public override Type? RequestObject() => typeof(UploadCertificateRequestModel); + + public override ResourceID? ResourceId() => new ClusterId(); + + public override string? UriSuffix() => "/uploadCertificate"; + + +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Cluster/ResourceId-ClusterId.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Cluster/ResourceId-ClusterId.cs new file mode 100644 index 00000000000..bc24272f7fe --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Cluster/ResourceId-ClusterId.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.AzureStackHCI.v2023_08_01.Cluster; + +internal class ClusterId : ResourceID +{ + public string? CommonAlias => null; + + public string ID => "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}"; + + 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("staticMicrosoftAzureStackHCI", "Microsoft.AzureStackHCI"), + ResourceIDSegment.Static("staticClusters", "clusters"), + ResourceIDSegment.UserSpecified("clusterName"), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Clusters/Constant-ClusterNodeType.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Clusters/Constant-ClusterNodeType.cs new file mode 100644 index 00000000000..8971a831e04 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Clusters/Constant-ClusterNodeType.cs @@ -0,0 +1,14 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.AzureStackHCI.v2023_08_01.Clusters; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum ClusterNodeTypeConstant +{ + [Description("FirstParty")] + FirstParty, + + [Description("ThirdParty")] + ThirdParty, +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Clusters/Constant-ConnectivityStatus.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Clusters/Constant-ConnectivityStatus.cs new file mode 100644 index 00000000000..feea032ae9a --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Clusters/Constant-ConnectivityStatus.cs @@ -0,0 +1,26 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.AzureStackHCI.v2023_08_01.Clusters; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum ConnectivityStatusConstant +{ + [Description("Connected")] + Connected, + + [Description("Disconnected")] + Disconnected, + + [Description("NotConnectedRecently")] + NotConnectedRecently, + + [Description("NotSpecified")] + NotSpecified, + + [Description("NotYetRegistered")] + NotYetRegistered, + + [Description("PartiallyConnected")] + PartiallyConnected, +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Clusters/Constant-DiagnosticLevel.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Clusters/Constant-DiagnosticLevel.cs new file mode 100644 index 00000000000..6631aef1d02 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Clusters/Constant-DiagnosticLevel.cs @@ -0,0 +1,17 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.AzureStackHCI.v2023_08_01.Clusters; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum DiagnosticLevelConstant +{ + [Description("Basic")] + Basic, + + [Description("Enhanced")] + Enhanced, + + [Description("Off")] + Off, +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Clusters/Constant-ImdsAttestation.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Clusters/Constant-ImdsAttestation.cs new file mode 100644 index 00000000000..8904e5d9cac --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Clusters/Constant-ImdsAttestation.cs @@ -0,0 +1,14 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.AzureStackHCI.v2023_08_01.Clusters; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum ImdsAttestationConstant +{ + [Description("Disabled")] + Disabled, + + [Description("Enabled")] + Enabled, +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Clusters/Constant-OemActivation.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Clusters/Constant-OemActivation.cs new file mode 100644 index 00000000000..9d40c95e91b --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Clusters/Constant-OemActivation.cs @@ -0,0 +1,14 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.AzureStackHCI.v2023_08_01.Clusters; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum OemActivationConstant +{ + [Description("Disabled")] + Disabled, + + [Description("Enabled")] + Enabled, +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Clusters/Constant-ProvisioningState.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Clusters/Constant-ProvisioningState.cs new file mode 100644 index 00000000000..bc528d6dc5f --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Clusters/Constant-ProvisioningState.cs @@ -0,0 +1,59 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.AzureStackHCI.v2023_08_01.Clusters; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum ProvisioningStateConstant +{ + [Description("Accepted")] + Accepted, + + [Description("Canceled")] + Canceled, + + [Description("Connected")] + Connected, + + [Description("Creating")] + Creating, + + [Description("Deleted")] + Deleted, + + [Description("Deleting")] + Deleting, + + [Description("DisableInProgress")] + DisableInProgress, + + [Description("Disconnected")] + Disconnected, + + [Description("Failed")] + Failed, + + [Description("InProgress")] + InProgress, + + [Description("Moving")] + Moving, + + [Description("NotSpecified")] + NotSpecified, + + [Description("PartiallyConnected")] + PartiallyConnected, + + [Description("PartiallySucceeded")] + PartiallySucceeded, + + [Description("Provisioning")] + Provisioning, + + [Description("Succeeded")] + Succeeded, + + [Description("Updating")] + Updating, +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Clusters/Constant-SoftwareAssuranceIntent.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Clusters/Constant-SoftwareAssuranceIntent.cs new file mode 100644 index 00000000000..1a6ba23777f --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Clusters/Constant-SoftwareAssuranceIntent.cs @@ -0,0 +1,14 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.AzureStackHCI.v2023_08_01.Clusters; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum SoftwareAssuranceIntentConstant +{ + [Description("Disable")] + Disable, + + [Description("Enable")] + Enable, +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Clusters/Constant-SoftwareAssuranceStatus.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Clusters/Constant-SoftwareAssuranceStatus.cs new file mode 100644 index 00000000000..1f419991480 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Clusters/Constant-SoftwareAssuranceStatus.cs @@ -0,0 +1,14 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.AzureStackHCI.v2023_08_01.Clusters; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum SoftwareAssuranceStatusConstant +{ + [Description("Disabled")] + Disabled, + + [Description("Enabled")] + Enabled, +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Clusters/Constant-Status.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Clusters/Constant-Status.cs new file mode 100644 index 00000000000..49f178dc85d --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Clusters/Constant-Status.cs @@ -0,0 +1,26 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.AzureStackHCI.v2023_08_01.Clusters; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum StatusConstant +{ + [Description("ConnectedRecently")] + ConnectedRecently, + + [Description("Disconnected")] + Disconnected, + + [Description("Error")] + Error, + + [Description("NotConnectedRecently")] + NotConnectedRecently, + + [Description("NotSpecified")] + NotSpecified, + + [Description("NotYetRegistered")] + NotYetRegistered, +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Clusters/Constant-WindowsServerSubscription.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Clusters/Constant-WindowsServerSubscription.cs new file mode 100644 index 00000000000..482f701e124 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Clusters/Constant-WindowsServerSubscription.cs @@ -0,0 +1,14 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.AzureStackHCI.v2023_08_01.Clusters; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum WindowsServerSubscriptionConstant +{ + [Description("Disabled")] + Disabled, + + [Description("Enabled")] + Enabled, +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Clusters/Definition.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Clusters/Definition.cs new file mode 100644 index 00000000000..c7dda019ee5 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Clusters/Definition.cs @@ -0,0 +1,48 @@ +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.AzureStackHCI.v2023_08_01.Clusters; + +internal class Definition : ResourceDefinition +{ + public string Name => "Clusters"; + public IEnumerable Operations => new List + { + new CreateOperation(), + new DeleteOperation(), + new GetOperation(), + new ListByResourceGroupOperation(), + new ListBySubscriptionOperation(), + new UpdateOperation(), + }; + public IEnumerable Constants => new List + { + typeof(ClusterNodeTypeConstant), + typeof(ConnectivityStatusConstant), + typeof(DiagnosticLevelConstant), + typeof(ImdsAttestationConstant), + typeof(OemActivationConstant), + typeof(ProvisioningStateConstant), + typeof(SoftwareAssuranceIntentConstant), + typeof(SoftwareAssuranceStatusConstant), + typeof(StatusConstant), + typeof(WindowsServerSubscriptionConstant), + }; + public IEnumerable Models => new List + { + typeof(ClusterModel), + typeof(ClusterDesiredPropertiesModel), + typeof(ClusterNodeModel), + typeof(ClusterPatchModel), + typeof(ClusterPatchPropertiesModel), + typeof(ClusterPropertiesModel), + typeof(ClusterReportedPropertiesModel), + typeof(IsolatedVMAttestationConfigurationModel), + typeof(SoftwareAssurancePropertiesModel), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Clusters/Model-Cluster.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Clusters/Model-Cluster.cs new file mode 100644 index 00000000000..c2983a0b3fe --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Clusters/Model-Cluster.cs @@ -0,0 +1,42 @@ +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.AzureStackHCI.v2023_08_01.Clusters; + + +internal class ClusterModel +{ + [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 ClusterPropertiesModel? Properties { 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/AzureStackHCI/v2023_08_01/Clusters/Model-ClusterDesiredProperties.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Clusters/Model-ClusterDesiredProperties.cs new file mode 100644 index 00000000000..270d893aac7 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Clusters/Model-ClusterDesiredProperties.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.AzureStackHCI.v2023_08_01.Clusters; + + +internal class ClusterDesiredPropertiesModel +{ + [JsonPropertyName("diagnosticLevel")] + public DiagnosticLevelConstant? DiagnosticLevel { get; set; } + + [JsonPropertyName("windowsServerSubscription")] + public WindowsServerSubscriptionConstant? WindowsServerSubscription { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Clusters/Model-ClusterNode.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Clusters/Model-ClusterNode.cs new file mode 100644 index 00000000000..ef66ab1f956 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Clusters/Model-ClusterNode.cs @@ -0,0 +1,63 @@ +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.AzureStackHCI.v2023_08_01.Clusters; + + +internal class ClusterNodeModel +{ + [JsonPropertyName("coreCount")] + public float? CoreCount { get; set; } + + [JsonPropertyName("ehcResourceId")] + public string? EhcResourceId { get; set; } + + [JsonPropertyName("id")] + public float? Id { get; set; } + + [DateFormat(DateFormatAttribute.DateFormat.RFC3339)] + [JsonPropertyName("lastLicensingTimestamp")] + public DateTime? LastLicensingTimestamp { get; set; } + + [JsonPropertyName("manufacturer")] + public string? Manufacturer { get; set; } + + [JsonPropertyName("memoryInGiB")] + public float? MemoryInGiB { get; set; } + + [JsonPropertyName("model")] + public string? Model { get; set; } + + [JsonPropertyName("name")] + public string? Name { get; set; } + + [JsonPropertyName("nodeType")] + public ClusterNodeTypeConstant? NodeType { get; set; } + + [JsonPropertyName("oemActivation")] + public OemActivationConstant? OemActivation { get; set; } + + [JsonPropertyName("osDisplayVersion")] + public string? OsDisplayVersion { get; set; } + + [JsonPropertyName("osName")] + public string? OsName { get; set; } + + [JsonPropertyName("osVersion")] + public string? OsVersion { get; set; } + + [JsonPropertyName("serialNumber")] + public string? SerialNumber { get; set; } + + [JsonPropertyName("windowsServerSubscription")] + public WindowsServerSubscriptionConstant? WindowsServerSubscription { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Clusters/Model-ClusterPatch.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Clusters/Model-ClusterPatch.cs new file mode 100644 index 00000000000..9610d226f83 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Clusters/Model-ClusterPatch.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.AzureStackHCI.v2023_08_01.Clusters; + + +internal class ClusterPatchModel +{ + [JsonPropertyName("identity")] + public CustomTypes.SystemAndUserAssignedIdentityMap? Identity { get; set; } + + [JsonPropertyName("properties")] + public ClusterPatchPropertiesModel? Properties { get; set; } + + [JsonPropertyName("tags")] + public CustomTypes.Tags? Tags { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Clusters/Model-ClusterPatchProperties.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Clusters/Model-ClusterPatchProperties.cs new file mode 100644 index 00000000000..47eb81c0c5a --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Clusters/Model-ClusterPatchProperties.cs @@ -0,0 +1,29 @@ +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.AzureStackHCI.v2023_08_01.Clusters; + + +internal class ClusterPatchPropertiesModel +{ + [JsonPropertyName("aadClientId")] + public string? AadClientId { get; set; } + + [JsonPropertyName("aadTenantId")] + public string? AadTenantId { get; set; } + + [JsonPropertyName("cloudManagementEndpoint")] + public string? CloudManagementEndpoint { get; set; } + + [JsonPropertyName("desiredProperties")] + public ClusterDesiredPropertiesModel? DesiredProperties { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Clusters/Model-ClusterProperties.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Clusters/Model-ClusterProperties.cs new file mode 100644 index 00000000000..ade893b883b --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Clusters/Model-ClusterProperties.cs @@ -0,0 +1,80 @@ +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.AzureStackHCI.v2023_08_01.Clusters; + + +internal class ClusterPropertiesModel +{ + [JsonPropertyName("aadApplicationObjectId")] + public string? AadApplicationObjectId { get; set; } + + [JsonPropertyName("aadClientId")] + public string? AadClientId { get; set; } + + [JsonPropertyName("aadServicePrincipalObjectId")] + public string? AadServicePrincipalObjectId { get; set; } + + [JsonPropertyName("aadTenantId")] + public string? AadTenantId { get; set; } + + [JsonPropertyName("billingModel")] + public string? BillingModel { get; set; } + + [JsonPropertyName("cloudId")] + public string? CloudId { get; set; } + + [JsonPropertyName("cloudManagementEndpoint")] + public string? CloudManagementEndpoint { get; set; } + + [JsonPropertyName("connectivityStatus")] + public ConnectivityStatusConstant? ConnectivityStatus { get; set; } + + [JsonPropertyName("desiredProperties")] + public ClusterDesiredPropertiesModel? DesiredProperties { get; set; } + + [JsonPropertyName("isolatedVmAttestationConfiguration")] + public IsolatedVMAttestationConfigurationModel? IsolatedVMAttestationConfiguration { get; set; } + + [DateFormat(DateFormatAttribute.DateFormat.RFC3339)] + [JsonPropertyName("lastBillingTimestamp")] + public DateTime? LastBillingTimestamp { get; set; } + + [DateFormat(DateFormatAttribute.DateFormat.RFC3339)] + [JsonPropertyName("lastSyncTimestamp")] + public DateTime? LastSyncTimestamp { get; set; } + + [JsonPropertyName("provisioningState")] + public ProvisioningStateConstant? ProvisioningState { get; set; } + + [DateFormat(DateFormatAttribute.DateFormat.RFC3339)] + [JsonPropertyName("registrationTimestamp")] + public DateTime? RegistrationTimestamp { get; set; } + + [JsonPropertyName("reportedProperties")] + public ClusterReportedPropertiesModel? ReportedProperties { get; set; } + + [JsonPropertyName("resourceProviderObjectId")] + public string? ResourceProviderObjectId { get; set; } + + [JsonPropertyName("serviceEndpoint")] + public string? ServiceEndpoint { get; set; } + + [JsonPropertyName("softwareAssuranceProperties")] + public SoftwareAssurancePropertiesModel? SoftwareAssuranceProperties { get; set; } + + [JsonPropertyName("status")] + public StatusConstant? Status { get; set; } + + [JsonPropertyName("trialDaysRemaining")] + public float? TrialDaysRemaining { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Clusters/Model-ClusterReportedProperties.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Clusters/Model-ClusterReportedProperties.cs new file mode 100644 index 00000000000..adf4985ba6a --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Clusters/Model-ClusterReportedProperties.cs @@ -0,0 +1,51 @@ +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.AzureStackHCI.v2023_08_01.Clusters; + + +internal class ClusterReportedPropertiesModel +{ + [JsonPropertyName("clusterId")] + public string? ClusterId { get; set; } + + [JsonPropertyName("clusterName")] + public string? ClusterName { get; set; } + + [JsonPropertyName("clusterType")] + public ClusterNodeTypeConstant? ClusterType { get; set; } + + [JsonPropertyName("clusterVersion")] + public string? ClusterVersion { get; set; } + + [JsonPropertyName("diagnosticLevel")] + public DiagnosticLevelConstant? DiagnosticLevel { get; set; } + + [JsonPropertyName("imdsAttestation")] + public ImdsAttestationConstant? ImdsAttestation { get; set; } + + [DateFormat(DateFormatAttribute.DateFormat.RFC3339)] + [JsonPropertyName("lastUpdated")] + public DateTime? LastUpdated { get; set; } + + [JsonPropertyName("manufacturer")] + public string? Manufacturer { get; set; } + + [JsonPropertyName("nodes")] + public List? Nodes { get; set; } + + [JsonPropertyName("oemActivation")] + public OemActivationConstant? OemActivation { get; set; } + + [JsonPropertyName("supportedCapabilities")] + public List? SupportedCapabilities { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Clusters/Model-IsolatedVMAttestationConfiguration.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Clusters/Model-IsolatedVMAttestationConfiguration.cs new file mode 100644 index 00000000000..e255c7a3dce --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Clusters/Model-IsolatedVMAttestationConfiguration.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.AzureStackHCI.v2023_08_01.Clusters; + + +internal class IsolatedVMAttestationConfigurationModel +{ + [JsonPropertyName("attestationResourceId")] + public string? AttestationResourceId { get; set; } + + [JsonPropertyName("attestationServiceEndpoint")] + public string? AttestationServiceEndpoint { get; set; } + + [JsonPropertyName("relyingPartyServiceEndpoint")] + public string? RelyingPartyServiceEndpoint { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Clusters/Model-SoftwareAssuranceProperties.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Clusters/Model-SoftwareAssuranceProperties.cs new file mode 100644 index 00000000000..a3f153077ce --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Clusters/Model-SoftwareAssuranceProperties.cs @@ -0,0 +1,27 @@ +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.AzureStackHCI.v2023_08_01.Clusters; + + +internal class SoftwareAssurancePropertiesModel +{ + [DateFormat(DateFormatAttribute.DateFormat.RFC3339)] + [JsonPropertyName("lastUpdated")] + public DateTime? LastUpdated { get; set; } + + [JsonPropertyName("softwareAssuranceIntent")] + public SoftwareAssuranceIntentConstant? SoftwareAssuranceIntent { get; set; } + + [JsonPropertyName("softwareAssuranceStatus")] + public SoftwareAssuranceStatusConstant? SoftwareAssuranceStatus { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Clusters/Operation-Create.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Clusters/Operation-Create.cs new file mode 100644 index 00000000000..1d0bad4f079 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Clusters/Operation-Create.cs @@ -0,0 +1,29 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +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.AzureStackHCI.v2023_08_01.Clusters; + +internal class CreateOperation : Pandora.Definitions.Operations.PutOperation +{ + public override IEnumerable ExpectedStatusCodes() => new List + { + HttpStatusCode.OK, + }; + + public override Type? RequestObject() => typeof(ClusterModel); + + public override ResourceID? ResourceId() => new ClusterId(); + + public override Type? ResponseObject() => typeof(ClusterModel); + + +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Clusters/Operation-Delete.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Clusters/Operation-Delete.cs new file mode 100644 index 00000000000..23693cfcd54 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Clusters/Operation-Delete.cs @@ -0,0 +1,29 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +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.AzureStackHCI.v2023_08_01.Clusters; + +internal class DeleteOperation : Pandora.Definitions.Operations.DeleteOperation +{ + public override IEnumerable ExpectedStatusCodes() => new List + { + HttpStatusCode.Accepted, + HttpStatusCode.NoContent, + HttpStatusCode.OK, + }; + + public override bool LongRunning() => true; + + public override ResourceID? ResourceId() => new ClusterId(); + + +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Clusters/Operation-Get.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Clusters/Operation-Get.cs new file mode 100644 index 00000000000..dd29b05ee81 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Clusters/Operation-Get.cs @@ -0,0 +1,22 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +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.AzureStackHCI.v2023_08_01.Clusters; + +internal class GetOperation : Pandora.Definitions.Operations.GetOperation +{ + public override ResourceID? ResourceId() => new ClusterId(); + + public override Type? ResponseObject() => typeof(ClusterModel); + + +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Clusters/Operation-ListByResourceGroup.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Clusters/Operation-ListByResourceGroup.cs new file mode 100644 index 00000000000..573e9ace927 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Clusters/Operation-ListByResourceGroup.cs @@ -0,0 +1,26 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +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.AzureStackHCI.v2023_08_01.Clusters; + +internal class ListByResourceGroupOperation : Pandora.Definitions.Operations.ListOperation +{ + public override string? FieldContainingPaginationDetails() => "nextLink"; + + public override ResourceID? ResourceId() => new ResourceGroupId(); + + public override Type NestedItemType() => typeof(ClusterModel); + + public override string? UriSuffix() => "/providers/Microsoft.AzureStackHCI/clusters"; + + +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Clusters/Operation-ListBySubscription.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Clusters/Operation-ListBySubscription.cs new file mode 100644 index 00000000000..f15ed77de75 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Clusters/Operation-ListBySubscription.cs @@ -0,0 +1,26 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +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.AzureStackHCI.v2023_08_01.Clusters; + +internal class ListBySubscriptionOperation : Pandora.Definitions.Operations.ListOperation +{ + public override string? FieldContainingPaginationDetails() => "nextLink"; + + public override ResourceID? ResourceId() => new SubscriptionId(); + + public override Type NestedItemType() => typeof(ClusterModel); + + public override string? UriSuffix() => "/providers/Microsoft.AzureStackHCI/clusters"; + + +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Clusters/Operation-Update.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Clusters/Operation-Update.cs new file mode 100644 index 00000000000..d207c03d93e --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Clusters/Operation-Update.cs @@ -0,0 +1,29 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +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.AzureStackHCI.v2023_08_01.Clusters; + +internal class UpdateOperation : Pandora.Definitions.Operations.PatchOperation +{ + public override IEnumerable ExpectedStatusCodes() => new List + { + HttpStatusCode.OK, + }; + + public override Type? RequestObject() => typeof(ClusterPatchModel); + + public override ResourceID? ResourceId() => new ClusterId(); + + public override Type? ResponseObject() => typeof(ClusterModel); + + +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Clusters/ResourceId-ClusterId.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Clusters/ResourceId-ClusterId.cs new file mode 100644 index 00000000000..00e280f93ac --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Clusters/ResourceId-ClusterId.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.AzureStackHCI.v2023_08_01.Clusters; + +internal class ClusterId : ResourceID +{ + public string? CommonAlias => null; + + public string ID => "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}"; + + 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("staticMicrosoftAzureStackHCI", "Microsoft.AzureStackHCI"), + ResourceIDSegment.Static("staticClusters", "clusters"), + ResourceIDSegment.UserSpecified("clusterName"), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Clusters/ResourceId-ResourceGroupId.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Clusters/ResourceId-ResourceGroupId.cs new file mode 100644 index 00000000000..48aa8eecd65 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Clusters/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.AzureStackHCI.v2023_08_01.Clusters; + +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/AzureStackHCI/v2023_08_01/Clusters/ResourceId-SubscriptionId.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Clusters/ResourceId-SubscriptionId.cs new file mode 100644 index 00000000000..e48e74e54fb --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Clusters/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.AzureStackHCI.v2023_08_01.Clusters; + +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/AzureStackHCI/v2023_08_01/Extensions/Constant-ExtensionAggregateState.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Extensions/Constant-ExtensionAggregateState.cs new file mode 100644 index 00000000000..1c1e1dfbeed --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Extensions/Constant-ExtensionAggregateState.cs @@ -0,0 +1,62 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.AzureStackHCI.v2023_08_01.Extensions; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum ExtensionAggregateStateConstant +{ + [Description("Accepted")] + Accepted, + + [Description("Canceled")] + Canceled, + + [Description("Connected")] + Connected, + + [Description("Creating")] + Creating, + + [Description("Deleted")] + Deleted, + + [Description("Deleting")] + Deleting, + + [Description("Disconnected")] + Disconnected, + + [Description("Error")] + Error, + + [Description("Failed")] + Failed, + + [Description("InProgress")] + InProgress, + + [Description("Moving")] + Moving, + + [Description("NotSpecified")] + NotSpecified, + + [Description("PartiallyConnected")] + PartiallyConnected, + + [Description("PartiallySucceeded")] + PartiallySucceeded, + + [Description("Provisioning")] + Provisioning, + + [Description("Succeeded")] + Succeeded, + + [Description("Updating")] + Updating, + + [Description("UpgradeFailedRollbackSucceeded")] + UpgradeFailedRollbackSucceeded, +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Extensions/Constant-ExtensionManagedBy.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Extensions/Constant-ExtensionManagedBy.cs new file mode 100644 index 00000000000..867596f4a88 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Extensions/Constant-ExtensionManagedBy.cs @@ -0,0 +1,14 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.AzureStackHCI.v2023_08_01.Extensions; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum ExtensionManagedByConstant +{ + [Description("Azure")] + Azure, + + [Description("User")] + User, +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Extensions/Constant-NodeExtensionState.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Extensions/Constant-NodeExtensionState.cs new file mode 100644 index 00000000000..cf5e71d8172 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Extensions/Constant-NodeExtensionState.cs @@ -0,0 +1,59 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.AzureStackHCI.v2023_08_01.Extensions; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum NodeExtensionStateConstant +{ + [Description("Accepted")] + Accepted, + + [Description("Canceled")] + Canceled, + + [Description("Connected")] + Connected, + + [Description("Creating")] + Creating, + + [Description("Deleted")] + Deleted, + + [Description("Deleting")] + Deleting, + + [Description("Disconnected")] + Disconnected, + + [Description("Error")] + Error, + + [Description("Failed")] + Failed, + + [Description("InProgress")] + InProgress, + + [Description("Moving")] + Moving, + + [Description("NotSpecified")] + NotSpecified, + + [Description("PartiallyConnected")] + PartiallyConnected, + + [Description("PartiallySucceeded")] + PartiallySucceeded, + + [Description("Provisioning")] + Provisioning, + + [Description("Succeeded")] + Succeeded, + + [Description("Updating")] + Updating, +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Extensions/Constant-ProvisioningState.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Extensions/Constant-ProvisioningState.cs new file mode 100644 index 00000000000..1e6d61490c9 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Extensions/Constant-ProvisioningState.cs @@ -0,0 +1,59 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.AzureStackHCI.v2023_08_01.Extensions; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum ProvisioningStateConstant +{ + [Description("Accepted")] + Accepted, + + [Description("Canceled")] + Canceled, + + [Description("Connected")] + Connected, + + [Description("Creating")] + Creating, + + [Description("Deleted")] + Deleted, + + [Description("Deleting")] + Deleting, + + [Description("Disconnected")] + Disconnected, + + [Description("Error")] + Error, + + [Description("Failed")] + Failed, + + [Description("InProgress")] + InProgress, + + [Description("Moving")] + Moving, + + [Description("NotSpecified")] + NotSpecified, + + [Description("PartiallyConnected")] + PartiallyConnected, + + [Description("PartiallySucceeded")] + PartiallySucceeded, + + [Description("Provisioning")] + Provisioning, + + [Description("Succeeded")] + Succeeded, + + [Description("Updating")] + Updating, +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Extensions/Constant-StatusLevelTypes.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Extensions/Constant-StatusLevelTypes.cs new file mode 100644 index 00000000000..c7c6df46b41 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Extensions/Constant-StatusLevelTypes.cs @@ -0,0 +1,17 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.AzureStackHCI.v2023_08_01.Extensions; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum StatusLevelTypesConstant +{ + [Description("Error")] + Error, + + [Description("Info")] + Info, + + [Description("Warning")] + Warning, +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Extensions/Definition.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Extensions/Definition.cs new file mode 100644 index 00000000000..d4aec32fd4d --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Extensions/Definition.cs @@ -0,0 +1,44 @@ +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.AzureStackHCI.v2023_08_01.Extensions; + +internal class Definition : ResourceDefinition +{ + public string Name => "Extensions"; + public IEnumerable Operations => new List + { + new CreateOperation(), + new DeleteOperation(), + new GetOperation(), + new ListByArcSettingOperation(), + new UpdateOperation(), + new UpgradeOperation(), + }; + public IEnumerable Constants => new List + { + typeof(ExtensionAggregateStateConstant), + typeof(ExtensionManagedByConstant), + typeof(NodeExtensionStateConstant), + typeof(ProvisioningStateConstant), + typeof(StatusLevelTypesConstant), + }; + public IEnumerable Models => new List + { + typeof(ExtensionModel), + typeof(ExtensionInstanceViewModel), + typeof(ExtensionInstanceViewStatusModel), + typeof(ExtensionParametersModel), + typeof(ExtensionPatchModel), + typeof(ExtensionPatchParametersModel), + typeof(ExtensionPatchPropertiesModel), + typeof(ExtensionPropertiesModel), + typeof(ExtensionUpgradeParametersModel), + typeof(PerNodeExtensionStateModel), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Extensions/Model-Extension.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Extensions/Model-Extension.cs new file mode 100644 index 00000000000..570351176e2 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Extensions/Model-Extension.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.AzureStackHCI.v2023_08_01.Extensions; + + +internal class ExtensionModel +{ + [JsonPropertyName("id")] + public string? Id { get; set; } + + [JsonPropertyName("name")] + public string? Name { get; set; } + + [JsonPropertyName("properties")] + public ExtensionPropertiesModel? Properties { get; set; } + + [JsonPropertyName("systemData")] + public CustomTypes.SystemData? SystemData { get; set; } + + [JsonPropertyName("type")] + public string? Type { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Extensions/Model-ExtensionInstanceView.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Extensions/Model-ExtensionInstanceView.cs new file mode 100644 index 00000000000..4b6aa816beb --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Extensions/Model-ExtensionInstanceView.cs @@ -0,0 +1,29 @@ +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.AzureStackHCI.v2023_08_01.Extensions; + + +internal class ExtensionInstanceViewModel +{ + [JsonPropertyName("name")] + public string? Name { get; set; } + + [JsonPropertyName("status")] + public ExtensionInstanceViewStatusModel? Status { get; set; } + + [JsonPropertyName("type")] + public string? Type { get; set; } + + [JsonPropertyName("typeHandlerVersion")] + public string? TypeHandlerVersion { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Extensions/Model-ExtensionInstanceViewStatus.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Extensions/Model-ExtensionInstanceViewStatus.cs new file mode 100644 index 00000000000..8f32b90bcb4 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Extensions/Model-ExtensionInstanceViewStatus.cs @@ -0,0 +1,33 @@ +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.AzureStackHCI.v2023_08_01.Extensions; + + +internal class ExtensionInstanceViewStatusModel +{ + [JsonPropertyName("code")] + public string? Code { get; set; } + + [JsonPropertyName("displayStatus")] + public string? DisplayStatus { get; set; } + + [JsonPropertyName("level")] + public StatusLevelTypesConstant? Level { get; set; } + + [JsonPropertyName("message")] + public string? Message { get; set; } + + [DateFormat(DateFormatAttribute.DateFormat.RFC3339)] + [JsonPropertyName("time")] + public DateTime? Time { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Extensions/Model-ExtensionParameters.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Extensions/Model-ExtensionParameters.cs new file mode 100644 index 00000000000..5c14942f18f --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Extensions/Model-ExtensionParameters.cs @@ -0,0 +1,41 @@ +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.AzureStackHCI.v2023_08_01.Extensions; + + +internal class ExtensionParametersModel +{ + [JsonPropertyName("autoUpgradeMinorVersion")] + public bool? AutoUpgradeMinorVersion { get; set; } + + [JsonPropertyName("enableAutomaticUpgrade")] + public bool? EnableAutomaticUpgrade { get; set; } + + [JsonPropertyName("forceUpdateTag")] + public string? ForceUpdateTag { get; set; } + + [JsonPropertyName("protectedSettings")] + public object? ProtectedSettings { get; set; } + + [JsonPropertyName("publisher")] + public string? Publisher { get; set; } + + [JsonPropertyName("settings")] + public object? Settings { get; set; } + + [JsonPropertyName("type")] + public string? Type { get; set; } + + [JsonPropertyName("typeHandlerVersion")] + public string? TypeHandlerVersion { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Extensions/Model-ExtensionPatch.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Extensions/Model-ExtensionPatch.cs new file mode 100644 index 00000000000..71eb8420f79 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Extensions/Model-ExtensionPatch.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.AzureStackHCI.v2023_08_01.Extensions; + + +internal class ExtensionPatchModel +{ + [JsonPropertyName("properties")] + public ExtensionPatchPropertiesModel? Properties { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Extensions/Model-ExtensionPatchParameters.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Extensions/Model-ExtensionPatchParameters.cs new file mode 100644 index 00000000000..dd55af4f339 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Extensions/Model-ExtensionPatchParameters.cs @@ -0,0 +1,29 @@ +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.AzureStackHCI.v2023_08_01.Extensions; + + +internal class ExtensionPatchParametersModel +{ + [JsonPropertyName("enableAutomaticUpgrade")] + public bool? EnableAutomaticUpgrade { get; set; } + + [JsonPropertyName("protectedSettings")] + public object? ProtectedSettings { get; set; } + + [JsonPropertyName("settings")] + public object? Settings { get; set; } + + [JsonPropertyName("typeHandlerVersion")] + public string? TypeHandlerVersion { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Extensions/Model-ExtensionPatchProperties.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Extensions/Model-ExtensionPatchProperties.cs new file mode 100644 index 00000000000..8f211b94037 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Extensions/Model-ExtensionPatchProperties.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.AzureStackHCI.v2023_08_01.Extensions; + + +internal class ExtensionPatchPropertiesModel +{ + [JsonPropertyName("extensionParameters")] + public ExtensionPatchParametersModel? ExtensionParameters { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Extensions/Model-ExtensionProperties.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Extensions/Model-ExtensionProperties.cs new file mode 100644 index 00000000000..f59baeba769 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Extensions/Model-ExtensionProperties.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.AzureStackHCI.v2023_08_01.Extensions; + + +internal class ExtensionPropertiesModel +{ + [JsonPropertyName("aggregateState")] + public ExtensionAggregateStateConstant? AggregateState { get; set; } + + [JsonPropertyName("extensionParameters")] + public ExtensionParametersModel? ExtensionParameters { get; set; } + + [JsonPropertyName("managedBy")] + public ExtensionManagedByConstant? ManagedBy { get; set; } + + [JsonPropertyName("perNodeExtensionDetails")] + public List? PerNodeExtensionDetails { get; set; } + + [JsonPropertyName("provisioningState")] + public ProvisioningStateConstant? ProvisioningState { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Extensions/Model-ExtensionUpgradeParameters.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Extensions/Model-ExtensionUpgradeParameters.cs new file mode 100644 index 00000000000..de55f30ac71 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Extensions/Model-ExtensionUpgradeParameters.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.AzureStackHCI.v2023_08_01.Extensions; + + +internal class ExtensionUpgradeParametersModel +{ + [JsonPropertyName("targetVersion")] + public string? TargetVersion { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Extensions/Model-PerNodeExtensionState.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Extensions/Model-PerNodeExtensionState.cs new file mode 100644 index 00000000000..6287d2a7785 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Extensions/Model-PerNodeExtensionState.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.AzureStackHCI.v2023_08_01.Extensions; + + +internal class PerNodeExtensionStateModel +{ + [JsonPropertyName("extension")] + public string? Extension { get; set; } + + [JsonPropertyName("instanceView")] + public ExtensionInstanceViewModel? InstanceView { get; set; } + + [JsonPropertyName("name")] + public string? Name { get; set; } + + [JsonPropertyName("state")] + public NodeExtensionStateConstant? State { get; set; } + + [JsonPropertyName("typeHandlerVersion")] + public string? TypeHandlerVersion { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Extensions/Operation-Create.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Extensions/Operation-Create.cs new file mode 100644 index 00000000000..cac8956bb4e --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Extensions/Operation-Create.cs @@ -0,0 +1,26 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +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.AzureStackHCI.v2023_08_01.Extensions; + +internal class CreateOperation : Pandora.Definitions.Operations.PutOperation +{ + public override bool LongRunning() => true; + + public override Type? RequestObject() => typeof(ExtensionModel); + + public override ResourceID? ResourceId() => new ExtensionId(); + + public override Type? ResponseObject() => typeof(ExtensionModel); + + +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Extensions/Operation-Delete.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Extensions/Operation-Delete.cs new file mode 100644 index 00000000000..a8d74a95217 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Extensions/Operation-Delete.cs @@ -0,0 +1,29 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +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.AzureStackHCI.v2023_08_01.Extensions; + +internal class DeleteOperation : Pandora.Definitions.Operations.DeleteOperation +{ + public override IEnumerable ExpectedStatusCodes() => new List + { + HttpStatusCode.Accepted, + HttpStatusCode.NoContent, + HttpStatusCode.OK, + }; + + public override bool LongRunning() => true; + + public override ResourceID? ResourceId() => new ExtensionId(); + + +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Extensions/Operation-Get.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Extensions/Operation-Get.cs new file mode 100644 index 00000000000..22cf9b48123 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Extensions/Operation-Get.cs @@ -0,0 +1,22 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +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.AzureStackHCI.v2023_08_01.Extensions; + +internal class GetOperation : Pandora.Definitions.Operations.GetOperation +{ + public override ResourceID? ResourceId() => new ExtensionId(); + + public override Type? ResponseObject() => typeof(ExtensionModel); + + +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Extensions/Operation-ListByArcSetting.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Extensions/Operation-ListByArcSetting.cs new file mode 100644 index 00000000000..cc2af5a349a --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Extensions/Operation-ListByArcSetting.cs @@ -0,0 +1,26 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +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.AzureStackHCI.v2023_08_01.Extensions; + +internal class ListByArcSettingOperation : Pandora.Definitions.Operations.ListOperation +{ + public override string? FieldContainingPaginationDetails() => "nextLink"; + + public override ResourceID? ResourceId() => new ArcSettingId(); + + public override Type NestedItemType() => typeof(ExtensionModel); + + public override string? UriSuffix() => "/extensions"; + + +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Extensions/Operation-Update.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Extensions/Operation-Update.cs new file mode 100644 index 00000000000..776be07dedc --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Extensions/Operation-Update.cs @@ -0,0 +1,32 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +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.AzureStackHCI.v2023_08_01.Extensions; + +internal class UpdateOperation : Pandora.Definitions.Operations.PatchOperation +{ + public override IEnumerable ExpectedStatusCodes() => new List + { + HttpStatusCode.Accepted, + HttpStatusCode.OK, + }; + + public override bool LongRunning() => true; + + public override Type? RequestObject() => typeof(ExtensionPatchModel); + + public override ResourceID? ResourceId() => new ExtensionId(); + + public override Type? ResponseObject() => typeof(ExtensionModel); + + +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Extensions/Operation-Upgrade.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Extensions/Operation-Upgrade.cs new file mode 100644 index 00000000000..5426206559a --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Extensions/Operation-Upgrade.cs @@ -0,0 +1,31 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +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.AzureStackHCI.v2023_08_01.Extensions; + +internal class UpgradeOperation : Pandora.Definitions.Operations.PostOperation +{ + public override IEnumerable ExpectedStatusCodes() => new List + { + HttpStatusCode.Accepted, + }; + + public override bool LongRunning() => true; + + public override Type? RequestObject() => typeof(ExtensionUpgradeParametersModel); + + public override ResourceID? ResourceId() => new ExtensionId(); + + public override string? UriSuffix() => "/upgrade"; + + +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Extensions/ResourceId-ArcSettingId.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Extensions/ResourceId-ArcSettingId.cs new file mode 100644 index 00000000000..c5f0986a25c --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Extensions/ResourceId-ArcSettingId.cs @@ -0,0 +1,30 @@ +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.AzureStackHCI.v2023_08_01.Extensions; + +internal class ArcSettingId : ResourceID +{ + public string? CommonAlias => null; + + public string ID => "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/arcSettings/{arcSettingName}"; + + 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("staticMicrosoftAzureStackHCI", "Microsoft.AzureStackHCI"), + ResourceIDSegment.Static("staticClusters", "clusters"), + ResourceIDSegment.UserSpecified("clusterName"), + ResourceIDSegment.Static("staticArcSettings", "arcSettings"), + ResourceIDSegment.UserSpecified("arcSettingName"), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Extensions/ResourceId-ExtensionId.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Extensions/ResourceId-ExtensionId.cs new file mode 100644 index 00000000000..c0d47ff4703 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Extensions/ResourceId-ExtensionId.cs @@ -0,0 +1,32 @@ +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.AzureStackHCI.v2023_08_01.Extensions; + +internal class ExtensionId : ResourceID +{ + public string? CommonAlias => null; + + public string ID => "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/arcSettings/{arcSettingName}/extensions/{extensionName}"; + + 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("staticMicrosoftAzureStackHCI", "Microsoft.AzureStackHCI"), + ResourceIDSegment.Static("staticClusters", "clusters"), + ResourceIDSegment.UserSpecified("clusterName"), + ResourceIDSegment.Static("staticArcSettings", "arcSettings"), + ResourceIDSegment.UserSpecified("arcSettingName"), + ResourceIDSegment.Static("staticExtensions", "extensions"), + ResourceIDSegment.UserSpecified("extensionName"), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Offers/Definition.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Offers/Definition.cs new file mode 100644 index 00000000000..6f2ce82fb5a --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Offers/Definition.cs @@ -0,0 +1,30 @@ +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.AzureStackHCI.v2023_08_01.Offers; + +internal class Definition : ResourceDefinition +{ + public string Name => "Offers"; + public IEnumerable Operations => new List + { + new GetOperation(), + new ListByClusterOperation(), + new ListByPublisherOperation(), + }; + public IEnumerable Constants => new List + { + + }; + public IEnumerable Models => new List + { + typeof(OfferModel), + typeof(OfferPropertiesModel), + typeof(SkuMappingsModel), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Offers/Model-Offer.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Offers/Model-Offer.cs new file mode 100644 index 00000000000..b9e92f05581 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Offers/Model-Offer.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.AzureStackHCI.v2023_08_01.Offers; + + +internal class OfferModel +{ + [JsonPropertyName("id")] + public string? Id { get; set; } + + [JsonPropertyName("name")] + public string? Name { get; set; } + + [JsonPropertyName("properties")] + public OfferPropertiesModel? Properties { get; set; } + + [JsonPropertyName("systemData")] + public CustomTypes.SystemData? SystemData { get; set; } + + [JsonPropertyName("type")] + public string? Type { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Offers/Model-OfferProperties.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Offers/Model-OfferProperties.cs new file mode 100644 index 00000000000..208c15cc3f4 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Offers/Model-OfferProperties.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.AzureStackHCI.v2023_08_01.Offers; + + +internal class OfferPropertiesModel +{ + [JsonPropertyName("content")] + public string? Content { get; set; } + + [JsonPropertyName("contentVersion")] + public string? ContentVersion { get; set; } + + [JsonPropertyName("provisioningState")] + public string? ProvisioningState { get; set; } + + [JsonPropertyName("publisherId")] + public string? PublisherId { get; set; } + + [JsonPropertyName("skuMappings")] + public List? SkuMappings { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Offers/Model-SkuMappings.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Offers/Model-SkuMappings.cs new file mode 100644 index 00000000000..675c5b2e679 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Offers/Model-SkuMappings.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.AzureStackHCI.v2023_08_01.Offers; + + +internal class SkuMappingsModel +{ + [JsonPropertyName("catalogPlanId")] + public string? CatalogPlanId { get; set; } + + [JsonPropertyName("marketplaceSkuId")] + public string? MarketplaceSkuId { get; set; } + + [JsonPropertyName("marketplaceSkuVersions")] + public List? MarketplaceSkuVersions { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Offers/Operation-Get.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Offers/Operation-Get.cs new file mode 100644 index 00000000000..6f19a0ba752 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Offers/Operation-Get.cs @@ -0,0 +1,29 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +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.AzureStackHCI.v2023_08_01.Offers; + +internal class GetOperation : Pandora.Definitions.Operations.GetOperation +{ + public override ResourceID? ResourceId() => new OfferId(); + + public override Type? ResponseObject() => typeof(OfferModel); + + public override Type? OptionsObject() => typeof(GetOperation.GetOptions); + + internal class GetOptions + { + [QueryStringName("$expand")] + [Optional] + public string Expand { get; set; } + } +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Offers/Operation-ListByCluster.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Offers/Operation-ListByCluster.cs new file mode 100644 index 00000000000..38667a670ef --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Offers/Operation-ListByCluster.cs @@ -0,0 +1,33 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +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.AzureStackHCI.v2023_08_01.Offers; + +internal class ListByClusterOperation : Pandora.Definitions.Operations.ListOperation +{ + public override string? FieldContainingPaginationDetails() => "nextLink"; + + public override ResourceID? ResourceId() => new ClusterId(); + + public override Type NestedItemType() => typeof(OfferModel); + + public override Type? OptionsObject() => typeof(ListByClusterOperation.ListByClusterOptions); + + public override string? UriSuffix() => "/offers"; + + internal class ListByClusterOptions + { + [QueryStringName("$expand")] + [Optional] + public string Expand { get; set; } + } +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Offers/Operation-ListByPublisher.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Offers/Operation-ListByPublisher.cs new file mode 100644 index 00000000000..b96f74b1a69 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Offers/Operation-ListByPublisher.cs @@ -0,0 +1,33 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +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.AzureStackHCI.v2023_08_01.Offers; + +internal class ListByPublisherOperation : Pandora.Definitions.Operations.ListOperation +{ + public override string? FieldContainingPaginationDetails() => "nextLink"; + + public override ResourceID? ResourceId() => new PublisherId(); + + public override Type NestedItemType() => typeof(OfferModel); + + public override Type? OptionsObject() => typeof(ListByPublisherOperation.ListByPublisherOptions); + + public override string? UriSuffix() => "/offers"; + + internal class ListByPublisherOptions + { + [QueryStringName("$expand")] + [Optional] + public string Expand { get; set; } + } +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Offers/ResourceId-ClusterId.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Offers/ResourceId-ClusterId.cs new file mode 100644 index 00000000000..4f076d0009d --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Offers/ResourceId-ClusterId.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.AzureStackHCI.v2023_08_01.Offers; + +internal class ClusterId : ResourceID +{ + public string? CommonAlias => null; + + public string ID => "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}"; + + 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("staticMicrosoftAzureStackHCI", "Microsoft.AzureStackHCI"), + ResourceIDSegment.Static("staticClusters", "clusters"), + ResourceIDSegment.UserSpecified("clusterName"), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Offers/ResourceId-OfferId.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Offers/ResourceId-OfferId.cs new file mode 100644 index 00000000000..fef73ebe1b1 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Offers/ResourceId-OfferId.cs @@ -0,0 +1,32 @@ +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.AzureStackHCI.v2023_08_01.Offers; + +internal class OfferId : ResourceID +{ + public string? CommonAlias => null; + + public string ID => "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/publishers/{publisherName}/offers/{offerName}"; + + 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("staticMicrosoftAzureStackHCI", "Microsoft.AzureStackHCI"), + ResourceIDSegment.Static("staticClusters", "clusters"), + ResourceIDSegment.UserSpecified("clusterName"), + ResourceIDSegment.Static("staticPublishers", "publishers"), + ResourceIDSegment.UserSpecified("publisherName"), + ResourceIDSegment.Static("staticOffers", "offers"), + ResourceIDSegment.UserSpecified("offerName"), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Offers/ResourceId-PublisherId.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Offers/ResourceId-PublisherId.cs new file mode 100644 index 00000000000..c11614e8ce7 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Offers/ResourceId-PublisherId.cs @@ -0,0 +1,30 @@ +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.AzureStackHCI.v2023_08_01.Offers; + +internal class PublisherId : ResourceID +{ + public string? CommonAlias => null; + + public string ID => "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/publishers/{publisherName}"; + + 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("staticMicrosoftAzureStackHCI", "Microsoft.AzureStackHCI"), + ResourceIDSegment.Static("staticClusters", "clusters"), + ResourceIDSegment.UserSpecified("clusterName"), + ResourceIDSegment.Static("staticPublishers", "publishers"), + ResourceIDSegment.UserSpecified("publisherName"), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Publishers/Definition.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Publishers/Definition.cs new file mode 100644 index 00000000000..129a25a6155 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Publishers/Definition.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.AzureStackHCI.v2023_08_01.Publishers; + +internal class Definition : ResourceDefinition +{ + public string Name => "Publishers"; + public IEnumerable Operations => new List + { + new GetOperation(), + new ListByClusterOperation(), + }; + public IEnumerable Constants => new List + { + + }; + public IEnumerable Models => new List + { + typeof(PublisherModel), + typeof(PublisherPropertiesModel), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Publishers/Model-Publisher.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Publishers/Model-Publisher.cs new file mode 100644 index 00000000000..2ea42b19e7a --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Publishers/Model-Publisher.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.AzureStackHCI.v2023_08_01.Publishers; + + +internal class PublisherModel +{ + [JsonPropertyName("id")] + public string? Id { get; set; } + + [JsonPropertyName("name")] + public string? Name { get; set; } + + [JsonPropertyName("properties")] + public PublisherPropertiesModel? Properties { get; set; } + + [JsonPropertyName("systemData")] + public CustomTypes.SystemData? SystemData { get; set; } + + [JsonPropertyName("type")] + public string? Type { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Publishers/Model-PublisherProperties.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Publishers/Model-PublisherProperties.cs new file mode 100644 index 00000000000..c5e8e49b5f9 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Publishers/Model-PublisherProperties.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.AzureStackHCI.v2023_08_01.Publishers; + + +internal class PublisherPropertiesModel +{ + [JsonPropertyName("provisioningState")] + public string? ProvisioningState { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Publishers/Operation-Get.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Publishers/Operation-Get.cs new file mode 100644 index 00000000000..7e3caf98922 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Publishers/Operation-Get.cs @@ -0,0 +1,22 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +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.AzureStackHCI.v2023_08_01.Publishers; + +internal class GetOperation : Pandora.Definitions.Operations.GetOperation +{ + public override ResourceID? ResourceId() => new PublisherId(); + + public override Type? ResponseObject() => typeof(PublisherModel); + + +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Publishers/Operation-ListByCluster.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Publishers/Operation-ListByCluster.cs new file mode 100644 index 00000000000..db0a7d84da3 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Publishers/Operation-ListByCluster.cs @@ -0,0 +1,26 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +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.AzureStackHCI.v2023_08_01.Publishers; + +internal class ListByClusterOperation : Pandora.Definitions.Operations.ListOperation +{ + public override string? FieldContainingPaginationDetails() => "nextLink"; + + public override ResourceID? ResourceId() => new ClusterId(); + + public override Type NestedItemType() => typeof(PublisherModel); + + public override string? UriSuffix() => "/publishers"; + + +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Publishers/ResourceId-ClusterId.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Publishers/ResourceId-ClusterId.cs new file mode 100644 index 00000000000..93dbff29c26 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Publishers/ResourceId-ClusterId.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.AzureStackHCI.v2023_08_01.Publishers; + +internal class ClusterId : ResourceID +{ + public string? CommonAlias => null; + + public string ID => "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}"; + + 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("staticMicrosoftAzureStackHCI", "Microsoft.AzureStackHCI"), + ResourceIDSegment.Static("staticClusters", "clusters"), + ResourceIDSegment.UserSpecified("clusterName"), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Publishers/ResourceId-PublisherId.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Publishers/ResourceId-PublisherId.cs new file mode 100644 index 00000000000..4ab1aec12c8 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Publishers/ResourceId-PublisherId.cs @@ -0,0 +1,30 @@ +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.AzureStackHCI.v2023_08_01.Publishers; + +internal class PublisherId : ResourceID +{ + public string? CommonAlias => null; + + public string ID => "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/publishers/{publisherName}"; + + 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("staticMicrosoftAzureStackHCI", "Microsoft.AzureStackHCI"), + ResourceIDSegment.Static("staticClusters", "clusters"), + ResourceIDSegment.UserSpecified("clusterName"), + ResourceIDSegment.Static("staticPublishers", "publishers"), + ResourceIDSegment.UserSpecified("publisherName"), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Skuses/Definition.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Skuses/Definition.cs new file mode 100644 index 00000000000..5770d767a23 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Skuses/Definition.cs @@ -0,0 +1,29 @@ +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.AzureStackHCI.v2023_08_01.Skuses; + +internal class Definition : ResourceDefinition +{ + public string Name => "Skuses"; + public IEnumerable Operations => new List + { + new SkusGetOperation(), + new SkusListByOfferOperation(), + }; + public IEnumerable Constants => new List + { + + }; + public IEnumerable Models => new List + { + typeof(SkuModel), + typeof(SkuMappingsModel), + typeof(SkuPropertiesModel), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Skuses/Model-Sku.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Skuses/Model-Sku.cs new file mode 100644 index 00000000000..3688793663b --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Skuses/Model-Sku.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.AzureStackHCI.v2023_08_01.Skuses; + + +internal class SkuModel +{ + [JsonPropertyName("id")] + public string? Id { get; set; } + + [JsonPropertyName("name")] + public string? Name { get; set; } + + [JsonPropertyName("properties")] + public SkuPropertiesModel? Properties { get; set; } + + [JsonPropertyName("systemData")] + public CustomTypes.SystemData? SystemData { get; set; } + + [JsonPropertyName("type")] + public string? Type { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Skuses/Model-SkuMappings.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Skuses/Model-SkuMappings.cs new file mode 100644 index 00000000000..52f0decc24a --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Skuses/Model-SkuMappings.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.AzureStackHCI.v2023_08_01.Skuses; + + +internal class SkuMappingsModel +{ + [JsonPropertyName("catalogPlanId")] + public string? CatalogPlanId { get; set; } + + [JsonPropertyName("marketplaceSkuId")] + public string? MarketplaceSkuId { get; set; } + + [JsonPropertyName("marketplaceSkuVersions")] + public List? MarketplaceSkuVersions { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Skuses/Model-SkuProperties.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Skuses/Model-SkuProperties.cs new file mode 100644 index 00000000000..23ee6d30472 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Skuses/Model-SkuProperties.cs @@ -0,0 +1,35 @@ +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.AzureStackHCI.v2023_08_01.Skuses; + + +internal class SkuPropertiesModel +{ + [JsonPropertyName("content")] + public string? Content { get; set; } + + [JsonPropertyName("contentVersion")] + public string? ContentVersion { get; set; } + + [JsonPropertyName("offerId")] + public string? OfferId { get; set; } + + [JsonPropertyName("provisioningState")] + public string? ProvisioningState { get; set; } + + [JsonPropertyName("publisherId")] + public string? PublisherId { get; set; } + + [JsonPropertyName("skuMappings")] + public List? SkuMappings { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Skuses/Operation-SkusGet.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Skuses/Operation-SkusGet.cs new file mode 100644 index 00000000000..a7f7dd53458 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Skuses/Operation-SkusGet.cs @@ -0,0 +1,29 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +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.AzureStackHCI.v2023_08_01.Skuses; + +internal class SkusGetOperation : Pandora.Definitions.Operations.GetOperation +{ + public override ResourceID? ResourceId() => new SkuId(); + + public override Type? ResponseObject() => typeof(SkuModel); + + public override Type? OptionsObject() => typeof(SkusGetOperation.SkusGetOptions); + + internal class SkusGetOptions + { + [QueryStringName("$expand")] + [Optional] + public string Expand { get; set; } + } +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Skuses/Operation-SkusListByOffer.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Skuses/Operation-SkusListByOffer.cs new file mode 100644 index 00000000000..c656cf00508 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Skuses/Operation-SkusListByOffer.cs @@ -0,0 +1,33 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +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.AzureStackHCI.v2023_08_01.Skuses; + +internal class SkusListByOfferOperation : Pandora.Definitions.Operations.ListOperation +{ + public override string? FieldContainingPaginationDetails() => "nextLink"; + + public override ResourceID? ResourceId() => new OfferId(); + + public override Type NestedItemType() => typeof(SkuModel); + + public override Type? OptionsObject() => typeof(SkusListByOfferOperation.SkusListByOfferOptions); + + public override string? UriSuffix() => "/skus"; + + internal class SkusListByOfferOptions + { + [QueryStringName("$expand")] + [Optional] + public string Expand { get; set; } + } +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Skuses/ResourceId-OfferId.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Skuses/ResourceId-OfferId.cs new file mode 100644 index 00000000000..462feb59fa5 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Skuses/ResourceId-OfferId.cs @@ -0,0 +1,32 @@ +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.AzureStackHCI.v2023_08_01.Skuses; + +internal class OfferId : ResourceID +{ + public string? CommonAlias => null; + + public string ID => "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/publishers/{publisherName}/offers/{offerName}"; + + 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("staticMicrosoftAzureStackHCI", "Microsoft.AzureStackHCI"), + ResourceIDSegment.Static("staticClusters", "clusters"), + ResourceIDSegment.UserSpecified("clusterName"), + ResourceIDSegment.Static("staticPublishers", "publishers"), + ResourceIDSegment.UserSpecified("publisherName"), + ResourceIDSegment.Static("staticOffers", "offers"), + ResourceIDSegment.UserSpecified("offerName"), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Skuses/ResourceId-SkuId.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Skuses/ResourceId-SkuId.cs new file mode 100644 index 00000000000..4049a30ed91 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Skuses/ResourceId-SkuId.cs @@ -0,0 +1,34 @@ +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.AzureStackHCI.v2023_08_01.Skuses; + +internal class SkuId : ResourceID +{ + public string? CommonAlias => null; + + public string ID => "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/publishers/{publisherName}/offers/{offerName}/skus/{skuName}"; + + 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("staticMicrosoftAzureStackHCI", "Microsoft.AzureStackHCI"), + ResourceIDSegment.Static("staticClusters", "clusters"), + ResourceIDSegment.UserSpecified("clusterName"), + ResourceIDSegment.Static("staticPublishers", "publishers"), + ResourceIDSegment.UserSpecified("publisherName"), + ResourceIDSegment.Static("staticOffers", "offers"), + ResourceIDSegment.UserSpecified("offerName"), + ResourceIDSegment.Static("staticSkus", "skus"), + ResourceIDSegment.UserSpecified("skuName"), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/UpdateRuns/Constant-ProvisioningState.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/UpdateRuns/Constant-ProvisioningState.cs new file mode 100644 index 00000000000..ad902e44b82 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/UpdateRuns/Constant-ProvisioningState.cs @@ -0,0 +1,23 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.AzureStackHCI.v2023_08_01.UpdateRuns; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum ProvisioningStateConstant +{ + [Description("Accepted")] + Accepted, + + [Description("Canceled")] + Canceled, + + [Description("Failed")] + Failed, + + [Description("Provisioning")] + Provisioning, + + [Description("Succeeded")] + Succeeded, +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/UpdateRuns/Constant-UpdateRunPropertiesState.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/UpdateRuns/Constant-UpdateRunPropertiesState.cs new file mode 100644 index 00000000000..4cbab82188b --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/UpdateRuns/Constant-UpdateRunPropertiesState.cs @@ -0,0 +1,20 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.AzureStackHCI.v2023_08_01.UpdateRuns; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum UpdateRunPropertiesStateConstant +{ + [Description("Failed")] + Failed, + + [Description("InProgress")] + InProgress, + + [Description("Succeeded")] + Succeeded, + + [Description("Unknown")] + Unknown, +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/UpdateRuns/Definition.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/UpdateRuns/Definition.cs new file mode 100644 index 00000000000..1e3a796f14f --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/UpdateRuns/Definition.cs @@ -0,0 +1,32 @@ +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.AzureStackHCI.v2023_08_01.UpdateRuns; + +internal class Definition : ResourceDefinition +{ + public string Name => "UpdateRuns"; + public IEnumerable Operations => new List + { + new DeleteOperation(), + new GetOperation(), + new ListOperation(), + new PutOperation(), + }; + public IEnumerable Constants => new List + { + typeof(ProvisioningStateConstant), + typeof(UpdateRunPropertiesStateConstant), + }; + public IEnumerable Models => new List + { + typeof(StepModel), + typeof(UpdateRunModel), + typeof(UpdateRunPropertiesModel), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/UpdateRuns/Model-Step.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/UpdateRuns/Model-Step.cs new file mode 100644 index 00000000000..2b9cdc1350a --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/UpdateRuns/Model-Step.cs @@ -0,0 +1,44 @@ +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.AzureStackHCI.v2023_08_01.UpdateRuns; + + +internal class StepModel +{ + [JsonPropertyName("description")] + public string? Description { get; set; } + + [DateFormat(DateFormatAttribute.DateFormat.RFC3339)] + [JsonPropertyName("endTimeUtc")] + public DateTime? EndTimeUtc { get; set; } + + [JsonPropertyName("errorMessage")] + public string? ErrorMessage { get; set; } + + [DateFormat(DateFormatAttribute.DateFormat.RFC3339)] + [JsonPropertyName("lastUpdatedTimeUtc")] + public DateTime? LastUpdatedTimeUtc { get; set; } + + [JsonPropertyName("name")] + public string? Name { get; set; } + + [DateFormat(DateFormatAttribute.DateFormat.RFC3339)] + [JsonPropertyName("startTimeUtc")] + public DateTime? StartTimeUtc { get; set; } + + [JsonPropertyName("status")] + public string? Status { get; set; } + + [JsonPropertyName("steps")] + public List? Steps { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/UpdateRuns/Model-UpdateRun.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/UpdateRuns/Model-UpdateRun.cs new file mode 100644 index 00000000000..8619d7dc694 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/UpdateRuns/Model-UpdateRun.cs @@ -0,0 +1,35 @@ +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.AzureStackHCI.v2023_08_01.UpdateRuns; + + +internal class UpdateRunModel +{ + [JsonPropertyName("id")] + public string? Id { get; set; } + + [JsonPropertyName("location")] + public CustomTypes.Location? Location { get; set; } + + [JsonPropertyName("name")] + public string? Name { get; set; } + + [JsonPropertyName("properties")] + public UpdateRunPropertiesModel? Properties { get; set; } + + [JsonPropertyName("systemData")] + public CustomTypes.SystemData? SystemData { get; set; } + + [JsonPropertyName("type")] + public string? Type { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/UpdateRuns/Model-UpdateRunProperties.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/UpdateRuns/Model-UpdateRunProperties.cs new file mode 100644 index 00000000000..88b124c37ca --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/UpdateRuns/Model-UpdateRunProperties.cs @@ -0,0 +1,37 @@ +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.AzureStackHCI.v2023_08_01.UpdateRuns; + + +internal class UpdateRunPropertiesModel +{ + [JsonPropertyName("duration")] + public string? Duration { get; set; } + + [DateFormat(DateFormatAttribute.DateFormat.RFC3339)] + [JsonPropertyName("lastUpdatedTime")] + public DateTime? LastUpdatedTime { get; set; } + + [JsonPropertyName("progress")] + public StepModel? Progress { get; set; } + + [JsonPropertyName("provisioningState")] + public ProvisioningStateConstant? ProvisioningState { get; set; } + + [JsonPropertyName("state")] + public UpdateRunPropertiesStateConstant? State { get; set; } + + [DateFormat(DateFormatAttribute.DateFormat.RFC3339)] + [JsonPropertyName("timeStarted")] + public DateTime? TimeStarted { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/UpdateRuns/Operation-Delete.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/UpdateRuns/Operation-Delete.cs new file mode 100644 index 00000000000..98ff81fe729 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/UpdateRuns/Operation-Delete.cs @@ -0,0 +1,29 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +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.AzureStackHCI.v2023_08_01.UpdateRuns; + +internal class DeleteOperation : Pandora.Definitions.Operations.DeleteOperation +{ + public override IEnumerable ExpectedStatusCodes() => new List + { + HttpStatusCode.Accepted, + HttpStatusCode.NoContent, + HttpStatusCode.OK, + }; + + public override bool LongRunning() => true; + + public override ResourceID? ResourceId() => new UpdateRunId(); + + +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/UpdateRuns/Operation-Get.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/UpdateRuns/Operation-Get.cs new file mode 100644 index 00000000000..c5159add206 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/UpdateRuns/Operation-Get.cs @@ -0,0 +1,22 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +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.AzureStackHCI.v2023_08_01.UpdateRuns; + +internal class GetOperation : Pandora.Definitions.Operations.GetOperation +{ + public override ResourceID? ResourceId() => new UpdateRunId(); + + public override Type? ResponseObject() => typeof(UpdateRunModel); + + +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/UpdateRuns/Operation-List.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/UpdateRuns/Operation-List.cs new file mode 100644 index 00000000000..0813e2654f6 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/UpdateRuns/Operation-List.cs @@ -0,0 +1,26 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +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.AzureStackHCI.v2023_08_01.UpdateRuns; + +internal class ListOperation : Pandora.Definitions.Operations.ListOperation +{ + public override string? FieldContainingPaginationDetails() => "nextLink"; + + public override ResourceID? ResourceId() => new UpdateId(); + + public override Type NestedItemType() => typeof(UpdateRunModel); + + public override string? UriSuffix() => "/updateRuns"; + + +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/UpdateRuns/Operation-Put.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/UpdateRuns/Operation-Put.cs new file mode 100644 index 00000000000..d2bfd1c65fd --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/UpdateRuns/Operation-Put.cs @@ -0,0 +1,29 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +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.AzureStackHCI.v2023_08_01.UpdateRuns; + +internal class PutOperation : Pandora.Definitions.Operations.PutOperation +{ + public override IEnumerable ExpectedStatusCodes() => new List + { + HttpStatusCode.OK, + }; + + public override Type? RequestObject() => typeof(UpdateRunModel); + + public override ResourceID? ResourceId() => new UpdateRunId(); + + public override Type? ResponseObject() => typeof(UpdateRunModel); + + +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/UpdateRuns/ResourceId-UpdateId.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/UpdateRuns/ResourceId-UpdateId.cs new file mode 100644 index 00000000000..a6ca44cecaf --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/UpdateRuns/ResourceId-UpdateId.cs @@ -0,0 +1,30 @@ +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.AzureStackHCI.v2023_08_01.UpdateRuns; + +internal class UpdateId : ResourceID +{ + public string? CommonAlias => null; + + public string ID => "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/updates/{updateName}"; + + 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("staticMicrosoftAzureStackHCI", "Microsoft.AzureStackHCI"), + ResourceIDSegment.Static("staticClusters", "clusters"), + ResourceIDSegment.UserSpecified("clusterName"), + ResourceIDSegment.Static("staticUpdates", "updates"), + ResourceIDSegment.UserSpecified("updateName"), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/UpdateRuns/ResourceId-UpdateRunId.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/UpdateRuns/ResourceId-UpdateRunId.cs new file mode 100644 index 00000000000..2cbddb8c3e1 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/UpdateRuns/ResourceId-UpdateRunId.cs @@ -0,0 +1,32 @@ +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.AzureStackHCI.v2023_08_01.UpdateRuns; + +internal class UpdateRunId : ResourceID +{ + public string? CommonAlias => null; + + public string ID => "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/updates/{updateName}/updateRuns/{updateRunName}"; + + 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("staticMicrosoftAzureStackHCI", "Microsoft.AzureStackHCI"), + ResourceIDSegment.Static("staticClusters", "clusters"), + ResourceIDSegment.UserSpecified("clusterName"), + ResourceIDSegment.Static("staticUpdates", "updates"), + ResourceIDSegment.UserSpecified("updateName"), + ResourceIDSegment.Static("staticUpdateRuns", "updateRuns"), + ResourceIDSegment.UserSpecified("updateRunName"), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/UpdateSummaries/Constant-HealthState.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/UpdateSummaries/Constant-HealthState.cs new file mode 100644 index 00000000000..62f19725c23 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/UpdateSummaries/Constant-HealthState.cs @@ -0,0 +1,26 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.AzureStackHCI.v2023_08_01.UpdateSummaries; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum HealthStateConstant +{ + [Description("Error")] + Error, + + [Description("Failure")] + Failure, + + [Description("InProgress")] + InProgress, + + [Description("Success")] + Success, + + [Description("Unknown")] + Unknown, + + [Description("Warning")] + Warning, +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/UpdateSummaries/Constant-ProvisioningState.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/UpdateSummaries/Constant-ProvisioningState.cs new file mode 100644 index 00000000000..b799422a4c6 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/UpdateSummaries/Constant-ProvisioningState.cs @@ -0,0 +1,23 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.AzureStackHCI.v2023_08_01.UpdateSummaries; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum ProvisioningStateConstant +{ + [Description("Accepted")] + Accepted, + + [Description("Canceled")] + Canceled, + + [Description("Failed")] + Failed, + + [Description("Provisioning")] + Provisioning, + + [Description("Succeeded")] + Succeeded, +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/UpdateSummaries/Constant-Severity.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/UpdateSummaries/Constant-Severity.cs new file mode 100644 index 00000000000..47d9b3a2e2f --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/UpdateSummaries/Constant-Severity.cs @@ -0,0 +1,20 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.AzureStackHCI.v2023_08_01.UpdateSummaries; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum SeverityConstant +{ + [Description("Critical")] + Critical, + + [Description("Hidden")] + Hidden, + + [Description("Informational")] + Informational, + + [Description("Warning")] + Warning, +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/UpdateSummaries/Constant-Status.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/UpdateSummaries/Constant-Status.cs new file mode 100644 index 00000000000..4ffb0fd806c --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/UpdateSummaries/Constant-Status.cs @@ -0,0 +1,17 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.AzureStackHCI.v2023_08_01.UpdateSummaries; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum StatusConstant +{ + [Description("Failed")] + Failed, + + [Description("InProgress")] + InProgress, + + [Description("Succeeded")] + Succeeded, +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/UpdateSummaries/Constant-UpdateSummariesPropertiesState.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/UpdateSummaries/Constant-UpdateSummariesPropertiesState.cs new file mode 100644 index 00000000000..4231effeb4b --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/UpdateSummaries/Constant-UpdateSummariesPropertiesState.cs @@ -0,0 +1,32 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.AzureStackHCI.v2023_08_01.UpdateSummaries; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum UpdateSummariesPropertiesStateConstant +{ + [Description("AppliedSuccessfully")] + AppliedSuccessfully, + + [Description("NeedsAttention")] + NeedsAttention, + + [Description("PreparationFailed")] + PreparationFailed, + + [Description("PreparationInProgress")] + PreparationInProgress, + + [Description("Unknown")] + Unknown, + + [Description("UpdateAvailable")] + UpdateAvailable, + + [Description("UpdateFailed")] + UpdateFailed, + + [Description("UpdateInProgress")] + UpdateInProgress, +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/UpdateSummaries/Definition.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/UpdateSummaries/Definition.cs new file mode 100644 index 00000000000..64e74a8cee3 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/UpdateSummaries/Definition.cs @@ -0,0 +1,37 @@ +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.AzureStackHCI.v2023_08_01.UpdateSummaries; + +internal class Definition : ResourceDefinition +{ + public string Name => "UpdateSummaries"; + public IEnumerable Operations => new List + { + new DeleteOperation(), + new GetOperation(), + new ListOperation(), + new PutOperation(), + }; + public IEnumerable Constants => new List + { + typeof(HealthStateConstant), + typeof(ProvisioningStateConstant), + typeof(SeverityConstant), + typeof(StatusConstant), + typeof(UpdateSummariesPropertiesStateConstant), + }; + public IEnumerable Models => new List + { + typeof(PackageVersionInfoModel), + typeof(PrecheckResultModel), + typeof(PrecheckResultTagsModel), + typeof(UpdateSummariesModel), + typeof(UpdateSummariesPropertiesModel), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/UpdateSummaries/Model-PackageVersionInfo.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/UpdateSummaries/Model-PackageVersionInfo.cs new file mode 100644 index 00000000000..7a6c4a315af --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/UpdateSummaries/Model-PackageVersionInfo.cs @@ -0,0 +1,27 @@ +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.AzureStackHCI.v2023_08_01.UpdateSummaries; + + +internal class PackageVersionInfoModel +{ + [DateFormat(DateFormatAttribute.DateFormat.RFC3339)] + [JsonPropertyName("lastUpdated")] + public DateTime? LastUpdated { get; set; } + + [JsonPropertyName("packageType")] + public string? PackageType { get; set; } + + [JsonPropertyName("version")] + public string? Version { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/UpdateSummaries/Model-PrecheckResult.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/UpdateSummaries/Model-PrecheckResult.cs new file mode 100644 index 00000000000..9c3280852b9 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/UpdateSummaries/Model-PrecheckResult.cs @@ -0,0 +1,54 @@ +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.AzureStackHCI.v2023_08_01.UpdateSummaries; + + +internal class PrecheckResultModel +{ + [JsonPropertyName("additionalData")] + public string? AdditionalData { get; set; } + + [JsonPropertyName("description")] + public string? Description { get; set; } + + [JsonPropertyName("healthCheckSource")] + public string? HealthCheckSource { get; set; } + + [JsonPropertyName("name")] + public string? Name { get; set; } + + [JsonPropertyName("remediation")] + public string? Remediation { get; set; } + + [JsonPropertyName("severity")] + public SeverityConstant? Severity { get; set; } + + [JsonPropertyName("status")] + public StatusConstant? Status { get; set; } + + [JsonPropertyName("tags")] + public PrecheckResultTagsModel? Tags { get; set; } + + [JsonPropertyName("targetResourceID")] + public string? TargetResourceID { get; set; } + + [JsonPropertyName("targetResourceName")] + public string? TargetResourceName { get; set; } + + [DateFormat(DateFormatAttribute.DateFormat.RFC3339)] + [JsonPropertyName("timestamp")] + public DateTime? Timestamp { get; set; } + + [JsonPropertyName("title")] + public string? Title { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/UpdateSummaries/Model-PrecheckResultTags.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/UpdateSummaries/Model-PrecheckResultTags.cs new file mode 100644 index 00000000000..55b170f23f3 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/UpdateSummaries/Model-PrecheckResultTags.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.AzureStackHCI.v2023_08_01.UpdateSummaries; + + +internal class PrecheckResultTagsModel +{ + [JsonPropertyName("key")] + public string? Key { get; set; } + + [JsonPropertyName("value")] + public string? Value { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/UpdateSummaries/Model-UpdateSummaries.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/UpdateSummaries/Model-UpdateSummaries.cs new file mode 100644 index 00000000000..96a4bb3c9d8 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/UpdateSummaries/Model-UpdateSummaries.cs @@ -0,0 +1,35 @@ +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.AzureStackHCI.v2023_08_01.UpdateSummaries; + + +internal class UpdateSummariesModel +{ + [JsonPropertyName("id")] + public string? Id { get; set; } + + [JsonPropertyName("location")] + public CustomTypes.Location? Location { get; set; } + + [JsonPropertyName("name")] + public string? Name { get; set; } + + [JsonPropertyName("properties")] + public UpdateSummariesPropertiesModel? Properties { get; set; } + + [JsonPropertyName("systemData")] + public CustomTypes.SystemData? SystemData { get; set; } + + [JsonPropertyName("type")] + public string? Type { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/UpdateSummaries/Model-UpdateSummariesProperties.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/UpdateSummaries/Model-UpdateSummariesProperties.cs new file mode 100644 index 00000000000..154f059821b --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/UpdateSummaries/Model-UpdateSummariesProperties.cs @@ -0,0 +1,53 @@ +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.AzureStackHCI.v2023_08_01.UpdateSummaries; + + +internal class UpdateSummariesPropertiesModel +{ + [JsonPropertyName("currentVersion")] + public string? CurrentVersion { get; set; } + + [JsonPropertyName("hardwareModel")] + public string? HardwareModel { get; set; } + + [DateFormat(DateFormatAttribute.DateFormat.RFC3339)] + [JsonPropertyName("healthCheckDate")] + public DateTime? HealthCheckDate { get; set; } + + [JsonPropertyName("healthCheckResult")] + public List? HealthCheckResult { get; set; } + + [JsonPropertyName("healthState")] + public HealthStateConstant? HealthState { get; set; } + + [DateFormat(DateFormatAttribute.DateFormat.RFC3339)] + [JsonPropertyName("lastChecked")] + public DateTime? LastChecked { get; set; } + + [DateFormat(DateFormatAttribute.DateFormat.RFC3339)] + [JsonPropertyName("lastUpdated")] + public DateTime? LastUpdated { get; set; } + + [JsonPropertyName("oemFamily")] + public string? OemFamily { get; set; } + + [JsonPropertyName("packageVersions")] + public List? PackageVersions { get; set; } + + [JsonPropertyName("provisioningState")] + public ProvisioningStateConstant? ProvisioningState { get; set; } + + [JsonPropertyName("state")] + public UpdateSummariesPropertiesStateConstant? State { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/UpdateSummaries/Operation-Delete.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/UpdateSummaries/Operation-Delete.cs new file mode 100644 index 00000000000..30f7d63fa24 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/UpdateSummaries/Operation-Delete.cs @@ -0,0 +1,31 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +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.AzureStackHCI.v2023_08_01.UpdateSummaries; + +internal class DeleteOperation : Pandora.Definitions.Operations.DeleteOperation +{ + public override IEnumerable ExpectedStatusCodes() => new List + { + HttpStatusCode.Accepted, + HttpStatusCode.NoContent, + HttpStatusCode.OK, + }; + + public override bool LongRunning() => true; + + public override ResourceID? ResourceId() => new ClusterId(); + + public override string? UriSuffix() => "/updateSummaries/default"; + + +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/UpdateSummaries/Operation-Get.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/UpdateSummaries/Operation-Get.cs new file mode 100644 index 00000000000..a3ca29e3c1d --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/UpdateSummaries/Operation-Get.cs @@ -0,0 +1,24 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +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.AzureStackHCI.v2023_08_01.UpdateSummaries; + +internal class GetOperation : Pandora.Definitions.Operations.GetOperation +{ + public override ResourceID? ResourceId() => new ClusterId(); + + public override Type? ResponseObject() => typeof(UpdateSummariesModel); + + public override string? UriSuffix() => "/updateSummaries/default"; + + +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/UpdateSummaries/Operation-List.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/UpdateSummaries/Operation-List.cs new file mode 100644 index 00000000000..05fd2e44185 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/UpdateSummaries/Operation-List.cs @@ -0,0 +1,26 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +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.AzureStackHCI.v2023_08_01.UpdateSummaries; + +internal class ListOperation : Pandora.Definitions.Operations.ListOperation +{ + public override string? FieldContainingPaginationDetails() => "nextLink"; + + public override ResourceID? ResourceId() => new ClusterId(); + + public override Type NestedItemType() => typeof(UpdateSummariesModel); + + public override string? UriSuffix() => "/updateSummaries"; + + +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/UpdateSummaries/Operation-Put.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/UpdateSummaries/Operation-Put.cs new file mode 100644 index 00000000000..1fe5e551de3 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/UpdateSummaries/Operation-Put.cs @@ -0,0 +1,31 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +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.AzureStackHCI.v2023_08_01.UpdateSummaries; + +internal class PutOperation : Pandora.Definitions.Operations.PutOperation +{ + public override IEnumerable ExpectedStatusCodes() => new List + { + HttpStatusCode.OK, + }; + + public override Type? RequestObject() => typeof(UpdateSummariesModel); + + public override ResourceID? ResourceId() => new ClusterId(); + + public override Type? ResponseObject() => typeof(UpdateSummariesModel); + + public override string? UriSuffix() => "/updateSummaries/default"; + + +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/UpdateSummaries/ResourceId-ClusterId.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/UpdateSummaries/ResourceId-ClusterId.cs new file mode 100644 index 00000000000..7f86fa2fee7 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/UpdateSummaries/ResourceId-ClusterId.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.AzureStackHCI.v2023_08_01.UpdateSummaries; + +internal class ClusterId : ResourceID +{ + public string? CommonAlias => null; + + public string ID => "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}"; + + 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("staticMicrosoftAzureStackHCI", "Microsoft.AzureStackHCI"), + ResourceIDSegment.Static("staticClusters", "clusters"), + ResourceIDSegment.UserSpecified("clusterName"), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Updates/Constant-AvailabilityType.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Updates/Constant-AvailabilityType.cs new file mode 100644 index 00000000000..053c682eb50 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Updates/Constant-AvailabilityType.cs @@ -0,0 +1,17 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.AzureStackHCI.v2023_08_01.Updates; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum AvailabilityTypeConstant +{ + [Description("Local")] + Local, + + [Description("Notify")] + Notify, + + [Description("Online")] + Online, +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Updates/Constant-HealthState.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Updates/Constant-HealthState.cs new file mode 100644 index 00000000000..21c3b516797 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Updates/Constant-HealthState.cs @@ -0,0 +1,26 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.AzureStackHCI.v2023_08_01.Updates; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum HealthStateConstant +{ + [Description("Error")] + Error, + + [Description("Failure")] + Failure, + + [Description("InProgress")] + InProgress, + + [Description("Success")] + Success, + + [Description("Unknown")] + Unknown, + + [Description("Warning")] + Warning, +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Updates/Constant-ProvisioningState.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Updates/Constant-ProvisioningState.cs new file mode 100644 index 00000000000..edaec8af743 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Updates/Constant-ProvisioningState.cs @@ -0,0 +1,23 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.AzureStackHCI.v2023_08_01.Updates; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum ProvisioningStateConstant +{ + [Description("Accepted")] + Accepted, + + [Description("Canceled")] + Canceled, + + [Description("Failed")] + Failed, + + [Description("Provisioning")] + Provisioning, + + [Description("Succeeded")] + Succeeded, +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Updates/Constant-RebootRequirement.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Updates/Constant-RebootRequirement.cs new file mode 100644 index 00000000000..117476507a7 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Updates/Constant-RebootRequirement.cs @@ -0,0 +1,17 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.AzureStackHCI.v2023_08_01.Updates; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum RebootRequirementConstant +{ + [Description("False")] + False, + + [Description("True")] + True, + + [Description("Unknown")] + Unknown, +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Updates/Constant-Severity.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Updates/Constant-Severity.cs new file mode 100644 index 00000000000..9db50188f78 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Updates/Constant-Severity.cs @@ -0,0 +1,20 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.AzureStackHCI.v2023_08_01.Updates; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum SeverityConstant +{ + [Description("Critical")] + Critical, + + [Description("Hidden")] + Hidden, + + [Description("Informational")] + Informational, + + [Description("Warning")] + Warning, +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Updates/Constant-State.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Updates/Constant-State.cs new file mode 100644 index 00000000000..d1f0897c672 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Updates/Constant-State.cs @@ -0,0 +1,62 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.AzureStackHCI.v2023_08_01.Updates; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum StateConstant +{ + [Description("DownloadFailed")] + DownloadFailed, + + [Description("Downloading")] + Downloading, + + [Description("HasPrerequisite")] + HasPrerequisite, + + [Description("HealthCheckFailed")] + HealthCheckFailed, + + [Description("HealthChecking")] + HealthChecking, + + [Description("InstallationFailed")] + InstallationFailed, + + [Description("Installed")] + Installed, + + [Description("Installing")] + Installing, + + [Description("Invalid")] + Invalid, + + [Description("NotApplicableBecauseAnotherUpdateIsInProgress")] + NotApplicableBecauseAnotherUpdateIsInProgress, + + [Description("Obsolete")] + Obsolete, + + [Description("PreparationFailed")] + PreparationFailed, + + [Description("Preparing")] + Preparing, + + [Description("Ready")] + Ready, + + [Description("ReadyToInstall")] + ReadyToInstall, + + [Description("Recalled")] + Recalled, + + [Description("ScanFailed")] + ScanFailed, + + [Description("ScanInProgress")] + ScanInProgress, +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Updates/Constant-Status.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Updates/Constant-Status.cs new file mode 100644 index 00000000000..211c4c1428f --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Updates/Constant-Status.cs @@ -0,0 +1,17 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.AzureStackHCI.v2023_08_01.Updates; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum StatusConstant +{ + [Description("Failed")] + Failed, + + [Description("InProgress")] + InProgress, + + [Description("Succeeded")] + Succeeded, +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Updates/Definition.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Updates/Definition.cs new file mode 100644 index 00000000000..1cc30dae545 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Updates/Definition.cs @@ -0,0 +1,42 @@ +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.AzureStackHCI.v2023_08_01.Updates; + +internal class Definition : ResourceDefinition +{ + public string Name => "Updates"; + public IEnumerable Operations => new List + { + new DeleteOperation(), + new GetOperation(), + new ListOperation(), + new PostOperation(), + new PutOperation(), + }; + public IEnumerable Constants => new List + { + typeof(AvailabilityTypeConstant), + typeof(HealthStateConstant), + typeof(ProvisioningStateConstant), + typeof(RebootRequirementConstant), + typeof(SeverityConstant), + typeof(StateConstant), + typeof(StatusConstant), + }; + public IEnumerable Models => new List + { + typeof(PackageVersionInfoModel), + typeof(PrecheckResultModel), + typeof(PrecheckResultTagsModel), + typeof(UpdateModel), + typeof(UpdatePrerequisiteModel), + typeof(UpdatePropertiesModel), + typeof(UpdateStatePropertiesModel), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Updates/Model-PackageVersionInfo.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Updates/Model-PackageVersionInfo.cs new file mode 100644 index 00000000000..984d975c8f3 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Updates/Model-PackageVersionInfo.cs @@ -0,0 +1,27 @@ +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.AzureStackHCI.v2023_08_01.Updates; + + +internal class PackageVersionInfoModel +{ + [DateFormat(DateFormatAttribute.DateFormat.RFC3339)] + [JsonPropertyName("lastUpdated")] + public DateTime? LastUpdated { get; set; } + + [JsonPropertyName("packageType")] + public string? PackageType { get; set; } + + [JsonPropertyName("version")] + public string? Version { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Updates/Model-PrecheckResult.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Updates/Model-PrecheckResult.cs new file mode 100644 index 00000000000..3d53c7a40fa --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Updates/Model-PrecheckResult.cs @@ -0,0 +1,54 @@ +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.AzureStackHCI.v2023_08_01.Updates; + + +internal class PrecheckResultModel +{ + [JsonPropertyName("additionalData")] + public string? AdditionalData { get; set; } + + [JsonPropertyName("description")] + public string? Description { get; set; } + + [JsonPropertyName("healthCheckSource")] + public string? HealthCheckSource { get; set; } + + [JsonPropertyName("name")] + public string? Name { get; set; } + + [JsonPropertyName("remediation")] + public string? Remediation { get; set; } + + [JsonPropertyName("severity")] + public SeverityConstant? Severity { get; set; } + + [JsonPropertyName("status")] + public StatusConstant? Status { get; set; } + + [JsonPropertyName("tags")] + public PrecheckResultTagsModel? Tags { get; set; } + + [JsonPropertyName("targetResourceID")] + public string? TargetResourceID { get; set; } + + [JsonPropertyName("targetResourceName")] + public string? TargetResourceName { get; set; } + + [DateFormat(DateFormatAttribute.DateFormat.RFC3339)] + [JsonPropertyName("timestamp")] + public DateTime? Timestamp { get; set; } + + [JsonPropertyName("title")] + public string? Title { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Updates/Model-PrecheckResultTags.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Updates/Model-PrecheckResultTags.cs new file mode 100644 index 00000000000..18301c00796 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Updates/Model-PrecheckResultTags.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.AzureStackHCI.v2023_08_01.Updates; + + +internal class PrecheckResultTagsModel +{ + [JsonPropertyName("key")] + public string? Key { get; set; } + + [JsonPropertyName("value")] + public string? Value { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Updates/Model-Update.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Updates/Model-Update.cs new file mode 100644 index 00000000000..b6102038046 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Updates/Model-Update.cs @@ -0,0 +1,35 @@ +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.AzureStackHCI.v2023_08_01.Updates; + + +internal class UpdateModel +{ + [JsonPropertyName("id")] + public string? Id { get; set; } + + [JsonPropertyName("location")] + public CustomTypes.Location? Location { get; set; } + + [JsonPropertyName("name")] + public string? Name { get; set; } + + [JsonPropertyName("properties")] + public UpdatePropertiesModel? Properties { get; set; } + + [JsonPropertyName("systemData")] + public CustomTypes.SystemData? SystemData { get; set; } + + [JsonPropertyName("type")] + public string? Type { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Updates/Model-UpdatePrerequisite.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Updates/Model-UpdatePrerequisite.cs new file mode 100644 index 00000000000..646ff68a490 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Updates/Model-UpdatePrerequisite.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.AzureStackHCI.v2023_08_01.Updates; + + +internal class UpdatePrerequisiteModel +{ + [JsonPropertyName("packageName")] + public string? PackageName { get; set; } + + [JsonPropertyName("updateType")] + public string? UpdateType { get; set; } + + [JsonPropertyName("version")] + public string? Version { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Updates/Model-UpdateProperties.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Updates/Model-UpdateProperties.cs new file mode 100644 index 00000000000..e8f6b8c278e --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Updates/Model-UpdateProperties.cs @@ -0,0 +1,79 @@ +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.AzureStackHCI.v2023_08_01.Updates; + + +internal class UpdatePropertiesModel +{ + [JsonPropertyName("additionalProperties")] + public string? AdditionalProperties { get; set; } + + [JsonPropertyName("availabilityType")] + public AvailabilityTypeConstant? AvailabilityType { get; set; } + + [JsonPropertyName("componentVersions")] + public List? ComponentVersions { get; set; } + + [JsonPropertyName("description")] + public string? Description { get; set; } + + [JsonPropertyName("displayName")] + public string? DisplayName { get; set; } + + [DateFormat(DateFormatAttribute.DateFormat.RFC3339)] + [JsonPropertyName("healthCheckDate")] + public DateTime? HealthCheckDate { get; set; } + + [JsonPropertyName("healthCheckResult")] + public List? HealthCheckResult { get; set; } + + [JsonPropertyName("healthState")] + public HealthStateConstant? HealthState { get; set; } + + [DateFormat(DateFormatAttribute.DateFormat.RFC3339)] + [JsonPropertyName("installedDate")] + public DateTime? InstalledDate { get; set; } + + [JsonPropertyName("packagePath")] + public string? PackagePath { get; set; } + + [JsonPropertyName("packageSizeInMb")] + public float? PackageSizeInMb { get; set; } + + [JsonPropertyName("packageType")] + public string? PackageType { get; set; } + + [JsonPropertyName("prerequisites")] + public List? Prerequisites { get; set; } + + [JsonPropertyName("provisioningState")] + public ProvisioningStateConstant? ProvisioningState { get; set; } + + [JsonPropertyName("publisher")] + public string? Publisher { get; set; } + + [JsonPropertyName("rebootRequired")] + public RebootRequirementConstant? RebootRequired { get; set; } + + [JsonPropertyName("releaseLink")] + public string? ReleaseLink { get; set; } + + [JsonPropertyName("state")] + public StateConstant? State { get; set; } + + [JsonPropertyName("updateStateProperties")] + public UpdateStatePropertiesModel? UpdateStateProperties { get; set; } + + [JsonPropertyName("version")] + public string? Version { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Updates/Model-UpdateStateProperties.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Updates/Model-UpdateStateProperties.cs new file mode 100644 index 00000000000..05068bd60d7 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Updates/Model-UpdateStateProperties.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.AzureStackHCI.v2023_08_01.Updates; + + +internal class UpdateStatePropertiesModel +{ + [JsonPropertyName("notifyMessage")] + public string? NotifyMessage { get; set; } + + [JsonPropertyName("progressPercentage")] + public float? ProgressPercentage { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Updates/Operation-Delete.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Updates/Operation-Delete.cs new file mode 100644 index 00000000000..fc32ac2991d --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Updates/Operation-Delete.cs @@ -0,0 +1,29 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +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.AzureStackHCI.v2023_08_01.Updates; + +internal class DeleteOperation : Pandora.Definitions.Operations.DeleteOperation +{ + public override IEnumerable ExpectedStatusCodes() => new List + { + HttpStatusCode.Accepted, + HttpStatusCode.NoContent, + HttpStatusCode.OK, + }; + + public override bool LongRunning() => true; + + public override ResourceID? ResourceId() => new UpdateId(); + + +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Updates/Operation-Get.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Updates/Operation-Get.cs new file mode 100644 index 00000000000..fc9cbadb848 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Updates/Operation-Get.cs @@ -0,0 +1,22 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +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.AzureStackHCI.v2023_08_01.Updates; + +internal class GetOperation : Pandora.Definitions.Operations.GetOperation +{ + public override ResourceID? ResourceId() => new UpdateId(); + + public override Type? ResponseObject() => typeof(UpdateModel); + + +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Updates/Operation-List.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Updates/Operation-List.cs new file mode 100644 index 00000000000..cf643534a02 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Updates/Operation-List.cs @@ -0,0 +1,26 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +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.AzureStackHCI.v2023_08_01.Updates; + +internal class ListOperation : Pandora.Definitions.Operations.ListOperation +{ + public override string? FieldContainingPaginationDetails() => "nextLink"; + + public override ResourceID? ResourceId() => new ClusterId(); + + public override Type NestedItemType() => typeof(UpdateModel); + + public override string? UriSuffix() => "/updates"; + + +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Updates/Operation-Post.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Updates/Operation-Post.cs new file mode 100644 index 00000000000..c36aa05e6b1 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Updates/Operation-Post.cs @@ -0,0 +1,32 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +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.AzureStackHCI.v2023_08_01.Updates; + +internal class PostOperation : Pandora.Definitions.Operations.PostOperation +{ + public override IEnumerable ExpectedStatusCodes() => new List + { + HttpStatusCode.Accepted, + HttpStatusCode.OK, + }; + + public override bool LongRunning() => true; + + public override Type? RequestObject() => null; + + public override ResourceID? ResourceId() => new UpdateId(); + + public override string? UriSuffix() => "/apply"; + + +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Updates/Operation-Put.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Updates/Operation-Put.cs new file mode 100644 index 00000000000..e60f8665810 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Updates/Operation-Put.cs @@ -0,0 +1,29 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +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.AzureStackHCI.v2023_08_01.Updates; + +internal class PutOperation : Pandora.Definitions.Operations.PutOperation +{ + public override IEnumerable ExpectedStatusCodes() => new List + { + HttpStatusCode.OK, + }; + + public override Type? RequestObject() => typeof(UpdateModel); + + public override ResourceID? ResourceId() => new UpdateId(); + + public override Type? ResponseObject() => typeof(UpdateModel); + + +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Updates/ResourceId-ClusterId.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Updates/ResourceId-ClusterId.cs new file mode 100644 index 00000000000..bd77cb331db --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Updates/ResourceId-ClusterId.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.AzureStackHCI.v2023_08_01.Updates; + +internal class ClusterId : ResourceID +{ + public string? CommonAlias => null; + + public string ID => "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}"; + + 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("staticMicrosoftAzureStackHCI", "Microsoft.AzureStackHCI"), + ResourceIDSegment.Static("staticClusters", "clusters"), + ResourceIDSegment.UserSpecified("clusterName"), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Updates/ResourceId-UpdateId.cs b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Updates/ResourceId-UpdateId.cs new file mode 100644 index 00000000000..3fe69251673 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/AzureStackHCI/v2023_08_01/Updates/ResourceId-UpdateId.cs @@ -0,0 +1,30 @@ +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.AzureStackHCI.v2023_08_01.Updates; + +internal class UpdateId : ResourceID +{ + public string? CommonAlias => null; + + public string ID => "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/updates/{updateName}"; + + 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("staticMicrosoftAzureStackHCI", "Microsoft.AzureStackHCI"), + ResourceIDSegment.Static("staticClusters", "clusters"), + ResourceIDSegment.UserSpecified("clusterName"), + ResourceIDSegment.Static("staticUpdates", "updates"), + ResourceIDSegment.UserSpecified("updateName"), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/Resources/v2023_08_01/ApiVersionDefinition-GenerationSetting.cs b/data/Pandora.Definitions.ResourceManager/Resources/v2023_08_01/ApiVersionDefinition-GenerationSetting.cs new file mode 100644 index 00000000000..3cf9476c8e1 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Resources/v2023_08_01/ApiVersionDefinition-GenerationSetting.cs @@ -0,0 +1,6 @@ +namespace Pandora.Definitions.ResourceManager.Resources.v2023_08_01; + +public partial class Definition +{ + public bool Generate => true; +} diff --git a/data/Pandora.Definitions.ResourceManager/Resources/v2023_08_01/ApiVersionDefinition.cs b/data/Pandora.Definitions.ResourceManager/Resources/v2023_08_01/ApiVersionDefinition.cs new file mode 100644 index 00000000000..d7bfd05ed7b --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Resources/v2023_08_01/ApiVersionDefinition.cs @@ -0,0 +1,16 @@ +using System.Collections.Generic; +using Pandora.Definitions.Interfaces; + +namespace Pandora.Definitions.ResourceManager.Resources.v2023_08_01; + +public partial class Definition : ApiVersionDefinition +{ + public string ApiVersion => "2023-08-01"; + public bool Preview => false; + public Source Source => Source.ResourceManagerRestApiSpecs; + + public IEnumerable Resources => new List + { + new DeploymentScripts.Definition(), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/Resources/v2023_08_01/DeploymentScripts/Constant-CleanupOptions.cs b/data/Pandora.Definitions.ResourceManager/Resources/v2023_08_01/DeploymentScripts/Constant-CleanupOptions.cs new file mode 100644 index 00000000000..4f1725ace2b --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Resources/v2023_08_01/DeploymentScripts/Constant-CleanupOptions.cs @@ -0,0 +1,17 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.Resources.v2023_08_01.DeploymentScripts; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum CleanupOptionsConstant +{ + [Description("Always")] + Always, + + [Description("OnExpiration")] + OnExpiration, + + [Description("OnSuccess")] + OnSuccess, +} diff --git a/data/Pandora.Definitions.ResourceManager/Resources/v2023_08_01/DeploymentScripts/Constant-ScriptProvisioningState.cs b/data/Pandora.Definitions.ResourceManager/Resources/v2023_08_01/DeploymentScripts/Constant-ScriptProvisioningState.cs new file mode 100644 index 00000000000..be43a910b2f --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Resources/v2023_08_01/DeploymentScripts/Constant-ScriptProvisioningState.cs @@ -0,0 +1,26 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.Resources.v2023_08_01.DeploymentScripts; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum ScriptProvisioningStateConstant +{ + [Description("Canceled")] + Canceled, + + [Description("Creating")] + Creating, + + [Description("Failed")] + Failed, + + [Description("ProvisioningResources")] + ProvisioningResources, + + [Description("Running")] + Running, + + [Description("Succeeded")] + Succeeded, +} diff --git a/data/Pandora.Definitions.ResourceManager/Resources/v2023_08_01/DeploymentScripts/Constant-ScriptType.cs b/data/Pandora.Definitions.ResourceManager/Resources/v2023_08_01/DeploymentScripts/Constant-ScriptType.cs new file mode 100644 index 00000000000..643f1e66ce1 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Resources/v2023_08_01/DeploymentScripts/Constant-ScriptType.cs @@ -0,0 +1,14 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.Resources.v2023_08_01.DeploymentScripts; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum ScriptTypeConstant +{ + [Description("AzureCLI")] + AzureCLI, + + [Description("AzurePowerShell")] + AzurePowerShell, +} diff --git a/data/Pandora.Definitions.ResourceManager/Resources/v2023_08_01/DeploymentScripts/Definition.cs b/data/Pandora.Definitions.ResourceManager/Resources/v2023_08_01/DeploymentScripts/Definition.cs new file mode 100644 index 00000000000..fa6948de0f8 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Resources/v2023_08_01/DeploymentScripts/Definition.cs @@ -0,0 +1,50 @@ +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.Resources.v2023_08_01.DeploymentScripts; + +internal class Definition : ResourceDefinition +{ + public string Name => "DeploymentScripts"; + public IEnumerable Operations => new List + { + new CreateOperation(), + new DeleteOperation(), + new GetOperation(), + new GetLogsOperation(), + new GetLogsDefaultOperation(), + new ListByResourceGroupOperation(), + new ListBySubscriptionOperation(), + new UpdateOperation(), + }; + public IEnumerable Constants => new List + { + typeof(CleanupOptionsConstant), + typeof(ScriptProvisioningStateConstant), + typeof(ScriptTypeConstant), + }; + public IEnumerable Models => new List + { + typeof(AzureCliScriptModel), + typeof(AzureCliScriptPropertiesModel), + typeof(AzurePowerShellScriptModel), + typeof(AzurePowerShellScriptPropertiesModel), + typeof(ContainerConfigurationModel), + typeof(ContainerGroupSubnetIdModel), + typeof(DeploymentScriptModel), + typeof(DeploymentScriptUpdateParameterModel), + typeof(EnvironmentVariableModel), + typeof(ErrorAdditionalInfoModel), + typeof(ErrorResponseModel), + typeof(LogPropertiesModel), + typeof(ScriptLogModel), + typeof(ScriptLogsListModel), + typeof(ScriptStatusModel), + typeof(StorageAccountConfigurationModel), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/Resources/v2023_08_01/DeploymentScripts/Model-AzureCliScript.cs b/data/Pandora.Definitions.ResourceManager/Resources/v2023_08_01/DeploymentScripts/Model-AzureCliScript.cs new file mode 100644 index 00000000000..fc1394eb9ba --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Resources/v2023_08_01/DeploymentScripts/Model-AzureCliScript.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.Resources.v2023_08_01.DeploymentScripts; + +[ValueForType("AzureCLI")] +internal class AzureCliScriptModel : DeploymentScriptModel +{ + [JsonPropertyName("properties")] + [Required] + public AzureCliScriptPropertiesModel Properties { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Resources/v2023_08_01/DeploymentScripts/Model-AzureCliScriptProperties.cs b/data/Pandora.Definitions.ResourceManager/Resources/v2023_08_01/DeploymentScripts/Model-AzureCliScriptProperties.cs new file mode 100644 index 00000000000..4d76efd5bf5 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Resources/v2023_08_01/DeploymentScripts/Model-AzureCliScriptProperties.cs @@ -0,0 +1,64 @@ +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.Resources.v2023_08_01.DeploymentScripts; + + +internal class AzureCliScriptPropertiesModel +{ + [JsonPropertyName("arguments")] + public string? Arguments { get; set; } + + [JsonPropertyName("azCliVersion")] + [Required] + public string AzCliVersion { get; set; } + + [JsonPropertyName("cleanupPreference")] + public CleanupOptionsConstant? CleanupPreference { get; set; } + + [JsonPropertyName("containerSettings")] + public ContainerConfigurationModel? ContainerSettings { get; set; } + + [JsonPropertyName("environmentVariables")] + public List? EnvironmentVariables { get; set; } + + [JsonPropertyName("forceUpdateTag")] + public string? ForceUpdateTag { get; set; } + + [JsonPropertyName("outputs")] + public Dictionary? Outputs { get; set; } + + [JsonPropertyName("primaryScriptUri")] + public string? PrimaryScriptUri { get; set; } + + [JsonPropertyName("provisioningState")] + public ScriptProvisioningStateConstant? ProvisioningState { get; set; } + + [JsonPropertyName("retentionInterval")] + [Required] + public string RetentionInterval { get; set; } + + [JsonPropertyName("scriptContent")] + public string? ScriptContent { get; set; } + + [JsonPropertyName("status")] + public ScriptStatusModel? Status { get; set; } + + [JsonPropertyName("storageAccountSettings")] + public StorageAccountConfigurationModel? StorageAccountSettings { get; set; } + + [JsonPropertyName("supportingScriptUris")] + public List? SupportingScriptUris { get; set; } + + [JsonPropertyName("timeout")] + public string? Timeout { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Resources/v2023_08_01/DeploymentScripts/Model-AzurePowerShellScript.cs b/data/Pandora.Definitions.ResourceManager/Resources/v2023_08_01/DeploymentScripts/Model-AzurePowerShellScript.cs new file mode 100644 index 00000000000..584dbf5aea3 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Resources/v2023_08_01/DeploymentScripts/Model-AzurePowerShellScript.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.Resources.v2023_08_01.DeploymentScripts; + +[ValueForType("AzurePowerShell")] +internal class AzurePowerShellScriptModel : DeploymentScriptModel +{ + [JsonPropertyName("properties")] + [Required] + public AzurePowerShellScriptPropertiesModel Properties { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Resources/v2023_08_01/DeploymentScripts/Model-AzurePowerShellScriptProperties.cs b/data/Pandora.Definitions.ResourceManager/Resources/v2023_08_01/DeploymentScripts/Model-AzurePowerShellScriptProperties.cs new file mode 100644 index 00000000000..10dc68e964b --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Resources/v2023_08_01/DeploymentScripts/Model-AzurePowerShellScriptProperties.cs @@ -0,0 +1,64 @@ +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.Resources.v2023_08_01.DeploymentScripts; + + +internal class AzurePowerShellScriptPropertiesModel +{ + [JsonPropertyName("arguments")] + public string? Arguments { get; set; } + + [JsonPropertyName("azPowerShellVersion")] + [Required] + public string AzPowerShellVersion { get; set; } + + [JsonPropertyName("cleanupPreference")] + public CleanupOptionsConstant? CleanupPreference { get; set; } + + [JsonPropertyName("containerSettings")] + public ContainerConfigurationModel? ContainerSettings { get; set; } + + [JsonPropertyName("environmentVariables")] + public List? EnvironmentVariables { get; set; } + + [JsonPropertyName("forceUpdateTag")] + public string? ForceUpdateTag { get; set; } + + [JsonPropertyName("outputs")] + public Dictionary? Outputs { get; set; } + + [JsonPropertyName("primaryScriptUri")] + public string? PrimaryScriptUri { get; set; } + + [JsonPropertyName("provisioningState")] + public ScriptProvisioningStateConstant? ProvisioningState { get; set; } + + [JsonPropertyName("retentionInterval")] + [Required] + public string RetentionInterval { get; set; } + + [JsonPropertyName("scriptContent")] + public string? ScriptContent { get; set; } + + [JsonPropertyName("status")] + public ScriptStatusModel? Status { get; set; } + + [JsonPropertyName("storageAccountSettings")] + public StorageAccountConfigurationModel? StorageAccountSettings { get; set; } + + [JsonPropertyName("supportingScriptUris")] + public List? SupportingScriptUris { get; set; } + + [JsonPropertyName("timeout")] + public string? Timeout { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Resources/v2023_08_01/DeploymentScripts/Model-ContainerConfiguration.cs b/data/Pandora.Definitions.ResourceManager/Resources/v2023_08_01/DeploymentScripts/Model-ContainerConfiguration.cs new file mode 100644 index 00000000000..de7bf5c03c6 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Resources/v2023_08_01/DeploymentScripts/Model-ContainerConfiguration.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.Resources.v2023_08_01.DeploymentScripts; + + +internal class ContainerConfigurationModel +{ + [JsonPropertyName("containerGroupName")] + public string? ContainerGroupName { get; set; } + + [JsonPropertyName("subnetIds")] + public List? SubnetIds { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Resources/v2023_08_01/DeploymentScripts/Model-ContainerGroupSubnetId.cs b/data/Pandora.Definitions.ResourceManager/Resources/v2023_08_01/DeploymentScripts/Model-ContainerGroupSubnetId.cs new file mode 100644 index 00000000000..611257c8c75 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Resources/v2023_08_01/DeploymentScripts/Model-ContainerGroupSubnetId.cs @@ -0,0 +1,24 @@ +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.Resources.v2023_08_01.DeploymentScripts; + + +internal class ContainerGroupSubnetIdModel +{ + [JsonPropertyName("id")] + [Required] + public string Id { get; set; } + + [JsonPropertyName("name")] + public string? Name { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Resources/v2023_08_01/DeploymentScripts/Model-DeploymentScript.cs b/data/Pandora.Definitions.ResourceManager/Resources/v2023_08_01/DeploymentScripts/Model-DeploymentScript.cs new file mode 100644 index 00000000000..40d24bb921f --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Resources/v2023_08_01/DeploymentScripts/Model-DeploymentScript.cs @@ -0,0 +1,44 @@ +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.Resources.v2023_08_01.DeploymentScripts; + + +internal abstract class DeploymentScriptModel +{ + [JsonPropertyName("id")] + public string? Id { get; set; } + + [JsonPropertyName("identity")] + public CustomTypes.UserAssignedIdentityMap? Identity { get; set; } + + [JsonPropertyName("kind")] + [ProvidesTypeHint] + [Required] + public ScriptTypeConstant Kind { get; set; } + + [JsonPropertyName("location")] + [Required] + public CustomTypes.Location Location { get; set; } + + [JsonPropertyName("name")] + public string? Name { 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/Resources/v2023_08_01/DeploymentScripts/Model-DeploymentScriptUpdateParameter.cs b/data/Pandora.Definitions.ResourceManager/Resources/v2023_08_01/DeploymentScripts/Model-DeploymentScriptUpdateParameter.cs new file mode 100644 index 00000000000..1f58a12631d --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Resources/v2023_08_01/DeploymentScripts/Model-DeploymentScriptUpdateParameter.cs @@ -0,0 +1,29 @@ +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.Resources.v2023_08_01.DeploymentScripts; + + +internal class DeploymentScriptUpdateParameterModel +{ + [JsonPropertyName("id")] + public string? Id { get; set; } + + [JsonPropertyName("name")] + public string? Name { get; set; } + + [JsonPropertyName("tags")] + public CustomTypes.Tags? Tags { get; set; } + + [JsonPropertyName("type")] + public string? Type { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Resources/v2023_08_01/DeploymentScripts/Model-EnvironmentVariable.cs b/data/Pandora.Definitions.ResourceManager/Resources/v2023_08_01/DeploymentScripts/Model-EnvironmentVariable.cs new file mode 100644 index 00000000000..cf91599d407 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Resources/v2023_08_01/DeploymentScripts/Model-EnvironmentVariable.cs @@ -0,0 +1,27 @@ +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.Resources.v2023_08_01.DeploymentScripts; + + +internal class EnvironmentVariableModel +{ + [JsonPropertyName("name")] + [Required] + public string Name { get; set; } + + [JsonPropertyName("secureValue")] + public string? SecureValue { get; set; } + + [JsonPropertyName("value")] + public string? Value { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Resources/v2023_08_01/DeploymentScripts/Model-ErrorAdditionalInfo.cs b/data/Pandora.Definitions.ResourceManager/Resources/v2023_08_01/DeploymentScripts/Model-ErrorAdditionalInfo.cs new file mode 100644 index 00000000000..343c3951fe1 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Resources/v2023_08_01/DeploymentScripts/Model-ErrorAdditionalInfo.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.Resources.v2023_08_01.DeploymentScripts; + + +internal class ErrorAdditionalInfoModel +{ + [JsonPropertyName("info")] + public object? Info { get; set; } + + [JsonPropertyName("type")] + public string? Type { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Resources/v2023_08_01/DeploymentScripts/Model-ErrorResponse.cs b/data/Pandora.Definitions.ResourceManager/Resources/v2023_08_01/DeploymentScripts/Model-ErrorResponse.cs new file mode 100644 index 00000000000..8e403fcc2ef --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Resources/v2023_08_01/DeploymentScripts/Model-ErrorResponse.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.Resources.v2023_08_01.DeploymentScripts; + + +internal class ErrorResponseModel +{ + [JsonPropertyName("additionalInfo")] + public List? AdditionalInfo { get; set; } + + [JsonPropertyName("code")] + public string? Code { get; set; } + + [JsonPropertyName("details")] + public List? Details { get; set; } + + [JsonPropertyName("message")] + public string? Message { get; set; } + + [JsonPropertyName("target")] + public string? Target { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Resources/v2023_08_01/DeploymentScripts/Model-LogProperties.cs b/data/Pandora.Definitions.ResourceManager/Resources/v2023_08_01/DeploymentScripts/Model-LogProperties.cs new file mode 100644 index 00000000000..c2d8f86427b --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Resources/v2023_08_01/DeploymentScripts/Model-LogProperties.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.Resources.v2023_08_01.DeploymentScripts; + + +internal class LogPropertiesModel +{ + [JsonPropertyName("log")] + public string? Log { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Resources/v2023_08_01/DeploymentScripts/Model-ScriptLog.cs b/data/Pandora.Definitions.ResourceManager/Resources/v2023_08_01/DeploymentScripts/Model-ScriptLog.cs new file mode 100644 index 00000000000..4e8f3dbb3a0 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Resources/v2023_08_01/DeploymentScripts/Model-ScriptLog.cs @@ -0,0 +1,29 @@ +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.Resources.v2023_08_01.DeploymentScripts; + + +internal class ScriptLogModel +{ + [JsonPropertyName("id")] + public string? Id { get; set; } + + [JsonPropertyName("name")] + public string? Name { get; set; } + + [JsonPropertyName("properties")] + public LogPropertiesModel? Properties { get; set; } + + [JsonPropertyName("type")] + public string? Type { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Resources/v2023_08_01/DeploymentScripts/Model-ScriptLogsList.cs b/data/Pandora.Definitions.ResourceManager/Resources/v2023_08_01/DeploymentScripts/Model-ScriptLogsList.cs new file mode 100644 index 00000000000..aa48a4b368c --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Resources/v2023_08_01/DeploymentScripts/Model-ScriptLogsList.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.Resources.v2023_08_01.DeploymentScripts; + + +internal class ScriptLogsListModel +{ + [JsonPropertyName("value")] + public List? Value { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Resources/v2023_08_01/DeploymentScripts/Model-ScriptStatus.cs b/data/Pandora.Definitions.ResourceManager/Resources/v2023_08_01/DeploymentScripts/Model-ScriptStatus.cs new file mode 100644 index 00000000000..bc00f2be865 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Resources/v2023_08_01/DeploymentScripts/Model-ScriptStatus.cs @@ -0,0 +1,38 @@ +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.Resources.v2023_08_01.DeploymentScripts; + + +internal class ScriptStatusModel +{ + [JsonPropertyName("containerInstanceId")] + public string? ContainerInstanceId { get; set; } + + [DateFormat(DateFormatAttribute.DateFormat.RFC3339)] + [JsonPropertyName("endTime")] + public DateTime? EndTime { get; set; } + + [JsonPropertyName("error")] + public ErrorResponseModel? Error { get; set; } + + [DateFormat(DateFormatAttribute.DateFormat.RFC3339)] + [JsonPropertyName("expirationTime")] + public DateTime? ExpirationTime { get; set; } + + [DateFormat(DateFormatAttribute.DateFormat.RFC3339)] + [JsonPropertyName("startTime")] + public DateTime? StartTime { get; set; } + + [JsonPropertyName("storageAccountId")] + public string? StorageAccountId { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Resources/v2023_08_01/DeploymentScripts/Model-StorageAccountConfiguration.cs b/data/Pandora.Definitions.ResourceManager/Resources/v2023_08_01/DeploymentScripts/Model-StorageAccountConfiguration.cs new file mode 100644 index 00000000000..5f8297946c6 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Resources/v2023_08_01/DeploymentScripts/Model-StorageAccountConfiguration.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.Resources.v2023_08_01.DeploymentScripts; + + +internal class StorageAccountConfigurationModel +{ + [JsonPropertyName("storageAccountKey")] + public string? StorageAccountKey { get; set; } + + [JsonPropertyName("storageAccountName")] + public string? StorageAccountName { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Resources/v2023_08_01/DeploymentScripts/Operation-Create.cs b/data/Pandora.Definitions.ResourceManager/Resources/v2023_08_01/DeploymentScripts/Operation-Create.cs new file mode 100644 index 00000000000..e11e8d174c8 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Resources/v2023_08_01/DeploymentScripts/Operation-Create.cs @@ -0,0 +1,26 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +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.Resources.v2023_08_01.DeploymentScripts; + +internal class CreateOperation : Pandora.Definitions.Operations.PutOperation +{ + public override bool LongRunning() => true; + + public override Type? RequestObject() => typeof(DeploymentScriptModel); + + public override ResourceID? ResourceId() => new DeploymentScriptId(); + + public override Type? ResponseObject() => typeof(DeploymentScriptModel); + + +} diff --git a/data/Pandora.Definitions.ResourceManager/Resources/v2023_08_01/DeploymentScripts/Operation-Delete.cs b/data/Pandora.Definitions.ResourceManager/Resources/v2023_08_01/DeploymentScripts/Operation-Delete.cs new file mode 100644 index 00000000000..e02e40e4624 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Resources/v2023_08_01/DeploymentScripts/Operation-Delete.cs @@ -0,0 +1,26 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +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.Resources.v2023_08_01.DeploymentScripts; + +internal class DeleteOperation : Pandora.Definitions.Operations.DeleteOperation +{ + public override IEnumerable ExpectedStatusCodes() => new List + { + HttpStatusCode.NoContent, + HttpStatusCode.OK, + }; + + public override ResourceID? ResourceId() => new DeploymentScriptId(); + + +} diff --git a/data/Pandora.Definitions.ResourceManager/Resources/v2023_08_01/DeploymentScripts/Operation-Get.cs b/data/Pandora.Definitions.ResourceManager/Resources/v2023_08_01/DeploymentScripts/Operation-Get.cs new file mode 100644 index 00000000000..e476efc6105 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Resources/v2023_08_01/DeploymentScripts/Operation-Get.cs @@ -0,0 +1,22 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +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.Resources.v2023_08_01.DeploymentScripts; + +internal class GetOperation : Pandora.Definitions.Operations.GetOperation +{ + public override ResourceID? ResourceId() => new DeploymentScriptId(); + + public override Type? ResponseObject() => typeof(DeploymentScriptModel); + + +} diff --git a/data/Pandora.Definitions.ResourceManager/Resources/v2023_08_01/DeploymentScripts/Operation-GetLogs.cs b/data/Pandora.Definitions.ResourceManager/Resources/v2023_08_01/DeploymentScripts/Operation-GetLogs.cs new file mode 100644 index 00000000000..5017569bcf9 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Resources/v2023_08_01/DeploymentScripts/Operation-GetLogs.cs @@ -0,0 +1,24 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +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.Resources.v2023_08_01.DeploymentScripts; + +internal class GetLogsOperation : Pandora.Definitions.Operations.GetOperation +{ + public override ResourceID? ResourceId() => new DeploymentScriptId(); + + public override Type? ResponseObject() => typeof(ScriptLogsListModel); + + public override string? UriSuffix() => "/logs"; + + +} diff --git a/data/Pandora.Definitions.ResourceManager/Resources/v2023_08_01/DeploymentScripts/Operation-GetLogsDefault.cs b/data/Pandora.Definitions.ResourceManager/Resources/v2023_08_01/DeploymentScripts/Operation-GetLogsDefault.cs new file mode 100644 index 00000000000..85cb7a88a20 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Resources/v2023_08_01/DeploymentScripts/Operation-GetLogsDefault.cs @@ -0,0 +1,31 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +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.Resources.v2023_08_01.DeploymentScripts; + +internal class GetLogsDefaultOperation : Pandora.Definitions.Operations.GetOperation +{ + public override ResourceID? ResourceId() => new DeploymentScriptId(); + + public override Type? ResponseObject() => typeof(ScriptLogModel); + + public override Type? OptionsObject() => typeof(GetLogsDefaultOperation.GetLogsDefaultOptions); + + public override string? UriSuffix() => "/logs/default"; + + internal class GetLogsDefaultOptions + { + [QueryStringName("tail")] + [Optional] + public int Tail { get; set; } + } +} diff --git a/data/Pandora.Definitions.ResourceManager/Resources/v2023_08_01/DeploymentScripts/Operation-ListByResourceGroup.cs b/data/Pandora.Definitions.ResourceManager/Resources/v2023_08_01/DeploymentScripts/Operation-ListByResourceGroup.cs new file mode 100644 index 00000000000..6797cf59a3c --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Resources/v2023_08_01/DeploymentScripts/Operation-ListByResourceGroup.cs @@ -0,0 +1,26 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +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.Resources.v2023_08_01.DeploymentScripts; + +internal class ListByResourceGroupOperation : Pandora.Definitions.Operations.ListOperation +{ + public override string? FieldContainingPaginationDetails() => "nextLink"; + + public override ResourceID? ResourceId() => new ResourceGroupId(); + + public override Type NestedItemType() => typeof(DeploymentScriptModel); + + public override string? UriSuffix() => "/providers/Microsoft.Resources/deploymentScripts"; + + +} diff --git a/data/Pandora.Definitions.ResourceManager/Resources/v2023_08_01/DeploymentScripts/Operation-ListBySubscription.cs b/data/Pandora.Definitions.ResourceManager/Resources/v2023_08_01/DeploymentScripts/Operation-ListBySubscription.cs new file mode 100644 index 00000000000..2c8337861b9 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Resources/v2023_08_01/DeploymentScripts/Operation-ListBySubscription.cs @@ -0,0 +1,26 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +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.Resources.v2023_08_01.DeploymentScripts; + +internal class ListBySubscriptionOperation : Pandora.Definitions.Operations.ListOperation +{ + public override string? FieldContainingPaginationDetails() => "nextLink"; + + public override ResourceID? ResourceId() => new SubscriptionId(); + + public override Type NestedItemType() => typeof(DeploymentScriptModel); + + public override string? UriSuffix() => "/providers/Microsoft.Resources/deploymentScripts"; + + +} diff --git a/data/Pandora.Definitions.ResourceManager/Resources/v2023_08_01/DeploymentScripts/Operation-Update.cs b/data/Pandora.Definitions.ResourceManager/Resources/v2023_08_01/DeploymentScripts/Operation-Update.cs new file mode 100644 index 00000000000..e9cd0e0d689 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Resources/v2023_08_01/DeploymentScripts/Operation-Update.cs @@ -0,0 +1,29 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +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.Resources.v2023_08_01.DeploymentScripts; + +internal class UpdateOperation : Pandora.Definitions.Operations.PatchOperation +{ + public override IEnumerable ExpectedStatusCodes() => new List + { + HttpStatusCode.OK, + }; + + public override Type? RequestObject() => typeof(DeploymentScriptUpdateParameterModel); + + public override ResourceID? ResourceId() => new DeploymentScriptId(); + + public override Type? ResponseObject() => typeof(DeploymentScriptModel); + + +} diff --git a/data/Pandora.Definitions.ResourceManager/Resources/v2023_08_01/DeploymentScripts/ResourceId-DeploymentScriptId.cs b/data/Pandora.Definitions.ResourceManager/Resources/v2023_08_01/DeploymentScripts/ResourceId-DeploymentScriptId.cs new file mode 100644 index 00000000000..5e2de0823be --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Resources/v2023_08_01/DeploymentScripts/ResourceId-DeploymentScriptId.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.Resources.v2023_08_01.DeploymentScripts; + +internal class DeploymentScriptId : ResourceID +{ + public string? CommonAlias => null; + + public string ID => "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/deploymentScripts/{deploymentScriptName}"; + + 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("staticMicrosoftResources", "Microsoft.Resources"), + ResourceIDSegment.Static("staticDeploymentScripts", "deploymentScripts"), + ResourceIDSegment.UserSpecified("deploymentScriptName"), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/Resources/v2023_08_01/DeploymentScripts/ResourceId-ResourceGroupId.cs b/data/Pandora.Definitions.ResourceManager/Resources/v2023_08_01/DeploymentScripts/ResourceId-ResourceGroupId.cs new file mode 100644 index 00000000000..4e26dc2305e --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Resources/v2023_08_01/DeploymentScripts/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.Resources.v2023_08_01.DeploymentScripts; + +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/Resources/v2023_08_01/DeploymentScripts/ResourceId-SubscriptionId.cs b/data/Pandora.Definitions.ResourceManager/Resources/v2023_08_01/DeploymentScripts/ResourceId-SubscriptionId.cs new file mode 100644 index 00000000000..edca38eb65e --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Resources/v2023_08_01/DeploymentScripts/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.Resources.v2023_08_01.DeploymentScripts; + +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/Search/v2023_11_01/AdminKeys/Constant-AdminKeyKind.cs b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/AdminKeys/Constant-AdminKeyKind.cs new file mode 100644 index 00000000000..90410b028d6 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/AdminKeys/Constant-AdminKeyKind.cs @@ -0,0 +1,14 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.Search.v2023_11_01.AdminKeys; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum AdminKeyKindConstant +{ + [Description("primary")] + Primary, + + [Description("secondary")] + Secondary, +} diff --git a/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/AdminKeys/Definition.cs b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/AdminKeys/Definition.cs new file mode 100644 index 00000000000..39060ed7f97 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/AdminKeys/Definition.cs @@ -0,0 +1,27 @@ +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.Search.v2023_11_01.AdminKeys; + +internal class Definition : ResourceDefinition +{ + public string Name => "AdminKeys"; + public IEnumerable Operations => new List + { + new GetOperation(), + new RegenerateOperation(), + }; + public IEnumerable Constants => new List + { + typeof(AdminKeyKindConstant), + }; + public IEnumerable Models => new List + { + typeof(AdminKeyResultModel), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/AdminKeys/Model-AdminKeyResult.cs b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/AdminKeys/Model-AdminKeyResult.cs new file mode 100644 index 00000000000..1237b9d4997 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/AdminKeys/Model-AdminKeyResult.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.Search.v2023_11_01.AdminKeys; + + +internal class AdminKeyResultModel +{ + [JsonPropertyName("primaryKey")] + public string? PrimaryKey { get; set; } + + [JsonPropertyName("secondaryKey")] + public string? SecondaryKey { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/AdminKeys/Operation-Get.cs b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/AdminKeys/Operation-Get.cs new file mode 100644 index 00000000000..a5311894398 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/AdminKeys/Operation-Get.cs @@ -0,0 +1,38 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +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.Search.v2023_11_01.AdminKeys; + +internal class GetOperation : Pandora.Definitions.Operations.PostOperation +{ + public override IEnumerable ExpectedStatusCodes() => new List + { + HttpStatusCode.OK, + }; + + public override Type? RequestObject() => null; + + public override ResourceID? ResourceId() => new SearchServiceId(); + + public override Type? ResponseObject() => typeof(AdminKeyResultModel); + + public override Type? OptionsObject() => typeof(GetOperation.GetOptions); + + public override string? UriSuffix() => "/listAdminKeys"; + + internal class GetOptions + { + [HeaderName("x-ms-client-request-id")] + [Optional] + public string XMsClientRequestId { get; set; } + } +} diff --git a/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/AdminKeys/Operation-Regenerate.cs b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/AdminKeys/Operation-Regenerate.cs new file mode 100644 index 00000000000..fd4ed475812 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/AdminKeys/Operation-Regenerate.cs @@ -0,0 +1,36 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +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.Search.v2023_11_01.AdminKeys; + +internal class RegenerateOperation : Pandora.Definitions.Operations.PostOperation +{ + public override IEnumerable ExpectedStatusCodes() => new List + { + HttpStatusCode.OK, + }; + + public override Type? RequestObject() => null; + + public override ResourceID? ResourceId() => new KeyKindId(); + + public override Type? ResponseObject() => typeof(AdminKeyResultModel); + + public override Type? OptionsObject() => typeof(RegenerateOperation.RegenerateOptions); + + internal class RegenerateOptions + { + [HeaderName("x-ms-client-request-id")] + [Optional] + public string XMsClientRequestId { get; set; } + } +} diff --git a/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/AdminKeys/ResourceId-KeyKindId.cs b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/AdminKeys/ResourceId-KeyKindId.cs new file mode 100644 index 00000000000..74e4f765a0d --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/AdminKeys/ResourceId-KeyKindId.cs @@ -0,0 +1,30 @@ +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.Search.v2023_11_01.AdminKeys; + +internal class KeyKindId : ResourceID +{ + public string? CommonAlias => null; + + public string ID => "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/regenerateAdminKey/{keyKind}"; + + 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("staticMicrosoftSearch", "Microsoft.Search"), + ResourceIDSegment.Static("staticSearchServices", "searchServices"), + ResourceIDSegment.UserSpecified("searchServiceName"), + ResourceIDSegment.Static("staticRegenerateAdminKey", "regenerateAdminKey"), + ResourceIDSegment.Constant("keyKind", typeof(AdminKeyKindConstant)), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/AdminKeys/ResourceId-SearchServiceId.cs b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/AdminKeys/ResourceId-SearchServiceId.cs new file mode 100644 index 00000000000..69087340450 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/AdminKeys/ResourceId-SearchServiceId.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.Search.v2023_11_01.AdminKeys; + +internal class SearchServiceId : ResourceID +{ + public string? CommonAlias => null; + + public string ID => "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}"; + + 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("staticMicrosoftSearch", "Microsoft.Search"), + ResourceIDSegment.Static("staticSearchServices", "searchServices"), + ResourceIDSegment.UserSpecified("searchServiceName"), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/ApiVersionDefinition-GenerationSetting.cs b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/ApiVersionDefinition-GenerationSetting.cs new file mode 100644 index 00000000000..5f0f628d83f --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/ApiVersionDefinition-GenerationSetting.cs @@ -0,0 +1,6 @@ +namespace Pandora.Definitions.ResourceManager.Search.v2023_11_01; + +public partial class Definition +{ + public bool Generate => true; +} diff --git a/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/ApiVersionDefinition.cs b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/ApiVersionDefinition.cs new file mode 100644 index 00000000000..767106e7cb2 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/ApiVersionDefinition.cs @@ -0,0 +1,22 @@ +using System.Collections.Generic; +using Pandora.Definitions.Interfaces; + +namespace Pandora.Definitions.ResourceManager.Search.v2023_11_01; + +public partial class Definition : ApiVersionDefinition +{ + public string ApiVersion => "2023-11-01"; + public bool Preview => false; + public Source Source => Source.ResourceManagerRestApiSpecs; + + public IEnumerable Resources => new List + { + new AdminKeys.Definition(), + new PrivateEndpointConnections.Definition(), + new PrivateLinkResources.Definition(), + new QueryKeys.Definition(), + new Services.Definition(), + new SharedPrivateLinkResources.Definition(), + new Usages.Definition(), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/PrivateEndpointConnections/Constant-PrivateLinkServiceConnectionProvisioningState.cs b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/PrivateEndpointConnections/Constant-PrivateLinkServiceConnectionProvisioningState.cs new file mode 100644 index 00000000000..c6579b4b6ad --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/PrivateEndpointConnections/Constant-PrivateLinkServiceConnectionProvisioningState.cs @@ -0,0 +1,26 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.Search.v2023_11_01.PrivateEndpointConnections; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum PrivateLinkServiceConnectionProvisioningStateConstant +{ + [Description("Canceled")] + Canceled, + + [Description("Deleting")] + Deleting, + + [Description("Failed")] + Failed, + + [Description("Incomplete")] + Incomplete, + + [Description("Succeeded")] + Succeeded, + + [Description("Updating")] + Updating, +} diff --git a/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/PrivateEndpointConnections/Constant-PrivateLinkServiceConnectionStatus.cs b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/PrivateEndpointConnections/Constant-PrivateLinkServiceConnectionStatus.cs new file mode 100644 index 00000000000..fc439219e21 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/PrivateEndpointConnections/Constant-PrivateLinkServiceConnectionStatus.cs @@ -0,0 +1,20 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.Search.v2023_11_01.PrivateEndpointConnections; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum PrivateLinkServiceConnectionStatusConstant +{ + [Description("Approved")] + Approved, + + [Description("Disconnected")] + Disconnected, + + [Description("Pending")] + Pending, + + [Description("Rejected")] + Rejected, +} diff --git a/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/PrivateEndpointConnections/Definition.cs b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/PrivateEndpointConnections/Definition.cs new file mode 100644 index 00000000000..a6c5c869c0d --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/PrivateEndpointConnections/Definition.cs @@ -0,0 +1,33 @@ +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.Search.v2023_11_01.PrivateEndpointConnections; + +internal class Definition : ResourceDefinition +{ + public string Name => "PrivateEndpointConnections"; + public IEnumerable Operations => new List + { + new DeleteOperation(), + new GetOperation(), + new ListByServiceOperation(), + new UpdateOperation(), + }; + public IEnumerable Constants => new List + { + typeof(PrivateLinkServiceConnectionProvisioningStateConstant), + typeof(PrivateLinkServiceConnectionStatusConstant), + }; + public IEnumerable Models => new List + { + typeof(PrivateEndpointConnectionModel), + typeof(PrivateEndpointConnectionPropertiesModel), + typeof(PrivateEndpointConnectionPropertiesPrivateEndpointModel), + typeof(PrivateEndpointConnectionPropertiesPrivateLinkServiceConnectionStateModel), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/PrivateEndpointConnections/Model-PrivateEndpointConnection.cs b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/PrivateEndpointConnections/Model-PrivateEndpointConnection.cs new file mode 100644 index 00000000000..3343d8f45e2 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/PrivateEndpointConnections/Model-PrivateEndpointConnection.cs @@ -0,0 +1,29 @@ +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.Search.v2023_11_01.PrivateEndpointConnections; + + +internal class PrivateEndpointConnectionModel +{ + [JsonPropertyName("id")] + public string? Id { get; set; } + + [JsonPropertyName("name")] + public string? Name { get; set; } + + [JsonPropertyName("properties")] + public PrivateEndpointConnectionPropertiesModel? Properties { get; set; } + + [JsonPropertyName("type")] + public string? Type { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/PrivateEndpointConnections/Model-PrivateEndpointConnectionProperties.cs b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/PrivateEndpointConnections/Model-PrivateEndpointConnectionProperties.cs new file mode 100644 index 00000000000..72c54ef25f4 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/PrivateEndpointConnections/Model-PrivateEndpointConnectionProperties.cs @@ -0,0 +1,29 @@ +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.Search.v2023_11_01.PrivateEndpointConnections; + + +internal class PrivateEndpointConnectionPropertiesModel +{ + [JsonPropertyName("groupId")] + public string? GroupId { get; set; } + + [JsonPropertyName("privateEndpoint")] + public PrivateEndpointConnectionPropertiesPrivateEndpointModel? PrivateEndpoint { get; set; } + + [JsonPropertyName("privateLinkServiceConnectionState")] + public PrivateEndpointConnectionPropertiesPrivateLinkServiceConnectionStateModel? PrivateLinkServiceConnectionState { get; set; } + + [JsonPropertyName("provisioningState")] + public PrivateLinkServiceConnectionProvisioningStateConstant? ProvisioningState { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/PrivateEndpointConnections/Model-PrivateEndpointConnectionPropertiesPrivateEndpoint.cs b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/PrivateEndpointConnections/Model-PrivateEndpointConnectionPropertiesPrivateEndpoint.cs new file mode 100644 index 00000000000..e9e4c564c17 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/PrivateEndpointConnections/Model-PrivateEndpointConnectionPropertiesPrivateEndpoint.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.Search.v2023_11_01.PrivateEndpointConnections; + + +internal class PrivateEndpointConnectionPropertiesPrivateEndpointModel +{ + [JsonPropertyName("id")] + public string? Id { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/PrivateEndpointConnections/Model-PrivateEndpointConnectionPropertiesPrivateLinkServiceConnectionState.cs b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/PrivateEndpointConnections/Model-PrivateEndpointConnectionPropertiesPrivateLinkServiceConnectionState.cs new file mode 100644 index 00000000000..51c7424c441 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/PrivateEndpointConnections/Model-PrivateEndpointConnectionPropertiesPrivateLinkServiceConnectionState.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.Search.v2023_11_01.PrivateEndpointConnections; + + +internal class PrivateEndpointConnectionPropertiesPrivateLinkServiceConnectionStateModel +{ + [JsonPropertyName("actionsRequired")] + public string? ActionsRequired { get; set; } + + [JsonPropertyName("description")] + public string? Description { get; set; } + + [JsonPropertyName("status")] + public PrivateLinkServiceConnectionStatusConstant? Status { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/PrivateEndpointConnections/Operation-Delete.cs b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/PrivateEndpointConnections/Operation-Delete.cs new file mode 100644 index 00000000000..ca3dc3f9061 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/PrivateEndpointConnections/Operation-Delete.cs @@ -0,0 +1,34 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +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.Search.v2023_11_01.PrivateEndpointConnections; + +internal class DeleteOperation : Pandora.Definitions.Operations.DeleteOperation +{ + public override IEnumerable ExpectedStatusCodes() => new List + { + HttpStatusCode.OK, + }; + + public override ResourceID? ResourceId() => new PrivateEndpointConnectionId(); + + public override Type? ResponseObject() => typeof(PrivateEndpointConnectionModel); + + public override Type? OptionsObject() => typeof(DeleteOperation.DeleteOptions); + + internal class DeleteOptions + { + [HeaderName("x-ms-client-request-id")] + [Optional] + public string XMsClientRequestId { get; set; } + } +} diff --git a/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/PrivateEndpointConnections/Operation-Get.cs b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/PrivateEndpointConnections/Operation-Get.cs new file mode 100644 index 00000000000..2b87e595a0e --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/PrivateEndpointConnections/Operation-Get.cs @@ -0,0 +1,29 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +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.Search.v2023_11_01.PrivateEndpointConnections; + +internal class GetOperation : Pandora.Definitions.Operations.GetOperation +{ + public override ResourceID? ResourceId() => new PrivateEndpointConnectionId(); + + public override Type? ResponseObject() => typeof(PrivateEndpointConnectionModel); + + public override Type? OptionsObject() => typeof(GetOperation.GetOptions); + + internal class GetOptions + { + [HeaderName("x-ms-client-request-id")] + [Optional] + public string XMsClientRequestId { get; set; } + } +} diff --git a/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/PrivateEndpointConnections/Operation-ListByService.cs b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/PrivateEndpointConnections/Operation-ListByService.cs new file mode 100644 index 00000000000..be63a65ab7d --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/PrivateEndpointConnections/Operation-ListByService.cs @@ -0,0 +1,33 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +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.Search.v2023_11_01.PrivateEndpointConnections; + +internal class ListByServiceOperation : Pandora.Definitions.Operations.ListOperation +{ + public override string? FieldContainingPaginationDetails() => "nextLink"; + + public override ResourceID? ResourceId() => new SearchServiceId(); + + public override Type NestedItemType() => typeof(PrivateEndpointConnectionModel); + + public override Type? OptionsObject() => typeof(ListByServiceOperation.ListByServiceOptions); + + public override string? UriSuffix() => "/privateEndpointConnections"; + + internal class ListByServiceOptions + { + [HeaderName("x-ms-client-request-id")] + [Optional] + public string XMsClientRequestId { get; set; } + } +} diff --git a/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/PrivateEndpointConnections/Operation-Update.cs b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/PrivateEndpointConnections/Operation-Update.cs new file mode 100644 index 00000000000..a711176b38a --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/PrivateEndpointConnections/Operation-Update.cs @@ -0,0 +1,36 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +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.Search.v2023_11_01.PrivateEndpointConnections; + +internal class UpdateOperation : Pandora.Definitions.Operations.PutOperation +{ + public override IEnumerable ExpectedStatusCodes() => new List + { + HttpStatusCode.OK, + }; + + public override Type? RequestObject() => typeof(PrivateEndpointConnectionModel); + + public override ResourceID? ResourceId() => new PrivateEndpointConnectionId(); + + public override Type? ResponseObject() => typeof(PrivateEndpointConnectionModel); + + public override Type? OptionsObject() => typeof(UpdateOperation.UpdateOptions); + + internal class UpdateOptions + { + [HeaderName("x-ms-client-request-id")] + [Optional] + public string XMsClientRequestId { get; set; } + } +} diff --git a/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/PrivateEndpointConnections/ResourceId-PrivateEndpointConnectionId.cs b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/PrivateEndpointConnections/ResourceId-PrivateEndpointConnectionId.cs new file mode 100644 index 00000000000..84a185c8a5c --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/PrivateEndpointConnections/ResourceId-PrivateEndpointConnectionId.cs @@ -0,0 +1,30 @@ +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.Search.v2023_11_01.PrivateEndpointConnections; + +internal class PrivateEndpointConnectionId : ResourceID +{ + public string? CommonAlias => null; + + public string ID => "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/privateEndpointConnections/{privateEndpointConnectionName}"; + + 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("staticMicrosoftSearch", "Microsoft.Search"), + ResourceIDSegment.Static("staticSearchServices", "searchServices"), + ResourceIDSegment.UserSpecified("searchServiceName"), + ResourceIDSegment.Static("staticPrivateEndpointConnections", "privateEndpointConnections"), + ResourceIDSegment.UserSpecified("privateEndpointConnectionName"), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/PrivateEndpointConnections/ResourceId-SearchServiceId.cs b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/PrivateEndpointConnections/ResourceId-SearchServiceId.cs new file mode 100644 index 00000000000..fee1bcb1757 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/PrivateEndpointConnections/ResourceId-SearchServiceId.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.Search.v2023_11_01.PrivateEndpointConnections; + +internal class SearchServiceId : ResourceID +{ + public string? CommonAlias => null; + + public string ID => "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}"; + + 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("staticMicrosoftSearch", "Microsoft.Search"), + ResourceIDSegment.Static("staticSearchServices", "searchServices"), + ResourceIDSegment.UserSpecified("searchServiceName"), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/PrivateLinkResources/Definition.cs b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/PrivateLinkResources/Definition.cs new file mode 100644 index 00000000000..ee2c134b8a3 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/PrivateLinkResources/Definition.cs @@ -0,0 +1,30 @@ +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.Search.v2023_11_01.PrivateLinkResources; + +internal class Definition : ResourceDefinition +{ + public string Name => "PrivateLinkResources"; + public IEnumerable Operations => new List + { + new ListSupportedOperation(), + }; + public IEnumerable Constants => new List + { + + }; + public IEnumerable Models => new List + { + typeof(PrivateLinkResourceModel), + typeof(PrivateLinkResourcePropertiesModel), + typeof(PrivateLinkResourcesResultModel), + typeof(ShareablePrivateLinkResourcePropertiesModel), + typeof(ShareablePrivateLinkResourceTypeModel), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/PrivateLinkResources/Model-PrivateLinkResource.cs b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/PrivateLinkResources/Model-PrivateLinkResource.cs new file mode 100644 index 00000000000..8d851c34d05 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/PrivateLinkResources/Model-PrivateLinkResource.cs @@ -0,0 +1,29 @@ +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.Search.v2023_11_01.PrivateLinkResources; + + +internal class PrivateLinkResourceModel +{ + [JsonPropertyName("id")] + public string? Id { get; set; } + + [JsonPropertyName("name")] + public string? Name { get; set; } + + [JsonPropertyName("properties")] + public PrivateLinkResourcePropertiesModel? Properties { get; set; } + + [JsonPropertyName("type")] + public string? Type { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/PrivateLinkResources/Model-PrivateLinkResourceProperties.cs b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/PrivateLinkResources/Model-PrivateLinkResourceProperties.cs new file mode 100644 index 00000000000..a618952b86b --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/PrivateLinkResources/Model-PrivateLinkResourceProperties.cs @@ -0,0 +1,29 @@ +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.Search.v2023_11_01.PrivateLinkResources; + + +internal class PrivateLinkResourcePropertiesModel +{ + [JsonPropertyName("groupId")] + public string? GroupId { get; set; } + + [JsonPropertyName("requiredMembers")] + public List? RequiredMembers { get; set; } + + [JsonPropertyName("requiredZoneNames")] + public List? RequiredZoneNames { get; set; } + + [JsonPropertyName("shareablePrivateLinkResourceTypes")] + public List? ShareablePrivateLinkResourceTypes { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/PrivateLinkResources/Model-PrivateLinkResourcesResult.cs b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/PrivateLinkResources/Model-PrivateLinkResourcesResult.cs new file mode 100644 index 00000000000..e87585bd134 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/PrivateLinkResources/Model-PrivateLinkResourcesResult.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.Search.v2023_11_01.PrivateLinkResources; + + +internal class PrivateLinkResourcesResultModel +{ + [JsonPropertyName("value")] + public List? Value { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/PrivateLinkResources/Model-ShareablePrivateLinkResourceProperties.cs b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/PrivateLinkResources/Model-ShareablePrivateLinkResourceProperties.cs new file mode 100644 index 00000000000..66bb3d7bf22 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/PrivateLinkResources/Model-ShareablePrivateLinkResourceProperties.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.Search.v2023_11_01.PrivateLinkResources; + + +internal class ShareablePrivateLinkResourcePropertiesModel +{ + [JsonPropertyName("description")] + public string? Description { get; set; } + + [JsonPropertyName("groupId")] + public string? GroupId { get; set; } + + [JsonPropertyName("type")] + public string? Type { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/PrivateLinkResources/Model-ShareablePrivateLinkResourceType.cs b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/PrivateLinkResources/Model-ShareablePrivateLinkResourceType.cs new file mode 100644 index 00000000000..7211c633cce --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/PrivateLinkResources/Model-ShareablePrivateLinkResourceType.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.Search.v2023_11_01.PrivateLinkResources; + + +internal class ShareablePrivateLinkResourceTypeModel +{ + [JsonPropertyName("name")] + public string? Name { get; set; } + + [JsonPropertyName("properties")] + public ShareablePrivateLinkResourcePropertiesModel? Properties { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/PrivateLinkResources/Operation-ListSupported.cs b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/PrivateLinkResources/Operation-ListSupported.cs new file mode 100644 index 00000000000..edfc1925de0 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/PrivateLinkResources/Operation-ListSupported.cs @@ -0,0 +1,31 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +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.Search.v2023_11_01.PrivateLinkResources; + +internal class ListSupportedOperation : Pandora.Definitions.Operations.GetOperation +{ + public override ResourceID? ResourceId() => new SearchServiceId(); + + public override Type? ResponseObject() => typeof(PrivateLinkResourcesResultModel); + + public override Type? OptionsObject() => typeof(ListSupportedOperation.ListSupportedOptions); + + public override string? UriSuffix() => "/privateLinkResources"; + + internal class ListSupportedOptions + { + [HeaderName("x-ms-client-request-id")] + [Optional] + public string XMsClientRequestId { get; set; } + } +} diff --git a/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/PrivateLinkResources/ResourceId-SearchServiceId.cs b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/PrivateLinkResources/ResourceId-SearchServiceId.cs new file mode 100644 index 00000000000..06dc0687cf4 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/PrivateLinkResources/ResourceId-SearchServiceId.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.Search.v2023_11_01.PrivateLinkResources; + +internal class SearchServiceId : ResourceID +{ + public string? CommonAlias => null; + + public string ID => "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}"; + + 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("staticMicrosoftSearch", "Microsoft.Search"), + ResourceIDSegment.Static("staticSearchServices", "searchServices"), + ResourceIDSegment.UserSpecified("searchServiceName"), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/QueryKeys/Definition.cs b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/QueryKeys/Definition.cs new file mode 100644 index 00000000000..96aeac4718c --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/QueryKeys/Definition.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.Search.v2023_11_01.QueryKeys; + +internal class Definition : ResourceDefinition +{ + public string Name => "QueryKeys"; + public IEnumerable Operations => new List + { + new CreateOperation(), + new DeleteOperation(), + new ListBySearchServiceOperation(), + }; + public IEnumerable Constants => new List + { + + }; + public IEnumerable Models => new List + { + typeof(QueryKeyModel), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/QueryKeys/Model-QueryKey.cs b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/QueryKeys/Model-QueryKey.cs new file mode 100644 index 00000000000..45f63284ea7 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/QueryKeys/Model-QueryKey.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.Search.v2023_11_01.QueryKeys; + + +internal class QueryKeyModel +{ + [JsonPropertyName("key")] + public string? Key { get; set; } + + [JsonPropertyName("name")] + public string? Name { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/QueryKeys/Operation-Create.cs b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/QueryKeys/Operation-Create.cs new file mode 100644 index 00000000000..7b7457f0c75 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/QueryKeys/Operation-Create.cs @@ -0,0 +1,36 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +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.Search.v2023_11_01.QueryKeys; + +internal class CreateOperation : Pandora.Definitions.Operations.PostOperation +{ + public override IEnumerable ExpectedStatusCodes() => new List + { + HttpStatusCode.OK, + }; + + public override Type? RequestObject() => null; + + public override ResourceID? ResourceId() => new CreateQueryKeyId(); + + public override Type? ResponseObject() => typeof(QueryKeyModel); + + public override Type? OptionsObject() => typeof(CreateOperation.CreateOptions); + + internal class CreateOptions + { + [HeaderName("x-ms-client-request-id")] + [Optional] + public string XMsClientRequestId { get; set; } + } +} diff --git a/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/QueryKeys/Operation-Delete.cs b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/QueryKeys/Operation-Delete.cs new file mode 100644 index 00000000000..2d705e87f8f --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/QueryKeys/Operation-Delete.cs @@ -0,0 +1,33 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +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.Search.v2023_11_01.QueryKeys; + +internal class DeleteOperation : Pandora.Definitions.Operations.DeleteOperation +{ + public override IEnumerable ExpectedStatusCodes() => new List + { + HttpStatusCode.NoContent, + HttpStatusCode.OK, + }; + + public override ResourceID? ResourceId() => new DeleteQueryKeyId(); + + public override Type? OptionsObject() => typeof(DeleteOperation.DeleteOptions); + + internal class DeleteOptions + { + [HeaderName("x-ms-client-request-id")] + [Optional] + public string XMsClientRequestId { get; set; } + } +} diff --git a/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/QueryKeys/Operation-ListBySearchService.cs b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/QueryKeys/Operation-ListBySearchService.cs new file mode 100644 index 00000000000..1033455c212 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/QueryKeys/Operation-ListBySearchService.cs @@ -0,0 +1,42 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +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.Search.v2023_11_01.QueryKeys; + +internal class ListBySearchServiceOperation : Pandora.Definitions.Operations.ListOperation +{ + public override IEnumerable ExpectedStatusCodes() => new List + { + HttpStatusCode.OK, + }; + + public override string? FieldContainingPaginationDetails() => "nextLink"; + + public override Type? RequestObject() => null; + + public override ResourceID? ResourceId() => new SearchServiceId(); + + public override Type NestedItemType() => typeof(QueryKeyModel); + + public override Type? OptionsObject() => typeof(ListBySearchServiceOperation.ListBySearchServiceOptions); + + public override string? UriSuffix() => "/listQueryKeys"; + + public override System.Net.Http.HttpMethod Method() => System.Net.Http.HttpMethod.Post; + + internal class ListBySearchServiceOptions + { + [HeaderName("x-ms-client-request-id")] + [Optional] + public string XMsClientRequestId { get; set; } + } +} diff --git a/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/QueryKeys/ResourceId-CreateQueryKeyId.cs b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/QueryKeys/ResourceId-CreateQueryKeyId.cs new file mode 100644 index 00000000000..29626f35d33 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/QueryKeys/ResourceId-CreateQueryKeyId.cs @@ -0,0 +1,30 @@ +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.Search.v2023_11_01.QueryKeys; + +internal class CreateQueryKeyId : ResourceID +{ + public string? CommonAlias => null; + + public string ID => "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/createQueryKey/{createQueryKeyName}"; + + 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("staticMicrosoftSearch", "Microsoft.Search"), + ResourceIDSegment.Static("staticSearchServices", "searchServices"), + ResourceIDSegment.UserSpecified("searchServiceName"), + ResourceIDSegment.Static("staticCreateQueryKey", "createQueryKey"), + ResourceIDSegment.UserSpecified("createQueryKeyName"), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/QueryKeys/ResourceId-DeleteQueryKeyId.cs b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/QueryKeys/ResourceId-DeleteQueryKeyId.cs new file mode 100644 index 00000000000..f98f0efc931 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/QueryKeys/ResourceId-DeleteQueryKeyId.cs @@ -0,0 +1,30 @@ +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.Search.v2023_11_01.QueryKeys; + +internal class DeleteQueryKeyId : ResourceID +{ + public string? CommonAlias => null; + + public string ID => "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/deleteQueryKey/{deleteQueryKeyName}"; + + 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("staticMicrosoftSearch", "Microsoft.Search"), + ResourceIDSegment.Static("staticSearchServices", "searchServices"), + ResourceIDSegment.UserSpecified("searchServiceName"), + ResourceIDSegment.Static("staticDeleteQueryKey", "deleteQueryKey"), + ResourceIDSegment.UserSpecified("deleteQueryKeyName"), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/QueryKeys/ResourceId-SearchServiceId.cs b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/QueryKeys/ResourceId-SearchServiceId.cs new file mode 100644 index 00000000000..ef4b5bc2eaf --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/QueryKeys/ResourceId-SearchServiceId.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.Search.v2023_11_01.QueryKeys; + +internal class SearchServiceId : ResourceID +{ + public string? CommonAlias => null; + + public string ID => "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}"; + + 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("staticMicrosoftSearch", "Microsoft.Search"), + ResourceIDSegment.Static("staticSearchServices", "searchServices"), + ResourceIDSegment.UserSpecified("searchServiceName"), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Services/Constant-AadAuthFailureMode.cs b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Services/Constant-AadAuthFailureMode.cs new file mode 100644 index 00000000000..62dfbc45327 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Services/Constant-AadAuthFailureMode.cs @@ -0,0 +1,14 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.Search.v2023_11_01.Services; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum AadAuthFailureModeConstant +{ + [Description("http401WithBearerChallenge")] + HTTPFourZeroOneWithBearerChallenge, + + [Description("http403")] + HTTPFourZeroThree, +} diff --git a/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Services/Constant-HostingMode.cs b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Services/Constant-HostingMode.cs new file mode 100644 index 00000000000..c9aaca108ef --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Services/Constant-HostingMode.cs @@ -0,0 +1,14 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.Search.v2023_11_01.Services; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum HostingModeConstant +{ + [Description("default")] + Default, + + [Description("highDensity")] + HighDensity, +} diff --git a/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Services/Constant-PrivateLinkServiceConnectionProvisioningState.cs b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Services/Constant-PrivateLinkServiceConnectionProvisioningState.cs new file mode 100644 index 00000000000..60a50ae4c81 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Services/Constant-PrivateLinkServiceConnectionProvisioningState.cs @@ -0,0 +1,26 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.Search.v2023_11_01.Services; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum PrivateLinkServiceConnectionProvisioningStateConstant +{ + [Description("Canceled")] + Canceled, + + [Description("Deleting")] + Deleting, + + [Description("Failed")] + Failed, + + [Description("Incomplete")] + Incomplete, + + [Description("Succeeded")] + Succeeded, + + [Description("Updating")] + Updating, +} diff --git a/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Services/Constant-PrivateLinkServiceConnectionStatus.cs b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Services/Constant-PrivateLinkServiceConnectionStatus.cs new file mode 100644 index 00000000000..25e38af965e --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Services/Constant-PrivateLinkServiceConnectionStatus.cs @@ -0,0 +1,20 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.Search.v2023_11_01.Services; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum PrivateLinkServiceConnectionStatusConstant +{ + [Description("Approved")] + Approved, + + [Description("Disconnected")] + Disconnected, + + [Description("Pending")] + Pending, + + [Description("Rejected")] + Rejected, +} diff --git a/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Services/Constant-ProvisioningState.cs b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Services/Constant-ProvisioningState.cs new file mode 100644 index 00000000000..a7287dabbfe --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Services/Constant-ProvisioningState.cs @@ -0,0 +1,17 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.Search.v2023_11_01.Services; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum ProvisioningStateConstant +{ + [Description("failed")] + Failed, + + [Description("provisioning")] + Provisioning, + + [Description("succeeded")] + Succeeded, +} diff --git a/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Services/Constant-PublicNetworkAccess.cs b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Services/Constant-PublicNetworkAccess.cs new file mode 100644 index 00000000000..664b304be0c --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Services/Constant-PublicNetworkAccess.cs @@ -0,0 +1,14 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.Search.v2023_11_01.Services; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum PublicNetworkAccessConstant +{ + [Description("disabled")] + Disabled, + + [Description("enabled")] + Enabled, +} diff --git a/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Services/Constant-ResourceType.cs b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Services/Constant-ResourceType.cs new file mode 100644 index 00000000000..07a1aefae0b --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Services/Constant-ResourceType.cs @@ -0,0 +1,11 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.Search.v2023_11_01.Services; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum ResourceTypeConstant +{ + [Description("searchServices")] + SearchServices, +} diff --git a/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Services/Constant-SearchEncryptionComplianceStatus.cs b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Services/Constant-SearchEncryptionComplianceStatus.cs new file mode 100644 index 00000000000..69088e10d13 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Services/Constant-SearchEncryptionComplianceStatus.cs @@ -0,0 +1,14 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.Search.v2023_11_01.Services; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum SearchEncryptionComplianceStatusConstant +{ + [Description("Compliant")] + Compliant, + + [Description("NonCompliant")] + NonCompliant, +} diff --git a/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Services/Constant-SearchEncryptionWithCmk.cs b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Services/Constant-SearchEncryptionWithCmk.cs new file mode 100644 index 00000000000..ee939ff0d66 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Services/Constant-SearchEncryptionWithCmk.cs @@ -0,0 +1,17 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.Search.v2023_11_01.Services; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum SearchEncryptionWithCmkConstant +{ + [Description("Disabled")] + Disabled, + + [Description("Enabled")] + Enabled, + + [Description("Unspecified")] + Unspecified, +} diff --git a/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Services/Constant-SearchSemanticSearch.cs b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Services/Constant-SearchSemanticSearch.cs new file mode 100644 index 00000000000..f17a6cbb37a --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Services/Constant-SearchSemanticSearch.cs @@ -0,0 +1,17 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.Search.v2023_11_01.Services; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum SearchSemanticSearchConstant +{ + [Description("disabled")] + Disabled, + + [Description("free")] + Free, + + [Description("standard")] + Standard, +} diff --git a/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Services/Constant-SearchServiceStatus.cs b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Services/Constant-SearchServiceStatus.cs new file mode 100644 index 00000000000..f221ea2f101 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Services/Constant-SearchServiceStatus.cs @@ -0,0 +1,26 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.Search.v2023_11_01.Services; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum SearchServiceStatusConstant +{ + [Description("degraded")] + Degraded, + + [Description("deleting")] + Deleting, + + [Description("disabled")] + Disabled, + + [Description("error")] + Error, + + [Description("provisioning")] + Provisioning, + + [Description("running")] + Running, +} diff --git a/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Services/Constant-SharedPrivateLinkResourceProvisioningState.cs b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Services/Constant-SharedPrivateLinkResourceProvisioningState.cs new file mode 100644 index 00000000000..15f8134e4d2 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Services/Constant-SharedPrivateLinkResourceProvisioningState.cs @@ -0,0 +1,23 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.Search.v2023_11_01.Services; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum SharedPrivateLinkResourceProvisioningStateConstant +{ + [Description("Deleting")] + Deleting, + + [Description("Failed")] + Failed, + + [Description("Incomplete")] + Incomplete, + + [Description("Succeeded")] + Succeeded, + + [Description("Updating")] + Updating, +} diff --git a/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Services/Constant-SharedPrivateLinkResourceStatus.cs b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Services/Constant-SharedPrivateLinkResourceStatus.cs new file mode 100644 index 00000000000..972ab36f8d2 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Services/Constant-SharedPrivateLinkResourceStatus.cs @@ -0,0 +1,20 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.Search.v2023_11_01.Services; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum SharedPrivateLinkResourceStatusConstant +{ + [Description("Approved")] + Approved, + + [Description("Disconnected")] + Disconnected, + + [Description("Pending")] + Pending, + + [Description("Rejected")] + Rejected, +} diff --git a/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Services/Constant-SkuName.cs b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Services/Constant-SkuName.cs new file mode 100644 index 00000000000..b6d72656a0b --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Services/Constant-SkuName.cs @@ -0,0 +1,29 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.Search.v2023_11_01.Services; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum SkuNameConstant +{ + [Description("basic")] + Basic, + + [Description("free")] + Free, + + [Description("standard")] + Standard, + + [Description("standard3")] + StandardThree, + + [Description("standard2")] + StandardTwo, + + [Description("storage_optimized_l1")] + StorageOptimizedLOne, + + [Description("storage_optimized_l2")] + StorageOptimizedLTwo, +} diff --git a/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Services/Constant-UnavailableNameReason.cs b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Services/Constant-UnavailableNameReason.cs new file mode 100644 index 00000000000..2c528d90df8 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Services/Constant-UnavailableNameReason.cs @@ -0,0 +1,14 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.Search.v2023_11_01.Services; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum UnavailableNameReasonConstant +{ + [Description("AlreadyExists")] + AlreadyExists, + + [Description("Invalid")] + Invalid, +} diff --git a/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Services/Definition.cs b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Services/Definition.cs new file mode 100644 index 00000000000..cd155f9544d --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Services/Definition.cs @@ -0,0 +1,62 @@ +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.Search.v2023_11_01.Services; + +internal class Definition : ResourceDefinition +{ + public string Name => "Services"; + public IEnumerable Operations => new List + { + new CheckNameAvailabilityOperation(), + new CreateOrUpdateOperation(), + new DeleteOperation(), + new GetOperation(), + new ListByResourceGroupOperation(), + new ListBySubscriptionOperation(), + new UpdateOperation(), + }; + public IEnumerable Constants => new List + { + typeof(AadAuthFailureModeConstant), + typeof(HostingModeConstant), + typeof(PrivateLinkServiceConnectionProvisioningStateConstant), + typeof(PrivateLinkServiceConnectionStatusConstant), + typeof(ProvisioningStateConstant), + typeof(PublicNetworkAccessConstant), + typeof(ResourceTypeConstant), + typeof(SearchEncryptionComplianceStatusConstant), + typeof(SearchEncryptionWithCmkConstant), + typeof(SearchSemanticSearchConstant), + typeof(SearchServiceStatusConstant), + typeof(SharedPrivateLinkResourceProvisioningStateConstant), + typeof(SharedPrivateLinkResourceStatusConstant), + typeof(SkuNameConstant), + typeof(UnavailableNameReasonConstant), + }; + public IEnumerable Models => new List + { + typeof(CheckNameAvailabilityInputModel), + typeof(CheckNameAvailabilityOutputModel), + typeof(DataPlaneAadOrApiKeyAuthOptionModel), + typeof(DataPlaneAuthOptionsModel), + typeof(EncryptionWithCmkModel), + typeof(IPRuleModel), + typeof(NetworkRuleSetModel), + typeof(PrivateEndpointConnectionModel), + typeof(PrivateEndpointConnectionPropertiesModel), + typeof(PrivateEndpointConnectionPropertiesPrivateEndpointModel), + typeof(PrivateEndpointConnectionPropertiesPrivateLinkServiceConnectionStateModel), + typeof(SearchServiceModel), + typeof(SearchServicePropertiesModel), + typeof(SearchServiceUpdateModel), + typeof(SharedPrivateLinkResourceModel), + typeof(SharedPrivateLinkResourcePropertiesModel), + typeof(SkuModel), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Services/Model-CheckNameAvailabilityInput.cs b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Services/Model-CheckNameAvailabilityInput.cs new file mode 100644 index 00000000000..744a9390964 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Services/Model-CheckNameAvailabilityInput.cs @@ -0,0 +1,25 @@ +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.Search.v2023_11_01.Services; + + +internal class CheckNameAvailabilityInputModel +{ + [JsonPropertyName("name")] + [Required] + public string Name { get; set; } + + [JsonPropertyName("type")] + [Required] + public ResourceTypeConstant Type { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Services/Model-CheckNameAvailabilityOutput.cs b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Services/Model-CheckNameAvailabilityOutput.cs new file mode 100644 index 00000000000..bd03cb5a091 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Services/Model-CheckNameAvailabilityOutput.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.Search.v2023_11_01.Services; + + +internal class CheckNameAvailabilityOutputModel +{ + [JsonPropertyName("message")] + public string? Message { get; set; } + + [JsonPropertyName("nameAvailable")] + public bool? NameAvailable { get; set; } + + [JsonPropertyName("reason")] + public UnavailableNameReasonConstant? Reason { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Services/Model-DataPlaneAadOrApiKeyAuthOption.cs b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Services/Model-DataPlaneAadOrApiKeyAuthOption.cs new file mode 100644 index 00000000000..b212b49e0ec --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Services/Model-DataPlaneAadOrApiKeyAuthOption.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.Search.v2023_11_01.Services; + + +internal class DataPlaneAadOrApiKeyAuthOptionModel +{ + [JsonPropertyName("aadAuthFailureMode")] + public AadAuthFailureModeConstant? AadAuthFailureMode { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Services/Model-DataPlaneAuthOptions.cs b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Services/Model-DataPlaneAuthOptions.cs new file mode 100644 index 00000000000..5728e021efc --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Services/Model-DataPlaneAuthOptions.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.Search.v2023_11_01.Services; + + +internal class DataPlaneAuthOptionsModel +{ + [JsonPropertyName("aadOrApiKey")] + public DataPlaneAadOrApiKeyAuthOptionModel? AadOrApiKey { get; set; } + + [JsonPropertyName("apiKeyOnly")] + public object? ApiKeyOnly { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Services/Model-EncryptionWithCmk.cs b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Services/Model-EncryptionWithCmk.cs new file mode 100644 index 00000000000..88fc324e81c --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Services/Model-EncryptionWithCmk.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.Search.v2023_11_01.Services; + + +internal class EncryptionWithCmkModel +{ + [JsonPropertyName("encryptionComplianceStatus")] + public SearchEncryptionComplianceStatusConstant? EncryptionComplianceStatus { get; set; } + + [JsonPropertyName("enforcement")] + public SearchEncryptionWithCmkConstant? Enforcement { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Services/Model-IPRule.cs b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Services/Model-IPRule.cs new file mode 100644 index 00000000000..cea1a9ed6c0 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Services/Model-IPRule.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.Search.v2023_11_01.Services; + + +internal class IPRuleModel +{ + [JsonPropertyName("value")] + public string? Value { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Services/Model-NetworkRuleSet.cs b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Services/Model-NetworkRuleSet.cs new file mode 100644 index 00000000000..29722b23f98 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Services/Model-NetworkRuleSet.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.Search.v2023_11_01.Services; + + +internal class NetworkRuleSetModel +{ + [JsonPropertyName("ipRules")] + public List? IPRules { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Services/Model-PrivateEndpointConnection.cs b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Services/Model-PrivateEndpointConnection.cs new file mode 100644 index 00000000000..2eac712ca61 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Services/Model-PrivateEndpointConnection.cs @@ -0,0 +1,29 @@ +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.Search.v2023_11_01.Services; + + +internal class PrivateEndpointConnectionModel +{ + [JsonPropertyName("id")] + public string? Id { get; set; } + + [JsonPropertyName("name")] + public string? Name { get; set; } + + [JsonPropertyName("properties")] + public PrivateEndpointConnectionPropertiesModel? Properties { get; set; } + + [JsonPropertyName("type")] + public string? Type { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Services/Model-PrivateEndpointConnectionProperties.cs b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Services/Model-PrivateEndpointConnectionProperties.cs new file mode 100644 index 00000000000..c2981621c9b --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Services/Model-PrivateEndpointConnectionProperties.cs @@ -0,0 +1,29 @@ +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.Search.v2023_11_01.Services; + + +internal class PrivateEndpointConnectionPropertiesModel +{ + [JsonPropertyName("groupId")] + public string? GroupId { get; set; } + + [JsonPropertyName("privateEndpoint")] + public PrivateEndpointConnectionPropertiesPrivateEndpointModel? PrivateEndpoint { get; set; } + + [JsonPropertyName("privateLinkServiceConnectionState")] + public PrivateEndpointConnectionPropertiesPrivateLinkServiceConnectionStateModel? PrivateLinkServiceConnectionState { get; set; } + + [JsonPropertyName("provisioningState")] + public PrivateLinkServiceConnectionProvisioningStateConstant? ProvisioningState { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Services/Model-PrivateEndpointConnectionPropertiesPrivateEndpoint.cs b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Services/Model-PrivateEndpointConnectionPropertiesPrivateEndpoint.cs new file mode 100644 index 00000000000..5cfca8a06ae --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Services/Model-PrivateEndpointConnectionPropertiesPrivateEndpoint.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.Search.v2023_11_01.Services; + + +internal class PrivateEndpointConnectionPropertiesPrivateEndpointModel +{ + [JsonPropertyName("id")] + public string? Id { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Services/Model-PrivateEndpointConnectionPropertiesPrivateLinkServiceConnectionState.cs b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Services/Model-PrivateEndpointConnectionPropertiesPrivateLinkServiceConnectionState.cs new file mode 100644 index 00000000000..b9826590953 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Services/Model-PrivateEndpointConnectionPropertiesPrivateLinkServiceConnectionState.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.Search.v2023_11_01.Services; + + +internal class PrivateEndpointConnectionPropertiesPrivateLinkServiceConnectionStateModel +{ + [JsonPropertyName("actionsRequired")] + public string? ActionsRequired { get; set; } + + [JsonPropertyName("description")] + public string? Description { get; set; } + + [JsonPropertyName("status")] + public PrivateLinkServiceConnectionStatusConstant? Status { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Services/Model-SearchService.cs b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Services/Model-SearchService.cs new file mode 100644 index 00000000000..8ed828e072e --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Services/Model-SearchService.cs @@ -0,0 +1,42 @@ +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.Search.v2023_11_01.Services; + + +internal class SearchServiceModel +{ + [JsonPropertyName("id")] + public string? Id { get; set; } + + [JsonPropertyName("identity")] + public CustomTypes.SystemAssignedIdentity? Identity { get; set; } + + [JsonPropertyName("location")] + [Required] + public CustomTypes.Location Location { get; set; } + + [JsonPropertyName("name")] + public string? Name { get; set; } + + [JsonPropertyName("properties")] + public SearchServicePropertiesModel? Properties { get; set; } + + [JsonPropertyName("sku")] + public SkuModel? Sku { get; set; } + + [JsonPropertyName("tags")] + public CustomTypes.Tags? Tags { get; set; } + + [JsonPropertyName("type")] + public string? Type { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Services/Model-SearchServiceProperties.cs b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Services/Model-SearchServiceProperties.cs new file mode 100644 index 00000000000..2b486513a21 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Services/Model-SearchServiceProperties.cs @@ -0,0 +1,59 @@ +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.Search.v2023_11_01.Services; + + +internal class SearchServicePropertiesModel +{ + [JsonPropertyName("authOptions")] + public DataPlaneAuthOptionsModel? AuthOptions { get; set; } + + [JsonPropertyName("disableLocalAuth")] + public bool? DisableLocalAuth { get; set; } + + [JsonPropertyName("encryptionWithCmk")] + public EncryptionWithCmkModel? EncryptionWithCmk { get; set; } + + [JsonPropertyName("hostingMode")] + public HostingModeConstant? HostingMode { get; set; } + + [JsonPropertyName("networkRuleSet")] + public NetworkRuleSetModel? NetworkRuleSet { get; set; } + + [JsonPropertyName("partitionCount")] + public int? PartitionCount { get; set; } + + [JsonPropertyName("privateEndpointConnections")] + public List? PrivateEndpointConnections { get; set; } + + [JsonPropertyName("provisioningState")] + public ProvisioningStateConstant? ProvisioningState { get; set; } + + [JsonPropertyName("publicNetworkAccess")] + public PublicNetworkAccessConstant? PublicNetworkAccess { get; set; } + + [JsonPropertyName("replicaCount")] + public int? ReplicaCount { get; set; } + + [JsonPropertyName("semanticSearch")] + public SearchSemanticSearchConstant? SemanticSearch { get; set; } + + [JsonPropertyName("sharedPrivateLinkResources")] + public List? SharedPrivateLinkResources { get; set; } + + [JsonPropertyName("status")] + public SearchServiceStatusConstant? Status { get; set; } + + [JsonPropertyName("statusDetails")] + public string? StatusDetails { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Services/Model-SearchServiceUpdate.cs b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Services/Model-SearchServiceUpdate.cs new file mode 100644 index 00000000000..746abdc4d95 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Services/Model-SearchServiceUpdate.cs @@ -0,0 +1,41 @@ +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.Search.v2023_11_01.Services; + + +internal class SearchServiceUpdateModel +{ + [JsonPropertyName("id")] + public string? Id { get; set; } + + [JsonPropertyName("identity")] + public CustomTypes.SystemAssignedIdentity? Identity { get; set; } + + [JsonPropertyName("location")] + public CustomTypes.Location? Location { get; set; } + + [JsonPropertyName("name")] + public string? Name { get; set; } + + [JsonPropertyName("properties")] + public SearchServicePropertiesModel? Properties { get; set; } + + [JsonPropertyName("sku")] + public SkuModel? Sku { get; set; } + + [JsonPropertyName("tags")] + public CustomTypes.Tags? Tags { get; set; } + + [JsonPropertyName("type")] + public string? Type { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Services/Model-SharedPrivateLinkResource.cs b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Services/Model-SharedPrivateLinkResource.cs new file mode 100644 index 00000000000..d120cfc8fd3 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Services/Model-SharedPrivateLinkResource.cs @@ -0,0 +1,29 @@ +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.Search.v2023_11_01.Services; + + +internal class SharedPrivateLinkResourceModel +{ + [JsonPropertyName("id")] + public string? Id { get; set; } + + [JsonPropertyName("name")] + public string? Name { get; set; } + + [JsonPropertyName("properties")] + public SharedPrivateLinkResourcePropertiesModel? Properties { get; set; } + + [JsonPropertyName("type")] + public string? Type { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Services/Model-SharedPrivateLinkResourceProperties.cs b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Services/Model-SharedPrivateLinkResourceProperties.cs new file mode 100644 index 00000000000..1cb545cf681 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Services/Model-SharedPrivateLinkResourceProperties.cs @@ -0,0 +1,35 @@ +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.Search.v2023_11_01.Services; + + +internal class SharedPrivateLinkResourcePropertiesModel +{ + [JsonPropertyName("groupId")] + public string? GroupId { get; set; } + + [JsonPropertyName("privateLinkResourceId")] + public string? PrivateLinkResourceId { get; set; } + + [JsonPropertyName("provisioningState")] + public SharedPrivateLinkResourceProvisioningStateConstant? ProvisioningState { get; set; } + + [JsonPropertyName("requestMessage")] + public string? RequestMessage { get; set; } + + [JsonPropertyName("resourceRegion")] + public string? ResourceRegion { get; set; } + + [JsonPropertyName("status")] + public SharedPrivateLinkResourceStatusConstant? Status { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Services/Model-Sku.cs b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Services/Model-Sku.cs new file mode 100644 index 00000000000..d1e010cee88 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Services/Model-Sku.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.Search.v2023_11_01.Services; + + +internal class SkuModel +{ + [JsonPropertyName("name")] + public SkuNameConstant? Name { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Services/Operation-CheckNameAvailability.cs b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Services/Operation-CheckNameAvailability.cs new file mode 100644 index 00000000000..134841e973c --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Services/Operation-CheckNameAvailability.cs @@ -0,0 +1,38 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +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.Search.v2023_11_01.Services; + +internal class CheckNameAvailabilityOperation : Pandora.Definitions.Operations.PostOperation +{ + public override IEnumerable ExpectedStatusCodes() => new List + { + HttpStatusCode.OK, + }; + + public override Type? RequestObject() => typeof(CheckNameAvailabilityInputModel); + + public override ResourceID? ResourceId() => new SubscriptionId(); + + public override Type? ResponseObject() => typeof(CheckNameAvailabilityOutputModel); + + public override Type? OptionsObject() => typeof(CheckNameAvailabilityOperation.CheckNameAvailabilityOptions); + + public override string? UriSuffix() => "/providers/Microsoft.Search/checkNameAvailability"; + + internal class CheckNameAvailabilityOptions + { + [HeaderName("x-ms-client-request-id")] + [Optional] + public string XMsClientRequestId { get; set; } + } +} diff --git a/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Services/Operation-CreateOrUpdate.cs b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Services/Operation-CreateOrUpdate.cs new file mode 100644 index 00000000000..08c46aaea96 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Services/Operation-CreateOrUpdate.cs @@ -0,0 +1,33 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +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.Search.v2023_11_01.Services; + +internal class CreateOrUpdateOperation : Pandora.Definitions.Operations.PutOperation +{ + public override bool LongRunning() => true; + + public override Type? RequestObject() => typeof(SearchServiceModel); + + public override ResourceID? ResourceId() => new SearchServiceId(); + + public override Type? ResponseObject() => typeof(SearchServiceModel); + + public override Type? OptionsObject() => typeof(CreateOrUpdateOperation.CreateOrUpdateOptions); + + internal class CreateOrUpdateOptions + { + [HeaderName("x-ms-client-request-id")] + [Optional] + public string XMsClientRequestId { get; set; } + } +} diff --git a/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Services/Operation-Delete.cs b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Services/Operation-Delete.cs new file mode 100644 index 00000000000..2a319d56720 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Services/Operation-Delete.cs @@ -0,0 +1,33 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +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.Search.v2023_11_01.Services; + +internal class DeleteOperation : Pandora.Definitions.Operations.DeleteOperation +{ + public override IEnumerable ExpectedStatusCodes() => new List + { + HttpStatusCode.NoContent, + HttpStatusCode.OK, + }; + + public override ResourceID? ResourceId() => new SearchServiceId(); + + public override Type? OptionsObject() => typeof(DeleteOperation.DeleteOptions); + + internal class DeleteOptions + { + [HeaderName("x-ms-client-request-id")] + [Optional] + public string XMsClientRequestId { get; set; } + } +} diff --git a/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Services/Operation-Get.cs b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Services/Operation-Get.cs new file mode 100644 index 00000000000..3b3a4fc539b --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Services/Operation-Get.cs @@ -0,0 +1,29 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +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.Search.v2023_11_01.Services; + +internal class GetOperation : Pandora.Definitions.Operations.GetOperation +{ + public override ResourceID? ResourceId() => new SearchServiceId(); + + public override Type? ResponseObject() => typeof(SearchServiceModel); + + public override Type? OptionsObject() => typeof(GetOperation.GetOptions); + + internal class GetOptions + { + [HeaderName("x-ms-client-request-id")] + [Optional] + public string XMsClientRequestId { get; set; } + } +} diff --git a/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Services/Operation-ListByResourceGroup.cs b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Services/Operation-ListByResourceGroup.cs new file mode 100644 index 00000000000..72423c24fed --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Services/Operation-ListByResourceGroup.cs @@ -0,0 +1,33 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +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.Search.v2023_11_01.Services; + +internal class ListByResourceGroupOperation : Pandora.Definitions.Operations.ListOperation +{ + public override string? FieldContainingPaginationDetails() => "nextLink"; + + public override ResourceID? ResourceId() => new ResourceGroupId(); + + public override Type NestedItemType() => typeof(SearchServiceModel); + + public override Type? OptionsObject() => typeof(ListByResourceGroupOperation.ListByResourceGroupOptions); + + public override string? UriSuffix() => "/providers/Microsoft.Search/searchServices"; + + internal class ListByResourceGroupOptions + { + [HeaderName("x-ms-client-request-id")] + [Optional] + public string XMsClientRequestId { get; set; } + } +} diff --git a/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Services/Operation-ListBySubscription.cs b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Services/Operation-ListBySubscription.cs new file mode 100644 index 00000000000..f8628bd04e1 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Services/Operation-ListBySubscription.cs @@ -0,0 +1,33 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +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.Search.v2023_11_01.Services; + +internal class ListBySubscriptionOperation : Pandora.Definitions.Operations.ListOperation +{ + public override string? FieldContainingPaginationDetails() => "nextLink"; + + public override ResourceID? ResourceId() => new SubscriptionId(); + + public override Type NestedItemType() => typeof(SearchServiceModel); + + public override Type? OptionsObject() => typeof(ListBySubscriptionOperation.ListBySubscriptionOptions); + + public override string? UriSuffix() => "/providers/Microsoft.Search/searchServices"; + + internal class ListBySubscriptionOptions + { + [HeaderName("x-ms-client-request-id")] + [Optional] + public string XMsClientRequestId { get; set; } + } +} diff --git a/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Services/Operation-Update.cs b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Services/Operation-Update.cs new file mode 100644 index 00000000000..63a9fa50124 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Services/Operation-Update.cs @@ -0,0 +1,36 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +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.Search.v2023_11_01.Services; + +internal class UpdateOperation : Pandora.Definitions.Operations.PatchOperation +{ + public override IEnumerable ExpectedStatusCodes() => new List + { + HttpStatusCode.OK, + }; + + public override Type? RequestObject() => typeof(SearchServiceUpdateModel); + + public override ResourceID? ResourceId() => new SearchServiceId(); + + public override Type? ResponseObject() => typeof(SearchServiceModel); + + public override Type? OptionsObject() => typeof(UpdateOperation.UpdateOptions); + + internal class UpdateOptions + { + [HeaderName("x-ms-client-request-id")] + [Optional] + public string XMsClientRequestId { get; set; } + } +} diff --git a/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Services/ResourceId-ResourceGroupId.cs b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Services/ResourceId-ResourceGroupId.cs new file mode 100644 index 00000000000..4b264a7937d --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Services/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.Search.v2023_11_01.Services; + +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/Search/v2023_11_01/Services/ResourceId-SearchServiceId.cs b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Services/ResourceId-SearchServiceId.cs new file mode 100644 index 00000000000..dd3ef32172a --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Services/ResourceId-SearchServiceId.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.Search.v2023_11_01.Services; + +internal class SearchServiceId : ResourceID +{ + public string? CommonAlias => null; + + public string ID => "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}"; + + 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("staticMicrosoftSearch", "Microsoft.Search"), + ResourceIDSegment.Static("staticSearchServices", "searchServices"), + ResourceIDSegment.UserSpecified("searchServiceName"), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Services/ResourceId-SubscriptionId.cs b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Services/ResourceId-SubscriptionId.cs new file mode 100644 index 00000000000..c3d1e77adcd --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Services/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.Search.v2023_11_01.Services; + +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/Search/v2023_11_01/SharedPrivateLinkResources/Constant-SharedPrivateLinkResourceProvisioningState.cs b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/SharedPrivateLinkResources/Constant-SharedPrivateLinkResourceProvisioningState.cs new file mode 100644 index 00000000000..07c53bf0326 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/SharedPrivateLinkResources/Constant-SharedPrivateLinkResourceProvisioningState.cs @@ -0,0 +1,23 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.Search.v2023_11_01.SharedPrivateLinkResources; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum SharedPrivateLinkResourceProvisioningStateConstant +{ + [Description("Deleting")] + Deleting, + + [Description("Failed")] + Failed, + + [Description("Incomplete")] + Incomplete, + + [Description("Succeeded")] + Succeeded, + + [Description("Updating")] + Updating, +} diff --git a/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/SharedPrivateLinkResources/Constant-SharedPrivateLinkResourceStatus.cs b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/SharedPrivateLinkResources/Constant-SharedPrivateLinkResourceStatus.cs new file mode 100644 index 00000000000..5cf4242842a --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/SharedPrivateLinkResources/Constant-SharedPrivateLinkResourceStatus.cs @@ -0,0 +1,20 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.Search.v2023_11_01.SharedPrivateLinkResources; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum SharedPrivateLinkResourceStatusConstant +{ + [Description("Approved")] + Approved, + + [Description("Disconnected")] + Disconnected, + + [Description("Pending")] + Pending, + + [Description("Rejected")] + Rejected, +} diff --git a/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/SharedPrivateLinkResources/Definition.cs b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/SharedPrivateLinkResources/Definition.cs new file mode 100644 index 00000000000..f545ca1df92 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/SharedPrivateLinkResources/Definition.cs @@ -0,0 +1,31 @@ +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.Search.v2023_11_01.SharedPrivateLinkResources; + +internal class Definition : ResourceDefinition +{ + public string Name => "SharedPrivateLinkResources"; + public IEnumerable Operations => new List + { + new CreateOrUpdateOperation(), + new DeleteOperation(), + new GetOperation(), + new ListByServiceOperation(), + }; + public IEnumerable Constants => new List + { + typeof(SharedPrivateLinkResourceProvisioningStateConstant), + typeof(SharedPrivateLinkResourceStatusConstant), + }; + public IEnumerable Models => new List + { + typeof(SharedPrivateLinkResourceModel), + typeof(SharedPrivateLinkResourcePropertiesModel), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/SharedPrivateLinkResources/Model-SharedPrivateLinkResource.cs b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/SharedPrivateLinkResources/Model-SharedPrivateLinkResource.cs new file mode 100644 index 00000000000..5f939e9c950 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/SharedPrivateLinkResources/Model-SharedPrivateLinkResource.cs @@ -0,0 +1,29 @@ +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.Search.v2023_11_01.SharedPrivateLinkResources; + + +internal class SharedPrivateLinkResourceModel +{ + [JsonPropertyName("id")] + public string? Id { get; set; } + + [JsonPropertyName("name")] + public string? Name { get; set; } + + [JsonPropertyName("properties")] + public SharedPrivateLinkResourcePropertiesModel? Properties { get; set; } + + [JsonPropertyName("type")] + public string? Type { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/SharedPrivateLinkResources/Model-SharedPrivateLinkResourceProperties.cs b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/SharedPrivateLinkResources/Model-SharedPrivateLinkResourceProperties.cs new file mode 100644 index 00000000000..e4778942f14 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/SharedPrivateLinkResources/Model-SharedPrivateLinkResourceProperties.cs @@ -0,0 +1,35 @@ +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.Search.v2023_11_01.SharedPrivateLinkResources; + + +internal class SharedPrivateLinkResourcePropertiesModel +{ + [JsonPropertyName("groupId")] + public string? GroupId { get; set; } + + [JsonPropertyName("privateLinkResourceId")] + public string? PrivateLinkResourceId { get; set; } + + [JsonPropertyName("provisioningState")] + public SharedPrivateLinkResourceProvisioningStateConstant? ProvisioningState { get; set; } + + [JsonPropertyName("requestMessage")] + public string? RequestMessage { get; set; } + + [JsonPropertyName("resourceRegion")] + public string? ResourceRegion { get; set; } + + [JsonPropertyName("status")] + public SharedPrivateLinkResourceStatusConstant? Status { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/SharedPrivateLinkResources/Operation-CreateOrUpdate.cs b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/SharedPrivateLinkResources/Operation-CreateOrUpdate.cs new file mode 100644 index 00000000000..355281eed0d --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/SharedPrivateLinkResources/Operation-CreateOrUpdate.cs @@ -0,0 +1,39 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +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.Search.v2023_11_01.SharedPrivateLinkResources; + +internal class CreateOrUpdateOperation : Pandora.Definitions.Operations.PutOperation +{ + public override IEnumerable ExpectedStatusCodes() => new List + { + HttpStatusCode.Accepted, + HttpStatusCode.OK, + }; + + public override bool LongRunning() => true; + + public override Type? RequestObject() => typeof(SharedPrivateLinkResourceModel); + + public override ResourceID? ResourceId() => new SharedPrivateLinkResourceId(); + + public override Type? ResponseObject() => typeof(SharedPrivateLinkResourceModel); + + public override Type? OptionsObject() => typeof(CreateOrUpdateOperation.CreateOrUpdateOptions); + + internal class CreateOrUpdateOptions + { + [HeaderName("x-ms-client-request-id")] + [Optional] + public string XMsClientRequestId { get; set; } + } +} diff --git a/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/SharedPrivateLinkResources/Operation-Delete.cs b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/SharedPrivateLinkResources/Operation-Delete.cs new file mode 100644 index 00000000000..701df3e4464 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/SharedPrivateLinkResources/Operation-Delete.cs @@ -0,0 +1,35 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +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.Search.v2023_11_01.SharedPrivateLinkResources; + +internal class DeleteOperation : Pandora.Definitions.Operations.DeleteOperation +{ + public override IEnumerable ExpectedStatusCodes() => new List + { + HttpStatusCode.Accepted, + HttpStatusCode.NoContent, + }; + + public override bool LongRunning() => true; + + public override ResourceID? ResourceId() => new SharedPrivateLinkResourceId(); + + public override Type? OptionsObject() => typeof(DeleteOperation.DeleteOptions); + + internal class DeleteOptions + { + [HeaderName("x-ms-client-request-id")] + [Optional] + public string XMsClientRequestId { get; set; } + } +} diff --git a/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/SharedPrivateLinkResources/Operation-Get.cs b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/SharedPrivateLinkResources/Operation-Get.cs new file mode 100644 index 00000000000..1e7b82882f5 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/SharedPrivateLinkResources/Operation-Get.cs @@ -0,0 +1,29 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +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.Search.v2023_11_01.SharedPrivateLinkResources; + +internal class GetOperation : Pandora.Definitions.Operations.GetOperation +{ + public override ResourceID? ResourceId() => new SharedPrivateLinkResourceId(); + + public override Type? ResponseObject() => typeof(SharedPrivateLinkResourceModel); + + public override Type? OptionsObject() => typeof(GetOperation.GetOptions); + + internal class GetOptions + { + [HeaderName("x-ms-client-request-id")] + [Optional] + public string XMsClientRequestId { get; set; } + } +} diff --git a/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/SharedPrivateLinkResources/Operation-ListByService.cs b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/SharedPrivateLinkResources/Operation-ListByService.cs new file mode 100644 index 00000000000..22fa012063b --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/SharedPrivateLinkResources/Operation-ListByService.cs @@ -0,0 +1,33 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +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.Search.v2023_11_01.SharedPrivateLinkResources; + +internal class ListByServiceOperation : Pandora.Definitions.Operations.ListOperation +{ + public override string? FieldContainingPaginationDetails() => "nextLink"; + + public override ResourceID? ResourceId() => new SearchServiceId(); + + public override Type NestedItemType() => typeof(SharedPrivateLinkResourceModel); + + public override Type? OptionsObject() => typeof(ListByServiceOperation.ListByServiceOptions); + + public override string? UriSuffix() => "/sharedPrivateLinkResources"; + + internal class ListByServiceOptions + { + [HeaderName("x-ms-client-request-id")] + [Optional] + public string XMsClientRequestId { get; set; } + } +} diff --git a/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/SharedPrivateLinkResources/ResourceId-SearchServiceId.cs b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/SharedPrivateLinkResources/ResourceId-SearchServiceId.cs new file mode 100644 index 00000000000..b91df8e7dd2 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/SharedPrivateLinkResources/ResourceId-SearchServiceId.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.Search.v2023_11_01.SharedPrivateLinkResources; + +internal class SearchServiceId : ResourceID +{ + public string? CommonAlias => null; + + public string ID => "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}"; + + 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("staticMicrosoftSearch", "Microsoft.Search"), + ResourceIDSegment.Static("staticSearchServices", "searchServices"), + ResourceIDSegment.UserSpecified("searchServiceName"), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/SharedPrivateLinkResources/ResourceId-SharedPrivateLinkResourceId.cs b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/SharedPrivateLinkResources/ResourceId-SharedPrivateLinkResourceId.cs new file mode 100644 index 00000000000..b6882ceb46a --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/SharedPrivateLinkResources/ResourceId-SharedPrivateLinkResourceId.cs @@ -0,0 +1,30 @@ +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.Search.v2023_11_01.SharedPrivateLinkResources; + +internal class SharedPrivateLinkResourceId : ResourceID +{ + public string? CommonAlias => null; + + public string ID => "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/sharedPrivateLinkResources/{sharedPrivateLinkResourceName}"; + + 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("staticMicrosoftSearch", "Microsoft.Search"), + ResourceIDSegment.Static("staticSearchServices", "searchServices"), + ResourceIDSegment.UserSpecified("searchServiceName"), + ResourceIDSegment.Static("staticSharedPrivateLinkResources", "sharedPrivateLinkResources"), + ResourceIDSegment.UserSpecified("sharedPrivateLinkResourceName"), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Usages/Definition.cs b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Usages/Definition.cs new file mode 100644 index 00000000000..8068eb6fa89 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Usages/Definition.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.Search.v2023_11_01.Usages; + +internal class Definition : ResourceDefinition +{ + public string Name => "Usages"; + public IEnumerable Operations => new List + { + new ListBySubscriptionOperation(), + new UsageBySubscriptionSkuOperation(), + }; + public IEnumerable Constants => new List + { + + }; + public IEnumerable Models => new List + { + typeof(QuotaUsageResultModel), + typeof(QuotaUsageResultNameModel), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Usages/Model-QuotaUsageResult.cs b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Usages/Model-QuotaUsageResult.cs new file mode 100644 index 00000000000..c93c5176409 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Usages/Model-QuotaUsageResult.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.Search.v2023_11_01.Usages; + + +internal class QuotaUsageResultModel +{ + [JsonPropertyName("currentValue")] + public int? CurrentValue { get; set; } + + [JsonPropertyName("id")] + public string? Id { get; set; } + + [JsonPropertyName("limit")] + public int? Limit { get; set; } + + [JsonPropertyName("name")] + public QuotaUsageResultNameModel? Name { get; set; } + + [JsonPropertyName("unit")] + public string? Unit { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Usages/Model-QuotaUsageResultName.cs b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Usages/Model-QuotaUsageResultName.cs new file mode 100644 index 00000000000..854cac3f6e9 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Usages/Model-QuotaUsageResultName.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.Search.v2023_11_01.Usages; + + +internal class QuotaUsageResultNameModel +{ + [JsonPropertyName("localizedValue")] + public string? LocalizedValue { get; set; } + + [JsonPropertyName("value")] + public string? Value { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Usages/Operation-ListBySubscription.cs b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Usages/Operation-ListBySubscription.cs new file mode 100644 index 00000000000..36f43f99f8c --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Usages/Operation-ListBySubscription.cs @@ -0,0 +1,33 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +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.Search.v2023_11_01.Usages; + +internal class ListBySubscriptionOperation : Pandora.Definitions.Operations.ListOperation +{ + public override string? FieldContainingPaginationDetails() => "nextLink"; + + public override ResourceID? ResourceId() => new LocationId(); + + public override Type NestedItemType() => typeof(QuotaUsageResultModel); + + public override Type? OptionsObject() => typeof(ListBySubscriptionOperation.ListBySubscriptionOptions); + + public override string? UriSuffix() => "/usages"; + + internal class ListBySubscriptionOptions + { + [HeaderName("x-ms-client-request-id")] + [Optional] + public string XMsClientRequestId { get; set; } + } +} diff --git a/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Usages/Operation-UsageBySubscriptionSku.cs b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Usages/Operation-UsageBySubscriptionSku.cs new file mode 100644 index 00000000000..ea00cb10853 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Usages/Operation-UsageBySubscriptionSku.cs @@ -0,0 +1,29 @@ +using Pandora.Definitions.Attributes; +using Pandora.Definitions.CustomTypes; +using Pandora.Definitions.Interfaces; +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.Search.v2023_11_01.Usages; + +internal class UsageBySubscriptionSkuOperation : Pandora.Definitions.Operations.GetOperation +{ + public override ResourceID? ResourceId() => new UsageId(); + + public override Type? ResponseObject() => typeof(QuotaUsageResultModel); + + public override Type? OptionsObject() => typeof(UsageBySubscriptionSkuOperation.UsageBySubscriptionSkuOptions); + + internal class UsageBySubscriptionSkuOptions + { + [HeaderName("x-ms-client-request-id")] + [Optional] + public string XMsClientRequestId { get; set; } + } +} diff --git a/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Usages/ResourceId-LocationId.cs b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Usages/ResourceId-LocationId.cs new file mode 100644 index 00000000000..bfeb4d6899b --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Usages/ResourceId-LocationId.cs @@ -0,0 +1,26 @@ +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.Search.v2023_11_01.Usages; + +internal class LocationId : ResourceID +{ + public string? CommonAlias => null; + + public string ID => "/subscriptions/{subscriptionId}/providers/Microsoft.Search/locations/{locationName}"; + + public List Segments => new List + { + ResourceIDSegment.Static("staticSubscriptions", "subscriptions"), + ResourceIDSegment.SubscriptionId("subscriptionId"), + ResourceIDSegment.Static("staticProviders", "providers"), + ResourceIDSegment.ResourceProvider("staticMicrosoftSearch", "Microsoft.Search"), + ResourceIDSegment.Static("staticLocations", "locations"), + ResourceIDSegment.UserSpecified("locationName"), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Usages/ResourceId-UsageId.cs b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Usages/ResourceId-UsageId.cs new file mode 100644 index 00000000000..4c7caf092a8 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Search/v2023_11_01/Usages/ResourceId-UsageId.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.Search.v2023_11_01.Usages; + +internal class UsageId : ResourceID +{ + public string? CommonAlias => null; + + public string ID => "/subscriptions/{subscriptionId}/providers/Microsoft.Search/locations/{locationName}/usages/{usageName}"; + + public List Segments => new List + { + ResourceIDSegment.Static("staticSubscriptions", "subscriptions"), + ResourceIDSegment.SubscriptionId("subscriptionId"), + ResourceIDSegment.Static("staticProviders", "providers"), + ResourceIDSegment.ResourceProvider("staticMicrosoftSearch", "Microsoft.Search"), + ResourceIDSegment.Static("staticLocations", "locations"), + ResourceIDSegment.UserSpecified("locationName"), + ResourceIDSegment.Static("staticUsages", "usages"), + ResourceIDSegment.UserSpecified("usageName"), + }; +}