diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/ApiVersionDefinition-GenerationSetting.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/ApiVersionDefinition-GenerationSetting.cs new file mode 100644 index 00000000000..fcd74801015 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/ApiVersionDefinition-GenerationSetting.cs @@ -0,0 +1,6 @@ +namespace Pandora.Definitions.ResourceManager.Kusto.v2023_08_15; + +public partial class Definition +{ + public bool Generate => true; +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/ApiVersionDefinition.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/ApiVersionDefinition.cs new file mode 100644 index 00000000000..575abb5532b --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/ApiVersionDefinition.cs @@ -0,0 +1,28 @@ +using System.Collections.Generic; +using Pandora.Definitions.Interfaces; + +namespace Pandora.Definitions.ResourceManager.Kusto.v2023_08_15; + +public partial class Definition : ApiVersionDefinition +{ + public string ApiVersion => "2023-08-15"; + public bool Preview => false; + public Source Source => Source.ResourceManagerRestApiSpecs; + + public IEnumerable Resources => new List + { + new AttachedDatabaseConfigurations.Definition(), + new ClusterPrincipalAssignments.Definition(), + new Clusters.Definition(), + new DataConnections.Definition(), + new DatabasePrincipalAssignments.Definition(), + new Databases.Definition(), + new Kusto.Definition(), + new ManagedPrivateEndpoints.Definition(), + new OutboundNetworkDependenciesEndpoints.Definition(), + new PrivateEndpointConnections.Definition(), + new PrivateLinkResources.Definition(), + new SandboxCustomImages.Definition(), + new Scripts.Definition(), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/AttachedDatabaseConfigurations/Constant-AttachedDatabaseType.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/AttachedDatabaseConfigurations/Constant-AttachedDatabaseType.cs new file mode 100644 index 00000000000..747b88bb047 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/AttachedDatabaseConfigurations/Constant-AttachedDatabaseType.cs @@ -0,0 +1,11 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.Kusto.v2023_08_15.AttachedDatabaseConfigurations; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum AttachedDatabaseTypeConstant +{ + [Description("Microsoft.Kusto/clusters/attachedDatabaseConfigurations")] + MicrosoftPointKustoClustersAttachedDatabaseConfigurations, +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/AttachedDatabaseConfigurations/Constant-DefaultPrincipalsModificationKind.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/AttachedDatabaseConfigurations/Constant-DefaultPrincipalsModificationKind.cs new file mode 100644 index 00000000000..85c0c7116c8 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/AttachedDatabaseConfigurations/Constant-DefaultPrincipalsModificationKind.cs @@ -0,0 +1,17 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.Kusto.v2023_08_15.AttachedDatabaseConfigurations; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum DefaultPrincipalsModificationKindConstant +{ + [Description("None")] + None, + + [Description("Replace")] + Replace, + + [Description("Union")] + Union, +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/AttachedDatabaseConfigurations/Constant-ProvisioningState.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/AttachedDatabaseConfigurations/Constant-ProvisioningState.cs new file mode 100644 index 00000000000..a1fa6f3e4d7 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/AttachedDatabaseConfigurations/Constant-ProvisioningState.cs @@ -0,0 +1,29 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.Kusto.v2023_08_15.AttachedDatabaseConfigurations; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum ProvisioningStateConstant +{ + [Description("Canceled")] + Canceled, + + [Description("Creating")] + Creating, + + [Description("Deleting")] + Deleting, + + [Description("Failed")] + Failed, + + [Description("Moving")] + Moving, + + [Description("Running")] + Running, + + [Description("Succeeded")] + Succeeded, +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/AttachedDatabaseConfigurations/Constant-Reason.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/AttachedDatabaseConfigurations/Constant-Reason.cs new file mode 100644 index 00000000000..2b740aab972 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/AttachedDatabaseConfigurations/Constant-Reason.cs @@ -0,0 +1,14 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.Kusto.v2023_08_15.AttachedDatabaseConfigurations; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum ReasonConstant +{ + [Description("AlreadyExists")] + AlreadyExists, + + [Description("Invalid")] + Invalid, +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/AttachedDatabaseConfigurations/Definition.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/AttachedDatabaseConfigurations/Definition.cs new file mode 100644 index 00000000000..ea574fc872f --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/AttachedDatabaseConfigurations/Definition.cs @@ -0,0 +1,38 @@ +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.Kusto.v2023_08_15.AttachedDatabaseConfigurations; + +internal class Definition : ResourceDefinition +{ + public string Name => "AttachedDatabaseConfigurations"; + public IEnumerable Operations => new List + { + new CheckNameAvailabilityOperation(), + new CreateOrUpdateOperation(), + new DeleteOperation(), + new GetOperation(), + new ListByClusterOperation(), + }; + public IEnumerable Constants => new List + { + typeof(AttachedDatabaseTypeConstant), + typeof(DefaultPrincipalsModificationKindConstant), + typeof(ProvisioningStateConstant), + typeof(ReasonConstant), + }; + public IEnumerable Models => new List + { + typeof(AttachedDatabaseConfigurationModel), + typeof(AttachedDatabaseConfigurationListResultModel), + typeof(AttachedDatabaseConfigurationPropertiesModel), + typeof(AttachedDatabaseConfigurationsCheckNameRequestModel), + typeof(CheckNameResultModel), + typeof(TableLevelSharingPropertiesModel), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/AttachedDatabaseConfigurations/Model-AttachedDatabaseConfiguration.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/AttachedDatabaseConfigurations/Model-AttachedDatabaseConfiguration.cs new file mode 100644 index 00000000000..44aff18cbdc --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/AttachedDatabaseConfigurations/Model-AttachedDatabaseConfiguration.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.Kusto.v2023_08_15.AttachedDatabaseConfigurations; + + +internal class AttachedDatabaseConfigurationModel +{ + [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 AttachedDatabaseConfigurationPropertiesModel? Properties { get; set; } + + [JsonPropertyName("type")] + public string? Type { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/AttachedDatabaseConfigurations/Model-AttachedDatabaseConfigurationListResult.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/AttachedDatabaseConfigurations/Model-AttachedDatabaseConfigurationListResult.cs new file mode 100644 index 00000000000..21f5aa3df3f --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/AttachedDatabaseConfigurations/Model-AttachedDatabaseConfigurationListResult.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.Kusto.v2023_08_15.AttachedDatabaseConfigurations; + + +internal class AttachedDatabaseConfigurationListResultModel +{ + [JsonPropertyName("value")] + public List? Value { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/AttachedDatabaseConfigurations/Model-AttachedDatabaseConfigurationProperties.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/AttachedDatabaseConfigurations/Model-AttachedDatabaseConfigurationProperties.cs new file mode 100644 index 00000000000..3241f843fb9 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/AttachedDatabaseConfigurations/Model-AttachedDatabaseConfigurationProperties.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.Kusto.v2023_08_15.AttachedDatabaseConfigurations; + + +internal class AttachedDatabaseConfigurationPropertiesModel +{ + [JsonPropertyName("attachedDatabaseNames")] + public List? AttachedDatabaseNames { get; set; } + + [JsonPropertyName("clusterResourceId")] + [Required] + public string ClusterResourceId { get; set; } + + [JsonPropertyName("databaseName")] + [Required] + public string DatabaseName { get; set; } + + [JsonPropertyName("databaseNameOverride")] + public string? DatabaseNameOverride { get; set; } + + [JsonPropertyName("databaseNamePrefix")] + public string? DatabaseNamePrefix { get; set; } + + [JsonPropertyName("defaultPrincipalsModificationKind")] + [Required] + public DefaultPrincipalsModificationKindConstant DefaultPrincipalsModificationKind { get; set; } + + [JsonPropertyName("provisioningState")] + public ProvisioningStateConstant? ProvisioningState { get; set; } + + [JsonPropertyName("tableLevelSharingProperties")] + public TableLevelSharingPropertiesModel? TableLevelSharingProperties { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/AttachedDatabaseConfigurations/Model-AttachedDatabaseConfigurationsCheckNameRequest.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/AttachedDatabaseConfigurations/Model-AttachedDatabaseConfigurationsCheckNameRequest.cs new file mode 100644 index 00000000000..25359ec5a3b --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/AttachedDatabaseConfigurations/Model-AttachedDatabaseConfigurationsCheckNameRequest.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.Kusto.v2023_08_15.AttachedDatabaseConfigurations; + + +internal class AttachedDatabaseConfigurationsCheckNameRequestModel +{ + [JsonPropertyName("name")] + [Required] + public string Name { get; set; } + + [JsonPropertyName("type")] + [Required] + public AttachedDatabaseTypeConstant Type { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/AttachedDatabaseConfigurations/Model-CheckNameResult.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/AttachedDatabaseConfigurations/Model-CheckNameResult.cs new file mode 100644 index 00000000000..138b64c5a2d --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/AttachedDatabaseConfigurations/Model-CheckNameResult.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.Kusto.v2023_08_15.AttachedDatabaseConfigurations; + + +internal class CheckNameResultModel +{ + [JsonPropertyName("message")] + public string? Message { get; set; } + + [JsonPropertyName("name")] + public string? Name { get; set; } + + [JsonPropertyName("nameAvailable")] + public bool? NameAvailable { get; set; } + + [JsonPropertyName("reason")] + public ReasonConstant? Reason { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/AttachedDatabaseConfigurations/Model-TableLevelSharingProperties.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/AttachedDatabaseConfigurations/Model-TableLevelSharingProperties.cs new file mode 100644 index 00000000000..22784895897 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/AttachedDatabaseConfigurations/Model-TableLevelSharingProperties.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.Kusto.v2023_08_15.AttachedDatabaseConfigurations; + + +internal class TableLevelSharingPropertiesModel +{ + [JsonPropertyName("externalTablesToExclude")] + public List? ExternalTablesToExclude { get; set; } + + [JsonPropertyName("externalTablesToInclude")] + public List? ExternalTablesToInclude { get; set; } + + [JsonPropertyName("functionsToExclude")] + public List? FunctionsToExclude { get; set; } + + [JsonPropertyName("functionsToInclude")] + public List? FunctionsToInclude { get; set; } + + [JsonPropertyName("materializedViewsToExclude")] + public List? MaterializedViewsToExclude { get; set; } + + [JsonPropertyName("materializedViewsToInclude")] + public List? MaterializedViewsToInclude { get; set; } + + [JsonPropertyName("tablesToExclude")] + public List? TablesToExclude { get; set; } + + [JsonPropertyName("tablesToInclude")] + public List? TablesToInclude { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/AttachedDatabaseConfigurations/Operation-CheckNameAvailability.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/AttachedDatabaseConfigurations/Operation-CheckNameAvailability.cs new file mode 100644 index 00000000000..2fb11e36d39 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/AttachedDatabaseConfigurations/Operation-CheckNameAvailability.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.Kusto.v2023_08_15.AttachedDatabaseConfigurations; + +internal class CheckNameAvailabilityOperation : Pandora.Definitions.Operations.PostOperation +{ + public override IEnumerable ExpectedStatusCodes() => new List + { + HttpStatusCode.OK, + }; + + public override Type? RequestObject() => typeof(AttachedDatabaseConfigurationsCheckNameRequestModel); + + public override ResourceID? ResourceId() => new ClusterId(); + + public override Type? ResponseObject() => typeof(CheckNameResultModel); + + public override string? UriSuffix() => "/attachedDatabaseConfigurationCheckNameAvailability"; + + +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/AttachedDatabaseConfigurations/Operation-CreateOrUpdate.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/AttachedDatabaseConfigurations/Operation-CreateOrUpdate.cs new file mode 100644 index 00000000000..692de06cfa8 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/AttachedDatabaseConfigurations/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.Kusto.v2023_08_15.AttachedDatabaseConfigurations; + +internal class CreateOrUpdateOperation : Pandora.Definitions.Operations.PutOperation +{ + public override IEnumerable ExpectedStatusCodes() => new List + { + HttpStatusCode.Accepted, + HttpStatusCode.Created, + HttpStatusCode.OK, + }; + + public override bool LongRunning() => true; + + public override Type? RequestObject() => typeof(AttachedDatabaseConfigurationModel); + + public override ResourceID? ResourceId() => new AttachedDatabaseConfigurationId(); + + public override Type? ResponseObject() => typeof(AttachedDatabaseConfigurationModel); + + +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/AttachedDatabaseConfigurations/Operation-Delete.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/AttachedDatabaseConfigurations/Operation-Delete.cs new file mode 100644 index 00000000000..52db71ca995 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/AttachedDatabaseConfigurations/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.Kusto.v2023_08_15.AttachedDatabaseConfigurations; + +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 AttachedDatabaseConfigurationId(); + + +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/AttachedDatabaseConfigurations/Operation-Get.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/AttachedDatabaseConfigurations/Operation-Get.cs new file mode 100644 index 00000000000..54d50d9532d --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/AttachedDatabaseConfigurations/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.Kusto.v2023_08_15.AttachedDatabaseConfigurations; + +internal class GetOperation : Pandora.Definitions.Operations.GetOperation +{ + public override ResourceID? ResourceId() => new AttachedDatabaseConfigurationId(); + + public override Type? ResponseObject() => typeof(AttachedDatabaseConfigurationModel); + + +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/AttachedDatabaseConfigurations/Operation-ListByCluster.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/AttachedDatabaseConfigurations/Operation-ListByCluster.cs new file mode 100644 index 00000000000..09b031aafbd --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/AttachedDatabaseConfigurations/Operation-ListByCluster.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.Kusto.v2023_08_15.AttachedDatabaseConfigurations; + +internal class ListByClusterOperation : Pandora.Definitions.Operations.GetOperation +{ + public override ResourceID? ResourceId() => new ClusterId(); + + public override Type? ResponseObject() => typeof(AttachedDatabaseConfigurationListResultModel); + + public override string? UriSuffix() => "/attachedDatabaseConfigurations"; + + +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/AttachedDatabaseConfigurations/ResourceId-AttachedDatabaseConfigurationId.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/AttachedDatabaseConfigurations/ResourceId-AttachedDatabaseConfigurationId.cs new file mode 100644 index 00000000000..c105378f640 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/AttachedDatabaseConfigurations/ResourceId-AttachedDatabaseConfigurationId.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.Kusto.v2023_08_15.AttachedDatabaseConfigurations; + +internal class AttachedDatabaseConfigurationId : ResourceID +{ + public string? CommonAlias => null; + + public string ID => "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/attachedDatabaseConfigurations/{attachedDatabaseConfigurationName}"; + + 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("staticMicrosoftKusto", "Microsoft.Kusto"), + ResourceIDSegment.Static("staticClusters", "clusters"), + ResourceIDSegment.UserSpecified("clusterName"), + ResourceIDSegment.Static("staticAttachedDatabaseConfigurations", "attachedDatabaseConfigurations"), + ResourceIDSegment.UserSpecified("attachedDatabaseConfigurationName"), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/AttachedDatabaseConfigurations/ResourceId-ClusterId.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/AttachedDatabaseConfigurations/ResourceId-ClusterId.cs new file mode 100644 index 00000000000..c42067c5c9f --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/AttachedDatabaseConfigurations/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.Kusto.v2023_08_15.AttachedDatabaseConfigurations; + +internal class ClusterId : ResourceID +{ + public string? CommonAlias => null; + + public string ID => "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/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("staticMicrosoftKusto", "Microsoft.Kusto"), + ResourceIDSegment.Static("staticClusters", "clusters"), + ResourceIDSegment.UserSpecified("clusterName"), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/ClusterPrincipalAssignments/Constant-ClusterPrincipalRole.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/ClusterPrincipalAssignments/Constant-ClusterPrincipalRole.cs new file mode 100644 index 00000000000..32506c053a5 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/ClusterPrincipalAssignments/Constant-ClusterPrincipalRole.cs @@ -0,0 +1,14 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.Kusto.v2023_08_15.ClusterPrincipalAssignments; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum ClusterPrincipalRoleConstant +{ + [Description("AllDatabasesAdmin")] + AllDatabasesAdmin, + + [Description("AllDatabasesViewer")] + AllDatabasesViewer, +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/ClusterPrincipalAssignments/Constant-PrincipalAssignmentType.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/ClusterPrincipalAssignments/Constant-PrincipalAssignmentType.cs new file mode 100644 index 00000000000..1765f9a6619 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/ClusterPrincipalAssignments/Constant-PrincipalAssignmentType.cs @@ -0,0 +1,11 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.Kusto.v2023_08_15.ClusterPrincipalAssignments; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum PrincipalAssignmentTypeConstant +{ + [Description("Microsoft.Kusto/clusters/principalAssignments")] + MicrosoftPointKustoClustersPrincipalAssignments, +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/ClusterPrincipalAssignments/Constant-PrincipalType.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/ClusterPrincipalAssignments/Constant-PrincipalType.cs new file mode 100644 index 00000000000..0f4ca39e869 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/ClusterPrincipalAssignments/Constant-PrincipalType.cs @@ -0,0 +1,17 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.Kusto.v2023_08_15.ClusterPrincipalAssignments; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum PrincipalTypeConstant +{ + [Description("App")] + App, + + [Description("Group")] + Group, + + [Description("User")] + User, +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/ClusterPrincipalAssignments/Constant-ProvisioningState.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/ClusterPrincipalAssignments/Constant-ProvisioningState.cs new file mode 100644 index 00000000000..ba2ec26ce46 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/ClusterPrincipalAssignments/Constant-ProvisioningState.cs @@ -0,0 +1,29 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.Kusto.v2023_08_15.ClusterPrincipalAssignments; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum ProvisioningStateConstant +{ + [Description("Canceled")] + Canceled, + + [Description("Creating")] + Creating, + + [Description("Deleting")] + Deleting, + + [Description("Failed")] + Failed, + + [Description("Moving")] + Moving, + + [Description("Running")] + Running, + + [Description("Succeeded")] + Succeeded, +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/ClusterPrincipalAssignments/Constant-Reason.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/ClusterPrincipalAssignments/Constant-Reason.cs new file mode 100644 index 00000000000..05e4aa99e3f --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/ClusterPrincipalAssignments/Constant-Reason.cs @@ -0,0 +1,14 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.Kusto.v2023_08_15.ClusterPrincipalAssignments; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum ReasonConstant +{ + [Description("AlreadyExists")] + AlreadyExists, + + [Description("Invalid")] + Invalid, +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/ClusterPrincipalAssignments/Definition.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/ClusterPrincipalAssignments/Definition.cs new file mode 100644 index 00000000000..01336fbc119 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/ClusterPrincipalAssignments/Definition.cs @@ -0,0 +1,38 @@ +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.Kusto.v2023_08_15.ClusterPrincipalAssignments; + +internal class Definition : ResourceDefinition +{ + public string Name => "ClusterPrincipalAssignments"; + public IEnumerable Operations => new List + { + new CheckNameAvailabilityOperation(), + new CreateOrUpdateOperation(), + new DeleteOperation(), + new GetOperation(), + new ListOperation(), + }; + public IEnumerable Constants => new List + { + typeof(ClusterPrincipalRoleConstant), + typeof(PrincipalAssignmentTypeConstant), + typeof(PrincipalTypeConstant), + typeof(ProvisioningStateConstant), + typeof(ReasonConstant), + }; + public IEnumerable Models => new List + { + typeof(CheckNameResultModel), + typeof(ClusterPrincipalAssignmentModel), + typeof(ClusterPrincipalAssignmentCheckNameRequestModel), + typeof(ClusterPrincipalAssignmentListResultModel), + typeof(ClusterPrincipalPropertiesModel), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/ClusterPrincipalAssignments/Model-CheckNameResult.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/ClusterPrincipalAssignments/Model-CheckNameResult.cs new file mode 100644 index 00000000000..9242ff577e5 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/ClusterPrincipalAssignments/Model-CheckNameResult.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.Kusto.v2023_08_15.ClusterPrincipalAssignments; + + +internal class CheckNameResultModel +{ + [JsonPropertyName("message")] + public string? Message { get; set; } + + [JsonPropertyName("name")] + public string? Name { get; set; } + + [JsonPropertyName("nameAvailable")] + public bool? NameAvailable { get; set; } + + [JsonPropertyName("reason")] + public ReasonConstant? Reason { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/ClusterPrincipalAssignments/Model-ClusterPrincipalAssignment.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/ClusterPrincipalAssignments/Model-ClusterPrincipalAssignment.cs new file mode 100644 index 00000000000..5484511df2b --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/ClusterPrincipalAssignments/Model-ClusterPrincipalAssignment.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.Kusto.v2023_08_15.ClusterPrincipalAssignments; + + +internal class ClusterPrincipalAssignmentModel +{ + [JsonPropertyName("id")] + public string? Id { get; set; } + + [JsonPropertyName("name")] + public string? Name { get; set; } + + [JsonPropertyName("properties")] + public ClusterPrincipalPropertiesModel? Properties { get; set; } + + [JsonPropertyName("type")] + public string? Type { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/ClusterPrincipalAssignments/Model-ClusterPrincipalAssignmentCheckNameRequest.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/ClusterPrincipalAssignments/Model-ClusterPrincipalAssignmentCheckNameRequest.cs new file mode 100644 index 00000000000..8b75914d4c0 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/ClusterPrincipalAssignments/Model-ClusterPrincipalAssignmentCheckNameRequest.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.Kusto.v2023_08_15.ClusterPrincipalAssignments; + + +internal class ClusterPrincipalAssignmentCheckNameRequestModel +{ + [JsonPropertyName("name")] + [Required] + public string Name { get; set; } + + [JsonPropertyName("type")] + [Required] + public PrincipalAssignmentTypeConstant Type { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/ClusterPrincipalAssignments/Model-ClusterPrincipalAssignmentListResult.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/ClusterPrincipalAssignments/Model-ClusterPrincipalAssignmentListResult.cs new file mode 100644 index 00000000000..76232502a41 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/ClusterPrincipalAssignments/Model-ClusterPrincipalAssignmentListResult.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.Kusto.v2023_08_15.ClusterPrincipalAssignments; + + +internal class ClusterPrincipalAssignmentListResultModel +{ + [JsonPropertyName("value")] + public List? Value { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/ClusterPrincipalAssignments/Model-ClusterPrincipalProperties.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/ClusterPrincipalAssignments/Model-ClusterPrincipalProperties.cs new file mode 100644 index 00000000000..de061555c31 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/ClusterPrincipalAssignments/Model-ClusterPrincipalProperties.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.Kusto.v2023_08_15.ClusterPrincipalAssignments; + + +internal class ClusterPrincipalPropertiesModel +{ + [JsonPropertyName("aadObjectId")] + public string? AadObjectId { get; set; } + + [JsonPropertyName("principalId")] + [Required] + public string PrincipalId { get; set; } + + [JsonPropertyName("principalName")] + public string? PrincipalName { get; set; } + + [JsonPropertyName("principalType")] + [Required] + public PrincipalTypeConstant PrincipalType { get; set; } + + [JsonPropertyName("provisioningState")] + public ProvisioningStateConstant? ProvisioningState { get; set; } + + [JsonPropertyName("role")] + [Required] + public ClusterPrincipalRoleConstant Role { get; set; } + + [JsonPropertyName("tenantId")] + public string? TenantId { get; set; } + + [JsonPropertyName("tenantName")] + public string? TenantName { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/ClusterPrincipalAssignments/Operation-CheckNameAvailability.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/ClusterPrincipalAssignments/Operation-CheckNameAvailability.cs new file mode 100644 index 00000000000..2c84f784668 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/ClusterPrincipalAssignments/Operation-CheckNameAvailability.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.Kusto.v2023_08_15.ClusterPrincipalAssignments; + +internal class CheckNameAvailabilityOperation : Pandora.Definitions.Operations.PostOperation +{ + public override IEnumerable ExpectedStatusCodes() => new List + { + HttpStatusCode.OK, + }; + + public override Type? RequestObject() => typeof(ClusterPrincipalAssignmentCheckNameRequestModel); + + public override ResourceID? ResourceId() => new ClusterId(); + + public override Type? ResponseObject() => typeof(CheckNameResultModel); + + public override string? UriSuffix() => "/checkPrincipalAssignmentNameAvailability"; + + +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/ClusterPrincipalAssignments/Operation-CreateOrUpdate.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/ClusterPrincipalAssignments/Operation-CreateOrUpdate.cs new file mode 100644 index 00000000000..76950a6afc3 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/ClusterPrincipalAssignments/Operation-CreateOrUpdate.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.Kusto.v2023_08_15.ClusterPrincipalAssignments; + +internal class CreateOrUpdateOperation : Pandora.Definitions.Operations.PutOperation +{ + public override bool LongRunning() => true; + + public override Type? RequestObject() => typeof(ClusterPrincipalAssignmentModel); + + public override ResourceID? ResourceId() => new PrincipalAssignmentId(); + + public override Type? ResponseObject() => typeof(ClusterPrincipalAssignmentModel); + + +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/ClusterPrincipalAssignments/Operation-Delete.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/ClusterPrincipalAssignments/Operation-Delete.cs new file mode 100644 index 00000000000..5431a361ee7 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/ClusterPrincipalAssignments/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.Kusto.v2023_08_15.ClusterPrincipalAssignments; + +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 PrincipalAssignmentId(); + + +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/ClusterPrincipalAssignments/Operation-Get.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/ClusterPrincipalAssignments/Operation-Get.cs new file mode 100644 index 00000000000..5b38edf2b5c --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/ClusterPrincipalAssignments/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.Kusto.v2023_08_15.ClusterPrincipalAssignments; + +internal class GetOperation : Pandora.Definitions.Operations.GetOperation +{ + public override ResourceID? ResourceId() => new PrincipalAssignmentId(); + + public override Type? ResponseObject() => typeof(ClusterPrincipalAssignmentModel); + + +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/ClusterPrincipalAssignments/Operation-List.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/ClusterPrincipalAssignments/Operation-List.cs new file mode 100644 index 00000000000..c47f737f265 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/ClusterPrincipalAssignments/Operation-List.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.Kusto.v2023_08_15.ClusterPrincipalAssignments; + +internal class ListOperation : Pandora.Definitions.Operations.GetOperation +{ + public override ResourceID? ResourceId() => new ClusterId(); + + public override Type? ResponseObject() => typeof(ClusterPrincipalAssignmentListResultModel); + + public override string? UriSuffix() => "/principalAssignments"; + + +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/ClusterPrincipalAssignments/ResourceId-ClusterId.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/ClusterPrincipalAssignments/ResourceId-ClusterId.cs new file mode 100644 index 00000000000..66ff8c54129 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/ClusterPrincipalAssignments/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.Kusto.v2023_08_15.ClusterPrincipalAssignments; + +internal class ClusterId : ResourceID +{ + public string? CommonAlias => null; + + public string ID => "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/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("staticMicrosoftKusto", "Microsoft.Kusto"), + ResourceIDSegment.Static("staticClusters", "clusters"), + ResourceIDSegment.UserSpecified("clusterName"), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/ClusterPrincipalAssignments/ResourceId-PrincipalAssignmentId.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/ClusterPrincipalAssignments/ResourceId-PrincipalAssignmentId.cs new file mode 100644 index 00000000000..772d2f06fd5 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/ClusterPrincipalAssignments/ResourceId-PrincipalAssignmentId.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.Kusto.v2023_08_15.ClusterPrincipalAssignments; + +internal class PrincipalAssignmentId : ResourceID +{ + public string? CommonAlias => null; + + public string ID => "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/principalAssignments/{principalAssignmentName}"; + + 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("staticMicrosoftKusto", "Microsoft.Kusto"), + ResourceIDSegment.Static("staticClusters", "clusters"), + ResourceIDSegment.UserSpecified("clusterName"), + ResourceIDSegment.Static("staticPrincipalAssignments", "principalAssignments"), + ResourceIDSegment.UserSpecified("principalAssignmentName"), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Constant-AzureScaleType.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Constant-AzureScaleType.cs new file mode 100644 index 00000000000..06ecd157a19 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Constant-AzureScaleType.cs @@ -0,0 +1,17 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.Kusto.v2023_08_15.Clusters; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum AzureScaleTypeConstant +{ + [Description("automatic")] + Automatic, + + [Description("manual")] + Manual, + + [Description("none")] + None, +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Constant-AzureSkuName.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Constant-AzureSkuName.cs new file mode 100644 index 00000000000..c9b32281539 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Constant-AzureSkuName.cs @@ -0,0 +1,200 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.Kusto.v2023_08_15.Clusters; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum AzureSkuNameConstant +{ + [Description("Dev(No SLA)_Standard_D11_v2")] + DevNoSLAStandardDOneOneVTwo, + + [Description("Dev(No SLA)_Standard_E2a_v4")] + DevNoSLAStandardETwoaVFour, + + [Description("Standard_D14_v2")] + StandardDOneFourVTwo, + + [Description("Standard_D11_v2")] + StandardDOneOneVTwo, + + [Description("Standard_D16d_v5")] + StandardDOneSixdVFive, + + [Description("Standard_D13_v2")] + StandardDOneThreeVTwo, + + [Description("Standard_D12_v2")] + StandardDOneTwoVTwo, + + [Description("Standard_DS14_v2+4TB_PS")] + StandardDSOneFourVTwoPositiveFourTBPS, + + [Description("Standard_DS14_v2+3TB_PS")] + StandardDSOneFourVTwoPositiveThreeTBPS, + + [Description("Standard_DS13_v2+1TB_PS")] + StandardDSOneThreeVTwoPositiveOneTBPS, + + [Description("Standard_DS13_v2+2TB_PS")] + StandardDSOneThreeVTwoPositiveTwoTBPS, + + [Description("Standard_D32d_v5")] + StandardDThreeTwodVFive, + + [Description("Standard_D32d_v4")] + StandardDThreeTwodVFour, + + [Description("Standard_EC8ads_v5")] + StandardECEightadsVFive, + + [Description("Standard_EC8as_v5+1TB_PS")] + StandardECEightasVFivePositiveOneTBPS, + + [Description("Standard_EC8as_v5+2TB_PS")] + StandardECEightasVFivePositiveTwoTBPS, + + [Description("Standard_EC16ads_v5")] + StandardECOneSixadsVFive, + + [Description("Standard_EC16as_v5+4TB_PS")] + StandardECOneSixasVFivePositiveFourTBPS, + + [Description("Standard_EC16as_v5+3TB_PS")] + StandardECOneSixasVFivePositiveThreeTBPS, + + [Description("Standard_E80ids_v4")] + StandardEEightZeroidsVFour, + + [Description("Standard_E8a_v4")] + StandardEEightaVFour, + + [Description("Standard_E8ads_v5")] + StandardEEightadsVFive, + + [Description("Standard_E8as_v5+1TB_PS")] + StandardEEightasVFivePositiveOneTBPS, + + [Description("Standard_E8as_v5+2TB_PS")] + StandardEEightasVFivePositiveTwoTBPS, + + [Description("Standard_E8as_v4+1TB_PS")] + StandardEEightasVFourPositiveOneTBPS, + + [Description("Standard_E8as_v4+2TB_PS")] + StandardEEightasVFourPositiveTwoTBPS, + + [Description("Standard_E8d_v5")] + StandardEEightdVFive, + + [Description("Standard_E8d_v4")] + StandardEEightdVFour, + + [Description("Standard_E8s_v5+1TB_PS")] + StandardEEightsVFivePositiveOneTBPS, + + [Description("Standard_E8s_v5+2TB_PS")] + StandardEEightsVFivePositiveTwoTBPS, + + [Description("Standard_E8s_v4+1TB_PS")] + StandardEEightsVFourPositiveOneTBPS, + + [Description("Standard_E8s_v4+2TB_PS")] + StandardEEightsVFourPositiveTwoTBPS, + + [Description("Standard_E4a_v4")] + StandardEFouraVFour, + + [Description("Standard_E4ads_v5")] + StandardEFouradsVFive, + + [Description("Standard_E4d_v5")] + StandardEFourdVFive, + + [Description("Standard_E4d_v4")] + StandardEFourdVFour, + + [Description("Standard_E16a_v4")] + StandardEOneSixaVFour, + + [Description("Standard_E16ads_v5")] + StandardEOneSixadsVFive, + + [Description("Standard_E16as_v5+4TB_PS")] + StandardEOneSixasVFivePositiveFourTBPS, + + [Description("Standard_E16as_v5+3TB_PS")] + StandardEOneSixasVFivePositiveThreeTBPS, + + [Description("Standard_E16as_v4+4TB_PS")] + StandardEOneSixasVFourPositiveFourTBPS, + + [Description("Standard_E16as_v4+3TB_PS")] + StandardEOneSixasVFourPositiveThreeTBPS, + + [Description("Standard_E16d_v5")] + StandardEOneSixdVFive, + + [Description("Standard_E16d_v4")] + StandardEOneSixdVFour, + + [Description("Standard_E16s_v5+4TB_PS")] + StandardEOneSixsVFivePositiveFourTBPS, + + [Description("Standard_E16s_v5+3TB_PS")] + StandardEOneSixsVFivePositiveThreeTBPS, + + [Description("Standard_E16s_v4+4TB_PS")] + StandardEOneSixsVFourPositiveFourTBPS, + + [Description("Standard_E16s_v4+3TB_PS")] + StandardEOneSixsVFourPositiveThreeTBPS, + + [Description("Standard_E64i_v3")] + StandardESixFouriVThree, + + [Description("Standard_E2a_v4")] + StandardETwoaVFour, + + [Description("Standard_E2ads_v5")] + StandardETwoadsVFive, + + [Description("Standard_E2d_v5")] + StandardETwodVFive, + + [Description("Standard_E2d_v4")] + StandardETwodVFour, + + [Description("Standard_L8as_v3")] + StandardLEightasVThree, + + [Description("Standard_L8s")] + StandardLEights, + + [Description("Standard_L8s_v3")] + StandardLEightsVThree, + + [Description("Standard_L8s_v2")] + StandardLEightsVTwo, + + [Description("Standard_L4s")] + StandardLFours, + + [Description("Standard_L16as_v3")] + StandardLOneSixasVThree, + + [Description("Standard_L16s")] + StandardLOneSixs, + + [Description("Standard_L16s_v3")] + StandardLOneSixsVThree, + + [Description("Standard_L16s_v2")] + StandardLOneSixsVTwo, + + [Description("Standard_L32as_v3")] + StandardLThreeTwoasVThree, + + [Description("Standard_L32s_v3")] + StandardLThreeTwosVThree, +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Constant-AzureSkuTier.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Constant-AzureSkuTier.cs new file mode 100644 index 00000000000..b3813261f02 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Constant-AzureSkuTier.cs @@ -0,0 +1,14 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.Kusto.v2023_08_15.Clusters; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum AzureSkuTierConstant +{ + [Description("Basic")] + Basic, + + [Description("Standard")] + Standard, +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Constant-ClusterNetworkAccessFlag.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Constant-ClusterNetworkAccessFlag.cs new file mode 100644 index 00000000000..2fc1757670f --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Constant-ClusterNetworkAccessFlag.cs @@ -0,0 +1,14 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.Kusto.v2023_08_15.Clusters; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum ClusterNetworkAccessFlagConstant +{ + [Description("Disabled")] + Disabled, + + [Description("Enabled")] + Enabled, +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Constant-ClusterType.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Constant-ClusterType.cs new file mode 100644 index 00000000000..1632a2abfbc --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Constant-ClusterType.cs @@ -0,0 +1,11 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.Kusto.v2023_08_15.Clusters; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum ClusterTypeConstant +{ + [Description("Microsoft.Kusto/clusters")] + MicrosoftPointKustoClusters, +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Constant-DatabaseShareOrigin.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Constant-DatabaseShareOrigin.cs new file mode 100644 index 00000000000..c3068d72791 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Constant-DatabaseShareOrigin.cs @@ -0,0 +1,17 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.Kusto.v2023_08_15.Clusters; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum DatabaseShareOriginConstant +{ + [Description("DataShare")] + DataShare, + + [Description("Direct")] + Direct, + + [Description("Other")] + Other, +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Constant-EngineType.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Constant-EngineType.cs new file mode 100644 index 00000000000..fb647387545 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Constant-EngineType.cs @@ -0,0 +1,14 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.Kusto.v2023_08_15.Clusters; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum EngineTypeConstant +{ + [Description("V3")] + VThree, + + [Description("V2")] + VTwo, +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Constant-LanguageExtensionImageName.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Constant-LanguageExtensionImageName.cs new file mode 100644 index 00000000000..8795ca595d3 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Constant-LanguageExtensionImageName.cs @@ -0,0 +1,23 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.Kusto.v2023_08_15.Clusters; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum LanguageExtensionImageNameConstant +{ + [Description("PythonCustomImage")] + PythonCustomImage, + + [Description("Python3_10_8")] + PythonThreeOneZeroEight, + + [Description("Python3_10_8_DL")] + PythonThreeOneZeroEightDL, + + [Description("Python3_6_5")] + PythonThreeSixFive, + + [Description("R")] + R, +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Constant-LanguageExtensionName.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Constant-LanguageExtensionName.cs new file mode 100644 index 00000000000..91e801d52f5 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Constant-LanguageExtensionName.cs @@ -0,0 +1,14 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.Kusto.v2023_08_15.Clusters; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum LanguageExtensionNameConstant +{ + [Description("PYTHON")] + PYTHON, + + [Description("R")] + R, +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Constant-MigrationClusterRole.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Constant-MigrationClusterRole.cs new file mode 100644 index 00000000000..1922f61e30e --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Constant-MigrationClusterRole.cs @@ -0,0 +1,14 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.Kusto.v2023_08_15.Clusters; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum MigrationClusterRoleConstant +{ + [Description("Destination")] + Destination, + + [Description("Source")] + Source, +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Constant-ProvisioningState.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Constant-ProvisioningState.cs new file mode 100644 index 00000000000..23aaa8059e7 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Constant-ProvisioningState.cs @@ -0,0 +1,29 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.Kusto.v2023_08_15.Clusters; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum ProvisioningStateConstant +{ + [Description("Canceled")] + Canceled, + + [Description("Creating")] + Creating, + + [Description("Deleting")] + Deleting, + + [Description("Failed")] + Failed, + + [Description("Moving")] + Moving, + + [Description("Running")] + Running, + + [Description("Succeeded")] + Succeeded, +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Constant-PublicIPType.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Constant-PublicIPType.cs new file mode 100644 index 00000000000..92614d0d0ea --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Constant-PublicIPType.cs @@ -0,0 +1,14 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.Kusto.v2023_08_15.Clusters; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum PublicIPTypeConstant +{ + [Description("DualStack")] + DualStack, + + [Description("IPv4")] + IPvFour, +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Constant-PublicNetworkAccess.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Constant-PublicNetworkAccess.cs new file mode 100644 index 00000000000..c4ee6a4b20d --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Constant-PublicNetworkAccess.cs @@ -0,0 +1,14 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.Kusto.v2023_08_15.Clusters; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum PublicNetworkAccessConstant +{ + [Description("Disabled")] + Disabled, + + [Description("Enabled")] + Enabled, +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Constant-Reason.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Constant-Reason.cs new file mode 100644 index 00000000000..3489dbbc151 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Constant-Reason.cs @@ -0,0 +1,14 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.Kusto.v2023_08_15.Clusters; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum ReasonConstant +{ + [Description("AlreadyExists")] + AlreadyExists, + + [Description("Invalid")] + Invalid, +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Constant-State.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Constant-State.cs new file mode 100644 index 00000000000..7c3e4d7159c --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Constant-State.cs @@ -0,0 +1,38 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.Kusto.v2023_08_15.Clusters; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum StateConstant +{ + [Description("Creating")] + Creating, + + [Description("Deleted")] + Deleted, + + [Description("Deleting")] + Deleting, + + [Description("Migrated")] + Migrated, + + [Description("Running")] + Running, + + [Description("Starting")] + Starting, + + [Description("Stopped")] + Stopped, + + [Description("Stopping")] + Stopping, + + [Description("Unavailable")] + Unavailable, + + [Description("Updating")] + Updating, +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Constant-VnetState.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Constant-VnetState.cs new file mode 100644 index 00000000000..d571b3c5cc4 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Constant-VnetState.cs @@ -0,0 +1,14 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.Kusto.v2023_08_15.Clusters; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum VnetStateConstant +{ + [Description("Disabled")] + Disabled, + + [Description("Enabled")] + Enabled, +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Definition.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Definition.cs new file mode 100644 index 00000000000..ae3fdf6bf56 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Definition.cs @@ -0,0 +1,83 @@ +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.Kusto.v2023_08_15.Clusters; + +internal class Definition : ResourceDefinition +{ + public string Name => "Clusters"; + public IEnumerable Operations => new List + { + new AddLanguageExtensionsOperation(), + new CheckNameAvailabilityOperation(), + new CreateOrUpdateOperation(), + new DeleteOperation(), + new DetachFollowerDatabasesOperation(), + new DiagnoseVirtualNetworkOperation(), + new GetOperation(), + new ListOperation(), + new ListByResourceGroupOperation(), + new ListFollowerDatabasesOperation(), + new ListLanguageExtensionsOperation(), + new ListSkusByResourceOperation(), + new MigrateOperation(), + new RemoveLanguageExtensionsOperation(), + new StartOperation(), + new StopOperation(), + new UpdateOperation(), + }; + public IEnumerable Constants => new List + { + typeof(AzureScaleTypeConstant), + typeof(AzureSkuNameConstant), + typeof(AzureSkuTierConstant), + typeof(ClusterNetworkAccessFlagConstant), + typeof(ClusterTypeConstant), + typeof(DatabaseShareOriginConstant), + typeof(EngineTypeConstant), + typeof(LanguageExtensionImageNameConstant), + typeof(LanguageExtensionNameConstant), + typeof(MigrationClusterRoleConstant), + typeof(ProvisioningStateConstant), + typeof(PublicIPTypeConstant), + typeof(PublicNetworkAccessConstant), + typeof(ReasonConstant), + typeof(StateConstant), + typeof(VnetStateConstant), + }; + public IEnumerable Models => new List + { + typeof(AcceptedAudiencesModel), + typeof(AzureCapacityModel), + typeof(AzureResourceSkuModel), + typeof(AzureSkuModel), + typeof(CheckNameResultModel), + typeof(ClusterModel), + typeof(ClusterCheckNameRequestModel), + typeof(ClusterListResultModel), + typeof(ClusterMigrateRequestModel), + typeof(ClusterPropertiesModel), + typeof(ClusterUpdateModel), + typeof(DiagnoseVirtualNetworkResultModel), + typeof(FollowerDatabaseDefinitionModel), + typeof(FollowerDatabaseListResultModel), + typeof(KeyVaultPropertiesModel), + typeof(LanguageExtensionModel), + typeof(LanguageExtensionsListModel), + typeof(ListResourceSkusResultModel), + typeof(MigrationClusterPropertiesModel), + typeof(OptimizedAutoscaleModel), + typeof(PrivateEndpointConnectionModel), + typeof(PrivateEndpointConnectionPropertiesModel), + typeof(PrivateEndpointPropertyModel), + typeof(PrivateLinkServiceConnectionStatePropertyModel), + typeof(TableLevelSharingPropertiesModel), + typeof(TrustedExternalTenantModel), + typeof(VirtualNetworkConfigurationModel), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Model-AcceptedAudiences.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Model-AcceptedAudiences.cs new file mode 100644 index 00000000000..e835f9462d4 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Model-AcceptedAudiences.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.Kusto.v2023_08_15.Clusters; + + +internal class AcceptedAudiencesModel +{ + [JsonPropertyName("value")] + public string? Value { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Model-AzureCapacity.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Model-AzureCapacity.cs new file mode 100644 index 00000000000..b4a33565e5a --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Model-AzureCapacity.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.Kusto.v2023_08_15.Clusters; + + +internal class AzureCapacityModel +{ + [JsonPropertyName("default")] + [Required] + public int Default { get; set; } + + [JsonPropertyName("maximum")] + [Required] + public int Maximum { get; set; } + + [JsonPropertyName("minimum")] + [Required] + public int Minimum { get; set; } + + [JsonPropertyName("scaleType")] + [Required] + public AzureScaleTypeConstant ScaleType { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Model-AzureResourceSku.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Model-AzureResourceSku.cs new file mode 100644 index 00000000000..524fb6259e6 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Model-AzureResourceSku.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.Kusto.v2023_08_15.Clusters; + + +internal class AzureResourceSkuModel +{ + [JsonPropertyName("capacity")] + public AzureCapacityModel? Capacity { get; set; } + + [JsonPropertyName("resourceType")] + public string? ResourceType { get; set; } + + [JsonPropertyName("sku")] + public AzureSkuModel? Sku { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Model-AzureSku.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Model-AzureSku.cs new file mode 100644 index 00000000000..375f01f2b22 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Model-AzureSku.cs @@ -0,0 +1,28 @@ +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.Kusto.v2023_08_15.Clusters; + + +internal class AzureSkuModel +{ + [JsonPropertyName("capacity")] + public int? Capacity { get; set; } + + [JsonPropertyName("name")] + [Required] + public AzureSkuNameConstant Name { get; set; } + + [JsonPropertyName("tier")] + [Required] + public AzureSkuTierConstant Tier { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Model-CheckNameResult.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Model-CheckNameResult.cs new file mode 100644 index 00000000000..3916b32bac6 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Model-CheckNameResult.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.Kusto.v2023_08_15.Clusters; + + +internal class CheckNameResultModel +{ + [JsonPropertyName("message")] + public string? Message { get; set; } + + [JsonPropertyName("name")] + public string? Name { get; set; } + + [JsonPropertyName("nameAvailable")] + public bool? NameAvailable { get; set; } + + [JsonPropertyName("reason")] + public ReasonConstant? Reason { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Model-Cluster.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Model-Cluster.cs new file mode 100644 index 00000000000..250f709f6ae --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Model-Cluster.cs @@ -0,0 +1,52 @@ +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.Kusto.v2023_08_15.Clusters; + + +internal class ClusterModel +{ + [JsonPropertyName("etag")] + public string? Etag { get; set; } + + [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("sku")] + [Required] + public AzureSkuModel Sku { get; set; } + + [JsonPropertyName("systemData")] + public CustomTypes.SystemData? SystemData { get; set; } + + [JsonPropertyName("tags")] + public CustomTypes.Tags? Tags { get; set; } + + [JsonPropertyName("type")] + public string? Type { get; set; } + + [JsonPropertyName("zones")] + public CustomTypes.Zones? Zones { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Model-ClusterCheckNameRequest.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Model-ClusterCheckNameRequest.cs new file mode 100644 index 00000000000..f52ce1a5018 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Model-ClusterCheckNameRequest.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.Kusto.v2023_08_15.Clusters; + + +internal class ClusterCheckNameRequestModel +{ + [JsonPropertyName("name")] + [Required] + public string Name { get; set; } + + [JsonPropertyName("type")] + [Required] + public ClusterTypeConstant Type { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Model-ClusterListResult.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Model-ClusterListResult.cs new file mode 100644 index 00000000000..df820d93ebd --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Model-ClusterListResult.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.Kusto.v2023_08_15.Clusters; + + +internal class ClusterListResultModel +{ + [JsonPropertyName("value")] + public List? Value { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Model-ClusterMigrateRequest.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Model-ClusterMigrateRequest.cs new file mode 100644 index 00000000000..0f235a033e9 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Model-ClusterMigrateRequest.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.Kusto.v2023_08_15.Clusters; + + +internal class ClusterMigrateRequestModel +{ + [JsonPropertyName("clusterResourceId")] + [Required] + public string ClusterResourceId { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Model-ClusterProperties.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Model-ClusterProperties.cs new file mode 100644 index 00000000000..9c65b1b559b --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Model-ClusterProperties.cs @@ -0,0 +1,92 @@ +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.Kusto.v2023_08_15.Clusters; + + +internal class ClusterPropertiesModel +{ + [JsonPropertyName("acceptedAudiences")] + public List? AcceptedAudiences { get; set; } + + [JsonPropertyName("allowedFqdnList")] + public List? AllowedFqdnList { get; set; } + + [JsonPropertyName("allowedIpRangeList")] + public List? AllowedIPRangeList { get; set; } + + [JsonPropertyName("dataIngestionUri")] + public string? DataIngestionUri { get; set; } + + [JsonPropertyName("enableAutoStop")] + public bool? EnableAutoStop { get; set; } + + [JsonPropertyName("enableDiskEncryption")] + public bool? EnableDiskEncryption { get; set; } + + [JsonPropertyName("enableDoubleEncryption")] + public bool? EnableDoubleEncryption { get; set; } + + [JsonPropertyName("enablePurge")] + public bool? EnablePurge { get; set; } + + [JsonPropertyName("enableStreamingIngest")] + public bool? EnableStreamingIngest { get; set; } + + [JsonPropertyName("engineType")] + public EngineTypeConstant? EngineType { get; set; } + + [JsonPropertyName("keyVaultProperties")] + public KeyVaultPropertiesModel? KeyVaultProperties { get; set; } + + [JsonPropertyName("languageExtensions")] + public LanguageExtensionsListModel? LanguageExtensions { get; set; } + + [JsonPropertyName("migrationCluster")] + public MigrationClusterPropertiesModel? MigrationCluster { get; set; } + + [JsonPropertyName("optimizedAutoscale")] + public OptimizedAutoscaleModel? OptimizedAutoscale { get; set; } + + [JsonPropertyName("privateEndpointConnections")] + public List? PrivateEndpointConnections { get; set; } + + [JsonPropertyName("provisioningState")] + public ProvisioningStateConstant? ProvisioningState { get; set; } + + [JsonPropertyName("publicIPType")] + public PublicIPTypeConstant? PublicIPType { get; set; } + + [JsonPropertyName("publicNetworkAccess")] + public PublicNetworkAccessConstant? PublicNetworkAccess { get; set; } + + [JsonPropertyName("restrictOutboundNetworkAccess")] + public ClusterNetworkAccessFlagConstant? RestrictOutboundNetworkAccess { get; set; } + + [JsonPropertyName("state")] + public StateConstant? State { get; set; } + + [JsonPropertyName("stateReason")] + public string? StateReason { get; set; } + + [JsonPropertyName("trustedExternalTenants")] + public List? TrustedExternalTenants { get; set; } + + [JsonPropertyName("uri")] + public string? Uri { get; set; } + + [JsonPropertyName("virtualClusterGraduationProperties")] + public string? VirtualClusterGraduationProperties { get; set; } + + [JsonPropertyName("virtualNetworkConfiguration")] + public VirtualNetworkConfigurationModel? VirtualNetworkConfiguration { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Model-ClusterUpdate.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Model-ClusterUpdate.cs new file mode 100644 index 00000000000..2bda6ec7bd8 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Model-ClusterUpdate.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.Kusto.v2023_08_15.Clusters; + + +internal class ClusterUpdateModel +{ + [JsonPropertyName("id")] + public string? Id { get; set; } + + [JsonPropertyName("identity")] + public CustomTypes.SystemAndUserAssignedIdentityMap? Identity { get; set; } + + [JsonPropertyName("location")] + public CustomTypes.Location? Location { get; set; } + + [JsonPropertyName("name")] + public string? Name { get; set; } + + [JsonPropertyName("properties")] + public ClusterPropertiesModel? Properties { get; set; } + + [JsonPropertyName("sku")] + public AzureSkuModel? Sku { get; set; } + + [JsonPropertyName("tags")] + public CustomTypes.Tags? Tags { get; set; } + + [JsonPropertyName("type")] + public string? Type { get; set; } + + [JsonPropertyName("zones")] + public CustomTypes.Zones? Zones { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Model-DiagnoseVirtualNetworkResult.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Model-DiagnoseVirtualNetworkResult.cs new file mode 100644 index 00000000000..9994ec2ed15 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Model-DiagnoseVirtualNetworkResult.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.Kusto.v2023_08_15.Clusters; + + +internal class DiagnoseVirtualNetworkResultModel +{ + [JsonPropertyName("findings")] + public List? Findings { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Model-FollowerDatabaseDefinition.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Model-FollowerDatabaseDefinition.cs new file mode 100644 index 00000000000..35d565fc767 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Model-FollowerDatabaseDefinition.cs @@ -0,0 +1,34 @@ +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.Kusto.v2023_08_15.Clusters; + + +internal class FollowerDatabaseDefinitionModel +{ + [JsonPropertyName("attachedDatabaseConfigurationName")] + [Required] + public string AttachedDatabaseConfigurationName { get; set; } + + [JsonPropertyName("clusterResourceId")] + [Required] + public string ClusterResourceId { get; set; } + + [JsonPropertyName("databaseName")] + public string? DatabaseName { get; set; } + + [JsonPropertyName("databaseShareOrigin")] + public DatabaseShareOriginConstant? DatabaseShareOrigin { get; set; } + + [JsonPropertyName("tableLevelSharingProperties")] + public TableLevelSharingPropertiesModel? TableLevelSharingProperties { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Model-FollowerDatabaseListResult.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Model-FollowerDatabaseListResult.cs new file mode 100644 index 00000000000..86522b0e00e --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Model-FollowerDatabaseListResult.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.Kusto.v2023_08_15.Clusters; + + +internal class FollowerDatabaseListResultModel +{ + [JsonPropertyName("value")] + public List? Value { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Model-KeyVaultProperties.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Model-KeyVaultProperties.cs new file mode 100644 index 00000000000..834a22624ef --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Model-KeyVaultProperties.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.Kusto.v2023_08_15.Clusters; + + +internal class KeyVaultPropertiesModel +{ + [JsonPropertyName("keyName")] + public string? KeyName { get; set; } + + [JsonPropertyName("keyVaultUri")] + public string? KeyVaultUri { get; set; } + + [JsonPropertyName("keyVersion")] + public string? KeyVersion { get; set; } + + [JsonPropertyName("userIdentity")] + public string? UserIdentity { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Model-LanguageExtension.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Model-LanguageExtension.cs new file mode 100644 index 00000000000..553148ae741 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Model-LanguageExtension.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.Kusto.v2023_08_15.Clusters; + + +internal class LanguageExtensionModel +{ + [JsonPropertyName("languageExtensionCustomImageName")] + public string? LanguageExtensionCustomImageName { get; set; } + + [JsonPropertyName("languageExtensionImageName")] + public LanguageExtensionImageNameConstant? LanguageExtensionImageName { get; set; } + + [JsonPropertyName("languageExtensionName")] + public LanguageExtensionNameConstant? LanguageExtensionName { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Model-LanguageExtensionsList.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Model-LanguageExtensionsList.cs new file mode 100644 index 00000000000..dc1cee0554a --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Model-LanguageExtensionsList.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.Kusto.v2023_08_15.Clusters; + + +internal class LanguageExtensionsListModel +{ + [JsonPropertyName("value")] + public List? Value { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Model-ListResourceSkusResult.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Model-ListResourceSkusResult.cs new file mode 100644 index 00000000000..51703a25f61 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Model-ListResourceSkusResult.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.Kusto.v2023_08_15.Clusters; + + +internal class ListResourceSkusResultModel +{ + [JsonPropertyName("value")] + public List? Value { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Model-MigrationClusterProperties.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Model-MigrationClusterProperties.cs new file mode 100644 index 00000000000..ab6ee9606cc --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Model-MigrationClusterProperties.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.Kusto.v2023_08_15.Clusters; + + +internal class MigrationClusterPropertiesModel +{ + [JsonPropertyName("dataIngestionUri")] + public string? DataIngestionUri { get; set; } + + [JsonPropertyName("id")] + public string? Id { get; set; } + + [JsonPropertyName("role")] + public MigrationClusterRoleConstant? Role { get; set; } + + [JsonPropertyName("uri")] + public string? Uri { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Model-OptimizedAutoscale.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Model-OptimizedAutoscale.cs new file mode 100644 index 00000000000..8922d4063ff --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Model-OptimizedAutoscale.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.Kusto.v2023_08_15.Clusters; + + +internal class OptimizedAutoscaleModel +{ + [JsonPropertyName("isEnabled")] + [Required] + public bool IsEnabled { get; set; } + + [JsonPropertyName("maximum")] + [Required] + public int Maximum { get; set; } + + [JsonPropertyName("minimum")] + [Required] + public int Minimum { get; set; } + + [JsonPropertyName("version")] + [Required] + public int Version { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Model-PrivateEndpointConnection.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Model-PrivateEndpointConnection.cs new file mode 100644 index 00000000000..acf75ef9909 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Model-PrivateEndpointConnection.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.Kusto.v2023_08_15.Clusters; + + +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("systemData")] + public CustomTypes.SystemData? SystemData { get; set; } + + [JsonPropertyName("type")] + public string? Type { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Model-PrivateEndpointConnectionProperties.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Model-PrivateEndpointConnectionProperties.cs new file mode 100644 index 00000000000..a8b987e114c --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Model-PrivateEndpointConnectionProperties.cs @@ -0,0 +1,30 @@ +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.Kusto.v2023_08_15.Clusters; + + +internal class PrivateEndpointConnectionPropertiesModel +{ + [JsonPropertyName("groupId")] + public string? GroupId { get; set; } + + [JsonPropertyName("privateEndpoint")] + public PrivateEndpointPropertyModel? PrivateEndpoint { get; set; } + + [JsonPropertyName("privateLinkServiceConnectionState")] + [Required] + public PrivateLinkServiceConnectionStatePropertyModel PrivateLinkServiceConnectionState { get; set; } + + [JsonPropertyName("provisioningState")] + public string? ProvisioningState { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Model-PrivateEndpointProperty.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Model-PrivateEndpointProperty.cs new file mode 100644 index 00000000000..a5e8da81148 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Model-PrivateEndpointProperty.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.Kusto.v2023_08_15.Clusters; + + +internal class PrivateEndpointPropertyModel +{ + [JsonPropertyName("id")] + public string? Id { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Model-PrivateLinkServiceConnectionStateProperty.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Model-PrivateLinkServiceConnectionStateProperty.cs new file mode 100644 index 00000000000..d0ac47e9f36 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Model-PrivateLinkServiceConnectionStateProperty.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.Kusto.v2023_08_15.Clusters; + + +internal class PrivateLinkServiceConnectionStatePropertyModel +{ + [JsonPropertyName("actionsRequired")] + public string? ActionsRequired { get; set; } + + [JsonPropertyName("description")] + public string? Description { get; set; } + + [JsonPropertyName("status")] + public string? Status { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Model-TableLevelSharingProperties.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Model-TableLevelSharingProperties.cs new file mode 100644 index 00000000000..be9b131bddc --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Model-TableLevelSharingProperties.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.Kusto.v2023_08_15.Clusters; + + +internal class TableLevelSharingPropertiesModel +{ + [JsonPropertyName("externalTablesToExclude")] + public List? ExternalTablesToExclude { get; set; } + + [JsonPropertyName("externalTablesToInclude")] + public List? ExternalTablesToInclude { get; set; } + + [JsonPropertyName("functionsToExclude")] + public List? FunctionsToExclude { get; set; } + + [JsonPropertyName("functionsToInclude")] + public List? FunctionsToInclude { get; set; } + + [JsonPropertyName("materializedViewsToExclude")] + public List? MaterializedViewsToExclude { get; set; } + + [JsonPropertyName("materializedViewsToInclude")] + public List? MaterializedViewsToInclude { get; set; } + + [JsonPropertyName("tablesToExclude")] + public List? TablesToExclude { get; set; } + + [JsonPropertyName("tablesToInclude")] + public List? TablesToInclude { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Model-TrustedExternalTenant.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Model-TrustedExternalTenant.cs new file mode 100644 index 00000000000..c59f18a6131 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Model-TrustedExternalTenant.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.Kusto.v2023_08_15.Clusters; + + +internal class TrustedExternalTenantModel +{ + [JsonPropertyName("value")] + public string? Value { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Model-VirtualNetworkConfiguration.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Model-VirtualNetworkConfiguration.cs new file mode 100644 index 00000000000..a965e8a5cdf --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Model-VirtualNetworkConfiguration.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.Kusto.v2023_08_15.Clusters; + + +internal class VirtualNetworkConfigurationModel +{ + [JsonPropertyName("dataManagementPublicIpId")] + [Required] + public string DataManagementPublicIPId { get; set; } + + [JsonPropertyName("enginePublicIpId")] + [Required] + public string EnginePublicIPId { get; set; } + + [JsonPropertyName("state")] + public VnetStateConstant? State { get; set; } + + [JsonPropertyName("subnetId")] + [Required] + public string SubnetId { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Operation-AddLanguageExtensions.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Operation-AddLanguageExtensions.cs new file mode 100644 index 00000000000..0f43ef7cd8c --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Operation-AddLanguageExtensions.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.Kusto.v2023_08_15.Clusters; + +internal class AddLanguageExtensionsOperation : Pandora.Definitions.Operations.PostOperation +{ + public override IEnumerable ExpectedStatusCodes() => new List + { + HttpStatusCode.Accepted, + HttpStatusCode.OK, + }; + + public override bool LongRunning() => true; + + public override Type? RequestObject() => typeof(LanguageExtensionsListModel); + + public override ResourceID? ResourceId() => new ClusterId(); + + public override string? UriSuffix() => "/addLanguageExtensions"; + + +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Operation-CheckNameAvailability.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Operation-CheckNameAvailability.cs new file mode 100644 index 00000000000..8ec9d2e8398 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Operation-CheckNameAvailability.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.Kusto.v2023_08_15.Clusters; + +internal class CheckNameAvailabilityOperation : Pandora.Definitions.Operations.PostOperation +{ + public override IEnumerable ExpectedStatusCodes() => new List + { + HttpStatusCode.OK, + }; + + public override Type? RequestObject() => typeof(ClusterCheckNameRequestModel); + + public override ResourceID? ResourceId() => new LocationId(); + + public override Type? ResponseObject() => typeof(CheckNameResultModel); + + public override string? UriSuffix() => "/checkNameAvailability"; + + +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Operation-CreateOrUpdate.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Operation-CreateOrUpdate.cs new file mode 100644 index 00000000000..84d97b6af75 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Operation-CreateOrUpdate.cs @@ -0,0 +1,37 @@ +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.Kusto.v2023_08_15.Clusters; + +internal class CreateOrUpdateOperation : Pandora.Definitions.Operations.PutOperation +{ + public override bool LongRunning() => true; + + public override Type? RequestObject() => typeof(ClusterModel); + + public override ResourceID? ResourceId() => new ClusterId(); + + public override Type? ResponseObject() => typeof(ClusterModel); + + public override Type? OptionsObject() => typeof(CreateOrUpdateOperation.CreateOrUpdateOptions); + + internal class CreateOrUpdateOptions + { + [HeaderName("If-Match")] + [Optional] + public string IfMatch { get; set; } + + [HeaderName("If-None-Match")] + [Optional] + public string IfNoneMatch { get; set; } + } +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Operation-Delete.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Operation-Delete.cs new file mode 100644 index 00000000000..a8c57dee466 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/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.Kusto.v2023_08_15.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/Kusto/v2023_08_15/Clusters/Operation-DetachFollowerDatabases.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Operation-DetachFollowerDatabases.cs new file mode 100644 index 00000000000..f4cbbaad55e --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Operation-DetachFollowerDatabases.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.Kusto.v2023_08_15.Clusters; + +internal class DetachFollowerDatabasesOperation : Pandora.Definitions.Operations.PostOperation +{ + public override IEnumerable ExpectedStatusCodes() => new List + { + HttpStatusCode.Accepted, + HttpStatusCode.OK, + }; + + public override bool LongRunning() => true; + + public override Type? RequestObject() => typeof(FollowerDatabaseDefinitionModel); + + public override ResourceID? ResourceId() => new ClusterId(); + + public override string? UriSuffix() => "/detachFollowerDatabases"; + + +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Operation-DiagnoseVirtualNetwork.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Operation-DiagnoseVirtualNetwork.cs new file mode 100644 index 00000000000..411cd1795d9 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Operation-DiagnoseVirtualNetwork.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.Kusto.v2023_08_15.Clusters; + +internal class DiagnoseVirtualNetworkOperation : 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(DiagnoseVirtualNetworkResultModel); + + public override string? UriSuffix() => "/diagnoseVirtualNetwork"; + + +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Operation-Get.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Operation-Get.cs new file mode 100644 index 00000000000..f584a24c099 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/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.Kusto.v2023_08_15.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/Kusto/v2023_08_15/Clusters/Operation-List.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Operation-List.cs new file mode 100644 index 00000000000..1572a9fd893 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Operation-List.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.Kusto.v2023_08_15.Clusters; + +internal class ListOperation : Pandora.Definitions.Operations.GetOperation +{ + public override ResourceID? ResourceId() => new SubscriptionId(); + + public override Type? ResponseObject() => typeof(ClusterListResultModel); + + public override string? UriSuffix() => "/providers/Microsoft.Kusto/clusters"; + + +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Operation-ListByResourceGroup.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Operation-ListByResourceGroup.cs new file mode 100644 index 00000000000..07b814177c9 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Operation-ListByResourceGroup.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.Kusto.v2023_08_15.Clusters; + +internal class ListByResourceGroupOperation : Pandora.Definitions.Operations.GetOperation +{ + public override ResourceID? ResourceId() => new ResourceGroupId(); + + public override Type? ResponseObject() => typeof(ClusterListResultModel); + + public override string? UriSuffix() => "/providers/Microsoft.Kusto/clusters"; + + +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Operation-ListFollowerDatabases.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Operation-ListFollowerDatabases.cs new file mode 100644 index 00000000000..80f7eb57cf1 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Operation-ListFollowerDatabases.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.Kusto.v2023_08_15.Clusters; + +internal class ListFollowerDatabasesOperation : Pandora.Definitions.Operations.PostOperation +{ + public override IEnumerable ExpectedStatusCodes() => new List + { + HttpStatusCode.OK, + }; + + public override Type? RequestObject() => null; + + public override ResourceID? ResourceId() => new ClusterId(); + + public override Type? ResponseObject() => typeof(FollowerDatabaseListResultModel); + + public override string? UriSuffix() => "/listFollowerDatabases"; + + +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Operation-ListLanguageExtensions.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Operation-ListLanguageExtensions.cs new file mode 100644 index 00000000000..b6a094a2b58 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Operation-ListLanguageExtensions.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.Kusto.v2023_08_15.Clusters; + +internal class ListLanguageExtensionsOperation : Pandora.Definitions.Operations.PostOperation +{ + public override IEnumerable ExpectedStatusCodes() => new List + { + HttpStatusCode.OK, + }; + + public override Type? RequestObject() => null; + + public override ResourceID? ResourceId() => new ClusterId(); + + public override Type? ResponseObject() => typeof(LanguageExtensionsListModel); + + public override string? UriSuffix() => "/listLanguageExtensions"; + + +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Operation-ListSkusByResource.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Operation-ListSkusByResource.cs new file mode 100644 index 00000000000..09df8631512 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Operation-ListSkusByResource.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.Kusto.v2023_08_15.Clusters; + +internal class ListSkusByResourceOperation : Pandora.Definitions.Operations.GetOperation +{ + public override ResourceID? ResourceId() => new ClusterId(); + + public override Type? ResponseObject() => typeof(ListResourceSkusResultModel); + + public override string? UriSuffix() => "/skus"; + + +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Operation-Migrate.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Operation-Migrate.cs new file mode 100644 index 00000000000..b29dcccc96e --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Operation-Migrate.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.Kusto.v2023_08_15.Clusters; + +internal class MigrateOperation : Pandora.Definitions.Operations.PostOperation +{ + public override IEnumerable ExpectedStatusCodes() => new List + { + HttpStatusCode.Accepted, + HttpStatusCode.OK, + }; + + public override bool LongRunning() => true; + + public override Type? RequestObject() => typeof(ClusterMigrateRequestModel); + + public override ResourceID? ResourceId() => new ClusterId(); + + public override string? UriSuffix() => "/migrate"; + + +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Operation-RemoveLanguageExtensions.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Operation-RemoveLanguageExtensions.cs new file mode 100644 index 00000000000..4c76b57a18d --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Operation-RemoveLanguageExtensions.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.Kusto.v2023_08_15.Clusters; + +internal class RemoveLanguageExtensionsOperation : Pandora.Definitions.Operations.PostOperation +{ + public override IEnumerable ExpectedStatusCodes() => new List + { + HttpStatusCode.Accepted, + HttpStatusCode.OK, + }; + + public override bool LongRunning() => true; + + public override Type? RequestObject() => typeof(LanguageExtensionsListModel); + + public override ResourceID? ResourceId() => new ClusterId(); + + public override string? UriSuffix() => "/removeLanguageExtensions"; + + +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Operation-Start.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Operation-Start.cs new file mode 100644 index 00000000000..b70c453c8a4 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Operation-Start.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.Kusto.v2023_08_15.Clusters; + +internal class StartOperation : 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 string? UriSuffix() => "/start"; + + +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Operation-Stop.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Operation-Stop.cs new file mode 100644 index 00000000000..d6d958ee94e --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Operation-Stop.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.Kusto.v2023_08_15.Clusters; + +internal class StopOperation : 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 string? UriSuffix() => "/stop"; + + +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Operation-Update.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Operation-Update.cs new file mode 100644 index 00000000000..1a52a4de590 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/Operation-Update.cs @@ -0,0 +1,40 @@ +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.Kusto.v2023_08_15.Clusters; + +internal class UpdateOperation : Pandora.Definitions.Operations.PatchOperation +{ + public override IEnumerable ExpectedStatusCodes() => new List + { + HttpStatusCode.Accepted, + HttpStatusCode.Created, + HttpStatusCode.OK, + }; + + public override bool LongRunning() => true; + + public override Type? RequestObject() => typeof(ClusterUpdateModel); + + public override ResourceID? ResourceId() => new ClusterId(); + + public override Type? ResponseObject() => typeof(ClusterModel); + + public override Type? OptionsObject() => typeof(UpdateOperation.UpdateOptions); + + internal class UpdateOptions + { + [HeaderName("If-Match")] + [Optional] + public string IfMatch { get; set; } + } +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/ResourceId-ClusterId.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/ResourceId-ClusterId.cs new file mode 100644 index 00000000000..b42045451af --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/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.Kusto.v2023_08_15.Clusters; + +internal class ClusterId : ResourceID +{ + public string? CommonAlias => null; + + public string ID => "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/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("staticMicrosoftKusto", "Microsoft.Kusto"), + ResourceIDSegment.Static("staticClusters", "clusters"), + ResourceIDSegment.UserSpecified("clusterName"), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/ResourceId-LocationId.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/ResourceId-LocationId.cs new file mode 100644 index 00000000000..4b09c68b83f --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/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.Kusto.v2023_08_15.Clusters; + +internal class LocationId : ResourceID +{ + public string? CommonAlias => null; + + public string ID => "/subscriptions/{subscriptionId}/providers/Microsoft.Kusto/locations/{locationName}"; + + public List Segments => new List + { + ResourceIDSegment.Static("staticSubscriptions", "subscriptions"), + ResourceIDSegment.SubscriptionId("subscriptionId"), + ResourceIDSegment.Static("staticProviders", "providers"), + ResourceIDSegment.ResourceProvider("staticMicrosoftKusto", "Microsoft.Kusto"), + ResourceIDSegment.Static("staticLocations", "locations"), + ResourceIDSegment.UserSpecified("locationName"), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/ResourceId-ResourceGroupId.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/ResourceId-ResourceGroupId.cs new file mode 100644 index 00000000000..864bd73ec8f --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/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.Kusto.v2023_08_15.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/Kusto/v2023_08_15/Clusters/ResourceId-SubscriptionId.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Clusters/ResourceId-SubscriptionId.cs new file mode 100644 index 00000000000..721a5ab3e19 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/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.Kusto.v2023_08_15.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/Kusto/v2023_08_15/DataConnections/Constant-BlobStorageEventType.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DataConnections/Constant-BlobStorageEventType.cs new file mode 100644 index 00000000000..f1d65006cb7 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DataConnections/Constant-BlobStorageEventType.cs @@ -0,0 +1,14 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.Kusto.v2023_08_15.DataConnections; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum BlobStorageEventTypeConstant +{ + [Description("Microsoft.Storage.BlobCreated")] + MicrosoftPointStoragePointBlobCreated, + + [Description("Microsoft.Storage.BlobRenamed")] + MicrosoftPointStoragePointBlobRenamed, +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DataConnections/Constant-Compression.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DataConnections/Constant-Compression.cs new file mode 100644 index 00000000000..903e267cab5 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DataConnections/Constant-Compression.cs @@ -0,0 +1,14 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.Kusto.v2023_08_15.DataConnections; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum CompressionConstant +{ + [Description("GZip")] + GZip, + + [Description("None")] + None, +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DataConnections/Constant-DataConnectionKind.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DataConnections/Constant-DataConnectionKind.cs new file mode 100644 index 00000000000..82669481fbf --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DataConnections/Constant-DataConnectionKind.cs @@ -0,0 +1,20 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.Kusto.v2023_08_15.DataConnections; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum DataConnectionKindConstant +{ + [Description("CosmosDb")] + CosmosDb, + + [Description("EventGrid")] + EventGrid, + + [Description("EventHub")] + EventHub, + + [Description("IotHub")] + IotHub, +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DataConnections/Constant-DataConnectionType.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DataConnections/Constant-DataConnectionType.cs new file mode 100644 index 00000000000..3cbd07abad8 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DataConnections/Constant-DataConnectionType.cs @@ -0,0 +1,11 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.Kusto.v2023_08_15.DataConnections; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum DataConnectionTypeConstant +{ + [Description("Microsoft.Kusto/clusters/databases/dataConnections")] + MicrosoftPointKustoClustersDatabasesDataConnections, +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DataConnections/Constant-DatabaseRouting.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DataConnections/Constant-DatabaseRouting.cs new file mode 100644 index 00000000000..8807f16a184 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DataConnections/Constant-DatabaseRouting.cs @@ -0,0 +1,14 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.Kusto.v2023_08_15.DataConnections; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum DatabaseRoutingConstant +{ + [Description("Multi")] + Multi, + + [Description("Single")] + Single, +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DataConnections/Constant-EventGridDataFormat.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DataConnections/Constant-EventGridDataFormat.cs new file mode 100644 index 00000000000..47bf95b47fb --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DataConnections/Constant-EventGridDataFormat.cs @@ -0,0 +1,56 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.Kusto.v2023_08_15.DataConnections; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum EventGridDataFormatConstant +{ + [Description("APACHEAVRO")] + APACHEAVRO, + + [Description("AVRO")] + AVRO, + + [Description("CSV")] + CSV, + + [Description("JSON")] + JSON, + + [Description("MULTIJSON")] + MULTIJSON, + + [Description("ORC")] + ORC, + + [Description("PARQUET")] + PARQUET, + + [Description("PSV")] + PSV, + + [Description("RAW")] + RAW, + + [Description("SCSV")] + SCSV, + + [Description("SINGLEJSON")] + SINGLEJSON, + + [Description("SOHSV")] + SOHSV, + + [Description("TSV")] + TSV, + + [Description("TSVE")] + TSVE, + + [Description("TXT")] + TXT, + + [Description("W3CLOGFILE")] + WThreeCLOGFILE, +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DataConnections/Constant-EventHubDataFormat.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DataConnections/Constant-EventHubDataFormat.cs new file mode 100644 index 00000000000..f04f6555db6 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DataConnections/Constant-EventHubDataFormat.cs @@ -0,0 +1,56 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.Kusto.v2023_08_15.DataConnections; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum EventHubDataFormatConstant +{ + [Description("APACHEAVRO")] + APACHEAVRO, + + [Description("AVRO")] + AVRO, + + [Description("CSV")] + CSV, + + [Description("JSON")] + JSON, + + [Description("MULTIJSON")] + MULTIJSON, + + [Description("ORC")] + ORC, + + [Description("PARQUET")] + PARQUET, + + [Description("PSV")] + PSV, + + [Description("RAW")] + RAW, + + [Description("SCSV")] + SCSV, + + [Description("SINGLEJSON")] + SINGLEJSON, + + [Description("SOHSV")] + SOHSV, + + [Description("TSV")] + TSV, + + [Description("TSVE")] + TSVE, + + [Description("TXT")] + TXT, + + [Description("W3CLOGFILE")] + WThreeCLOGFILE, +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DataConnections/Constant-IotHubDataFormat.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DataConnections/Constant-IotHubDataFormat.cs new file mode 100644 index 00000000000..d4d0fd6161e --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DataConnections/Constant-IotHubDataFormat.cs @@ -0,0 +1,56 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.Kusto.v2023_08_15.DataConnections; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum IotHubDataFormatConstant +{ + [Description("APACHEAVRO")] + APACHEAVRO, + + [Description("AVRO")] + AVRO, + + [Description("CSV")] + CSV, + + [Description("JSON")] + JSON, + + [Description("MULTIJSON")] + MULTIJSON, + + [Description("ORC")] + ORC, + + [Description("PARQUET")] + PARQUET, + + [Description("PSV")] + PSV, + + [Description("RAW")] + RAW, + + [Description("SCSV")] + SCSV, + + [Description("SINGLEJSON")] + SINGLEJSON, + + [Description("SOHSV")] + SOHSV, + + [Description("TSV")] + TSV, + + [Description("TSVE")] + TSVE, + + [Description("TXT")] + TXT, + + [Description("W3CLOGFILE")] + WThreeCLOGFILE, +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DataConnections/Constant-ProvisioningState.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DataConnections/Constant-ProvisioningState.cs new file mode 100644 index 00000000000..7d628ac9262 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DataConnections/Constant-ProvisioningState.cs @@ -0,0 +1,29 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.Kusto.v2023_08_15.DataConnections; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum ProvisioningStateConstant +{ + [Description("Canceled")] + Canceled, + + [Description("Creating")] + Creating, + + [Description("Deleting")] + Deleting, + + [Description("Failed")] + Failed, + + [Description("Moving")] + Moving, + + [Description("Running")] + Running, + + [Description("Succeeded")] + Succeeded, +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DataConnections/Constant-Reason.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DataConnections/Constant-Reason.cs new file mode 100644 index 00000000000..31bc3a7751a --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DataConnections/Constant-Reason.cs @@ -0,0 +1,14 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.Kusto.v2023_08_15.DataConnections; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum ReasonConstant +{ + [Description("AlreadyExists")] + AlreadyExists, + + [Description("Invalid")] + Invalid, +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DataConnections/Definition.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DataConnections/Definition.cs new file mode 100644 index 00000000000..557e5c88fc2 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DataConnections/Definition.cs @@ -0,0 +1,55 @@ +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.Kusto.v2023_08_15.DataConnections; + +internal class Definition : ResourceDefinition +{ + public string Name => "DataConnections"; + public IEnumerable Operations => new List + { + new CheckNameAvailabilityOperation(), + new CreateOrUpdateOperation(), + new DataConnectionValidationOperation(), + new DeleteOperation(), + new GetOperation(), + new ListByDatabaseOperation(), + new UpdateOperation(), + }; + public IEnumerable Constants => new List + { + typeof(BlobStorageEventTypeConstant), + typeof(CompressionConstant), + typeof(DataConnectionKindConstant), + typeof(DataConnectionTypeConstant), + typeof(DatabaseRoutingConstant), + typeof(EventGridDataFormatConstant), + typeof(EventHubDataFormatConstant), + typeof(IotHubDataFormatConstant), + typeof(ProvisioningStateConstant), + typeof(ReasonConstant), + }; + public IEnumerable Models => new List + { + typeof(CheckNameResultModel), + typeof(CosmosDbDataConnectionModel), + typeof(CosmosDbDataConnectionPropertiesModel), + typeof(DataConnectionModel), + typeof(DataConnectionCheckNameRequestModel), + typeof(DataConnectionListResultModel), + typeof(DataConnectionValidationModel), + typeof(DataConnectionValidationListResultModel), + typeof(DataConnectionValidationResultModel), + typeof(EventGridConnectionPropertiesModel), + typeof(EventGridDataConnectionModel), + typeof(EventHubConnectionPropertiesModel), + typeof(EventHubDataConnectionModel), + typeof(IotHubConnectionPropertiesModel), + typeof(IotHubDataConnectionModel), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DataConnections/Model-CheckNameResult.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DataConnections/Model-CheckNameResult.cs new file mode 100644 index 00000000000..e5269b91411 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DataConnections/Model-CheckNameResult.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.Kusto.v2023_08_15.DataConnections; + + +internal class CheckNameResultModel +{ + [JsonPropertyName("message")] + public string? Message { get; set; } + + [JsonPropertyName("name")] + public string? Name { get; set; } + + [JsonPropertyName("nameAvailable")] + public bool? NameAvailable { get; set; } + + [JsonPropertyName("reason")] + public ReasonConstant? Reason { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DataConnections/Model-CosmosDbDataConnection.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DataConnections/Model-CosmosDbDataConnection.cs new file mode 100644 index 00000000000..78f8a77b2e0 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DataConnections/Model-CosmosDbDataConnection.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.Kusto.v2023_08_15.DataConnections; + +[ValueForType("CosmosDb")] +internal class CosmosDbDataConnectionModel : DataConnectionModel +{ + [JsonPropertyName("properties")] + public CosmosDbDataConnectionPropertiesModel? Properties { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DataConnections/Model-CosmosDbDataConnectionProperties.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DataConnections/Model-CosmosDbDataConnectionProperties.cs new file mode 100644 index 00000000000..30c57f131e2 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DataConnections/Model-CosmosDbDataConnectionProperties.cs @@ -0,0 +1,50 @@ +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.Kusto.v2023_08_15.DataConnections; + + +internal class CosmosDbDataConnectionPropertiesModel +{ + [JsonPropertyName("cosmosDbAccountResourceId")] + [Required] + public string CosmosDbAccountResourceId { get; set; } + + [JsonPropertyName("cosmosDbContainer")] + [Required] + public string CosmosDbContainer { get; set; } + + [JsonPropertyName("cosmosDbDatabase")] + [Required] + public string CosmosDbDatabase { get; set; } + + [JsonPropertyName("managedIdentityObjectId")] + public string? ManagedIdentityObjectId { get; set; } + + [JsonPropertyName("managedIdentityResourceId")] + [Required] + public string ManagedIdentityResourceId { get; set; } + + [JsonPropertyName("mappingRuleName")] + public string? MappingRuleName { get; set; } + + [JsonPropertyName("provisioningState")] + public ProvisioningStateConstant? ProvisioningState { get; set; } + + [DateFormat(DateFormatAttribute.DateFormat.RFC3339)] + [JsonPropertyName("retrievalStartDate")] + public DateTime? RetrievalStartDate { get; set; } + + [JsonPropertyName("tableName")] + [Required] + public string TableName { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DataConnections/Model-DataConnection.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DataConnections/Model-DataConnection.cs new file mode 100644 index 00000000000..e0be2e27587 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DataConnections/Model-DataConnection.cs @@ -0,0 +1,34 @@ +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.Kusto.v2023_08_15.DataConnections; + + +internal abstract class DataConnectionModel +{ + [JsonPropertyName("id")] + public string? Id { get; set; } + + [JsonPropertyName("kind")] + [ProvidesTypeHint] + [Required] + public DataConnectionKindConstant Kind { get; set; } + + [JsonPropertyName("location")] + public CustomTypes.Location? Location { get; set; } + + [JsonPropertyName("name")] + public string? Name { get; set; } + + [JsonPropertyName("type")] + public string? Type { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DataConnections/Model-DataConnectionCheckNameRequest.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DataConnections/Model-DataConnectionCheckNameRequest.cs new file mode 100644 index 00000000000..e874c41ad8b --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DataConnections/Model-DataConnectionCheckNameRequest.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.Kusto.v2023_08_15.DataConnections; + + +internal class DataConnectionCheckNameRequestModel +{ + [JsonPropertyName("name")] + [Required] + public string Name { get; set; } + + [JsonPropertyName("type")] + [Required] + public DataConnectionTypeConstant Type { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DataConnections/Model-DataConnectionListResult.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DataConnections/Model-DataConnectionListResult.cs new file mode 100644 index 00000000000..1d1d95ab17b --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DataConnections/Model-DataConnectionListResult.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.Kusto.v2023_08_15.DataConnections; + + +internal class DataConnectionListResultModel +{ + [JsonPropertyName("value")] + public List? Value { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DataConnections/Model-DataConnectionValidation.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DataConnections/Model-DataConnectionValidation.cs new file mode 100644 index 00000000000..a259ce8a987 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DataConnections/Model-DataConnectionValidation.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.Kusto.v2023_08_15.DataConnections; + + +internal class DataConnectionValidationModel +{ + [JsonPropertyName("dataConnectionName")] + public string? DataConnectionName { get; set; } + + [JsonPropertyName("properties")] + public DataConnectionModel? Properties { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DataConnections/Model-DataConnectionValidationListResult.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DataConnections/Model-DataConnectionValidationListResult.cs new file mode 100644 index 00000000000..632d3f0c898 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DataConnections/Model-DataConnectionValidationListResult.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.Kusto.v2023_08_15.DataConnections; + + +internal class DataConnectionValidationListResultModel +{ + [JsonPropertyName("value")] + public List? Value { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DataConnections/Model-DataConnectionValidationResult.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DataConnections/Model-DataConnectionValidationResult.cs new file mode 100644 index 00000000000..d58340c24ef --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DataConnections/Model-DataConnectionValidationResult.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.Kusto.v2023_08_15.DataConnections; + + +internal class DataConnectionValidationResultModel +{ + [JsonPropertyName("errorMessage")] + public string? ErrorMessage { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DataConnections/Model-EventGridConnectionProperties.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DataConnections/Model-EventGridConnectionProperties.cs new file mode 100644 index 00000000000..c872d9b5151 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DataConnections/Model-EventGridConnectionProperties.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.Kusto.v2023_08_15.DataConnections; + + +internal class EventGridConnectionPropertiesModel +{ + [JsonPropertyName("blobStorageEventType")] + public BlobStorageEventTypeConstant? BlobStorageEventType { get; set; } + + [JsonPropertyName("consumerGroup")] + [Required] + public string ConsumerGroup { get; set; } + + [JsonPropertyName("dataFormat")] + public EventGridDataFormatConstant? DataFormat { get; set; } + + [JsonPropertyName("databaseRouting")] + public DatabaseRoutingConstant? DatabaseRouting { get; set; } + + [JsonPropertyName("eventGridResourceId")] + public string? EventGridResourceId { get; set; } + + [JsonPropertyName("eventHubResourceId")] + [Required] + public string EventHubResourceId { get; set; } + + [JsonPropertyName("ignoreFirstRecord")] + public bool? IgnoreFirstRecord { get; set; } + + [JsonPropertyName("managedIdentityObjectId")] + public string? ManagedIdentityObjectId { get; set; } + + [JsonPropertyName("managedIdentityResourceId")] + public string? ManagedIdentityResourceId { get; set; } + + [JsonPropertyName("mappingRuleName")] + public string? MappingRuleName { get; set; } + + [JsonPropertyName("provisioningState")] + public ProvisioningStateConstant? ProvisioningState { get; set; } + + [JsonPropertyName("storageAccountResourceId")] + [Required] + public string StorageAccountResourceId { get; set; } + + [JsonPropertyName("tableName")] + public string? TableName { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DataConnections/Model-EventGridDataConnection.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DataConnections/Model-EventGridDataConnection.cs new file mode 100644 index 00000000000..9797cac594f --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DataConnections/Model-EventGridDataConnection.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.Kusto.v2023_08_15.DataConnections; + +[ValueForType("EventGrid")] +internal class EventGridDataConnectionModel : DataConnectionModel +{ + [JsonPropertyName("properties")] + public EventGridConnectionPropertiesModel? Properties { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DataConnections/Model-EventHubConnectionProperties.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DataConnections/Model-EventHubConnectionProperties.cs new file mode 100644 index 00000000000..5ddc322bbb5 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DataConnections/Model-EventHubConnectionProperties.cs @@ -0,0 +1,56 @@ +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.Kusto.v2023_08_15.DataConnections; + + +internal class EventHubConnectionPropertiesModel +{ + [JsonPropertyName("compression")] + public CompressionConstant? Compression { get; set; } + + [JsonPropertyName("consumerGroup")] + [Required] + public string ConsumerGroup { get; set; } + + [JsonPropertyName("dataFormat")] + public EventHubDataFormatConstant? DataFormat { get; set; } + + [JsonPropertyName("databaseRouting")] + public DatabaseRoutingConstant? DatabaseRouting { get; set; } + + [JsonPropertyName("eventHubResourceId")] + [Required] + public string EventHubResourceId { get; set; } + + [JsonPropertyName("eventSystemProperties")] + public List? EventSystemProperties { get; set; } + + [JsonPropertyName("managedIdentityObjectId")] + public string? ManagedIdentityObjectId { get; set; } + + [JsonPropertyName("managedIdentityResourceId")] + public string? ManagedIdentityResourceId { get; set; } + + [JsonPropertyName("mappingRuleName")] + public string? MappingRuleName { get; set; } + + [JsonPropertyName("provisioningState")] + public ProvisioningStateConstant? ProvisioningState { get; set; } + + [DateFormat(DateFormatAttribute.DateFormat.RFC3339)] + [JsonPropertyName("retrievalStartDate")] + public DateTime? RetrievalStartDate { get; set; } + + [JsonPropertyName("tableName")] + public string? TableName { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DataConnections/Model-EventHubDataConnection.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DataConnections/Model-EventHubDataConnection.cs new file mode 100644 index 00000000000..6fadca96622 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DataConnections/Model-EventHubDataConnection.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.Kusto.v2023_08_15.DataConnections; + +[ValueForType("EventHub")] +internal class EventHubDataConnectionModel : DataConnectionModel +{ + [JsonPropertyName("properties")] + public EventHubConnectionPropertiesModel? Properties { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DataConnections/Model-IotHubConnectionProperties.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DataConnections/Model-IotHubConnectionProperties.cs new file mode 100644 index 00000000000..67e9a253c68 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DataConnections/Model-IotHubConnectionProperties.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.Kusto.v2023_08_15.DataConnections; + + +internal class IotHubConnectionPropertiesModel +{ + [JsonPropertyName("consumerGroup")] + [Required] + public string ConsumerGroup { get; set; } + + [JsonPropertyName("dataFormat")] + public IotHubDataFormatConstant? DataFormat { get; set; } + + [JsonPropertyName("databaseRouting")] + public DatabaseRoutingConstant? DatabaseRouting { get; set; } + + [JsonPropertyName("eventSystemProperties")] + public List? EventSystemProperties { get; set; } + + [JsonPropertyName("iotHubResourceId")] + [Required] + public string IotHubResourceId { get; set; } + + [JsonPropertyName("mappingRuleName")] + public string? MappingRuleName { get; set; } + + [JsonPropertyName("provisioningState")] + public ProvisioningStateConstant? ProvisioningState { get; set; } + + [DateFormat(DateFormatAttribute.DateFormat.RFC3339)] + [JsonPropertyName("retrievalStartDate")] + public DateTime? RetrievalStartDate { get; set; } + + [JsonPropertyName("sharedAccessPolicyName")] + [Required] + public string SharedAccessPolicyName { get; set; } + + [JsonPropertyName("tableName")] + public string? TableName { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DataConnections/Model-IotHubDataConnection.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DataConnections/Model-IotHubDataConnection.cs new file mode 100644 index 00000000000..c7562895add --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DataConnections/Model-IotHubDataConnection.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.Kusto.v2023_08_15.DataConnections; + +[ValueForType("IotHub")] +internal class IotHubDataConnectionModel : DataConnectionModel +{ + [JsonPropertyName("properties")] + public IotHubConnectionPropertiesModel? Properties { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DataConnections/Operation-CheckNameAvailability.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DataConnections/Operation-CheckNameAvailability.cs new file mode 100644 index 00000000000..be18f00068e --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DataConnections/Operation-CheckNameAvailability.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.Kusto.v2023_08_15.DataConnections; + +internal class CheckNameAvailabilityOperation : Pandora.Definitions.Operations.PostOperation +{ + public override IEnumerable ExpectedStatusCodes() => new List + { + HttpStatusCode.OK, + }; + + public override Type? RequestObject() => typeof(DataConnectionCheckNameRequestModel); + + public override ResourceID? ResourceId() => new DatabaseId(); + + public override Type? ResponseObject() => typeof(CheckNameResultModel); + + public override string? UriSuffix() => "/checkNameAvailability"; + + +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DataConnections/Operation-CreateOrUpdate.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DataConnections/Operation-CreateOrUpdate.cs new file mode 100644 index 00000000000..a7c77ff0e96 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DataConnections/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.Kusto.v2023_08_15.DataConnections; + +internal class CreateOrUpdateOperation : Pandora.Definitions.Operations.PutOperation +{ + public override IEnumerable ExpectedStatusCodes() => new List + { + HttpStatusCode.Accepted, + HttpStatusCode.Created, + HttpStatusCode.OK, + }; + + public override bool LongRunning() => true; + + public override Type? RequestObject() => typeof(DataConnectionModel); + + public override ResourceID? ResourceId() => new DataConnectionId(); + + public override Type? ResponseObject() => typeof(DataConnectionModel); + + +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DataConnections/Operation-DataConnectionValidation.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DataConnections/Operation-DataConnectionValidation.cs new file mode 100644 index 00000000000..479d5b4568c --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DataConnections/Operation-DataConnectionValidation.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.Kusto.v2023_08_15.DataConnections; + +internal class DataConnectionValidationOperation : Pandora.Definitions.Operations.PostOperation +{ + public override IEnumerable ExpectedStatusCodes() => new List + { + HttpStatusCode.Accepted, + HttpStatusCode.OK, + }; + + public override bool LongRunning() => true; + + public override Type? RequestObject() => typeof(DataConnectionValidationModel); + + public override ResourceID? ResourceId() => new DatabaseId(); + + public override Type? ResponseObject() => typeof(DataConnectionValidationListResultModel); + + public override string? UriSuffix() => "/dataConnectionValidation"; + + +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DataConnections/Operation-Delete.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DataConnections/Operation-Delete.cs new file mode 100644 index 00000000000..c7ba5055cff --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DataConnections/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.Kusto.v2023_08_15.DataConnections; + +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 DataConnectionId(); + + +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DataConnections/Operation-Get.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DataConnections/Operation-Get.cs new file mode 100644 index 00000000000..0aacf6d8202 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DataConnections/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.Kusto.v2023_08_15.DataConnections; + +internal class GetOperation : Pandora.Definitions.Operations.GetOperation +{ + public override ResourceID? ResourceId() => new DataConnectionId(); + + public override Type? ResponseObject() => typeof(DataConnectionModel); + + +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DataConnections/Operation-ListByDatabase.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DataConnections/Operation-ListByDatabase.cs new file mode 100644 index 00000000000..bfcb7ca416d --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DataConnections/Operation-ListByDatabase.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.Kusto.v2023_08_15.DataConnections; + +internal class ListByDatabaseOperation : Pandora.Definitions.Operations.GetOperation +{ + public override ResourceID? ResourceId() => new DatabaseId(); + + public override Type? ResponseObject() => typeof(DataConnectionListResultModel); + + public override string? UriSuffix() => "/dataConnections"; + + +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DataConnections/Operation-Update.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DataConnections/Operation-Update.cs new file mode 100644 index 00000000000..fc6ed64c924 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DataConnections/Operation-Update.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.Kusto.v2023_08_15.DataConnections; + +internal class UpdateOperation : Pandora.Definitions.Operations.PatchOperation +{ + public override IEnumerable ExpectedStatusCodes() => new List + { + HttpStatusCode.Accepted, + HttpStatusCode.Created, + HttpStatusCode.OK, + }; + + public override bool LongRunning() => true; + + public override Type? RequestObject() => typeof(DataConnectionModel); + + public override ResourceID? ResourceId() => new DataConnectionId(); + + public override Type? ResponseObject() => typeof(DataConnectionModel); + + +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DataConnections/ResourceId-DataConnectionId.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DataConnections/ResourceId-DataConnectionId.cs new file mode 100644 index 00000000000..59e4ba03e9b --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DataConnections/ResourceId-DataConnectionId.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.Kusto.v2023_08_15.DataConnections; + +internal class DataConnectionId : ResourceID +{ + public string? CommonAlias => null; + + public string ID => "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/dataConnections/{dataConnectionName}"; + + 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("staticMicrosoftKusto", "Microsoft.Kusto"), + ResourceIDSegment.Static("staticClusters", "clusters"), + ResourceIDSegment.UserSpecified("clusterName"), + ResourceIDSegment.Static("staticDatabases", "databases"), + ResourceIDSegment.UserSpecified("databaseName"), + ResourceIDSegment.Static("staticDataConnections", "dataConnections"), + ResourceIDSegment.UserSpecified("dataConnectionName"), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DataConnections/ResourceId-DatabaseId.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DataConnections/ResourceId-DatabaseId.cs new file mode 100644 index 00000000000..1559a82da00 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DataConnections/ResourceId-DatabaseId.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.Kusto.v2023_08_15.DataConnections; + +internal class DatabaseId : ResourceID +{ + public string? CommonAlias => null; + + public string ID => "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}"; + + 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("staticMicrosoftKusto", "Microsoft.Kusto"), + ResourceIDSegment.Static("staticClusters", "clusters"), + ResourceIDSegment.UserSpecified("clusterName"), + ResourceIDSegment.Static("staticDatabases", "databases"), + ResourceIDSegment.UserSpecified("databaseName"), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DatabasePrincipalAssignments/Constant-DatabasePrincipalAssignmentType.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DatabasePrincipalAssignments/Constant-DatabasePrincipalAssignmentType.cs new file mode 100644 index 00000000000..4d11b4eaf5e --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DatabasePrincipalAssignments/Constant-DatabasePrincipalAssignmentType.cs @@ -0,0 +1,11 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.Kusto.v2023_08_15.DatabasePrincipalAssignments; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum DatabasePrincipalAssignmentTypeConstant +{ + [Description("Microsoft.Kusto/clusters/databases/principalAssignments")] + MicrosoftPointKustoClustersDatabasesPrincipalAssignments, +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DatabasePrincipalAssignments/Constant-DatabasePrincipalRole.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DatabasePrincipalAssignments/Constant-DatabasePrincipalRole.cs new file mode 100644 index 00000000000..a80e0f9218a --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DatabasePrincipalAssignments/Constant-DatabasePrincipalRole.cs @@ -0,0 +1,26 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.Kusto.v2023_08_15.DatabasePrincipalAssignments; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum DatabasePrincipalRoleConstant +{ + [Description("Admin")] + Admin, + + [Description("Ingestor")] + Ingestor, + + [Description("Monitor")] + Monitor, + + [Description("UnrestrictedViewer")] + UnrestrictedViewer, + + [Description("User")] + User, + + [Description("Viewer")] + Viewer, +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DatabasePrincipalAssignments/Constant-PrincipalType.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DatabasePrincipalAssignments/Constant-PrincipalType.cs new file mode 100644 index 00000000000..a4d202605a3 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DatabasePrincipalAssignments/Constant-PrincipalType.cs @@ -0,0 +1,17 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.Kusto.v2023_08_15.DatabasePrincipalAssignments; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum PrincipalTypeConstant +{ + [Description("App")] + App, + + [Description("Group")] + Group, + + [Description("User")] + User, +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DatabasePrincipalAssignments/Constant-ProvisioningState.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DatabasePrincipalAssignments/Constant-ProvisioningState.cs new file mode 100644 index 00000000000..c2dfb70f171 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DatabasePrincipalAssignments/Constant-ProvisioningState.cs @@ -0,0 +1,29 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.Kusto.v2023_08_15.DatabasePrincipalAssignments; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum ProvisioningStateConstant +{ + [Description("Canceled")] + Canceled, + + [Description("Creating")] + Creating, + + [Description("Deleting")] + Deleting, + + [Description("Failed")] + Failed, + + [Description("Moving")] + Moving, + + [Description("Running")] + Running, + + [Description("Succeeded")] + Succeeded, +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DatabasePrincipalAssignments/Constant-Reason.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DatabasePrincipalAssignments/Constant-Reason.cs new file mode 100644 index 00000000000..5eb9288f611 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DatabasePrincipalAssignments/Constant-Reason.cs @@ -0,0 +1,14 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.Kusto.v2023_08_15.DatabasePrincipalAssignments; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum ReasonConstant +{ + [Description("AlreadyExists")] + AlreadyExists, + + [Description("Invalid")] + Invalid, +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DatabasePrincipalAssignments/Definition.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DatabasePrincipalAssignments/Definition.cs new file mode 100644 index 00000000000..6e71e8e554e --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DatabasePrincipalAssignments/Definition.cs @@ -0,0 +1,38 @@ +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.Kusto.v2023_08_15.DatabasePrincipalAssignments; + +internal class Definition : ResourceDefinition +{ + public string Name => "DatabasePrincipalAssignments"; + public IEnumerable Operations => new List + { + new CheckNameAvailabilityOperation(), + new CreateOrUpdateOperation(), + new DeleteOperation(), + new GetOperation(), + new ListOperation(), + }; + public IEnumerable Constants => new List + { + typeof(DatabasePrincipalAssignmentTypeConstant), + typeof(DatabasePrincipalRoleConstant), + typeof(PrincipalTypeConstant), + typeof(ProvisioningStateConstant), + typeof(ReasonConstant), + }; + public IEnumerable Models => new List + { + typeof(CheckNameResultModel), + typeof(DatabasePrincipalAssignmentModel), + typeof(DatabasePrincipalAssignmentCheckNameRequestModel), + typeof(DatabasePrincipalAssignmentListResultModel), + typeof(DatabasePrincipalPropertiesModel), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DatabasePrincipalAssignments/Model-CheckNameResult.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DatabasePrincipalAssignments/Model-CheckNameResult.cs new file mode 100644 index 00000000000..5ccc5a54b2f --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DatabasePrincipalAssignments/Model-CheckNameResult.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.Kusto.v2023_08_15.DatabasePrincipalAssignments; + + +internal class CheckNameResultModel +{ + [JsonPropertyName("message")] + public string? Message { get; set; } + + [JsonPropertyName("name")] + public string? Name { get; set; } + + [JsonPropertyName("nameAvailable")] + public bool? NameAvailable { get; set; } + + [JsonPropertyName("reason")] + public ReasonConstant? Reason { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DatabasePrincipalAssignments/Model-DatabasePrincipalAssignment.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DatabasePrincipalAssignments/Model-DatabasePrincipalAssignment.cs new file mode 100644 index 00000000000..2ded3d11335 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DatabasePrincipalAssignments/Model-DatabasePrincipalAssignment.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.Kusto.v2023_08_15.DatabasePrincipalAssignments; + + +internal class DatabasePrincipalAssignmentModel +{ + [JsonPropertyName("id")] + public string? Id { get; set; } + + [JsonPropertyName("name")] + public string? Name { get; set; } + + [JsonPropertyName("properties")] + public DatabasePrincipalPropertiesModel? Properties { get; set; } + + [JsonPropertyName("type")] + public string? Type { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DatabasePrincipalAssignments/Model-DatabasePrincipalAssignmentCheckNameRequest.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DatabasePrincipalAssignments/Model-DatabasePrincipalAssignmentCheckNameRequest.cs new file mode 100644 index 00000000000..e3180e55300 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DatabasePrincipalAssignments/Model-DatabasePrincipalAssignmentCheckNameRequest.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.Kusto.v2023_08_15.DatabasePrincipalAssignments; + + +internal class DatabasePrincipalAssignmentCheckNameRequestModel +{ + [JsonPropertyName("name")] + [Required] + public string Name { get; set; } + + [JsonPropertyName("type")] + [Required] + public DatabasePrincipalAssignmentTypeConstant Type { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DatabasePrincipalAssignments/Model-DatabasePrincipalAssignmentListResult.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DatabasePrincipalAssignments/Model-DatabasePrincipalAssignmentListResult.cs new file mode 100644 index 00000000000..9c83ab532ef --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DatabasePrincipalAssignments/Model-DatabasePrincipalAssignmentListResult.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.Kusto.v2023_08_15.DatabasePrincipalAssignments; + + +internal class DatabasePrincipalAssignmentListResultModel +{ + [JsonPropertyName("value")] + public List? Value { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DatabasePrincipalAssignments/Model-DatabasePrincipalProperties.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DatabasePrincipalAssignments/Model-DatabasePrincipalProperties.cs new file mode 100644 index 00000000000..b3730678ee2 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DatabasePrincipalAssignments/Model-DatabasePrincipalProperties.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.Kusto.v2023_08_15.DatabasePrincipalAssignments; + + +internal class DatabasePrincipalPropertiesModel +{ + [JsonPropertyName("aadObjectId")] + public string? AadObjectId { get; set; } + + [JsonPropertyName("principalId")] + [Required] + public string PrincipalId { get; set; } + + [JsonPropertyName("principalName")] + public string? PrincipalName { get; set; } + + [JsonPropertyName("principalType")] + [Required] + public PrincipalTypeConstant PrincipalType { get; set; } + + [JsonPropertyName("provisioningState")] + public ProvisioningStateConstant? ProvisioningState { get; set; } + + [JsonPropertyName("role")] + [Required] + public DatabasePrincipalRoleConstant Role { get; set; } + + [JsonPropertyName("tenantId")] + public string? TenantId { get; set; } + + [JsonPropertyName("tenantName")] + public string? TenantName { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DatabasePrincipalAssignments/Operation-CheckNameAvailability.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DatabasePrincipalAssignments/Operation-CheckNameAvailability.cs new file mode 100644 index 00000000000..cedb0bf4554 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DatabasePrincipalAssignments/Operation-CheckNameAvailability.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.Kusto.v2023_08_15.DatabasePrincipalAssignments; + +internal class CheckNameAvailabilityOperation : Pandora.Definitions.Operations.PostOperation +{ + public override IEnumerable ExpectedStatusCodes() => new List + { + HttpStatusCode.OK, + }; + + public override Type? RequestObject() => typeof(DatabasePrincipalAssignmentCheckNameRequestModel); + + public override ResourceID? ResourceId() => new DatabaseId(); + + public override Type? ResponseObject() => typeof(CheckNameResultModel); + + public override string? UriSuffix() => "/checkPrincipalAssignmentNameAvailability"; + + +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DatabasePrincipalAssignments/Operation-CreateOrUpdate.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DatabasePrincipalAssignments/Operation-CreateOrUpdate.cs new file mode 100644 index 00000000000..4e7e5a70271 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DatabasePrincipalAssignments/Operation-CreateOrUpdate.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.Kusto.v2023_08_15.DatabasePrincipalAssignments; + +internal class CreateOrUpdateOperation : Pandora.Definitions.Operations.PutOperation +{ + public override bool LongRunning() => true; + + public override Type? RequestObject() => typeof(DatabasePrincipalAssignmentModel); + + public override ResourceID? ResourceId() => new DatabasePrincipalAssignmentId(); + + public override Type? ResponseObject() => typeof(DatabasePrincipalAssignmentModel); + + +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DatabasePrincipalAssignments/Operation-Delete.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DatabasePrincipalAssignments/Operation-Delete.cs new file mode 100644 index 00000000000..28d8bc4fcdd --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DatabasePrincipalAssignments/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.Kusto.v2023_08_15.DatabasePrincipalAssignments; + +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 DatabasePrincipalAssignmentId(); + + +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DatabasePrincipalAssignments/Operation-Get.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DatabasePrincipalAssignments/Operation-Get.cs new file mode 100644 index 00000000000..229ef36c661 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DatabasePrincipalAssignments/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.Kusto.v2023_08_15.DatabasePrincipalAssignments; + +internal class GetOperation : Pandora.Definitions.Operations.GetOperation +{ + public override ResourceID? ResourceId() => new DatabasePrincipalAssignmentId(); + + public override Type? ResponseObject() => typeof(DatabasePrincipalAssignmentModel); + + +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DatabasePrincipalAssignments/Operation-List.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DatabasePrincipalAssignments/Operation-List.cs new file mode 100644 index 00000000000..e1c8fd3a2a8 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DatabasePrincipalAssignments/Operation-List.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.Kusto.v2023_08_15.DatabasePrincipalAssignments; + +internal class ListOperation : Pandora.Definitions.Operations.GetOperation +{ + public override ResourceID? ResourceId() => new DatabaseId(); + + public override Type? ResponseObject() => typeof(DatabasePrincipalAssignmentListResultModel); + + public override string? UriSuffix() => "/principalAssignments"; + + +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DatabasePrincipalAssignments/ResourceId-DatabaseId.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DatabasePrincipalAssignments/ResourceId-DatabaseId.cs new file mode 100644 index 00000000000..4721d681595 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DatabasePrincipalAssignments/ResourceId-DatabaseId.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.Kusto.v2023_08_15.DatabasePrincipalAssignments; + +internal class DatabaseId : ResourceID +{ + public string? CommonAlias => null; + + public string ID => "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}"; + + 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("staticMicrosoftKusto", "Microsoft.Kusto"), + ResourceIDSegment.Static("staticClusters", "clusters"), + ResourceIDSegment.UserSpecified("clusterName"), + ResourceIDSegment.Static("staticDatabases", "databases"), + ResourceIDSegment.UserSpecified("databaseName"), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DatabasePrincipalAssignments/ResourceId-DatabasePrincipalAssignmentId.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DatabasePrincipalAssignments/ResourceId-DatabasePrincipalAssignmentId.cs new file mode 100644 index 00000000000..0895c4932c9 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/DatabasePrincipalAssignments/ResourceId-DatabasePrincipalAssignmentId.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.Kusto.v2023_08_15.DatabasePrincipalAssignments; + +internal class DatabasePrincipalAssignmentId : ResourceID +{ + public string? CommonAlias => null; + + public string ID => "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/principalAssignments/{principalAssignmentName}"; + + 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("staticMicrosoftKusto", "Microsoft.Kusto"), + ResourceIDSegment.Static("staticClusters", "clusters"), + ResourceIDSegment.UserSpecified("clusterName"), + ResourceIDSegment.Static("staticDatabases", "databases"), + ResourceIDSegment.UserSpecified("databaseName"), + ResourceIDSegment.Static("staticPrincipalAssignments", "principalAssignments"), + ResourceIDSegment.UserSpecified("principalAssignmentName"), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Databases/Constant-CallerRole.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Databases/Constant-CallerRole.cs new file mode 100644 index 00000000000..dd1787adef1 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Databases/Constant-CallerRole.cs @@ -0,0 +1,14 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.Kusto.v2023_08_15.Databases; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum CallerRoleConstant +{ + [Description("Admin")] + Admin, + + [Description("None")] + None, +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Databases/Constant-DatabasePrincipalRole.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Databases/Constant-DatabasePrincipalRole.cs new file mode 100644 index 00000000000..c91eb26d5a9 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Databases/Constant-DatabasePrincipalRole.cs @@ -0,0 +1,26 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.Kusto.v2023_08_15.Databases; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum DatabasePrincipalRoleConstant +{ + [Description("Admin")] + Admin, + + [Description("Ingestor")] + Ingestor, + + [Description("Monitor")] + Monitor, + + [Description("UnrestrictedViewer")] + UnrestrictedViewer, + + [Description("User")] + User, + + [Description("Viewer")] + Viewer, +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Databases/Constant-DatabasePrincipalType.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Databases/Constant-DatabasePrincipalType.cs new file mode 100644 index 00000000000..54a8bf5887a --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Databases/Constant-DatabasePrincipalType.cs @@ -0,0 +1,17 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.Kusto.v2023_08_15.Databases; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum DatabasePrincipalTypeConstant +{ + [Description("App")] + App, + + [Description("Group")] + Group, + + [Description("User")] + User, +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Databases/Constant-DatabaseShareOrigin.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Databases/Constant-DatabaseShareOrigin.cs new file mode 100644 index 00000000000..08b62191096 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Databases/Constant-DatabaseShareOrigin.cs @@ -0,0 +1,17 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.Kusto.v2023_08_15.Databases; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum DatabaseShareOriginConstant +{ + [Description("DataShare")] + DataShare, + + [Description("Direct")] + Direct, + + [Description("Other")] + Other, +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Databases/Constant-Kind.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Databases/Constant-Kind.cs new file mode 100644 index 00000000000..8373ab30df3 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Databases/Constant-Kind.cs @@ -0,0 +1,14 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.Kusto.v2023_08_15.Databases; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum KindConstant +{ + [Description("ReadOnlyFollowing")] + ReadOnlyFollowing, + + [Description("ReadWrite")] + ReadWrite, +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Databases/Constant-PrincipalsModificationKind.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Databases/Constant-PrincipalsModificationKind.cs new file mode 100644 index 00000000000..281e371a2ed --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Databases/Constant-PrincipalsModificationKind.cs @@ -0,0 +1,17 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.Kusto.v2023_08_15.Databases; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum PrincipalsModificationKindConstant +{ + [Description("None")] + None, + + [Description("Replace")] + Replace, + + [Description("Union")] + Union, +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Databases/Constant-ProvisioningState.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Databases/Constant-ProvisioningState.cs new file mode 100644 index 00000000000..dcc321620f9 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Databases/Constant-ProvisioningState.cs @@ -0,0 +1,29 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.Kusto.v2023_08_15.Databases; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum ProvisioningStateConstant +{ + [Description("Canceled")] + Canceled, + + [Description("Creating")] + Creating, + + [Description("Deleting")] + Deleting, + + [Description("Failed")] + Failed, + + [Description("Moving")] + Moving, + + [Description("Running")] + Running, + + [Description("Succeeded")] + Succeeded, +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Databases/Constant-Reason.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Databases/Constant-Reason.cs new file mode 100644 index 00000000000..543e4339531 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Databases/Constant-Reason.cs @@ -0,0 +1,14 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.Kusto.v2023_08_15.Databases; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum ReasonConstant +{ + [Description("AlreadyExists")] + AlreadyExists, + + [Description("Invalid")] + Invalid, +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Databases/Constant-Type.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Databases/Constant-Type.cs new file mode 100644 index 00000000000..3d953447084 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Databases/Constant-Type.cs @@ -0,0 +1,14 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.Kusto.v2023_08_15.Databases; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum TypeConstant +{ + [Description("Microsoft.Kusto/clusters/attachedDatabaseConfigurations")] + MicrosoftPointKustoClustersAttachedDatabaseConfigurations, + + [Description("Microsoft.Kusto/clusters/databases")] + MicrosoftPointKustoClustersDatabases, +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Databases/Definition.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Databases/Definition.cs new file mode 100644 index 00000000000..eff99a288d5 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Databases/Definition.cs @@ -0,0 +1,58 @@ +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.Kusto.v2023_08_15.Databases; + +internal class Definition : ResourceDefinition +{ + public string Name => "Databases"; + public IEnumerable Operations => new List + { + new AddPrincipalsOperation(), + new CheckNameAvailabilityOperation(), + new CreateOrUpdateOperation(), + new DatabaseInviteFollowerOperation(), + new DeleteOperation(), + new GetOperation(), + new ListByClusterOperation(), + new ListPrincipalsOperation(), + new RemovePrincipalsOperation(), + new UpdateOperation(), + }; + public IEnumerable Constants => new List + { + typeof(CallerRoleConstant), + typeof(DatabasePrincipalRoleConstant), + typeof(DatabasePrincipalTypeConstant), + typeof(DatabaseShareOriginConstant), + typeof(KindConstant), + typeof(PrincipalsModificationKindConstant), + typeof(ProvisioningStateConstant), + typeof(ReasonConstant), + typeof(TypeConstant), + }; + public IEnumerable Models => new List + { + typeof(CheckNameRequestModel), + typeof(CheckNameResultModel), + typeof(DatabaseModel), + typeof(DatabaseInviteFollowerRequestModel), + typeof(DatabaseInviteFollowerResultModel), + typeof(DatabasePrincipalModel), + typeof(DatabasePrincipalListRequestModel), + typeof(DatabasePrincipalListResultModel), + typeof(DatabaseStatisticsModel), + typeof(KeyVaultPropertiesModel), + typeof(ReadOnlyFollowingDatabaseModel), + typeof(ReadOnlyFollowingDatabasePropertiesModel), + typeof(ReadWriteDatabaseModel), + typeof(ReadWriteDatabasePropertiesModel), + typeof(SuspensionDetailsModel), + typeof(TableLevelSharingPropertiesModel), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Databases/Model-CheckNameRequest.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Databases/Model-CheckNameRequest.cs new file mode 100644 index 00000000000..46f25f6a247 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Databases/Model-CheckNameRequest.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.Kusto.v2023_08_15.Databases; + + +internal class CheckNameRequestModel +{ + [JsonPropertyName("name")] + [Required] + public string Name { get; set; } + + [JsonPropertyName("type")] + [Required] + public TypeConstant Type { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Databases/Model-CheckNameResult.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Databases/Model-CheckNameResult.cs new file mode 100644 index 00000000000..ebea31f5d15 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Databases/Model-CheckNameResult.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.Kusto.v2023_08_15.Databases; + + +internal class CheckNameResultModel +{ + [JsonPropertyName("message")] + public string? Message { get; set; } + + [JsonPropertyName("name")] + public string? Name { get; set; } + + [JsonPropertyName("nameAvailable")] + public bool? NameAvailable { get; set; } + + [JsonPropertyName("reason")] + public ReasonConstant? Reason { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Databases/Model-Database.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Databases/Model-Database.cs new file mode 100644 index 00000000000..1eb89d6d508 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Databases/Model-Database.cs @@ -0,0 +1,34 @@ +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.Kusto.v2023_08_15.Databases; + + +internal abstract class DatabaseModel +{ + [JsonPropertyName("id")] + public string? Id { get; set; } + + [JsonPropertyName("kind")] + [ProvidesTypeHint] + [Required] + public KindConstant Kind { get; set; } + + [JsonPropertyName("location")] + public CustomTypes.Location? Location { get; set; } + + [JsonPropertyName("name")] + public string? Name { get; set; } + + [JsonPropertyName("type")] + public string? Type { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Databases/Model-DatabaseInviteFollowerRequest.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Databases/Model-DatabaseInviteFollowerRequest.cs new file mode 100644 index 00000000000..f7185aa79ae --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Databases/Model-DatabaseInviteFollowerRequest.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.Kusto.v2023_08_15.Databases; + + +internal class DatabaseInviteFollowerRequestModel +{ + [JsonPropertyName("inviteeEmail")] + [Required] + public string InviteeEmail { get; set; } + + [JsonPropertyName("tableLevelSharingProperties")] + public TableLevelSharingPropertiesModel? TableLevelSharingProperties { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Databases/Model-DatabaseInviteFollowerResult.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Databases/Model-DatabaseInviteFollowerResult.cs new file mode 100644 index 00000000000..4154690ae5d --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Databases/Model-DatabaseInviteFollowerResult.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.Kusto.v2023_08_15.Databases; + + +internal class DatabaseInviteFollowerResultModel +{ + [JsonPropertyName("generatedInvitation")] + public string? GeneratedInvitation { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Databases/Model-DatabasePrincipal.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Databases/Model-DatabasePrincipal.cs new file mode 100644 index 00000000000..d16c07bf1f5 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Databases/Model-DatabasePrincipal.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.Kusto.v2023_08_15.Databases; + + +internal class DatabasePrincipalModel +{ + [JsonPropertyName("appId")] + public string? AppId { get; set; } + + [JsonPropertyName("email")] + public string? Email { get; set; } + + [JsonPropertyName("fqn")] + public string? Fqn { get; set; } + + [JsonPropertyName("name")] + [Required] + public string Name { get; set; } + + [JsonPropertyName("role")] + [Required] + public DatabasePrincipalRoleConstant Role { get; set; } + + [JsonPropertyName("tenantName")] + public string? TenantName { get; set; } + + [JsonPropertyName("type")] + [Required] + public DatabasePrincipalTypeConstant Type { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Databases/Model-DatabasePrincipalListRequest.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Databases/Model-DatabasePrincipalListRequest.cs new file mode 100644 index 00000000000..86e44e4846c --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Databases/Model-DatabasePrincipalListRequest.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.Kusto.v2023_08_15.Databases; + + +internal class DatabasePrincipalListRequestModel +{ + [JsonPropertyName("value")] + public List? Value { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Databases/Model-DatabasePrincipalListResult.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Databases/Model-DatabasePrincipalListResult.cs new file mode 100644 index 00000000000..efceca5b6a4 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Databases/Model-DatabasePrincipalListResult.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.Kusto.v2023_08_15.Databases; + + +internal class DatabasePrincipalListResultModel +{ + [JsonPropertyName("value")] + public List? Value { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Databases/Model-DatabaseStatistics.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Databases/Model-DatabaseStatistics.cs new file mode 100644 index 00000000000..4cecd8c3135 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Databases/Model-DatabaseStatistics.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.Kusto.v2023_08_15.Databases; + + +internal class DatabaseStatisticsModel +{ + [JsonPropertyName("size")] + public float? Size { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Databases/Model-KeyVaultProperties.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Databases/Model-KeyVaultProperties.cs new file mode 100644 index 00000000000..18071f22a87 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Databases/Model-KeyVaultProperties.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.Kusto.v2023_08_15.Databases; + + +internal class KeyVaultPropertiesModel +{ + [JsonPropertyName("keyName")] + public string? KeyName { get; set; } + + [JsonPropertyName("keyVaultUri")] + public string? KeyVaultUri { get; set; } + + [JsonPropertyName("keyVersion")] + public string? KeyVersion { get; set; } + + [JsonPropertyName("userIdentity")] + public string? UserIdentity { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Databases/Model-ReadOnlyFollowingDatabase.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Databases/Model-ReadOnlyFollowingDatabase.cs new file mode 100644 index 00000000000..409490253f3 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Databases/Model-ReadOnlyFollowingDatabase.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.Kusto.v2023_08_15.Databases; + +[ValueForType("ReadOnlyFollowing")] +internal class ReadOnlyFollowingDatabaseModel : DatabaseModel +{ + [JsonPropertyName("properties")] + public ReadOnlyFollowingDatabasePropertiesModel? Properties { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Databases/Model-ReadOnlyFollowingDatabaseProperties.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Databases/Model-ReadOnlyFollowingDatabaseProperties.cs new file mode 100644 index 00000000000..08c28a00050 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Databases/Model-ReadOnlyFollowingDatabaseProperties.cs @@ -0,0 +1,50 @@ +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.Kusto.v2023_08_15.Databases; + + +internal class ReadOnlyFollowingDatabasePropertiesModel +{ + [JsonPropertyName("attachedDatabaseConfigurationName")] + public string? AttachedDatabaseConfigurationName { get; set; } + + [JsonPropertyName("databaseShareOrigin")] + public DatabaseShareOriginConstant? DatabaseShareOrigin { get; set; } + + [JsonPropertyName("hotCachePeriod")] + public string? HotCachePeriod { get; set; } + + [JsonPropertyName("leaderClusterResourceId")] + public string? LeaderClusterResourceId { get; set; } + + [JsonPropertyName("originalDatabaseName")] + public string? OriginalDatabaseName { get; set; } + + [JsonPropertyName("principalsModificationKind")] + public PrincipalsModificationKindConstant? PrincipalsModificationKind { get; set; } + + [JsonPropertyName("provisioningState")] + public ProvisioningStateConstant? ProvisioningState { get; set; } + + [JsonPropertyName("softDeletePeriod")] + public string? SoftDeletePeriod { get; set; } + + [JsonPropertyName("statistics")] + public DatabaseStatisticsModel? Statistics { get; set; } + + [JsonPropertyName("suspensionDetails")] + public SuspensionDetailsModel? SuspensionDetails { get; set; } + + [JsonPropertyName("tableLevelSharingProperties")] + public TableLevelSharingPropertiesModel? TableLevelSharingProperties { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Databases/Model-ReadWriteDatabase.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Databases/Model-ReadWriteDatabase.cs new file mode 100644 index 00000000000..9273cd46678 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Databases/Model-ReadWriteDatabase.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.Kusto.v2023_08_15.Databases; + +[ValueForType("ReadWrite")] +internal class ReadWriteDatabaseModel : DatabaseModel +{ + [JsonPropertyName("properties")] + public ReadWriteDatabasePropertiesModel? Properties { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Databases/Model-ReadWriteDatabaseProperties.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Databases/Model-ReadWriteDatabaseProperties.cs new file mode 100644 index 00000000000..31392e1bccf --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Databases/Model-ReadWriteDatabaseProperties.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.Kusto.v2023_08_15.Databases; + + +internal class ReadWriteDatabasePropertiesModel +{ + [JsonPropertyName("hotCachePeriod")] + public string? HotCachePeriod { get; set; } + + [JsonPropertyName("isFollowed")] + public bool? IsFollowed { get; set; } + + [JsonPropertyName("keyVaultProperties")] + public KeyVaultPropertiesModel? KeyVaultProperties { get; set; } + + [JsonPropertyName("provisioningState")] + public ProvisioningStateConstant? ProvisioningState { get; set; } + + [JsonPropertyName("softDeletePeriod")] + public string? SoftDeletePeriod { get; set; } + + [JsonPropertyName("statistics")] + public DatabaseStatisticsModel? Statistics { get; set; } + + [JsonPropertyName("suspensionDetails")] + public SuspensionDetailsModel? SuspensionDetails { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Databases/Model-SuspensionDetails.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Databases/Model-SuspensionDetails.cs new file mode 100644 index 00000000000..11f00370494 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Databases/Model-SuspensionDetails.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.Kusto.v2023_08_15.Databases; + + +internal class SuspensionDetailsModel +{ + [DateFormat(DateFormatAttribute.DateFormat.RFC3339)] + [JsonPropertyName("suspensionStartDate")] + public DateTime? SuspensionStartDate { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Databases/Model-TableLevelSharingProperties.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Databases/Model-TableLevelSharingProperties.cs new file mode 100644 index 00000000000..8839893b1e2 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Databases/Model-TableLevelSharingProperties.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.Kusto.v2023_08_15.Databases; + + +internal class TableLevelSharingPropertiesModel +{ + [JsonPropertyName("externalTablesToExclude")] + public List? ExternalTablesToExclude { get; set; } + + [JsonPropertyName("externalTablesToInclude")] + public List? ExternalTablesToInclude { get; set; } + + [JsonPropertyName("functionsToExclude")] + public List? FunctionsToExclude { get; set; } + + [JsonPropertyName("functionsToInclude")] + public List? FunctionsToInclude { get; set; } + + [JsonPropertyName("materializedViewsToExclude")] + public List? MaterializedViewsToExclude { get; set; } + + [JsonPropertyName("materializedViewsToInclude")] + public List? MaterializedViewsToInclude { get; set; } + + [JsonPropertyName("tablesToExclude")] + public List? TablesToExclude { get; set; } + + [JsonPropertyName("tablesToInclude")] + public List? TablesToInclude { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Databases/Operation-AddPrincipals.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Databases/Operation-AddPrincipals.cs new file mode 100644 index 00000000000..5b6f5b88f78 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Databases/Operation-AddPrincipals.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.Kusto.v2023_08_15.Databases; + +internal class AddPrincipalsOperation : Pandora.Definitions.Operations.PostOperation +{ + public override IEnumerable ExpectedStatusCodes() => new List + { + HttpStatusCode.OK, + }; + + public override Type? RequestObject() => typeof(DatabasePrincipalListRequestModel); + + public override ResourceID? ResourceId() => new DatabaseId(); + + public override Type? ResponseObject() => typeof(DatabasePrincipalListResultModel); + + public override string? UriSuffix() => "/addPrincipals"; + + +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Databases/Operation-CheckNameAvailability.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Databases/Operation-CheckNameAvailability.cs new file mode 100644 index 00000000000..29c1284f610 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Databases/Operation-CheckNameAvailability.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.Kusto.v2023_08_15.Databases; + +internal class CheckNameAvailabilityOperation : Pandora.Definitions.Operations.PostOperation +{ + public override IEnumerable ExpectedStatusCodes() => new List + { + HttpStatusCode.OK, + }; + + public override Type? RequestObject() => typeof(CheckNameRequestModel); + + public override ResourceID? ResourceId() => new ClusterId(); + + public override Type? ResponseObject() => typeof(CheckNameResultModel); + + public override string? UriSuffix() => "/checkNameAvailability"; + + +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Databases/Operation-CreateOrUpdate.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Databases/Operation-CreateOrUpdate.cs new file mode 100644 index 00000000000..e39f88a3b48 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Databases/Operation-CreateOrUpdate.cs @@ -0,0 +1,40 @@ +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.Kusto.v2023_08_15.Databases; + +internal class CreateOrUpdateOperation : Pandora.Definitions.Operations.PutOperation +{ + public override IEnumerable ExpectedStatusCodes() => new List + { + HttpStatusCode.Accepted, + HttpStatusCode.Created, + HttpStatusCode.OK, + }; + + public override bool LongRunning() => true; + + public override Type? RequestObject() => typeof(DatabaseModel); + + public override ResourceID? ResourceId() => new DatabaseId(); + + public override Type? ResponseObject() => typeof(DatabaseModel); + + public override Type? OptionsObject() => typeof(CreateOrUpdateOperation.CreateOrUpdateOptions); + + internal class CreateOrUpdateOptions + { + [QueryStringName("callerRole")] + [Optional] + public CallerRoleConstant CallerRole { get; set; } + } +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Databases/Operation-DatabaseInviteFollower.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Databases/Operation-DatabaseInviteFollower.cs new file mode 100644 index 00000000000..1ab4d6a6b26 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Databases/Operation-DatabaseInviteFollower.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.Kusto.v2023_08_15.Databases; + +internal class DatabaseInviteFollowerOperation : Pandora.Definitions.Operations.PostOperation +{ + public override IEnumerable ExpectedStatusCodes() => new List + { + HttpStatusCode.OK, + }; + + public override Type? RequestObject() => typeof(DatabaseInviteFollowerRequestModel); + + public override ResourceID? ResourceId() => new DatabaseId(); + + public override Type? ResponseObject() => typeof(DatabaseInviteFollowerResultModel); + + public override string? UriSuffix() => "/inviteFollower"; + + +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Databases/Operation-Delete.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Databases/Operation-Delete.cs new file mode 100644 index 00000000000..25c3bd6a517 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Databases/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.Kusto.v2023_08_15.Databases; + +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 DatabaseId(); + + +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Databases/Operation-Get.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Databases/Operation-Get.cs new file mode 100644 index 00000000000..ec42bcff284 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Databases/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.Kusto.v2023_08_15.Databases; + +internal class GetOperation : Pandora.Definitions.Operations.GetOperation +{ + public override ResourceID? ResourceId() => new DatabaseId(); + + public override Type? ResponseObject() => typeof(DatabaseModel); + + +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Databases/Operation-ListByCluster.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Databases/Operation-ListByCluster.cs new file mode 100644 index 00000000000..56ae4840325 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Databases/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.Kusto.v2023_08_15.Databases; + +internal class ListByClusterOperation : Pandora.Definitions.Operations.ListOperation +{ + public override string? FieldContainingPaginationDetails() => "nextLink"; + + public override ResourceID? ResourceId() => new ClusterId(); + + public override Type NestedItemType() => typeof(DatabaseModel); + + public override Type? OptionsObject() => typeof(ListByClusterOperation.ListByClusterOptions); + + public override string? UriSuffix() => "/databases"; + + internal class ListByClusterOptions + { + [QueryStringName("$top")] + [Optional] + public int Top { get; set; } + } +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Databases/Operation-ListPrincipals.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Databases/Operation-ListPrincipals.cs new file mode 100644 index 00000000000..0c5f34bc107 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Databases/Operation-ListPrincipals.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.Kusto.v2023_08_15.Databases; + +internal class ListPrincipalsOperation : Pandora.Definitions.Operations.PostOperation +{ + public override IEnumerable ExpectedStatusCodes() => new List + { + HttpStatusCode.OK, + }; + + public override Type? RequestObject() => null; + + public override ResourceID? ResourceId() => new DatabaseId(); + + public override Type? ResponseObject() => typeof(DatabasePrincipalListResultModel); + + public override string? UriSuffix() => "/listPrincipals"; + + +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Databases/Operation-RemovePrincipals.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Databases/Operation-RemovePrincipals.cs new file mode 100644 index 00000000000..bd7730a9cba --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Databases/Operation-RemovePrincipals.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.Kusto.v2023_08_15.Databases; + +internal class RemovePrincipalsOperation : Pandora.Definitions.Operations.PostOperation +{ + public override IEnumerable ExpectedStatusCodes() => new List + { + HttpStatusCode.OK, + }; + + public override Type? RequestObject() => typeof(DatabasePrincipalListRequestModel); + + public override ResourceID? ResourceId() => new DatabaseId(); + + public override Type? ResponseObject() => typeof(DatabasePrincipalListResultModel); + + public override string? UriSuffix() => "/removePrincipals"; + + +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Databases/Operation-Update.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Databases/Operation-Update.cs new file mode 100644 index 00000000000..3b6d508e745 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Databases/Operation-Update.cs @@ -0,0 +1,40 @@ +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.Kusto.v2023_08_15.Databases; + +internal class UpdateOperation : Pandora.Definitions.Operations.PatchOperation +{ + public override IEnumerable ExpectedStatusCodes() => new List + { + HttpStatusCode.Accepted, + HttpStatusCode.Created, + HttpStatusCode.OK, + }; + + public override bool LongRunning() => true; + + public override Type? RequestObject() => typeof(DatabaseModel); + + public override ResourceID? ResourceId() => new DatabaseId(); + + public override Type? ResponseObject() => typeof(DatabaseModel); + + public override Type? OptionsObject() => typeof(UpdateOperation.UpdateOptions); + + internal class UpdateOptions + { + [QueryStringName("callerRole")] + [Optional] + public CallerRoleConstant CallerRole { get; set; } + } +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Databases/ResourceId-ClusterId.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Databases/ResourceId-ClusterId.cs new file mode 100644 index 00000000000..81d81bf1a3d --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Databases/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.Kusto.v2023_08_15.Databases; + +internal class ClusterId : ResourceID +{ + public string? CommonAlias => null; + + public string ID => "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/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("staticMicrosoftKusto", "Microsoft.Kusto"), + ResourceIDSegment.Static("staticClusters", "clusters"), + ResourceIDSegment.UserSpecified("clusterName"), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Databases/ResourceId-DatabaseId.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Databases/ResourceId-DatabaseId.cs new file mode 100644 index 00000000000..ba398621ad0 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Databases/ResourceId-DatabaseId.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.Kusto.v2023_08_15.Databases; + +internal class DatabaseId : ResourceID +{ + public string? CommonAlias => null; + + public string ID => "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}"; + + 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("staticMicrosoftKusto", "Microsoft.Kusto"), + ResourceIDSegment.Static("staticClusters", "clusters"), + ResourceIDSegment.UserSpecified("clusterName"), + ResourceIDSegment.Static("staticDatabases", "databases"), + ResourceIDSegment.UserSpecified("databaseName"), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Kusto/Definition.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Kusto/Definition.cs new file mode 100644 index 00000000000..8e7d0b84c5f --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Kusto/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.Kusto.v2023_08_15.Kusto; + +internal class Definition : ResourceDefinition +{ + public string Name => "Kusto"; + public IEnumerable Operations => new List + { + new ClustersListSkusOperation(), + new SkusListOperation(), + }; + public IEnumerable Constants => new List + { + + }; + public IEnumerable Models => new List + { + typeof(ResourceSkuCapabilitiesModel), + typeof(ResourceSkuZoneDetailsModel), + typeof(SkuDescriptionModel), + typeof(SkuDescriptionListModel), + typeof(SkuLocationInfoItemModel), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Kusto/Model-ResourceSkuCapabilities.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Kusto/Model-ResourceSkuCapabilities.cs new file mode 100644 index 00000000000..8277d145fb8 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Kusto/Model-ResourceSkuCapabilities.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.Kusto.v2023_08_15.Kusto; + + +internal class ResourceSkuCapabilitiesModel +{ + [JsonPropertyName("name")] + public string? Name { get; set; } + + [JsonPropertyName("value")] + public string? Value { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Kusto/Model-ResourceSkuZoneDetails.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Kusto/Model-ResourceSkuZoneDetails.cs new file mode 100644 index 00000000000..0cff6c2acca --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Kusto/Model-ResourceSkuZoneDetails.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.Kusto.v2023_08_15.Kusto; + + +internal class ResourceSkuZoneDetailsModel +{ + [JsonPropertyName("capabilities")] + public List? Capabilities { get; set; } + + [JsonPropertyName("name")] + public List? Name { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Kusto/Model-SkuDescription.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Kusto/Model-SkuDescription.cs new file mode 100644 index 00000000000..684d299db3e --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Kusto/Model-SkuDescription.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.Kusto.v2023_08_15.Kusto; + + +internal class SkuDescriptionModel +{ + [JsonPropertyName("locationInfo")] + public List? LocationInfo { get; set; } + + [JsonPropertyName("locations")] + public List? Locations { get; set; } + + [JsonPropertyName("name")] + public string? Name { get; set; } + + [JsonPropertyName("resourceType")] + public string? ResourceType { get; set; } + + [JsonPropertyName("restrictions")] + public List? Restrictions { get; set; } + + [JsonPropertyName("tier")] + public string? Tier { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Kusto/Model-SkuDescriptionList.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Kusto/Model-SkuDescriptionList.cs new file mode 100644 index 00000000000..a391db10e81 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Kusto/Model-SkuDescriptionList.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.Kusto.v2023_08_15.Kusto; + + +internal class SkuDescriptionListModel +{ + [JsonPropertyName("value")] + public List? Value { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Kusto/Model-SkuLocationInfoItem.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Kusto/Model-SkuLocationInfoItem.cs new file mode 100644 index 00000000000..1c0228a3a9c --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Kusto/Model-SkuLocationInfoItem.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.Kusto.v2023_08_15.Kusto; + + +internal class SkuLocationInfoItemModel +{ + [JsonPropertyName("location")] + [Required] + public CustomTypes.Location Location { get; set; } + + [JsonPropertyName("zoneDetails")] + public List? ZoneDetails { get; set; } + + [JsonPropertyName("zones")] + public CustomTypes.Zones? Zones { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Kusto/Operation-ClustersListSkus.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Kusto/Operation-ClustersListSkus.cs new file mode 100644 index 00000000000..eb760195c6d --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Kusto/Operation-ClustersListSkus.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.Kusto.v2023_08_15.Kusto; + +internal class ClustersListSkusOperation : Pandora.Definitions.Operations.GetOperation +{ + public override ResourceID? ResourceId() => new SubscriptionId(); + + public override Type? ResponseObject() => typeof(SkuDescriptionListModel); + + public override string? UriSuffix() => "/providers/Microsoft.Kusto/skus"; + + +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Kusto/Operation-SkusList.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Kusto/Operation-SkusList.cs new file mode 100644 index 00000000000..19d9b24b5db --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Kusto/Operation-SkusList.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.Kusto.v2023_08_15.Kusto; + +internal class SkusListOperation : Pandora.Definitions.Operations.GetOperation +{ + public override ResourceID? ResourceId() => new LocationId(); + + public override Type? ResponseObject() => typeof(SkuDescriptionListModel); + + public override string? UriSuffix() => "/skus"; + + +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Kusto/ResourceId-LocationId.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Kusto/ResourceId-LocationId.cs new file mode 100644 index 00000000000..b16033557b2 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Kusto/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.Kusto.v2023_08_15.Kusto; + +internal class LocationId : ResourceID +{ + public string? CommonAlias => null; + + public string ID => "/subscriptions/{subscriptionId}/providers/Microsoft.Kusto/locations/{locationName}"; + + public List Segments => new List + { + ResourceIDSegment.Static("staticSubscriptions", "subscriptions"), + ResourceIDSegment.SubscriptionId("subscriptionId"), + ResourceIDSegment.Static("staticProviders", "providers"), + ResourceIDSegment.ResourceProvider("staticMicrosoftKusto", "Microsoft.Kusto"), + ResourceIDSegment.Static("staticLocations", "locations"), + ResourceIDSegment.UserSpecified("locationName"), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Kusto/ResourceId-SubscriptionId.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Kusto/ResourceId-SubscriptionId.cs new file mode 100644 index 00000000000..dcc4f371ec0 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Kusto/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.Kusto.v2023_08_15.Kusto; + +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/Kusto/v2023_08_15/ManagedPrivateEndpoints/Constant-ManagedPrivateEndpointsType.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/ManagedPrivateEndpoints/Constant-ManagedPrivateEndpointsType.cs new file mode 100644 index 00000000000..6bff159b02a --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/ManagedPrivateEndpoints/Constant-ManagedPrivateEndpointsType.cs @@ -0,0 +1,11 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.Kusto.v2023_08_15.ManagedPrivateEndpoints; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum ManagedPrivateEndpointsTypeConstant +{ + [Description("Microsoft.Kusto/clusters/managedPrivateEndpoints")] + MicrosoftPointKustoClustersManagedPrivateEndpoints, +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/ManagedPrivateEndpoints/Constant-ProvisioningState.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/ManagedPrivateEndpoints/Constant-ProvisioningState.cs new file mode 100644 index 00000000000..a0ef5d8caff --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/ManagedPrivateEndpoints/Constant-ProvisioningState.cs @@ -0,0 +1,29 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.Kusto.v2023_08_15.ManagedPrivateEndpoints; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum ProvisioningStateConstant +{ + [Description("Canceled")] + Canceled, + + [Description("Creating")] + Creating, + + [Description("Deleting")] + Deleting, + + [Description("Failed")] + Failed, + + [Description("Moving")] + Moving, + + [Description("Running")] + Running, + + [Description("Succeeded")] + Succeeded, +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/ManagedPrivateEndpoints/Constant-Reason.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/ManagedPrivateEndpoints/Constant-Reason.cs new file mode 100644 index 00000000000..abc584c0ace --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/ManagedPrivateEndpoints/Constant-Reason.cs @@ -0,0 +1,14 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.Kusto.v2023_08_15.ManagedPrivateEndpoints; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum ReasonConstant +{ + [Description("AlreadyExists")] + AlreadyExists, + + [Description("Invalid")] + Invalid, +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/ManagedPrivateEndpoints/Definition.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/ManagedPrivateEndpoints/Definition.cs new file mode 100644 index 00000000000..3dbedc55178 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/ManagedPrivateEndpoints/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.Kusto.v2023_08_15.ManagedPrivateEndpoints; + +internal class Definition : ResourceDefinition +{ + public string Name => "ManagedPrivateEndpoints"; + public IEnumerable Operations => new List + { + new CheckNameAvailabilityOperation(), + new CreateOrUpdateOperation(), + new DeleteOperation(), + new GetOperation(), + new ListOperation(), + new UpdateOperation(), + }; + public IEnumerable Constants => new List + { + typeof(ManagedPrivateEndpointsTypeConstant), + typeof(ProvisioningStateConstant), + typeof(ReasonConstant), + }; + public IEnumerable Models => new List + { + typeof(CheckNameResultModel), + typeof(ManagedPrivateEndpointModel), + typeof(ManagedPrivateEndpointListResultModel), + typeof(ManagedPrivateEndpointPropertiesModel), + typeof(ManagedPrivateEndpointsCheckNameRequestModel), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/ManagedPrivateEndpoints/Model-CheckNameResult.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/ManagedPrivateEndpoints/Model-CheckNameResult.cs new file mode 100644 index 00000000000..9f6fd38e456 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/ManagedPrivateEndpoints/Model-CheckNameResult.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.Kusto.v2023_08_15.ManagedPrivateEndpoints; + + +internal class CheckNameResultModel +{ + [JsonPropertyName("message")] + public string? Message { get; set; } + + [JsonPropertyName("name")] + public string? Name { get; set; } + + [JsonPropertyName("nameAvailable")] + public bool? NameAvailable { get; set; } + + [JsonPropertyName("reason")] + public ReasonConstant? Reason { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/ManagedPrivateEndpoints/Model-ManagedPrivateEndpoint.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/ManagedPrivateEndpoints/Model-ManagedPrivateEndpoint.cs new file mode 100644 index 00000000000..fd4d3247f2d --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/ManagedPrivateEndpoints/Model-ManagedPrivateEndpoint.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.Kusto.v2023_08_15.ManagedPrivateEndpoints; + + +internal class ManagedPrivateEndpointModel +{ + [JsonPropertyName("id")] + public string? Id { get; set; } + + [JsonPropertyName("name")] + public string? Name { get; set; } + + [JsonPropertyName("properties")] + public ManagedPrivateEndpointPropertiesModel? 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/Kusto/v2023_08_15/ManagedPrivateEndpoints/Model-ManagedPrivateEndpointListResult.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/ManagedPrivateEndpoints/Model-ManagedPrivateEndpointListResult.cs new file mode 100644 index 00000000000..6dd2fbbd394 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/ManagedPrivateEndpoints/Model-ManagedPrivateEndpointListResult.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.Kusto.v2023_08_15.ManagedPrivateEndpoints; + + +internal class ManagedPrivateEndpointListResultModel +{ + [JsonPropertyName("value")] + public List? Value { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/ManagedPrivateEndpoints/Model-ManagedPrivateEndpointProperties.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/ManagedPrivateEndpoints/Model-ManagedPrivateEndpointProperties.cs new file mode 100644 index 00000000000..abfdbce33a1 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/ManagedPrivateEndpoints/Model-ManagedPrivateEndpointProperties.cs @@ -0,0 +1,34 @@ +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.Kusto.v2023_08_15.ManagedPrivateEndpoints; + + +internal class ManagedPrivateEndpointPropertiesModel +{ + [JsonPropertyName("groupId")] + [Required] + public string GroupId { get; set; } + + [JsonPropertyName("privateLinkResourceId")] + [Required] + public string PrivateLinkResourceId { get; set; } + + [JsonPropertyName("privateLinkResourceRegion")] + public string? PrivateLinkResourceRegion { get; set; } + + [JsonPropertyName("provisioningState")] + public ProvisioningStateConstant? ProvisioningState { get; set; } + + [JsonPropertyName("requestMessage")] + public string? RequestMessage { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/ManagedPrivateEndpoints/Model-ManagedPrivateEndpointsCheckNameRequest.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/ManagedPrivateEndpoints/Model-ManagedPrivateEndpointsCheckNameRequest.cs new file mode 100644 index 00000000000..0421399f0b1 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/ManagedPrivateEndpoints/Model-ManagedPrivateEndpointsCheckNameRequest.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.Kusto.v2023_08_15.ManagedPrivateEndpoints; + + +internal class ManagedPrivateEndpointsCheckNameRequestModel +{ + [JsonPropertyName("name")] + [Required] + public string Name { get; set; } + + [JsonPropertyName("type")] + [Required] + public ManagedPrivateEndpointsTypeConstant Type { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/ManagedPrivateEndpoints/Operation-CheckNameAvailability.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/ManagedPrivateEndpoints/Operation-CheckNameAvailability.cs new file mode 100644 index 00000000000..e08b2179634 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/ManagedPrivateEndpoints/Operation-CheckNameAvailability.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.Kusto.v2023_08_15.ManagedPrivateEndpoints; + +internal class CheckNameAvailabilityOperation : Pandora.Definitions.Operations.PostOperation +{ + public override IEnumerable ExpectedStatusCodes() => new List + { + HttpStatusCode.OK, + }; + + public override Type? RequestObject() => typeof(ManagedPrivateEndpointsCheckNameRequestModel); + + public override ResourceID? ResourceId() => new ClusterId(); + + public override Type? ResponseObject() => typeof(CheckNameResultModel); + + public override string? UriSuffix() => "/managedPrivateEndpointsCheckNameAvailability"; + + +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/ManagedPrivateEndpoints/Operation-CreateOrUpdate.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/ManagedPrivateEndpoints/Operation-CreateOrUpdate.cs new file mode 100644 index 00000000000..a74a486243e --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/ManagedPrivateEndpoints/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.Kusto.v2023_08_15.ManagedPrivateEndpoints; + +internal class CreateOrUpdateOperation : Pandora.Definitions.Operations.PutOperation +{ + public override IEnumerable ExpectedStatusCodes() => new List + { + HttpStatusCode.Accepted, + HttpStatusCode.Created, + HttpStatusCode.OK, + }; + + public override bool LongRunning() => true; + + public override Type? RequestObject() => typeof(ManagedPrivateEndpointModel); + + public override ResourceID? ResourceId() => new ManagedPrivateEndpointId(); + + public override Type? ResponseObject() => typeof(ManagedPrivateEndpointModel); + + +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/ManagedPrivateEndpoints/Operation-Delete.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/ManagedPrivateEndpoints/Operation-Delete.cs new file mode 100644 index 00000000000..8064bd2abb6 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/ManagedPrivateEndpoints/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.Kusto.v2023_08_15.ManagedPrivateEndpoints; + +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 ManagedPrivateEndpointId(); + + +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/ManagedPrivateEndpoints/Operation-Get.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/ManagedPrivateEndpoints/Operation-Get.cs new file mode 100644 index 00000000000..e41c8e3618e --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/ManagedPrivateEndpoints/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.Kusto.v2023_08_15.ManagedPrivateEndpoints; + +internal class GetOperation : Pandora.Definitions.Operations.GetOperation +{ + public override ResourceID? ResourceId() => new ManagedPrivateEndpointId(); + + public override Type? ResponseObject() => typeof(ManagedPrivateEndpointModel); + + +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/ManagedPrivateEndpoints/Operation-List.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/ManagedPrivateEndpoints/Operation-List.cs new file mode 100644 index 00000000000..ec5a7dad3e3 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/ManagedPrivateEndpoints/Operation-List.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.Kusto.v2023_08_15.ManagedPrivateEndpoints; + +internal class ListOperation : Pandora.Definitions.Operations.GetOperation +{ + public override ResourceID? ResourceId() => new ClusterId(); + + public override Type? ResponseObject() => typeof(ManagedPrivateEndpointListResultModel); + + public override string? UriSuffix() => "/managedPrivateEndpoints"; + + +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/ManagedPrivateEndpoints/Operation-Update.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/ManagedPrivateEndpoints/Operation-Update.cs new file mode 100644 index 00000000000..93cba100101 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/ManagedPrivateEndpoints/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.Kusto.v2023_08_15.ManagedPrivateEndpoints; + +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(ManagedPrivateEndpointModel); + + public override ResourceID? ResourceId() => new ManagedPrivateEndpointId(); + + public override Type? ResponseObject() => typeof(ManagedPrivateEndpointModel); + + +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/ManagedPrivateEndpoints/ResourceId-ClusterId.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/ManagedPrivateEndpoints/ResourceId-ClusterId.cs new file mode 100644 index 00000000000..235413514f9 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/ManagedPrivateEndpoints/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.Kusto.v2023_08_15.ManagedPrivateEndpoints; + +internal class ClusterId : ResourceID +{ + public string? CommonAlias => null; + + public string ID => "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/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("staticMicrosoftKusto", "Microsoft.Kusto"), + ResourceIDSegment.Static("staticClusters", "clusters"), + ResourceIDSegment.UserSpecified("clusterName"), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/ManagedPrivateEndpoints/ResourceId-ManagedPrivateEndpointId.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/ManagedPrivateEndpoints/ResourceId-ManagedPrivateEndpointId.cs new file mode 100644 index 00000000000..b6bdb03871b --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/ManagedPrivateEndpoints/ResourceId-ManagedPrivateEndpointId.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.Kusto.v2023_08_15.ManagedPrivateEndpoints; + +internal class ManagedPrivateEndpointId : ResourceID +{ + public string? CommonAlias => null; + + public string ID => "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/managedPrivateEndpoints/{managedPrivateEndpointName}"; + + 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("staticMicrosoftKusto", "Microsoft.Kusto"), + ResourceIDSegment.Static("staticClusters", "clusters"), + ResourceIDSegment.UserSpecified("clusterName"), + ResourceIDSegment.Static("staticManagedPrivateEndpoints", "managedPrivateEndpoints"), + ResourceIDSegment.UserSpecified("managedPrivateEndpointName"), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/OutboundNetworkDependenciesEndpoints/Constant-ProvisioningState.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/OutboundNetworkDependenciesEndpoints/Constant-ProvisioningState.cs new file mode 100644 index 00000000000..25e624ac4ac --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/OutboundNetworkDependenciesEndpoints/Constant-ProvisioningState.cs @@ -0,0 +1,29 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.Kusto.v2023_08_15.OutboundNetworkDependenciesEndpoints; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum ProvisioningStateConstant +{ + [Description("Canceled")] + Canceled, + + [Description("Creating")] + Creating, + + [Description("Deleting")] + Deleting, + + [Description("Failed")] + Failed, + + [Description("Moving")] + Moving, + + [Description("Running")] + Running, + + [Description("Succeeded")] + Succeeded, +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/OutboundNetworkDependenciesEndpoints/Definition.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/OutboundNetworkDependenciesEndpoints/Definition.cs new file mode 100644 index 00000000000..d948dd3f3ac --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/OutboundNetworkDependenciesEndpoints/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.Kusto.v2023_08_15.OutboundNetworkDependenciesEndpoints; + +internal class Definition : ResourceDefinition +{ + public string Name => "OutboundNetworkDependenciesEndpoints"; + public IEnumerable Operations => new List + { + new ClustersListOutboundNetworkDependenciesEndpointsOperation(), + }; + public IEnumerable Constants => new List + { + typeof(ProvisioningStateConstant), + }; + public IEnumerable Models => new List + { + typeof(EndpointDependencyModel), + typeof(EndpointDetailModel), + typeof(OutboundNetworkDependenciesEndpointModel), + typeof(OutboundNetworkDependenciesEndpointPropertiesModel), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/OutboundNetworkDependenciesEndpoints/Model-EndpointDependency.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/OutboundNetworkDependenciesEndpoints/Model-EndpointDependency.cs new file mode 100644 index 00000000000..62269347db1 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/OutboundNetworkDependenciesEndpoints/Model-EndpointDependency.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.Kusto.v2023_08_15.OutboundNetworkDependenciesEndpoints; + + +internal class EndpointDependencyModel +{ + [JsonPropertyName("domainName")] + public string? DomainName { get; set; } + + [JsonPropertyName("endpointDetails")] + public List? EndpointDetails { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/OutboundNetworkDependenciesEndpoints/Model-EndpointDetail.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/OutboundNetworkDependenciesEndpoints/Model-EndpointDetail.cs new file mode 100644 index 00000000000..9a501f108b1 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/OutboundNetworkDependenciesEndpoints/Model-EndpointDetail.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.Kusto.v2023_08_15.OutboundNetworkDependenciesEndpoints; + + +internal class EndpointDetailModel +{ + [JsonPropertyName("ipAddress")] + public string? IPAddress { get; set; } + + [JsonPropertyName("port")] + public int? Port { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/OutboundNetworkDependenciesEndpoints/Model-OutboundNetworkDependenciesEndpoint.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/OutboundNetworkDependenciesEndpoints/Model-OutboundNetworkDependenciesEndpoint.cs new file mode 100644 index 00000000000..ee83d253d4f --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/OutboundNetworkDependenciesEndpoints/Model-OutboundNetworkDependenciesEndpoint.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.Kusto.v2023_08_15.OutboundNetworkDependenciesEndpoints; + + +internal class OutboundNetworkDependenciesEndpointModel +{ + [JsonPropertyName("etag")] + public string? Etag { get; set; } + + [JsonPropertyName("id")] + public string? Id { get; set; } + + [JsonPropertyName("name")] + public string? Name { get; set; } + + [JsonPropertyName("properties")] + public OutboundNetworkDependenciesEndpointPropertiesModel? Properties { get; set; } + + [JsonPropertyName("type")] + public string? Type { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/OutboundNetworkDependenciesEndpoints/Model-OutboundNetworkDependenciesEndpointProperties.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/OutboundNetworkDependenciesEndpoints/Model-OutboundNetworkDependenciesEndpointProperties.cs new file mode 100644 index 00000000000..37ff476244b --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/OutboundNetworkDependenciesEndpoints/Model-OutboundNetworkDependenciesEndpointProperties.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.Kusto.v2023_08_15.OutboundNetworkDependenciesEndpoints; + + +internal class OutboundNetworkDependenciesEndpointPropertiesModel +{ + [JsonPropertyName("category")] + public string? Category { get; set; } + + [JsonPropertyName("endpoints")] + public List? Endpoints { get; set; } + + [JsonPropertyName("provisioningState")] + public ProvisioningStateConstant? ProvisioningState { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/OutboundNetworkDependenciesEndpoints/Operation-ClustersListOutboundNetworkDependenciesEndpoints.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/OutboundNetworkDependenciesEndpoints/Operation-ClustersListOutboundNetworkDependenciesEndpoints.cs new file mode 100644 index 00000000000..b4bd978cfea --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/OutboundNetworkDependenciesEndpoints/Operation-ClustersListOutboundNetworkDependenciesEndpoints.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.Kusto.v2023_08_15.OutboundNetworkDependenciesEndpoints; + +internal class ClustersListOutboundNetworkDependenciesEndpointsOperation : Pandora.Definitions.Operations.ListOperation +{ + public override string? FieldContainingPaginationDetails() => "nextLink"; + + public override ResourceID? ResourceId() => new ClusterId(); + + public override Type NestedItemType() => typeof(OutboundNetworkDependenciesEndpointModel); + + public override string? UriSuffix() => "/outboundNetworkDependenciesEndpoints"; + + +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/OutboundNetworkDependenciesEndpoints/ResourceId-ClusterId.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/OutboundNetworkDependenciesEndpoints/ResourceId-ClusterId.cs new file mode 100644 index 00000000000..bb360b95d4f --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/OutboundNetworkDependenciesEndpoints/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.Kusto.v2023_08_15.OutboundNetworkDependenciesEndpoints; + +internal class ClusterId : ResourceID +{ + public string? CommonAlias => null; + + public string ID => "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/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("staticMicrosoftKusto", "Microsoft.Kusto"), + ResourceIDSegment.Static("staticClusters", "clusters"), + ResourceIDSegment.UserSpecified("clusterName"), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/PrivateEndpointConnections/Definition.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/PrivateEndpointConnections/Definition.cs new file mode 100644 index 00000000000..80413e82d9c --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/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.Kusto.v2023_08_15.PrivateEndpointConnections; + +internal class Definition : ResourceDefinition +{ + public string Name => "PrivateEndpointConnections"; + public IEnumerable Operations => new List + { + new CreateOrUpdateOperation(), + new DeleteOperation(), + new GetOperation(), + new ListOperation(), + }; + public IEnumerable Constants => new List + { + + }; + public IEnumerable Models => new List + { + typeof(PrivateEndpointConnectionModel), + typeof(PrivateEndpointConnectionListResultModel), + typeof(PrivateEndpointConnectionPropertiesModel), + typeof(PrivateEndpointPropertyModel), + typeof(PrivateLinkServiceConnectionStatePropertyModel), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/PrivateEndpointConnections/Model-PrivateEndpointConnection.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/PrivateEndpointConnections/Model-PrivateEndpointConnection.cs new file mode 100644 index 00000000000..b0b54a3567a --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/PrivateEndpointConnections/Model-PrivateEndpointConnection.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.Kusto.v2023_08_15.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("systemData")] + public CustomTypes.SystemData? SystemData { get; set; } + + [JsonPropertyName("type")] + public string? Type { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/PrivateEndpointConnections/Model-PrivateEndpointConnectionListResult.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/PrivateEndpointConnections/Model-PrivateEndpointConnectionListResult.cs new file mode 100644 index 00000000000..d8d9961fb3b --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/PrivateEndpointConnections/Model-PrivateEndpointConnectionListResult.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.Kusto.v2023_08_15.PrivateEndpointConnections; + + +internal class PrivateEndpointConnectionListResultModel +{ + [JsonPropertyName("value")] + public List? Value { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/PrivateEndpointConnections/Model-PrivateEndpointConnectionProperties.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/PrivateEndpointConnections/Model-PrivateEndpointConnectionProperties.cs new file mode 100644 index 00000000000..5b6ef1ac32a --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/PrivateEndpointConnections/Model-PrivateEndpointConnectionProperties.cs @@ -0,0 +1,30 @@ +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.Kusto.v2023_08_15.PrivateEndpointConnections; + + +internal class PrivateEndpointConnectionPropertiesModel +{ + [JsonPropertyName("groupId")] + public string? GroupId { get; set; } + + [JsonPropertyName("privateEndpoint")] + public PrivateEndpointPropertyModel? PrivateEndpoint { get; set; } + + [JsonPropertyName("privateLinkServiceConnectionState")] + [Required] + public PrivateLinkServiceConnectionStatePropertyModel PrivateLinkServiceConnectionState { get; set; } + + [JsonPropertyName("provisioningState")] + public string? ProvisioningState { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/PrivateEndpointConnections/Model-PrivateEndpointProperty.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/PrivateEndpointConnections/Model-PrivateEndpointProperty.cs new file mode 100644 index 00000000000..8fcf5e278a6 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/PrivateEndpointConnections/Model-PrivateEndpointProperty.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.Kusto.v2023_08_15.PrivateEndpointConnections; + + +internal class PrivateEndpointPropertyModel +{ + [JsonPropertyName("id")] + public string? Id { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/PrivateEndpointConnections/Model-PrivateLinkServiceConnectionStateProperty.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/PrivateEndpointConnections/Model-PrivateLinkServiceConnectionStateProperty.cs new file mode 100644 index 00000000000..646c5403d5c --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/PrivateEndpointConnections/Model-PrivateLinkServiceConnectionStateProperty.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.Kusto.v2023_08_15.PrivateEndpointConnections; + + +internal class PrivateLinkServiceConnectionStatePropertyModel +{ + [JsonPropertyName("actionsRequired")] + public string? ActionsRequired { get; set; } + + [JsonPropertyName("description")] + public string? Description { get; set; } + + [JsonPropertyName("status")] + public string? Status { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/PrivateEndpointConnections/Operation-CreateOrUpdate.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/PrivateEndpointConnections/Operation-CreateOrUpdate.cs new file mode 100644 index 00000000000..0dfdc442cb5 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/PrivateEndpointConnections/Operation-CreateOrUpdate.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.Kusto.v2023_08_15.PrivateEndpointConnections; + +internal class CreateOrUpdateOperation : Pandora.Definitions.Operations.PutOperation +{ + public override bool LongRunning() => true; + + public override Type? RequestObject() => typeof(PrivateEndpointConnectionModel); + + public override ResourceID? ResourceId() => new PrivateEndpointConnectionId(); + + public override Type? ResponseObject() => typeof(PrivateEndpointConnectionModel); + + +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/PrivateEndpointConnections/Operation-Delete.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/PrivateEndpointConnections/Operation-Delete.cs new file mode 100644 index 00000000000..d55c3a81583 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/PrivateEndpointConnections/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.Kusto.v2023_08_15.PrivateEndpointConnections; + +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 PrivateEndpointConnectionId(); + + +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/PrivateEndpointConnections/Operation-Get.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/PrivateEndpointConnections/Operation-Get.cs new file mode 100644 index 00000000000..a7dfb12336c --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/PrivateEndpointConnections/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.Kusto.v2023_08_15.PrivateEndpointConnections; + +internal class GetOperation : Pandora.Definitions.Operations.GetOperation +{ + public override ResourceID? ResourceId() => new PrivateEndpointConnectionId(); + + public override Type? ResponseObject() => typeof(PrivateEndpointConnectionModel); + + +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/PrivateEndpointConnections/Operation-List.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/PrivateEndpointConnections/Operation-List.cs new file mode 100644 index 00000000000..158c4c57b58 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/PrivateEndpointConnections/Operation-List.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.Kusto.v2023_08_15.PrivateEndpointConnections; + +internal class ListOperation : Pandora.Definitions.Operations.GetOperation +{ + public override ResourceID? ResourceId() => new ClusterId(); + + public override Type? ResponseObject() => typeof(PrivateEndpointConnectionListResultModel); + + public override string? UriSuffix() => "/privateEndpointConnections"; + + +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/PrivateEndpointConnections/ResourceId-ClusterId.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/PrivateEndpointConnections/ResourceId-ClusterId.cs new file mode 100644 index 00000000000..b9812124307 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/PrivateEndpointConnections/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.Kusto.v2023_08_15.PrivateEndpointConnections; + +internal class ClusterId : ResourceID +{ + public string? CommonAlias => null; + + public string ID => "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/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("staticMicrosoftKusto", "Microsoft.Kusto"), + ResourceIDSegment.Static("staticClusters", "clusters"), + ResourceIDSegment.UserSpecified("clusterName"), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/PrivateEndpointConnections/ResourceId-PrivateEndpointConnectionId.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/PrivateEndpointConnections/ResourceId-PrivateEndpointConnectionId.cs new file mode 100644 index 00000000000..ff2663e532b --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/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.Kusto.v2023_08_15.PrivateEndpointConnections; + +internal class PrivateEndpointConnectionId : ResourceID +{ + public string? CommonAlias => null; + + public string ID => "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/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("staticMicrosoftKusto", "Microsoft.Kusto"), + ResourceIDSegment.Static("staticClusters", "clusters"), + ResourceIDSegment.UserSpecified("clusterName"), + ResourceIDSegment.Static("staticPrivateEndpointConnections", "privateEndpointConnections"), + ResourceIDSegment.UserSpecified("privateEndpointConnectionName"), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/PrivateLinkResources/Definition.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/PrivateLinkResources/Definition.cs new file mode 100644 index 00000000000..98c1ae90013 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/PrivateLinkResources/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.Kusto.v2023_08_15.PrivateLinkResources; + +internal class Definition : ResourceDefinition +{ + public string Name => "PrivateLinkResources"; + public IEnumerable Operations => new List + { + new GetOperation(), + new ListOperation(), + }; + public IEnumerable Constants => new List + { + + }; + public IEnumerable Models => new List + { + typeof(PrivateLinkResourceModel), + typeof(PrivateLinkResourceListResultModel), + typeof(PrivateLinkResourcePropertiesModel), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/PrivateLinkResources/Model-PrivateLinkResource.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/PrivateLinkResources/Model-PrivateLinkResource.cs new file mode 100644 index 00000000000..be14e48db9f --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/PrivateLinkResources/Model-PrivateLinkResource.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.Kusto.v2023_08_15.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("systemData")] + public CustomTypes.SystemData? SystemData { get; set; } + + [JsonPropertyName("type")] + public string? Type { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/PrivateLinkResources/Model-PrivateLinkResourceListResult.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/PrivateLinkResources/Model-PrivateLinkResourceListResult.cs new file mode 100644 index 00000000000..63ff86e832b --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/PrivateLinkResources/Model-PrivateLinkResourceListResult.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.Kusto.v2023_08_15.PrivateLinkResources; + + +internal class PrivateLinkResourceListResultModel +{ + [JsonPropertyName("value")] + public List? Value { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/PrivateLinkResources/Model-PrivateLinkResourceProperties.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/PrivateLinkResources/Model-PrivateLinkResourceProperties.cs new file mode 100644 index 00000000000..46ed8326983 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/PrivateLinkResources/Model-PrivateLinkResourceProperties.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.Kusto.v2023_08_15.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; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/PrivateLinkResources/Operation-Get.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/PrivateLinkResources/Operation-Get.cs new file mode 100644 index 00000000000..06e97db4de2 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/PrivateLinkResources/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.Kusto.v2023_08_15.PrivateLinkResources; + +internal class GetOperation : Pandora.Definitions.Operations.GetOperation +{ + public override ResourceID? ResourceId() => new PrivateLinkResourceId(); + + public override Type? ResponseObject() => typeof(PrivateLinkResourceModel); + + +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/PrivateLinkResources/Operation-List.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/PrivateLinkResources/Operation-List.cs new file mode 100644 index 00000000000..132a9200bb2 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/PrivateLinkResources/Operation-List.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.Kusto.v2023_08_15.PrivateLinkResources; + +internal class ListOperation : Pandora.Definitions.Operations.GetOperation +{ + public override ResourceID? ResourceId() => new ClusterId(); + + public override Type? ResponseObject() => typeof(PrivateLinkResourceListResultModel); + + public override string? UriSuffix() => "/privateLinkResources"; + + +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/PrivateLinkResources/ResourceId-ClusterId.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/PrivateLinkResources/ResourceId-ClusterId.cs new file mode 100644 index 00000000000..5efc10e30ee --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/PrivateLinkResources/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.Kusto.v2023_08_15.PrivateLinkResources; + +internal class ClusterId : ResourceID +{ + public string? CommonAlias => null; + + public string ID => "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/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("staticMicrosoftKusto", "Microsoft.Kusto"), + ResourceIDSegment.Static("staticClusters", "clusters"), + ResourceIDSegment.UserSpecified("clusterName"), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/PrivateLinkResources/ResourceId-PrivateLinkResourceId.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/PrivateLinkResources/ResourceId-PrivateLinkResourceId.cs new file mode 100644 index 00000000000..ef1c548d119 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/PrivateLinkResources/ResourceId-PrivateLinkResourceId.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.Kusto.v2023_08_15.PrivateLinkResources; + +internal class PrivateLinkResourceId : ResourceID +{ + public string? CommonAlias => null; + + public string ID => "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/privateLinkResources/{privateLinkResourceName}"; + + 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("staticMicrosoftKusto", "Microsoft.Kusto"), + ResourceIDSegment.Static("staticClusters", "clusters"), + ResourceIDSegment.UserSpecified("clusterName"), + ResourceIDSegment.Static("staticPrivateLinkResources", "privateLinkResources"), + ResourceIDSegment.UserSpecified("privateLinkResourceName"), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/SandboxCustomImages/Constant-Language.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/SandboxCustomImages/Constant-Language.cs new file mode 100644 index 00000000000..8e2b6505dfa --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/SandboxCustomImages/Constant-Language.cs @@ -0,0 +1,11 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.Kusto.v2023_08_15.SandboxCustomImages; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum LanguageConstant +{ + [Description("Python")] + Python, +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/SandboxCustomImages/Constant-ProvisioningState.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/SandboxCustomImages/Constant-ProvisioningState.cs new file mode 100644 index 00000000000..b3110b83b2a --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/SandboxCustomImages/Constant-ProvisioningState.cs @@ -0,0 +1,29 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.Kusto.v2023_08_15.SandboxCustomImages; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum ProvisioningStateConstant +{ + [Description("Canceled")] + Canceled, + + [Description("Creating")] + Creating, + + [Description("Deleting")] + Deleting, + + [Description("Failed")] + Failed, + + [Description("Moving")] + Moving, + + [Description("Running")] + Running, + + [Description("Succeeded")] + Succeeded, +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/SandboxCustomImages/Constant-Reason.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/SandboxCustomImages/Constant-Reason.cs new file mode 100644 index 00000000000..92985083de0 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/SandboxCustomImages/Constant-Reason.cs @@ -0,0 +1,14 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.Kusto.v2023_08_15.SandboxCustomImages; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum ReasonConstant +{ + [Description("AlreadyExists")] + AlreadyExists, + + [Description("Invalid")] + Invalid, +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/SandboxCustomImages/Constant-SandboxCustomImageType.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/SandboxCustomImages/Constant-SandboxCustomImageType.cs new file mode 100644 index 00000000000..14b96a31065 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/SandboxCustomImages/Constant-SandboxCustomImageType.cs @@ -0,0 +1,11 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.Kusto.v2023_08_15.SandboxCustomImages; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum SandboxCustomImageTypeConstant +{ + [Description("Microsoft.Kusto/clusters/sandboxCustomImages")] + MicrosoftPointKustoClustersSandboxCustomImages, +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/SandboxCustomImages/Definition.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/SandboxCustomImages/Definition.cs new file mode 100644 index 00000000000..ef8169df4d2 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/SandboxCustomImages/Definition.cs @@ -0,0 +1,38 @@ +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.Kusto.v2023_08_15.SandboxCustomImages; + +internal class Definition : ResourceDefinition +{ + public string Name => "SandboxCustomImages"; + public IEnumerable Operations => new List + { + new CheckNameAvailabilityOperation(), + new CreateOrUpdateOperation(), + new DeleteOperation(), + new GetOperation(), + new ListByClusterOperation(), + new UpdateOperation(), + }; + public IEnumerable Constants => new List + { + typeof(LanguageConstant), + typeof(ProvisioningStateConstant), + typeof(ReasonConstant), + typeof(SandboxCustomImageTypeConstant), + }; + public IEnumerable Models => new List + { + typeof(CheckNameResultModel), + typeof(SandboxCustomImageModel), + typeof(SandboxCustomImagePropertiesModel), + typeof(SandboxCustomImagesCheckNameRequestModel), + typeof(SandboxCustomImagesListResultModel), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/SandboxCustomImages/Model-CheckNameResult.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/SandboxCustomImages/Model-CheckNameResult.cs new file mode 100644 index 00000000000..bec167c7c36 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/SandboxCustomImages/Model-CheckNameResult.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.Kusto.v2023_08_15.SandboxCustomImages; + + +internal class CheckNameResultModel +{ + [JsonPropertyName("message")] + public string? Message { get; set; } + + [JsonPropertyName("name")] + public string? Name { get; set; } + + [JsonPropertyName("nameAvailable")] + public bool? NameAvailable { get; set; } + + [JsonPropertyName("reason")] + public ReasonConstant? Reason { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/SandboxCustomImages/Model-SandboxCustomImage.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/SandboxCustomImages/Model-SandboxCustomImage.cs new file mode 100644 index 00000000000..5b9491e367b --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/SandboxCustomImages/Model-SandboxCustomImage.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.Kusto.v2023_08_15.SandboxCustomImages; + + +internal class SandboxCustomImageModel +{ + [JsonPropertyName("id")] + public string? Id { get; set; } + + [JsonPropertyName("name")] + public string? Name { get; set; } + + [JsonPropertyName("properties")] + public SandboxCustomImagePropertiesModel? Properties { get; set; } + + [JsonPropertyName("type")] + public string? Type { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/SandboxCustomImages/Model-SandboxCustomImageProperties.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/SandboxCustomImages/Model-SandboxCustomImageProperties.cs new file mode 100644 index 00000000000..e4de17d0b5d --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/SandboxCustomImages/Model-SandboxCustomImageProperties.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.Kusto.v2023_08_15.SandboxCustomImages; + + +internal class SandboxCustomImagePropertiesModel +{ + [JsonPropertyName("language")] + [Required] + public LanguageConstant Language { get; set; } + + [JsonPropertyName("languageVersion")] + [Required] + public string LanguageVersion { get; set; } + + [JsonPropertyName("provisioningState")] + public ProvisioningStateConstant? ProvisioningState { get; set; } + + [JsonPropertyName("requirementsFileContent")] + public string? RequirementsFileContent { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/SandboxCustomImages/Model-SandboxCustomImagesCheckNameRequest.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/SandboxCustomImages/Model-SandboxCustomImagesCheckNameRequest.cs new file mode 100644 index 00000000000..543444e8d6c --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/SandboxCustomImages/Model-SandboxCustomImagesCheckNameRequest.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.Kusto.v2023_08_15.SandboxCustomImages; + + +internal class SandboxCustomImagesCheckNameRequestModel +{ + [JsonPropertyName("name")] + [Required] + public string Name { get; set; } + + [JsonPropertyName("type")] + [Required] + public SandboxCustomImageTypeConstant Type { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/SandboxCustomImages/Model-SandboxCustomImagesListResult.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/SandboxCustomImages/Model-SandboxCustomImagesListResult.cs new file mode 100644 index 00000000000..a4f527a4f57 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/SandboxCustomImages/Model-SandboxCustomImagesListResult.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.Kusto.v2023_08_15.SandboxCustomImages; + + +internal class SandboxCustomImagesListResultModel +{ + [JsonPropertyName("nextLink")] + public string? NextLink { get; set; } + + [JsonPropertyName("value")] + public List? Value { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/SandboxCustomImages/Operation-CheckNameAvailability.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/SandboxCustomImages/Operation-CheckNameAvailability.cs new file mode 100644 index 00000000000..2417bdea38c --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/SandboxCustomImages/Operation-CheckNameAvailability.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.Kusto.v2023_08_15.SandboxCustomImages; + +internal class CheckNameAvailabilityOperation : Pandora.Definitions.Operations.PostOperation +{ + public override IEnumerable ExpectedStatusCodes() => new List + { + HttpStatusCode.OK, + }; + + public override Type? RequestObject() => typeof(SandboxCustomImagesCheckNameRequestModel); + + public override ResourceID? ResourceId() => new ClusterId(); + + public override Type? ResponseObject() => typeof(CheckNameResultModel); + + public override string? UriSuffix() => "/sandboxCustomImagesCheckNameAvailability"; + + +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/SandboxCustomImages/Operation-CreateOrUpdate.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/SandboxCustomImages/Operation-CreateOrUpdate.cs new file mode 100644 index 00000000000..2d2e0bb1644 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/SandboxCustomImages/Operation-CreateOrUpdate.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.Kusto.v2023_08_15.SandboxCustomImages; + +internal class CreateOrUpdateOperation : Pandora.Definitions.Operations.PutOperation +{ + public override bool LongRunning() => true; + + public override Type? RequestObject() => typeof(SandboxCustomImageModel); + + public override ResourceID? ResourceId() => new SandboxCustomImageId(); + + public override Type? ResponseObject() => typeof(SandboxCustomImageModel); + + +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/SandboxCustomImages/Operation-Delete.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/SandboxCustomImages/Operation-Delete.cs new file mode 100644 index 00000000000..60e140ef9b8 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/SandboxCustomImages/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.Kusto.v2023_08_15.SandboxCustomImages; + +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 SandboxCustomImageId(); + + +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/SandboxCustomImages/Operation-Get.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/SandboxCustomImages/Operation-Get.cs new file mode 100644 index 00000000000..953d4f440b1 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/SandboxCustomImages/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.Kusto.v2023_08_15.SandboxCustomImages; + +internal class GetOperation : Pandora.Definitions.Operations.GetOperation +{ + public override ResourceID? ResourceId() => new SandboxCustomImageId(); + + public override Type? ResponseObject() => typeof(SandboxCustomImageModel); + + +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/SandboxCustomImages/Operation-ListByCluster.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/SandboxCustomImages/Operation-ListByCluster.cs new file mode 100644 index 00000000000..6c5b27491fb --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/SandboxCustomImages/Operation-ListByCluster.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.Kusto.v2023_08_15.SandboxCustomImages; + +internal class ListByClusterOperation : Pandora.Definitions.Operations.GetOperation +{ + public override ResourceID? ResourceId() => new ClusterId(); + + public override Type? ResponseObject() => typeof(SandboxCustomImagesListResultModel); + + public override string? UriSuffix() => "/sandboxCustomImages"; + + +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/SandboxCustomImages/Operation-Update.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/SandboxCustomImages/Operation-Update.cs new file mode 100644 index 00000000000..cd83aaabea3 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/SandboxCustomImages/Operation-Update.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.Kusto.v2023_08_15.SandboxCustomImages; + +internal class UpdateOperation : Pandora.Definitions.Operations.PatchOperation +{ + public override IEnumerable ExpectedStatusCodes() => new List + { + HttpStatusCode.Accepted, + HttpStatusCode.Created, + HttpStatusCode.OK, + }; + + public override bool LongRunning() => true; + + public override Type? RequestObject() => typeof(SandboxCustomImageModel); + + public override ResourceID? ResourceId() => new SandboxCustomImageId(); + + public override Type? ResponseObject() => typeof(SandboxCustomImageModel); + + +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/SandboxCustomImages/ResourceId-ClusterId.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/SandboxCustomImages/ResourceId-ClusterId.cs new file mode 100644 index 00000000000..1f0691dd630 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/SandboxCustomImages/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.Kusto.v2023_08_15.SandboxCustomImages; + +internal class ClusterId : ResourceID +{ + public string? CommonAlias => null; + + public string ID => "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/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("staticMicrosoftKusto", "Microsoft.Kusto"), + ResourceIDSegment.Static("staticClusters", "clusters"), + ResourceIDSegment.UserSpecified("clusterName"), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/SandboxCustomImages/ResourceId-SandboxCustomImageId.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/SandboxCustomImages/ResourceId-SandboxCustomImageId.cs new file mode 100644 index 00000000000..48a51cb0c51 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/SandboxCustomImages/ResourceId-SandboxCustomImageId.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.Kusto.v2023_08_15.SandboxCustomImages; + +internal class SandboxCustomImageId : ResourceID +{ + public string? CommonAlias => null; + + public string ID => "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/sandboxCustomImages/{sandboxCustomImageName}"; + + 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("staticMicrosoftKusto", "Microsoft.Kusto"), + ResourceIDSegment.Static("staticClusters", "clusters"), + ResourceIDSegment.UserSpecified("clusterName"), + ResourceIDSegment.Static("staticSandboxCustomImages", "sandboxCustomImages"), + ResourceIDSegment.UserSpecified("sandboxCustomImageName"), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Scripts/Constant-ProvisioningState.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Scripts/Constant-ProvisioningState.cs new file mode 100644 index 00000000000..734b842dfae --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Scripts/Constant-ProvisioningState.cs @@ -0,0 +1,29 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.Kusto.v2023_08_15.Scripts; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum ProvisioningStateConstant +{ + [Description("Canceled")] + Canceled, + + [Description("Creating")] + Creating, + + [Description("Deleting")] + Deleting, + + [Description("Failed")] + Failed, + + [Description("Moving")] + Moving, + + [Description("Running")] + Running, + + [Description("Succeeded")] + Succeeded, +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Scripts/Constant-Reason.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Scripts/Constant-Reason.cs new file mode 100644 index 00000000000..e5bfe4d3591 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Scripts/Constant-Reason.cs @@ -0,0 +1,14 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.Kusto.v2023_08_15.Scripts; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum ReasonConstant +{ + [Description("AlreadyExists")] + AlreadyExists, + + [Description("Invalid")] + Invalid, +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Scripts/Constant-ScriptType.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Scripts/Constant-ScriptType.cs new file mode 100644 index 00000000000..1b64be3dd5f --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Scripts/Constant-ScriptType.cs @@ -0,0 +1,11 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.Kusto.v2023_08_15.Scripts; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum ScriptTypeConstant +{ + [Description("Microsoft.Kusto/clusters/databases/scripts")] + MicrosoftPointKustoClustersDatabasesScripts, +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Scripts/Definition.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Scripts/Definition.cs new file mode 100644 index 00000000000..d284ad88b1e --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Scripts/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.Kusto.v2023_08_15.Scripts; + +internal class Definition : ResourceDefinition +{ + public string Name => "Scripts"; + public IEnumerable Operations => new List + { + new CheckNameAvailabilityOperation(), + new CreateOrUpdateOperation(), + new DeleteOperation(), + new GetOperation(), + new ListByDatabaseOperation(), + new UpdateOperation(), + }; + public IEnumerable Constants => new List + { + typeof(ProvisioningStateConstant), + typeof(ReasonConstant), + typeof(ScriptTypeConstant), + }; + public IEnumerable Models => new List + { + typeof(CheckNameResultModel), + typeof(ScriptModel), + typeof(ScriptCheckNameRequestModel), + typeof(ScriptListResultModel), + typeof(ScriptPropertiesModel), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Scripts/Model-CheckNameResult.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Scripts/Model-CheckNameResult.cs new file mode 100644 index 00000000000..26140a781f0 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Scripts/Model-CheckNameResult.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.Kusto.v2023_08_15.Scripts; + + +internal class CheckNameResultModel +{ + [JsonPropertyName("message")] + public string? Message { get; set; } + + [JsonPropertyName("name")] + public string? Name { get; set; } + + [JsonPropertyName("nameAvailable")] + public bool? NameAvailable { get; set; } + + [JsonPropertyName("reason")] + public ReasonConstant? Reason { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Scripts/Model-Script.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Scripts/Model-Script.cs new file mode 100644 index 00000000000..165f5e52922 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Scripts/Model-Script.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.Kusto.v2023_08_15.Scripts; + + +internal class ScriptModel +{ + [JsonPropertyName("id")] + public string? Id { get; set; } + + [JsonPropertyName("name")] + public string? Name { get; set; } + + [JsonPropertyName("properties")] + public ScriptPropertiesModel? 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/Kusto/v2023_08_15/Scripts/Model-ScriptCheckNameRequest.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Scripts/Model-ScriptCheckNameRequest.cs new file mode 100644 index 00000000000..4fa89b996e6 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Scripts/Model-ScriptCheckNameRequest.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.Kusto.v2023_08_15.Scripts; + + +internal class ScriptCheckNameRequestModel +{ + [JsonPropertyName("name")] + [Required] + public string Name { get; set; } + + [JsonPropertyName("type")] + [Required] + public ScriptTypeConstant Type { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Scripts/Model-ScriptListResult.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Scripts/Model-ScriptListResult.cs new file mode 100644 index 00000000000..f114c0f5648 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Scripts/Model-ScriptListResult.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.Kusto.v2023_08_15.Scripts; + + +internal class ScriptListResultModel +{ + [JsonPropertyName("value")] + public List? Value { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Scripts/Model-ScriptProperties.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Scripts/Model-ScriptProperties.cs new file mode 100644 index 00000000000..816bb869b66 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Scripts/Model-ScriptProperties.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.Kusto.v2023_08_15.Scripts; + + +internal class ScriptPropertiesModel +{ + [JsonPropertyName("continueOnErrors")] + public bool? ContinueOnErrors { get; set; } + + [JsonPropertyName("forceUpdateTag")] + public string? ForceUpdateTag { get; set; } + + [JsonPropertyName("provisioningState")] + public ProvisioningStateConstant? ProvisioningState { get; set; } + + [JsonPropertyName("scriptContent")] + public string? ScriptContent { get; set; } + + [JsonPropertyName("scriptUrl")] + public string? ScriptUrl { get; set; } + + [JsonPropertyName("scriptUrlSasToken")] + public string? ScriptUrlSasToken { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Scripts/Operation-CheckNameAvailability.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Scripts/Operation-CheckNameAvailability.cs new file mode 100644 index 00000000000..94048e391eb --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Scripts/Operation-CheckNameAvailability.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.Kusto.v2023_08_15.Scripts; + +internal class CheckNameAvailabilityOperation : Pandora.Definitions.Operations.PostOperation +{ + public override IEnumerable ExpectedStatusCodes() => new List + { + HttpStatusCode.OK, + }; + + public override Type? RequestObject() => typeof(ScriptCheckNameRequestModel); + + public override ResourceID? ResourceId() => new DatabaseId(); + + public override Type? ResponseObject() => typeof(CheckNameResultModel); + + public override string? UriSuffix() => "/scriptsCheckNameAvailability"; + + +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Scripts/Operation-CreateOrUpdate.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Scripts/Operation-CreateOrUpdate.cs new file mode 100644 index 00000000000..5c182d70954 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Scripts/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.Kusto.v2023_08_15.Scripts; + +internal class CreateOrUpdateOperation : Pandora.Definitions.Operations.PutOperation +{ + public override IEnumerable ExpectedStatusCodes() => new List + { + HttpStatusCode.Accepted, + HttpStatusCode.Created, + HttpStatusCode.OK, + }; + + public override bool LongRunning() => true; + + public override Type? RequestObject() => typeof(ScriptModel); + + public override ResourceID? ResourceId() => new ScriptId(); + + public override Type? ResponseObject() => typeof(ScriptModel); + + +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Scripts/Operation-Delete.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Scripts/Operation-Delete.cs new file mode 100644 index 00000000000..dfe64fc11d5 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Scripts/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.Kusto.v2023_08_15.Scripts; + +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 ScriptId(); + + +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Scripts/Operation-Get.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Scripts/Operation-Get.cs new file mode 100644 index 00000000000..72549de0b68 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Scripts/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.Kusto.v2023_08_15.Scripts; + +internal class GetOperation : Pandora.Definitions.Operations.GetOperation +{ + public override ResourceID? ResourceId() => new ScriptId(); + + public override Type? ResponseObject() => typeof(ScriptModel); + + +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Scripts/Operation-ListByDatabase.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Scripts/Operation-ListByDatabase.cs new file mode 100644 index 00000000000..1add03ddc46 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Scripts/Operation-ListByDatabase.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.Kusto.v2023_08_15.Scripts; + +internal class ListByDatabaseOperation : Pandora.Definitions.Operations.GetOperation +{ + public override ResourceID? ResourceId() => new DatabaseId(); + + public override Type? ResponseObject() => typeof(ScriptListResultModel); + + public override string? UriSuffix() => "/scripts"; + + +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Scripts/Operation-Update.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Scripts/Operation-Update.cs new file mode 100644 index 00000000000..5e26a883677 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Scripts/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.Kusto.v2023_08_15.Scripts; + +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(ScriptModel); + + public override ResourceID? ResourceId() => new ScriptId(); + + public override Type? ResponseObject() => typeof(ScriptModel); + + +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Scripts/ResourceId-DatabaseId.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Scripts/ResourceId-DatabaseId.cs new file mode 100644 index 00000000000..b1abdbe305f --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Scripts/ResourceId-DatabaseId.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.Kusto.v2023_08_15.Scripts; + +internal class DatabaseId : ResourceID +{ + public string? CommonAlias => null; + + public string ID => "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}"; + + 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("staticMicrosoftKusto", "Microsoft.Kusto"), + ResourceIDSegment.Static("staticClusters", "clusters"), + ResourceIDSegment.UserSpecified("clusterName"), + ResourceIDSegment.Static("staticDatabases", "databases"), + ResourceIDSegment.UserSpecified("databaseName"), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Scripts/ResourceId-ScriptId.cs b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Scripts/ResourceId-ScriptId.cs new file mode 100644 index 00000000000..4898e65198c --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/Kusto/v2023_08_15/Scripts/ResourceId-ScriptId.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.Kusto.v2023_08_15.Scripts; + +internal class ScriptId : ResourceID +{ + public string? CommonAlias => null; + + public string ID => "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/scripts/{scriptName}"; + + 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("staticMicrosoftKusto", "Microsoft.Kusto"), + ResourceIDSegment.Static("staticClusters", "clusters"), + ResourceIDSegment.UserSpecified("clusterName"), + ResourceIDSegment.Static("staticDatabases", "databases"), + ResourceIDSegment.UserSpecified("databaseName"), + ResourceIDSegment.Static("staticScripts", "scripts"), + ResourceIDSegment.UserSpecified("scriptName"), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/ApiVersionDefinition-GenerationSetting.cs b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/ApiVersionDefinition-GenerationSetting.cs new file mode 100644 index 00000000000..43fb1170762 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/ApiVersionDefinition-GenerationSetting.cs @@ -0,0 +1,6 @@ +namespace Pandora.Definitions.ResourceManager.RecoveryServices.v2023_06_01; + +public partial class Definition +{ + public bool Generate => true; +} diff --git a/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/ApiVersionDefinition.cs b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/ApiVersionDefinition.cs new file mode 100644 index 00000000000..1b54c361e6e --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/ApiVersionDefinition.cs @@ -0,0 +1,24 @@ +using System.Collections.Generic; +using Pandora.Definitions.Interfaces; + +namespace Pandora.Definitions.ResourceManager.RecoveryServices.v2023_06_01; + +public partial class Definition : ApiVersionDefinition +{ + public string ApiVersion => "2023-06-01"; + public bool Preview => false; + public Source Source => Source.ResourceManagerRestApiSpecs; + + public IEnumerable Resources => new List + { + new GetPrivateLinkResources.Definition(), + new ListPrivateLinkResources.Definition(), + new RecoveryServices.Definition(), + new RegisteredIdentities.Definition(), + new ReplicationUsages.Definition(), + new VaultCertificates.Definition(), + new VaultExtendedInfo.Definition(), + new VaultUsages.Definition(), + new Vaults.Definition(), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/GetPrivateLinkResources/Definition.cs b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/GetPrivateLinkResources/Definition.cs new file mode 100644 index 00000000000..a1e8d17ecf5 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/GetPrivateLinkResources/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.RecoveryServices.v2023_06_01.GetPrivateLinkResources; + +internal class Definition : ResourceDefinition +{ + public string Name => "GetPrivateLinkResources"; + public IEnumerable Operations => new List + { + new PrivateLinkResourcesGetOperation(), + }; + public IEnumerable Constants => new List + { + + }; + public IEnumerable Models => new List + { + typeof(PrivateLinkResourceModel), + typeof(PrivateLinkResourcePropertiesModel), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/GetPrivateLinkResources/Model-PrivateLinkResource.cs b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/GetPrivateLinkResources/Model-PrivateLinkResource.cs new file mode 100644 index 00000000000..37115a44e99 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/GetPrivateLinkResources/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.RecoveryServices.v2023_06_01.GetPrivateLinkResources; + + +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/RecoveryServices/v2023_06_01/GetPrivateLinkResources/Model-PrivateLinkResourceProperties.cs b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/GetPrivateLinkResources/Model-PrivateLinkResourceProperties.cs new file mode 100644 index 00000000000..c2e5dcdd473 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/GetPrivateLinkResources/Model-PrivateLinkResourceProperties.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.RecoveryServices.v2023_06_01.GetPrivateLinkResources; + + +internal class PrivateLinkResourcePropertiesModel +{ + [JsonPropertyName("groupId")] + public string? GroupId { get; set; } + + [JsonPropertyName("requiredMembers")] + public List? RequiredMembers { get; set; } + + [JsonPropertyName("requiredZoneNames")] + public List? RequiredZoneNames { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/GetPrivateLinkResources/Operation-PrivateLinkResourcesGet.cs b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/GetPrivateLinkResources/Operation-PrivateLinkResourcesGet.cs new file mode 100644 index 00000000000..24f33ea8cd3 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/GetPrivateLinkResources/Operation-PrivateLinkResourcesGet.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.RecoveryServices.v2023_06_01.GetPrivateLinkResources; + +internal class PrivateLinkResourcesGetOperation : Pandora.Definitions.Operations.GetOperation +{ + public override ResourceID? ResourceId() => new PrivateLinkResourceId(); + + public override Type? ResponseObject() => typeof(PrivateLinkResourceModel); + + +} diff --git a/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/GetPrivateLinkResources/ResourceId-PrivateLinkResourceId.cs b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/GetPrivateLinkResources/ResourceId-PrivateLinkResourceId.cs new file mode 100644 index 00000000000..206adada2e8 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/GetPrivateLinkResources/ResourceId-PrivateLinkResourceId.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.RecoveryServices.v2023_06_01.GetPrivateLinkResources; + +internal class PrivateLinkResourceId : ResourceID +{ + public string? CommonAlias => null; + + public string ID => "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/privateLinkResources/{privateLinkResourceName}"; + + 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("staticMicrosoftRecoveryServices", "Microsoft.RecoveryServices"), + ResourceIDSegment.Static("staticVaults", "vaults"), + ResourceIDSegment.UserSpecified("vaultName"), + ResourceIDSegment.Static("staticPrivateLinkResources", "privateLinkResources"), + ResourceIDSegment.UserSpecified("privateLinkResourceName"), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/ListPrivateLinkResources/Definition.cs b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/ListPrivateLinkResources/Definition.cs new file mode 100644 index 00000000000..50e2aecf6f1 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/ListPrivateLinkResources/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.RecoveryServices.v2023_06_01.ListPrivateLinkResources; + +internal class Definition : ResourceDefinition +{ + public string Name => "ListPrivateLinkResources"; + public IEnumerable Operations => new List + { + new PrivateLinkResourcesListOperation(), + }; + public IEnumerable Constants => new List + { + + }; + public IEnumerable Models => new List + { + typeof(PrivateLinkResourceModel), + typeof(PrivateLinkResourcePropertiesModel), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/ListPrivateLinkResources/Model-PrivateLinkResource.cs b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/ListPrivateLinkResources/Model-PrivateLinkResource.cs new file mode 100644 index 00000000000..13839c9465b --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/ListPrivateLinkResources/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.RecoveryServices.v2023_06_01.ListPrivateLinkResources; + + +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/RecoveryServices/v2023_06_01/ListPrivateLinkResources/Model-PrivateLinkResourceProperties.cs b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/ListPrivateLinkResources/Model-PrivateLinkResourceProperties.cs new file mode 100644 index 00000000000..352c0b1d141 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/ListPrivateLinkResources/Model-PrivateLinkResourceProperties.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.RecoveryServices.v2023_06_01.ListPrivateLinkResources; + + +internal class PrivateLinkResourcePropertiesModel +{ + [JsonPropertyName("groupId")] + public string? GroupId { get; set; } + + [JsonPropertyName("requiredMembers")] + public List? RequiredMembers { get; set; } + + [JsonPropertyName("requiredZoneNames")] + public List? RequiredZoneNames { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/ListPrivateLinkResources/Operation-PrivateLinkResourcesList.cs b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/ListPrivateLinkResources/Operation-PrivateLinkResourcesList.cs new file mode 100644 index 00000000000..c3460a5b34d --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/ListPrivateLinkResources/Operation-PrivateLinkResourcesList.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.RecoveryServices.v2023_06_01.ListPrivateLinkResources; + +internal class PrivateLinkResourcesListOperation : Pandora.Definitions.Operations.ListOperation +{ + public override string? FieldContainingPaginationDetails() => "nextLink"; + + public override ResourceID? ResourceId() => new VaultId(); + + public override Type NestedItemType() => typeof(PrivateLinkResourceModel); + + public override string? UriSuffix() => "/privateLinkResources"; + + +} diff --git a/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/ListPrivateLinkResources/ResourceId-VaultId.cs b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/ListPrivateLinkResources/ResourceId-VaultId.cs new file mode 100644 index 00000000000..cc02c7c8551 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/ListPrivateLinkResources/ResourceId-VaultId.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.RecoveryServices.v2023_06_01.ListPrivateLinkResources; + +internal class VaultId : ResourceID +{ + public string? CommonAlias => null; + + public string ID => "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}"; + + 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("staticMicrosoftRecoveryServices", "Microsoft.RecoveryServices"), + ResourceIDSegment.Static("staticVaults", "vaults"), + ResourceIDSegment.UserSpecified("vaultName"), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/RecoveryServices/Constant-VaultSubResourceType.cs b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/RecoveryServices/Constant-VaultSubResourceType.cs new file mode 100644 index 00000000000..44db0b9afae --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/RecoveryServices/Constant-VaultSubResourceType.cs @@ -0,0 +1,17 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.RecoveryServices.v2023_06_01.RecoveryServices; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum VaultSubResourceTypeConstant +{ + [Description("AzureBackup")] + AzureBackup, + + [Description("AzureBackup_secondary")] + AzureBackupSecondary, + + [Description("AzureSiteRecovery")] + AzureSiteRecovery, +} diff --git a/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/RecoveryServices/Definition.cs b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/RecoveryServices/Definition.cs new file mode 100644 index 00000000000..f5e3217e618 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/RecoveryServices/Definition.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.RecoveryServices.v2023_06_01.RecoveryServices; + +internal class Definition : ResourceDefinition +{ + public string Name => "RecoveryServices"; + public IEnumerable Operations => new List + { + new CapabilitiesOperation(), + new CheckNameAvailabilityOperation(), + }; + public IEnumerable Constants => new List + { + typeof(VaultSubResourceTypeConstant), + }; + public IEnumerable Models => new List + { + typeof(CapabilitiesPropertiesModel), + typeof(CapabilitiesResponseModel), + typeof(CapabilitiesResponsePropertiesModel), + typeof(CheckNameAvailabilityParametersModel), + typeof(CheckNameAvailabilityResultModel), + typeof(DNSZoneModel), + typeof(DNSZoneResponseModel), + typeof(ResourceCapabilitiesModel), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/RecoveryServices/Model-CapabilitiesProperties.cs b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/RecoveryServices/Model-CapabilitiesProperties.cs new file mode 100644 index 00000000000..77a78f3c9f4 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/RecoveryServices/Model-CapabilitiesProperties.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.RecoveryServices.v2023_06_01.RecoveryServices; + + +internal class CapabilitiesPropertiesModel +{ + [JsonPropertyName("dnsZones")] + public List? DnsZones { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/RecoveryServices/Model-CapabilitiesResponse.cs b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/RecoveryServices/Model-CapabilitiesResponse.cs new file mode 100644 index 00000000000..8c7dbc7d96b --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/RecoveryServices/Model-CapabilitiesResponse.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.RecoveryServices.v2023_06_01.RecoveryServices; + + +internal class CapabilitiesResponseModel +{ + [JsonPropertyName("properties")] + public CapabilitiesResponsePropertiesModel? Properties { get; set; } + + [JsonPropertyName("type")] + [Required] + public string Type { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/RecoveryServices/Model-CapabilitiesResponseProperties.cs b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/RecoveryServices/Model-CapabilitiesResponseProperties.cs new file mode 100644 index 00000000000..113bd4008c2 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/RecoveryServices/Model-CapabilitiesResponseProperties.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.RecoveryServices.v2023_06_01.RecoveryServices; + + +internal class CapabilitiesResponsePropertiesModel +{ + [JsonPropertyName("dnsZones")] + public List? DnsZones { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/RecoveryServices/Model-CheckNameAvailabilityParameters.cs b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/RecoveryServices/Model-CheckNameAvailabilityParameters.cs new file mode 100644 index 00000000000..0f6276124e8 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/RecoveryServices/Model-CheckNameAvailabilityParameters.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.RecoveryServices.v2023_06_01.RecoveryServices; + + +internal class CheckNameAvailabilityParametersModel +{ + [JsonPropertyName("name")] + public string? Name { get; set; } + + [JsonPropertyName("type")] + public string? Type { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/RecoveryServices/Model-CheckNameAvailabilityResult.cs b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/RecoveryServices/Model-CheckNameAvailabilityResult.cs new file mode 100644 index 00000000000..f1ea87bdde1 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/RecoveryServices/Model-CheckNameAvailabilityResult.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.RecoveryServices.v2023_06_01.RecoveryServices; + + +internal class CheckNameAvailabilityResultModel +{ + [JsonPropertyName("message")] + public string? Message { get; set; } + + [JsonPropertyName("nameAvailable")] + public bool? NameAvailable { get; set; } + + [JsonPropertyName("reason")] + public string? Reason { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/RecoveryServices/Model-DNSZone.cs b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/RecoveryServices/Model-DNSZone.cs new file mode 100644 index 00000000000..0a74db5e215 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/RecoveryServices/Model-DNSZone.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.RecoveryServices.v2023_06_01.RecoveryServices; + + +internal class DNSZoneModel +{ + [JsonPropertyName("subResource")] + public VaultSubResourceTypeConstant? SubResource { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/RecoveryServices/Model-DNSZoneResponse.cs b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/RecoveryServices/Model-DNSZoneResponse.cs new file mode 100644 index 00000000000..6519a80d3cd --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/RecoveryServices/Model-DNSZoneResponse.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.RecoveryServices.v2023_06_01.RecoveryServices; + + +internal class DNSZoneResponseModel +{ + [JsonPropertyName("requiredZoneNames")] + public List? RequiredZoneNames { get; set; } + + [JsonPropertyName("subResource")] + public VaultSubResourceTypeConstant? SubResource { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/RecoveryServices/Model-ResourceCapabilities.cs b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/RecoveryServices/Model-ResourceCapabilities.cs new file mode 100644 index 00000000000..fd3afb88a0e --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/RecoveryServices/Model-ResourceCapabilities.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.RecoveryServices.v2023_06_01.RecoveryServices; + + +internal class ResourceCapabilitiesModel +{ + [JsonPropertyName("properties")] + public CapabilitiesPropertiesModel? Properties { get; set; } + + [JsonPropertyName("type")] + [Required] + public string Type { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/RecoveryServices/Operation-Capabilities.cs b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/RecoveryServices/Operation-Capabilities.cs new file mode 100644 index 00000000000..a5b1b82e37b --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/RecoveryServices/Operation-Capabilities.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.RecoveryServices.v2023_06_01.RecoveryServices; + +internal class CapabilitiesOperation : Pandora.Definitions.Operations.PostOperation +{ + public override IEnumerable ExpectedStatusCodes() => new List + { + HttpStatusCode.OK, + }; + + public override Type? RequestObject() => typeof(ResourceCapabilitiesModel); + + public override ResourceID? ResourceId() => new LocationId(); + + public override Type? ResponseObject() => typeof(CapabilitiesResponseModel); + + public override string? UriSuffix() => "/capabilities"; + + +} diff --git a/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/RecoveryServices/Operation-CheckNameAvailability.cs b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/RecoveryServices/Operation-CheckNameAvailability.cs new file mode 100644 index 00000000000..8f7e66f5a6d --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/RecoveryServices/Operation-CheckNameAvailability.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.RecoveryServices.v2023_06_01.RecoveryServices; + +internal class CheckNameAvailabilityOperation : Pandora.Definitions.Operations.PostOperation +{ + public override IEnumerable ExpectedStatusCodes() => new List + { + HttpStatusCode.OK, + }; + + public override Type? RequestObject() => typeof(CheckNameAvailabilityParametersModel); + + public override ResourceID? ResourceId() => new ProviderLocationId(); + + public override Type? ResponseObject() => typeof(CheckNameAvailabilityResultModel); + + public override string? UriSuffix() => "/checkNameAvailability"; + + +} diff --git a/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/RecoveryServices/ResourceId-LocationId.cs b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/RecoveryServices/ResourceId-LocationId.cs new file mode 100644 index 00000000000..95ff5ea1419 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/RecoveryServices/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.RecoveryServices.v2023_06_01.RecoveryServices; + +internal class LocationId : ResourceID +{ + public string? CommonAlias => null; + + public string ID => "/subscriptions/{subscriptionId}/providers/Microsoft.RecoveryServices/locations/{locationName}"; + + public List Segments => new List + { + ResourceIDSegment.Static("staticSubscriptions", "subscriptions"), + ResourceIDSegment.SubscriptionId("subscriptionId"), + ResourceIDSegment.Static("staticProviders", "providers"), + ResourceIDSegment.ResourceProvider("staticMicrosoftRecoveryServices", "Microsoft.RecoveryServices"), + ResourceIDSegment.Static("staticLocations", "locations"), + ResourceIDSegment.UserSpecified("locationName"), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/RecoveryServices/ResourceId-ProviderLocationId.cs b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/RecoveryServices/ResourceId-ProviderLocationId.cs new file mode 100644 index 00000000000..4da0d340ad6 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/RecoveryServices/ResourceId-ProviderLocationId.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.RecoveryServices.v2023_06_01.RecoveryServices; + +internal class ProviderLocationId : ResourceID +{ + public string? CommonAlias => null; + + public string ID => "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/locations/{locationName}"; + + 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("staticMicrosoftRecoveryServices", "Microsoft.RecoveryServices"), + ResourceIDSegment.Static("staticLocations", "locations"), + ResourceIDSegment.UserSpecified("locationName"), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/RegisteredIdentities/Definition.cs b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/RegisteredIdentities/Definition.cs new file mode 100644 index 00000000000..936b970f2e6 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/RegisteredIdentities/Definition.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.RecoveryServices.v2023_06_01.RegisteredIdentities; + +internal class Definition : ResourceDefinition +{ + public string Name => "RegisteredIdentities"; + public IEnumerable Operations => new List + { + new DeleteOperation(), + }; + public IEnumerable Constants => new List + { + + }; + public IEnumerable Models => new List + { + + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/RegisteredIdentities/Operation-Delete.cs b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/RegisteredIdentities/Operation-Delete.cs new file mode 100644 index 00000000000..a1791261ef7 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/RegisteredIdentities/Operation-Delete.cs @@ -0,0 +1,25 @@ +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.RecoveryServices.v2023_06_01.RegisteredIdentities; + +internal class DeleteOperation : Pandora.Definitions.Operations.DeleteOperation +{ + public override IEnumerable ExpectedStatusCodes() => new List + { + HttpStatusCode.NoContent, + }; + + public override ResourceID? ResourceId() => new RegisteredIdentityId(); + + +} diff --git a/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/RegisteredIdentities/ResourceId-RegisteredIdentityId.cs b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/RegisteredIdentities/ResourceId-RegisteredIdentityId.cs new file mode 100644 index 00000000000..bbd002e61ab --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/RegisteredIdentities/ResourceId-RegisteredIdentityId.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.RecoveryServices.v2023_06_01.RegisteredIdentities; + +internal class RegisteredIdentityId : ResourceID +{ + public string? CommonAlias => null; + + public string ID => "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/registeredIdentities/{registeredIdentityName}"; + + 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("staticMicrosoftRecoveryServices", "Microsoft.RecoveryServices"), + ResourceIDSegment.Static("staticVaults", "vaults"), + ResourceIDSegment.UserSpecified("vaultName"), + ResourceIDSegment.Static("staticRegisteredIdentities", "registeredIdentities"), + ResourceIDSegment.UserSpecified("registeredIdentityName"), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/ReplicationUsages/Definition.cs b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/ReplicationUsages/Definition.cs new file mode 100644 index 00000000000..14c3190c865 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/ReplicationUsages/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.RecoveryServices.v2023_06_01.ReplicationUsages; + +internal class Definition : ResourceDefinition +{ + public string Name => "ReplicationUsages"; + public IEnumerable Operations => new List + { + new ListOperation(), + }; + public IEnumerable Constants => new List + { + + }; + public IEnumerable Models => new List + { + typeof(JobsSummaryModel), + typeof(MonitoringSummaryModel), + typeof(ReplicationUsageModel), + typeof(ReplicationUsageListModel), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/ReplicationUsages/Model-JobsSummary.cs b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/ReplicationUsages/Model-JobsSummary.cs new file mode 100644 index 00000000000..981dc93140c --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/ReplicationUsages/Model-JobsSummary.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.RecoveryServices.v2023_06_01.ReplicationUsages; + + +internal class JobsSummaryModel +{ + [JsonPropertyName("failedJobs")] + public int? FailedJobs { get; set; } + + [JsonPropertyName("inProgressJobs")] + public int? InProgressJobs { get; set; } + + [JsonPropertyName("suspendedJobs")] + public int? SuspendedJobs { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/ReplicationUsages/Model-MonitoringSummary.cs b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/ReplicationUsages/Model-MonitoringSummary.cs new file mode 100644 index 00000000000..3feeed80aa1 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/ReplicationUsages/Model-MonitoringSummary.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.RecoveryServices.v2023_06_01.ReplicationUsages; + + +internal class MonitoringSummaryModel +{ + [JsonPropertyName("deprecatedProviderCount")] + public int? DeprecatedProviderCount { get; set; } + + [JsonPropertyName("eventsCount")] + public int? EventsCount { get; set; } + + [JsonPropertyName("supportedProviderCount")] + public int? SupportedProviderCount { get; set; } + + [JsonPropertyName("unHealthyProviderCount")] + public int? UnHealthyProviderCount { get; set; } + + [JsonPropertyName("unHealthyVmCount")] + public int? UnHealthyVMCount { get; set; } + + [JsonPropertyName("unsupportedProviderCount")] + public int? UnsupportedProviderCount { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/ReplicationUsages/Model-ReplicationUsage.cs b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/ReplicationUsages/Model-ReplicationUsage.cs new file mode 100644 index 00000000000..8564921695c --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/ReplicationUsages/Model-ReplicationUsage.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.RecoveryServices.v2023_06_01.ReplicationUsages; + + +internal class ReplicationUsageModel +{ + [JsonPropertyName("jobsSummary")] + public JobsSummaryModel? JobsSummary { get; set; } + + [JsonPropertyName("monitoringSummary")] + public MonitoringSummaryModel? MonitoringSummary { get; set; } + + [JsonPropertyName("protectedItemCount")] + public int? ProtectedItemCount { get; set; } + + [JsonPropertyName("recoveryPlanCount")] + public int? RecoveryPlanCount { get; set; } + + [JsonPropertyName("recoveryServicesProviderAuthType")] + public int? RecoveryServicesProviderAuthType { get; set; } + + [JsonPropertyName("registeredServersCount")] + public int? RegisteredServersCount { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/ReplicationUsages/Model-ReplicationUsageList.cs b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/ReplicationUsages/Model-ReplicationUsageList.cs new file mode 100644 index 00000000000..48b384bae3f --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/ReplicationUsages/Model-ReplicationUsageList.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.RecoveryServices.v2023_06_01.ReplicationUsages; + + +internal class ReplicationUsageListModel +{ + [JsonPropertyName("value")] + public List? Value { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/ReplicationUsages/Operation-List.cs b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/ReplicationUsages/Operation-List.cs new file mode 100644 index 00000000000..6d2df7d7d58 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/ReplicationUsages/Operation-List.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.RecoveryServices.v2023_06_01.ReplicationUsages; + +internal class ListOperation : Pandora.Definitions.Operations.GetOperation +{ + public override ResourceID? ResourceId() => new VaultId(); + + public override Type? ResponseObject() => typeof(ReplicationUsageListModel); + + public override string? UriSuffix() => "/replicationUsages"; + + +} diff --git a/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/ReplicationUsages/ResourceId-VaultId.cs b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/ReplicationUsages/ResourceId-VaultId.cs new file mode 100644 index 00000000000..e30a14ba325 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/ReplicationUsages/ResourceId-VaultId.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.RecoveryServices.v2023_06_01.ReplicationUsages; + +internal class VaultId : ResourceID +{ + public string? CommonAlias => null; + + public string ID => "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}"; + + 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("staticMicrosoftRecoveryServices", "Microsoft.RecoveryServices"), + ResourceIDSegment.Static("staticVaults", "vaults"), + ResourceIDSegment.UserSpecified("vaultName"), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/VaultCertificates/Constant-AuthType.cs b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/VaultCertificates/Constant-AuthType.cs new file mode 100644 index 00000000000..f056cec6258 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/VaultCertificates/Constant-AuthType.cs @@ -0,0 +1,23 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.RecoveryServices.v2023_06_01.VaultCertificates; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum AuthTypeConstant +{ + [Description("AAD")] + AAD, + + [Description("ACS")] + ACS, + + [Description("AccessControlService")] + AccessControlService, + + [Description("AzureActiveDirectory")] + AzureActiveDirectory, + + [Description("Invalid")] + Invalid, +} diff --git a/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/VaultCertificates/Definition.cs b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/VaultCertificates/Definition.cs new file mode 100644 index 00000000000..1240c3fe1bd --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/VaultCertificates/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.RecoveryServices.v2023_06_01.VaultCertificates; + +internal class Definition : ResourceDefinition +{ + public string Name => "VaultCertificates"; + public IEnumerable Operations => new List + { + new CreateOperation(), + }; + public IEnumerable Constants => new List + { + typeof(AuthTypeConstant), + }; + public IEnumerable Models => new List + { + typeof(CertificateRequestModel), + typeof(RawCertificateDataModel), + typeof(ResourceCertificateAndAadDetailsModel), + typeof(ResourceCertificateAndAcsDetailsModel), + typeof(ResourceCertificateDetailsModel), + typeof(VaultCertificateResponseModel), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/VaultCertificates/Model-CertificateRequest.cs b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/VaultCertificates/Model-CertificateRequest.cs new file mode 100644 index 00000000000..dc643f4108d --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/VaultCertificates/Model-CertificateRequest.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.RecoveryServices.v2023_06_01.VaultCertificates; + + +internal class CertificateRequestModel +{ + [JsonPropertyName("properties")] + public RawCertificateDataModel? Properties { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/VaultCertificates/Model-RawCertificateData.cs b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/VaultCertificates/Model-RawCertificateData.cs new file mode 100644 index 00000000000..41bd95da090 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/VaultCertificates/Model-RawCertificateData.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.RecoveryServices.v2023_06_01.VaultCertificates; + + +internal class RawCertificateDataModel +{ + [JsonPropertyName("authType")] + public AuthTypeConstant? AuthType { get; set; } + + [JsonPropertyName("certificate")] + public string? Certificate { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/VaultCertificates/Model-ResourceCertificateAndAadDetails.cs b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/VaultCertificates/Model-ResourceCertificateAndAadDetails.cs new file mode 100644 index 00000000000..339358d535f --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/VaultCertificates/Model-ResourceCertificateAndAadDetails.cs @@ -0,0 +1,43 @@ +using System; +using System.Collections.Generic; +using System.Text.Json.Serialization; +using Pandora.Definitions.Attributes; +using Pandora.Definitions.Attributes.Validation; +using Pandora.Definitions.CustomTypes; + + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + + +namespace Pandora.Definitions.ResourceManager.RecoveryServices.v2023_06_01.VaultCertificates; + +[ValueForType("AzureActiveDirectory")] +internal class ResourceCertificateAndAadDetailsModel : ResourceCertificateDetailsModel +{ + [JsonPropertyName("aadAudience")] + public string? AadAudience { get; set; } + + [JsonPropertyName("aadAuthority")] + [Required] + public string AadAuthority { get; set; } + + [JsonPropertyName("aadTenantId")] + [Required] + public string AadTenantId { get; set; } + + [JsonPropertyName("azureManagementEndpointAudience")] + [Required] + public string AzureManagementEndpointAudience { get; set; } + + [JsonPropertyName("servicePrincipalClientId")] + [Required] + public string ServicePrincipalClientId { get; set; } + + [JsonPropertyName("servicePrincipalObjectId")] + [Required] + public string ServicePrincipalObjectId { get; set; } + + [JsonPropertyName("serviceResourceId")] + public string? ServiceResourceId { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/VaultCertificates/Model-ResourceCertificateAndAcsDetails.cs b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/VaultCertificates/Model-ResourceCertificateAndAcsDetails.cs new file mode 100644 index 00000000000..65cf4ffa929 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/VaultCertificates/Model-ResourceCertificateAndAcsDetails.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.RecoveryServices.v2023_06_01.VaultCertificates; + +[ValueForType("AccessControlService")] +internal class ResourceCertificateAndAcsDetailsModel : ResourceCertificateDetailsModel +{ + [JsonPropertyName("globalAcsHostName")] + [Required] + public string GlobalAcsHostName { get; set; } + + [JsonPropertyName("globalAcsNamespace")] + [Required] + public string GlobalAcsNamespace { get; set; } + + [JsonPropertyName("globalAcsRPRealm")] + [Required] + public string GlobalAcsRPRealm { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/VaultCertificates/Model-ResourceCertificateDetails.cs b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/VaultCertificates/Model-ResourceCertificateDetails.cs new file mode 100644 index 00000000000..aed0b62d2de --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/VaultCertificates/Model-ResourceCertificateDetails.cs @@ -0,0 +1,48 @@ +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.RecoveryServices.v2023_06_01.VaultCertificates; + + +internal abstract class ResourceCertificateDetailsModel +{ + [JsonPropertyName("authType")] + [ProvidesTypeHint] + [Required] + public string AuthType { get; set; } + + [JsonPropertyName("certificate")] + public string? Certificate { get; set; } + + [JsonPropertyName("friendlyName")] + public string? FriendlyName { get; set; } + + [JsonPropertyName("issuer")] + public string? Issuer { get; set; } + + [JsonPropertyName("resourceId")] + public int? ResourceId { get; set; } + + [JsonPropertyName("subject")] + public string? Subject { get; set; } + + [JsonPropertyName("thumbprint")] + public string? Thumbprint { get; set; } + + [DateFormat(DateFormatAttribute.DateFormat.RFC3339)] + [JsonPropertyName("validFrom")] + public DateTime? ValidFrom { get; set; } + + [DateFormat(DateFormatAttribute.DateFormat.RFC3339)] + [JsonPropertyName("validTo")] + public DateTime? ValidTo { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/VaultCertificates/Model-VaultCertificateResponse.cs b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/VaultCertificates/Model-VaultCertificateResponse.cs new file mode 100644 index 00000000000..f46eba405ff --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/VaultCertificates/Model-VaultCertificateResponse.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.RecoveryServices.v2023_06_01.VaultCertificates; + + +internal class VaultCertificateResponseModel +{ + [JsonPropertyName("id")] + public string? Id { get; set; } + + [JsonPropertyName("name")] + public string? Name { get; set; } + + [JsonPropertyName("properties")] + public ResourceCertificateDetailsModel? Properties { get; set; } + + [JsonPropertyName("type")] + public string? Type { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/VaultCertificates/Operation-Create.cs b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/VaultCertificates/Operation-Create.cs new file mode 100644 index 00000000000..b371b7bd67e --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/VaultCertificates/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.RecoveryServices.v2023_06_01.VaultCertificates; + +internal class CreateOperation : Pandora.Definitions.Operations.PutOperation +{ + public override IEnumerable ExpectedStatusCodes() => new List + { + HttpStatusCode.OK, + }; + + public override Type? RequestObject() => typeof(CertificateRequestModel); + + public override ResourceID? ResourceId() => new CertificateId(); + + public override Type? ResponseObject() => typeof(VaultCertificateResponseModel); + + +} diff --git a/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/VaultCertificates/ResourceId-CertificateId.cs b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/VaultCertificates/ResourceId-CertificateId.cs new file mode 100644 index 00000000000..54e42991dcc --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/VaultCertificates/ResourceId-CertificateId.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.RecoveryServices.v2023_06_01.VaultCertificates; + +internal class CertificateId : ResourceID +{ + public string? CommonAlias => null; + + public string ID => "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/certificates/{certificateName}"; + + 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("staticMicrosoftRecoveryServices", "Microsoft.RecoveryServices"), + ResourceIDSegment.Static("staticVaults", "vaults"), + ResourceIDSegment.UserSpecified("vaultName"), + ResourceIDSegment.Static("staticCertificates", "certificates"), + ResourceIDSegment.UserSpecified("certificateName"), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/VaultExtendedInfo/Definition.cs b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/VaultExtendedInfo/Definition.cs new file mode 100644 index 00000000000..f891fed1c3f --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/VaultExtendedInfo/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.RecoveryServices.v2023_06_01.VaultExtendedInfo; + +internal class Definition : ResourceDefinition +{ + public string Name => "VaultExtendedInfo"; + public IEnumerable Operations => new List + { + new CreateOrUpdateOperation(), + new GetOperation(), + new UpdateOperation(), + }; + public IEnumerable Constants => new List + { + + }; + public IEnumerable Models => new List + { + typeof(VaultExtendedInfoModel), + typeof(VaultExtendedInfoResourceModel), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/VaultExtendedInfo/Model-VaultExtendedInfo.cs b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/VaultExtendedInfo/Model-VaultExtendedInfo.cs new file mode 100644 index 00000000000..4b46066938f --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/VaultExtendedInfo/Model-VaultExtendedInfo.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.RecoveryServices.v2023_06_01.VaultExtendedInfo; + + +internal class VaultExtendedInfoModel +{ + [JsonPropertyName("algorithm")] + public string? Algorithm { get; set; } + + [JsonPropertyName("encryptionKey")] + public string? EncryptionKey { get; set; } + + [JsonPropertyName("encryptionKeyThumbprint")] + public string? EncryptionKeyThumbprint { get; set; } + + [JsonPropertyName("integrityKey")] + public string? IntegrityKey { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/VaultExtendedInfo/Model-VaultExtendedInfoResource.cs b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/VaultExtendedInfo/Model-VaultExtendedInfoResource.cs new file mode 100644 index 00000000000..1e7ca80cb40 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/VaultExtendedInfo/Model-VaultExtendedInfoResource.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.RecoveryServices.v2023_06_01.VaultExtendedInfo; + + +internal class VaultExtendedInfoResourceModel +{ + [JsonPropertyName("etag")] + public string? Etag { get; set; } + + [JsonPropertyName("id")] + public string? Id { get; set; } + + [JsonPropertyName("name")] + public string? Name { get; set; } + + [JsonPropertyName("properties")] + public VaultExtendedInfoModel? Properties { get; set; } + + [JsonPropertyName("type")] + public string? Type { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/VaultExtendedInfo/Operation-CreateOrUpdate.cs b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/VaultExtendedInfo/Operation-CreateOrUpdate.cs new file mode 100644 index 00000000000..f3ab3eef916 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/VaultExtendedInfo/Operation-CreateOrUpdate.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.RecoveryServices.v2023_06_01.VaultExtendedInfo; + +internal class CreateOrUpdateOperation : Pandora.Definitions.Operations.PutOperation +{ + public override IEnumerable ExpectedStatusCodes() => new List + { + HttpStatusCode.OK, + }; + + public override Type? RequestObject() => typeof(VaultExtendedInfoResourceModel); + + public override ResourceID? ResourceId() => new VaultId(); + + public override Type? ResponseObject() => typeof(VaultExtendedInfoResourceModel); + + public override string? UriSuffix() => "/extendedInformation/vaultExtendedInfo"; + + +} diff --git a/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/VaultExtendedInfo/Operation-Get.cs b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/VaultExtendedInfo/Operation-Get.cs new file mode 100644 index 00000000000..36f5b98770a --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/VaultExtendedInfo/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.RecoveryServices.v2023_06_01.VaultExtendedInfo; + +internal class GetOperation : Pandora.Definitions.Operations.GetOperation +{ + public override ResourceID? ResourceId() => new VaultId(); + + public override Type? ResponseObject() => typeof(VaultExtendedInfoResourceModel); + + public override string? UriSuffix() => "/extendedInformation/vaultExtendedInfo"; + + +} diff --git a/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/VaultExtendedInfo/Operation-Update.cs b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/VaultExtendedInfo/Operation-Update.cs new file mode 100644 index 00000000000..0a2981be9fd --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/VaultExtendedInfo/Operation-Update.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.RecoveryServices.v2023_06_01.VaultExtendedInfo; + +internal class UpdateOperation : Pandora.Definitions.Operations.PatchOperation +{ + public override IEnumerable ExpectedStatusCodes() => new List + { + HttpStatusCode.OK, + }; + + public override Type? RequestObject() => typeof(VaultExtendedInfoResourceModel); + + public override ResourceID? ResourceId() => new VaultId(); + + public override Type? ResponseObject() => typeof(VaultExtendedInfoResourceModel); + + public override string? UriSuffix() => "/extendedInformation/vaultExtendedInfo"; + + +} diff --git a/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/VaultExtendedInfo/ResourceId-VaultId.cs b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/VaultExtendedInfo/ResourceId-VaultId.cs new file mode 100644 index 00000000000..cbf34236e79 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/VaultExtendedInfo/ResourceId-VaultId.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.RecoveryServices.v2023_06_01.VaultExtendedInfo; + +internal class VaultId : ResourceID +{ + public string? CommonAlias => null; + + public string ID => "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}"; + + 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("staticMicrosoftRecoveryServices", "Microsoft.RecoveryServices"), + ResourceIDSegment.Static("staticVaults", "vaults"), + ResourceIDSegment.UserSpecified("vaultName"), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/VaultUsages/Constant-UsagesUnit.cs b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/VaultUsages/Constant-UsagesUnit.cs new file mode 100644 index 00000000000..1431b86bc7d --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/VaultUsages/Constant-UsagesUnit.cs @@ -0,0 +1,26 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.RecoveryServices.v2023_06_01.VaultUsages; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum UsagesUnitConstant +{ + [Description("Bytes")] + Bytes, + + [Description("BytesPerSecond")] + BytesPerSecond, + + [Description("Count")] + Count, + + [Description("CountPerSecond")] + CountPerSecond, + + [Description("Percent")] + Percent, + + [Description("Seconds")] + Seconds, +} diff --git a/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/VaultUsages/Definition.cs b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/VaultUsages/Definition.cs new file mode 100644 index 00000000000..b4ed79a0de9 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/VaultUsages/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.RecoveryServices.v2023_06_01.VaultUsages; + +internal class Definition : ResourceDefinition +{ + public string Name => "VaultUsages"; + public IEnumerable Operations => new List + { + new UsagesListByVaultsOperation(), + }; + public IEnumerable Constants => new List + { + typeof(UsagesUnitConstant), + }; + public IEnumerable Models => new List + { + typeof(NameInfoModel), + typeof(VaultUsageModel), + typeof(VaultUsageListModel), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/VaultUsages/Model-NameInfo.cs b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/VaultUsages/Model-NameInfo.cs new file mode 100644 index 00000000000..09c2f63bc3a --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/VaultUsages/Model-NameInfo.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.RecoveryServices.v2023_06_01.VaultUsages; + + +internal class NameInfoModel +{ + [JsonPropertyName("localizedValue")] + public string? LocalizedValue { get; set; } + + [JsonPropertyName("value")] + public string? Value { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/VaultUsages/Model-VaultUsage.cs b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/VaultUsages/Model-VaultUsage.cs new file mode 100644 index 00000000000..38d7fd3e13c --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/VaultUsages/Model-VaultUsage.cs @@ -0,0 +1,36 @@ +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.RecoveryServices.v2023_06_01.VaultUsages; + + +internal class VaultUsageModel +{ + [JsonPropertyName("currentValue")] + public int? CurrentValue { get; set; } + + [JsonPropertyName("limit")] + public int? Limit { get; set; } + + [JsonPropertyName("name")] + public NameInfoModel? Name { get; set; } + + [DateFormat(DateFormatAttribute.DateFormat.RFC3339)] + [JsonPropertyName("nextResetTime")] + public DateTime? NextResetTime { get; set; } + + [JsonPropertyName("quotaPeriod")] + public string? QuotaPeriod { get; set; } + + [JsonPropertyName("unit")] + public UsagesUnitConstant? Unit { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/VaultUsages/Model-VaultUsageList.cs b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/VaultUsages/Model-VaultUsageList.cs new file mode 100644 index 00000000000..fbf48e5d2cb --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/VaultUsages/Model-VaultUsageList.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.RecoveryServices.v2023_06_01.VaultUsages; + + +internal class VaultUsageListModel +{ + [JsonPropertyName("value")] + public List? Value { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/VaultUsages/Operation-UsagesListByVaults.cs b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/VaultUsages/Operation-UsagesListByVaults.cs new file mode 100644 index 00000000000..5e2bfac053a --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/VaultUsages/Operation-UsagesListByVaults.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.RecoveryServices.v2023_06_01.VaultUsages; + +internal class UsagesListByVaultsOperation : Pandora.Definitions.Operations.GetOperation +{ + public override ResourceID? ResourceId() => new VaultId(); + + public override Type? ResponseObject() => typeof(VaultUsageListModel); + + public override string? UriSuffix() => "/usages"; + + +} diff --git a/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/VaultUsages/ResourceId-VaultId.cs b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/VaultUsages/ResourceId-VaultId.cs new file mode 100644 index 00000000000..07b2902e57c --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/VaultUsages/ResourceId-VaultId.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.RecoveryServices.v2023_06_01.VaultUsages; + +internal class VaultId : ResourceID +{ + public string? CommonAlias => null; + + public string ID => "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}"; + + 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("staticMicrosoftRecoveryServices", "Microsoft.RecoveryServices"), + ResourceIDSegment.Static("staticVaults", "vaults"), + ResourceIDSegment.UserSpecified("vaultName"), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Constant-AlertsState.cs b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Constant-AlertsState.cs new file mode 100644 index 00000000000..9e031c939ad --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Constant-AlertsState.cs @@ -0,0 +1,14 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.RecoveryServices.v2023_06_01.Vaults; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum AlertsStateConstant +{ + [Description("Disabled")] + Disabled, + + [Description("Enabled")] + Enabled, +} diff --git a/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Constant-BackupStorageVersion.cs b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Constant-BackupStorageVersion.cs new file mode 100644 index 00000000000..c5799d82774 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Constant-BackupStorageVersion.cs @@ -0,0 +1,17 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.RecoveryServices.v2023_06_01.Vaults; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum BackupStorageVersionConstant +{ + [Description("Unassigned")] + Unassigned, + + [Description("V1")] + VOne, + + [Description("V2")] + VTwo, +} diff --git a/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Constant-CrossRegionRestore.cs b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Constant-CrossRegionRestore.cs new file mode 100644 index 00000000000..465fba0eb75 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Constant-CrossRegionRestore.cs @@ -0,0 +1,14 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.RecoveryServices.v2023_06_01.Vaults; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum CrossRegionRestoreConstant +{ + [Description("Disabled")] + Disabled, + + [Description("Enabled")] + Enabled, +} diff --git a/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Constant-CrossSubscriptionRestoreState.cs b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Constant-CrossSubscriptionRestoreState.cs new file mode 100644 index 00000000000..97340f6d343 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Constant-CrossSubscriptionRestoreState.cs @@ -0,0 +1,17 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.RecoveryServices.v2023_06_01.Vaults; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum CrossSubscriptionRestoreStateConstant +{ + [Description("Disabled")] + Disabled, + + [Description("Enabled")] + Enabled, + + [Description("PermanentlyDisabled")] + PermanentlyDisabled, +} diff --git a/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Constant-ImmutabilityState.cs b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Constant-ImmutabilityState.cs new file mode 100644 index 00000000000..e2779b4c3b7 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Constant-ImmutabilityState.cs @@ -0,0 +1,17 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.RecoveryServices.v2023_06_01.Vaults; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum ImmutabilityStateConstant +{ + [Description("Disabled")] + Disabled, + + [Description("Locked")] + Locked, + + [Description("Unlocked")] + Unlocked, +} diff --git a/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Constant-InfrastructureEncryptionState.cs b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Constant-InfrastructureEncryptionState.cs new file mode 100644 index 00000000000..5cc593f96db --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Constant-InfrastructureEncryptionState.cs @@ -0,0 +1,14 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.RecoveryServices.v2023_06_01.Vaults; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum InfrastructureEncryptionStateConstant +{ + [Description("Disabled")] + Disabled, + + [Description("Enabled")] + Enabled, +} diff --git a/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Constant-MultiUserAuthorization.cs b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Constant-MultiUserAuthorization.cs new file mode 100644 index 00000000000..2195be15276 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Constant-MultiUserAuthorization.cs @@ -0,0 +1,17 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.RecoveryServices.v2023_06_01.Vaults; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum MultiUserAuthorizationConstant +{ + [Description("Disabled")] + Disabled, + + [Description("Enabled")] + Enabled, + + [Description("Invalid")] + Invalid, +} diff --git a/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Constant-PrivateEndpointConnectionStatus.cs b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Constant-PrivateEndpointConnectionStatus.cs new file mode 100644 index 00000000000..033afe76185 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Constant-PrivateEndpointConnectionStatus.cs @@ -0,0 +1,20 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.RecoveryServices.v2023_06_01.Vaults; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum PrivateEndpointConnectionStatusConstant +{ + [Description("Approved")] + Approved, + + [Description("Disconnected")] + Disconnected, + + [Description("Pending")] + Pending, + + [Description("Rejected")] + Rejected, +} diff --git a/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Constant-ProvisioningState.cs b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Constant-ProvisioningState.cs new file mode 100644 index 00000000000..db0c9b6c66e --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Constant-ProvisioningState.cs @@ -0,0 +1,20 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.RecoveryServices.v2023_06_01.Vaults; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum ProvisioningStateConstant +{ + [Description("Deleting")] + Deleting, + + [Description("Failed")] + Failed, + + [Description("Pending")] + Pending, + + [Description("Succeeded")] + Succeeded, +} diff --git a/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Constant-PublicNetworkAccess.cs b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Constant-PublicNetworkAccess.cs new file mode 100644 index 00000000000..f2fb371c266 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Constant-PublicNetworkAccess.cs @@ -0,0 +1,14 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.RecoveryServices.v2023_06_01.Vaults; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum PublicNetworkAccessConstant +{ + [Description("Disabled")] + Disabled, + + [Description("Enabled")] + Enabled, +} diff --git a/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Constant-ResourceMoveState.cs b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Constant-ResourceMoveState.cs new file mode 100644 index 00000000000..249009d35ae --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Constant-ResourceMoveState.cs @@ -0,0 +1,38 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.RecoveryServices.v2023_06_01.Vaults; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum ResourceMoveStateConstant +{ + [Description("CommitFailed")] + CommitFailed, + + [Description("CommitTimedout")] + CommitTimedout, + + [Description("CriticalFailure")] + CriticalFailure, + + [Description("Failure")] + Failure, + + [Description("InProgress")] + InProgress, + + [Description("MoveSucceeded")] + MoveSucceeded, + + [Description("PartialSuccess")] + PartialSuccess, + + [Description("PrepareFailed")] + PrepareFailed, + + [Description("PrepareTimedout")] + PrepareTimedout, + + [Description("Unknown")] + Unknown, +} diff --git a/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Constant-SecureScoreLevel.cs b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Constant-SecureScoreLevel.cs new file mode 100644 index 00000000000..053fbc7ea65 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Constant-SecureScoreLevel.cs @@ -0,0 +1,20 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.RecoveryServices.v2023_06_01.Vaults; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum SecureScoreLevelConstant +{ + [Description("Adequate")] + Adequate, + + [Description("Maximum")] + Maximum, + + [Description("Minimum")] + Minimum, + + [Description("None")] + None, +} diff --git a/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Constant-SkuName.cs b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Constant-SkuName.cs new file mode 100644 index 00000000000..57caa3813cc --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Constant-SkuName.cs @@ -0,0 +1,14 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.RecoveryServices.v2023_06_01.Vaults; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum SkuNameConstant +{ + [Description("RS0")] + RSZero, + + [Description("Standard")] + Standard, +} diff --git a/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Constant-SoftDeleteState.cs b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Constant-SoftDeleteState.cs new file mode 100644 index 00000000000..4042cf1bb55 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Constant-SoftDeleteState.cs @@ -0,0 +1,20 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.RecoveryServices.v2023_06_01.Vaults; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum SoftDeleteStateConstant +{ + [Description("AlwaysON")] + AlwaysON, + + [Description("Disabled")] + Disabled, + + [Description("Enabled")] + Enabled, + + [Description("Invalid")] + Invalid, +} diff --git a/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Constant-StandardTierStorageRedundancy.cs b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Constant-StandardTierStorageRedundancy.cs new file mode 100644 index 00000000000..0d264455c81 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Constant-StandardTierStorageRedundancy.cs @@ -0,0 +1,17 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.RecoveryServices.v2023_06_01.Vaults; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum StandardTierStorageRedundancyConstant +{ + [Description("GeoRedundant")] + GeoRedundant, + + [Description("LocallyRedundant")] + LocallyRedundant, + + [Description("ZoneRedundant")] + ZoneRedundant, +} diff --git a/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Constant-TriggerType.cs b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Constant-TriggerType.cs new file mode 100644 index 00000000000..e63b2b484e8 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Constant-TriggerType.cs @@ -0,0 +1,14 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.RecoveryServices.v2023_06_01.Vaults; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum TriggerTypeConstant +{ + [Description("ForcedUpgrade")] + ForcedUpgrade, + + [Description("UserTriggered")] + UserTriggered, +} diff --git a/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Constant-VaultPrivateEndpointState.cs b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Constant-VaultPrivateEndpointState.cs new file mode 100644 index 00000000000..4b9a823a6ba --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Constant-VaultPrivateEndpointState.cs @@ -0,0 +1,14 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.RecoveryServices.v2023_06_01.Vaults; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum VaultPrivateEndpointStateConstant +{ + [Description("Enabled")] + Enabled, + + [Description("None")] + None, +} diff --git a/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Constant-VaultSubResourceType.cs b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Constant-VaultSubResourceType.cs new file mode 100644 index 00000000000..f70837da23e --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Constant-VaultSubResourceType.cs @@ -0,0 +1,17 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.RecoveryServices.v2023_06_01.Vaults; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum VaultSubResourceTypeConstant +{ + [Description("AzureBackup")] + AzureBackup, + + [Description("AzureBackup_secondary")] + AzureBackupSecondary, + + [Description("AzureSiteRecovery")] + AzureSiteRecovery, +} diff --git a/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Constant-VaultUpgradeState.cs b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Constant-VaultUpgradeState.cs new file mode 100644 index 00000000000..35ab2d13638 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Constant-VaultUpgradeState.cs @@ -0,0 +1,20 @@ +using Pandora.Definitions.Attributes; +using System.ComponentModel; + +namespace Pandora.Definitions.ResourceManager.RecoveryServices.v2023_06_01.Vaults; + +[ConstantType(ConstantTypeAttribute.ConstantType.String)] +internal enum VaultUpgradeStateConstant +{ + [Description("Failed")] + Failed, + + [Description("InProgress")] + InProgress, + + [Description("Unknown")] + Unknown, + + [Description("Upgraded")] + Upgraded, +} diff --git a/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Definition.cs b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Definition.cs new file mode 100644 index 00000000000..cac5f5aa0d5 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Definition.cs @@ -0,0 +1,70 @@ +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.RecoveryServices.v2023_06_01.Vaults; + +internal class Definition : ResourceDefinition +{ + public string Name => "Vaults"; + public IEnumerable Operations => new List + { + new CreateOrUpdateOperation(), + new DeleteOperation(), + new GetOperation(), + new ListByResourceGroupOperation(), + new ListBySubscriptionIdOperation(), + new UpdateOperation(), + }; + public IEnumerable Constants => new List + { + typeof(AlertsStateConstant), + typeof(BackupStorageVersionConstant), + typeof(CrossRegionRestoreConstant), + typeof(CrossSubscriptionRestoreStateConstant), + typeof(ImmutabilityStateConstant), + typeof(InfrastructureEncryptionStateConstant), + typeof(MultiUserAuthorizationConstant), + typeof(PrivateEndpointConnectionStatusConstant), + typeof(ProvisioningStateConstant), + typeof(PublicNetworkAccessConstant), + typeof(ResourceMoveStateConstant), + typeof(SecureScoreLevelConstant), + typeof(SkuNameConstant), + typeof(SoftDeleteStateConstant), + typeof(StandardTierStorageRedundancyConstant), + typeof(TriggerTypeConstant), + typeof(VaultPrivateEndpointStateConstant), + typeof(VaultSubResourceTypeConstant), + typeof(VaultUpgradeStateConstant), + }; + public IEnumerable Models => new List + { + typeof(AzureMonitorAlertSettingsModel), + typeof(ClassicAlertSettingsModel), + typeof(CmkKekIdentityModel), + typeof(CmkKeyVaultPropertiesModel), + typeof(CrossSubscriptionRestoreSettingsModel), + typeof(ImmutabilitySettingsModel), + typeof(MonitoringSettingsModel), + typeof(PatchVaultModel), + typeof(PrivateEndpointModel), + typeof(PrivateEndpointConnectionModel), + typeof(PrivateEndpointConnectionVaultPropertiesModel), + typeof(PrivateLinkServiceConnectionStateModel), + typeof(RestoreSettingsModel), + typeof(SecuritySettingsModel), + typeof(SkuModel), + typeof(SoftDeleteSettingsModel), + typeof(UpgradeDetailsModel), + typeof(VaultModel), + typeof(VaultPropertiesModel), + typeof(VaultPropertiesEncryptionModel), + typeof(VaultPropertiesMoveDetailsModel), + typeof(VaultPropertiesRedundancySettingsModel), + }; +} diff --git a/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Model-AzureMonitorAlertSettings.cs b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Model-AzureMonitorAlertSettings.cs new file mode 100644 index 00000000000..275f8576455 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Model-AzureMonitorAlertSettings.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.RecoveryServices.v2023_06_01.Vaults; + + +internal class AzureMonitorAlertSettingsModel +{ + [JsonPropertyName("alertsForAllJobFailures")] + public AlertsStateConstant? AlertsForAllJobFailures { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Model-ClassicAlertSettings.cs b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Model-ClassicAlertSettings.cs new file mode 100644 index 00000000000..7478d5a886c --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Model-ClassicAlertSettings.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.RecoveryServices.v2023_06_01.Vaults; + + +internal class ClassicAlertSettingsModel +{ + [JsonPropertyName("alertsForCriticalOperations")] + public AlertsStateConstant? AlertsForCriticalOperations { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Model-CmkKekIdentity.cs b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Model-CmkKekIdentity.cs new file mode 100644 index 00000000000..625d7f05ce9 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Model-CmkKekIdentity.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.RecoveryServices.v2023_06_01.Vaults; + + +internal class CmkKekIdentityModel +{ + [JsonPropertyName("useSystemAssignedIdentity")] + public bool? UseSystemAssignedIdentity { get; set; } + + [JsonPropertyName("userAssignedIdentity")] + public string? UserAssignedIdentity { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Model-CmkKeyVaultProperties.cs b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Model-CmkKeyVaultProperties.cs new file mode 100644 index 00000000000..9ad9da85197 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Model-CmkKeyVaultProperties.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.RecoveryServices.v2023_06_01.Vaults; + + +internal class CmkKeyVaultPropertiesModel +{ + [JsonPropertyName("keyUri")] + public string? KeyUri { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Model-CrossSubscriptionRestoreSettings.cs b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Model-CrossSubscriptionRestoreSettings.cs new file mode 100644 index 00000000000..334de39f27a --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Model-CrossSubscriptionRestoreSettings.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.RecoveryServices.v2023_06_01.Vaults; + + +internal class CrossSubscriptionRestoreSettingsModel +{ + [JsonPropertyName("crossSubscriptionRestoreState")] + public CrossSubscriptionRestoreStateConstant? CrossSubscriptionRestoreState { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Model-ImmutabilitySettings.cs b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Model-ImmutabilitySettings.cs new file mode 100644 index 00000000000..969a006f35c --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Model-ImmutabilitySettings.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.RecoveryServices.v2023_06_01.Vaults; + + +internal class ImmutabilitySettingsModel +{ + [JsonPropertyName("state")] + public ImmutabilityStateConstant? State { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Model-MonitoringSettings.cs b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Model-MonitoringSettings.cs new file mode 100644 index 00000000000..efea2423ed8 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Model-MonitoringSettings.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.RecoveryServices.v2023_06_01.Vaults; + + +internal class MonitoringSettingsModel +{ + [JsonPropertyName("azureMonitorAlertSettings")] + public AzureMonitorAlertSettingsModel? AzureMonitorAlertSettings { get; set; } + + [JsonPropertyName("classicAlertSettings")] + public ClassicAlertSettingsModel? ClassicAlertSettings { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Model-PatchVault.cs b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Model-PatchVault.cs new file mode 100644 index 00000000000..cb582c71c15 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Model-PatchVault.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.RecoveryServices.v2023_06_01.Vaults; + + +internal class PatchVaultModel +{ + [JsonPropertyName("etag")] + public string? Etag { get; set; } + + [JsonPropertyName("id")] + public string? Id { get; set; } + + [JsonPropertyName("identity")] + public CustomTypes.SystemAndUserAssignedIdentityMap? Identity { get; set; } + + [JsonPropertyName("location")] + public CustomTypes.Location? Location { get; set; } + + [JsonPropertyName("name")] + public string? Name { get; set; } + + [JsonPropertyName("properties")] + public VaultPropertiesModel? 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/RecoveryServices/v2023_06_01/Vaults/Model-PrivateEndpoint.cs b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Model-PrivateEndpoint.cs new file mode 100644 index 00000000000..a47c05455b9 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Model-PrivateEndpoint.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.RecoveryServices.v2023_06_01.Vaults; + + +internal class PrivateEndpointModel +{ + [JsonPropertyName("id")] + public string? Id { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Model-PrivateEndpointConnection.cs b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Model-PrivateEndpointConnection.cs new file mode 100644 index 00000000000..3c313d44b71 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/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.RecoveryServices.v2023_06_01.Vaults; + + +internal class PrivateEndpointConnectionModel +{ + [JsonPropertyName("groupIds")] + public List? GroupIds { get; set; } + + [JsonPropertyName("privateEndpoint")] + public PrivateEndpointModel? PrivateEndpoint { get; set; } + + [JsonPropertyName("privateLinkServiceConnectionState")] + public PrivateLinkServiceConnectionStateModel? PrivateLinkServiceConnectionState { get; set; } + + [JsonPropertyName("provisioningState")] + public ProvisioningStateConstant? ProvisioningState { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Model-PrivateEndpointConnectionVaultProperties.cs b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Model-PrivateEndpointConnectionVaultProperties.cs new file mode 100644 index 00000000000..2b0fd918f98 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Model-PrivateEndpointConnectionVaultProperties.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.RecoveryServices.v2023_06_01.Vaults; + + +internal class PrivateEndpointConnectionVaultPropertiesModel +{ + [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 PrivateEndpointConnectionModel? Properties { get; set; } + + [JsonPropertyName("type")] + public string? Type { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Model-PrivateLinkServiceConnectionState.cs b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Model-PrivateLinkServiceConnectionState.cs new file mode 100644 index 00000000000..78d1ea837fd --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Model-PrivateLinkServiceConnectionState.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.RecoveryServices.v2023_06_01.Vaults; + + +internal class PrivateLinkServiceConnectionStateModel +{ + [JsonPropertyName("actionsRequired")] + public string? ActionsRequired { get; set; } + + [JsonPropertyName("description")] + public string? Description { get; set; } + + [JsonPropertyName("status")] + public PrivateEndpointConnectionStatusConstant? Status { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Model-RestoreSettings.cs b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Model-RestoreSettings.cs new file mode 100644 index 00000000000..e0bd5305bd4 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Model-RestoreSettings.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.RecoveryServices.v2023_06_01.Vaults; + + +internal class RestoreSettingsModel +{ + [JsonPropertyName("crossSubscriptionRestoreSettings")] + public CrossSubscriptionRestoreSettingsModel? CrossSubscriptionRestoreSettings { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Model-SecuritySettings.cs b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Model-SecuritySettings.cs new file mode 100644 index 00000000000..dab71d80fea --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Model-SecuritySettings.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.RecoveryServices.v2023_06_01.Vaults; + + +internal class SecuritySettingsModel +{ + [JsonPropertyName("immutabilitySettings")] + public ImmutabilitySettingsModel? ImmutabilitySettings { get; set; } + + [JsonPropertyName("multiUserAuthorization")] + public MultiUserAuthorizationConstant? MultiUserAuthorization { get; set; } + + [JsonPropertyName("softDeleteSettings")] + public SoftDeleteSettingsModel? SoftDeleteSettings { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Model-Sku.cs b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Model-Sku.cs new file mode 100644 index 00000000000..49d66049c36 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Model-Sku.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.RecoveryServices.v2023_06_01.Vaults; + + +internal class SkuModel +{ + [JsonPropertyName("capacity")] + public string? Capacity { get; set; } + + [JsonPropertyName("family")] + public string? Family { get; set; } + + [JsonPropertyName("name")] + [Required] + public SkuNameConstant Name { get; set; } + + [JsonPropertyName("size")] + public string? Size { get; set; } + + [JsonPropertyName("tier")] + public string? Tier { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Model-SoftDeleteSettings.cs b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Model-SoftDeleteSettings.cs new file mode 100644 index 00000000000..f5cde2a659e --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Model-SoftDeleteSettings.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.RecoveryServices.v2023_06_01.Vaults; + + +internal class SoftDeleteSettingsModel +{ + [JsonPropertyName("softDeleteRetentionPeriodInDays")] + public int? SoftDeleteRetentionPeriodInDays { get; set; } + + [JsonPropertyName("softDeleteState")] + public SoftDeleteStateConstant? SoftDeleteState { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Model-UpgradeDetails.cs b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Model-UpgradeDetails.cs new file mode 100644 index 00000000000..05f316a27a1 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Model-UpgradeDetails.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.RecoveryServices.v2023_06_01.Vaults; + + +internal class UpgradeDetailsModel +{ + [DateFormat(DateFormatAttribute.DateFormat.RFC3339)] + [JsonPropertyName("endTimeUtc")] + public DateTime? EndTimeUtc { get; set; } + + [DateFormat(DateFormatAttribute.DateFormat.RFC3339)] + [JsonPropertyName("lastUpdatedTimeUtc")] + public DateTime? LastUpdatedTimeUtc { get; set; } + + [JsonPropertyName("message")] + public string? Message { get; set; } + + [JsonPropertyName("operationId")] + public string? OperationId { get; set; } + + [JsonPropertyName("previousResourceId")] + public string? PreviousResourceId { get; set; } + + [DateFormat(DateFormatAttribute.DateFormat.RFC3339)] + [JsonPropertyName("startTimeUtc")] + public DateTime? StartTimeUtc { get; set; } + + [JsonPropertyName("status")] + public VaultUpgradeStateConstant? Status { get; set; } + + [JsonPropertyName("triggerType")] + public TriggerTypeConstant? TriggerType { get; set; } + + [JsonPropertyName("upgradedResourceId")] + public string? UpgradedResourceId { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Model-Vault.cs b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Model-Vault.cs new file mode 100644 index 00000000000..acd56180337 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Model-Vault.cs @@ -0,0 +1,48 @@ +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.RecoveryServices.v2023_06_01.Vaults; + + +internal class VaultModel +{ + [JsonPropertyName("etag")] + public string? Etag { get; set; } + + [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 VaultPropertiesModel? Properties { get; set; } + + [JsonPropertyName("sku")] + public SkuModel? Sku { get; set; } + + [JsonPropertyName("systemData")] + public CustomTypes.SystemData? SystemData { get; set; } + + [JsonPropertyName("tags")] + public CustomTypes.Tags? Tags { get; set; } + + [JsonPropertyName("type")] + public string? Type { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Model-VaultProperties.cs b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Model-VaultProperties.cs new file mode 100644 index 00000000000..84ba3b9d3e4 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Model-VaultProperties.cs @@ -0,0 +1,62 @@ +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.RecoveryServices.v2023_06_01.Vaults; + + +internal class VaultPropertiesModel +{ + [JsonPropertyName("backupStorageVersion")] + public BackupStorageVersionConstant? BackupStorageVersion { get; set; } + + [JsonPropertyName("encryption")] + public VaultPropertiesEncryptionModel? Encryption { get; set; } + + [JsonPropertyName("monitoringSettings")] + public MonitoringSettingsModel? MonitoringSettings { get; set; } + + [JsonPropertyName("moveDetails")] + public VaultPropertiesMoveDetailsModel? MoveDetails { get; set; } + + [JsonPropertyName("moveState")] + public ResourceMoveStateConstant? MoveState { get; set; } + + [JsonPropertyName("privateEndpointConnections")] + public List? PrivateEndpointConnections { get; set; } + + [JsonPropertyName("privateEndpointStateForBackup")] + public VaultPrivateEndpointStateConstant? PrivateEndpointStateForBackup { get; set; } + + [JsonPropertyName("privateEndpointStateForSiteRecovery")] + public VaultPrivateEndpointStateConstant? PrivateEndpointStateForSiteRecovery { get; set; } + + [JsonPropertyName("provisioningState")] + public string? ProvisioningState { get; set; } + + [JsonPropertyName("publicNetworkAccess")] + public PublicNetworkAccessConstant? PublicNetworkAccess { get; set; } + + [JsonPropertyName("redundancySettings")] + public VaultPropertiesRedundancySettingsModel? RedundancySettings { get; set; } + + [JsonPropertyName("restoreSettings")] + public RestoreSettingsModel? RestoreSettings { get; set; } + + [JsonPropertyName("secureScore")] + public SecureScoreLevelConstant? SecureScore { get; set; } + + [JsonPropertyName("securitySettings")] + public SecuritySettingsModel? SecuritySettings { get; set; } + + [JsonPropertyName("upgradeDetails")] + public UpgradeDetailsModel? UpgradeDetails { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Model-VaultPropertiesEncryption.cs b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Model-VaultPropertiesEncryption.cs new file mode 100644 index 00000000000..d3ce67be856 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Model-VaultPropertiesEncryption.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.RecoveryServices.v2023_06_01.Vaults; + + +internal class VaultPropertiesEncryptionModel +{ + [JsonPropertyName("infrastructureEncryption")] + public InfrastructureEncryptionStateConstant? InfrastructureEncryption { get; set; } + + [JsonPropertyName("kekIdentity")] + public CmkKekIdentityModel? KekIdentity { get; set; } + + [JsonPropertyName("keyVaultProperties")] + public CmkKeyVaultPropertiesModel? KeyVaultProperties { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Model-VaultPropertiesMoveDetails.cs b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Model-VaultPropertiesMoveDetails.cs new file mode 100644 index 00000000000..59a5e8f8fab --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Model-VaultPropertiesMoveDetails.cs @@ -0,0 +1,34 @@ +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.RecoveryServices.v2023_06_01.Vaults; + + +internal class VaultPropertiesMoveDetailsModel +{ + [DateFormat(DateFormatAttribute.DateFormat.RFC3339)] + [JsonPropertyName("completionTimeUtc")] + public DateTime? CompletionTimeUtc { get; set; } + + [JsonPropertyName("operationId")] + public string? OperationId { get; set; } + + [JsonPropertyName("sourceResourceId")] + public string? SourceResourceId { get; set; } + + [DateFormat(DateFormatAttribute.DateFormat.RFC3339)] + [JsonPropertyName("startTimeUtc")] + public DateTime? StartTimeUtc { get; set; } + + [JsonPropertyName("targetResourceId")] + public string? TargetResourceId { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Model-VaultPropertiesRedundancySettings.cs b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Model-VaultPropertiesRedundancySettings.cs new file mode 100644 index 00000000000..74e3b10d77a --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Model-VaultPropertiesRedundancySettings.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.RecoveryServices.v2023_06_01.Vaults; + + +internal class VaultPropertiesRedundancySettingsModel +{ + [JsonPropertyName("crossRegionRestore")] + public CrossRegionRestoreConstant? CrossRegionRestore { get; set; } + + [JsonPropertyName("standardTierStorageRedundancy")] + public StandardTierStorageRedundancyConstant? StandardTierStorageRedundancy { get; set; } +} diff --git a/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Operation-CreateOrUpdate.cs b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Operation-CreateOrUpdate.cs new file mode 100644 index 00000000000..066788e39e6 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Operation-CreateOrUpdate.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.RecoveryServices.v2023_06_01.Vaults; + +internal class CreateOrUpdateOperation : Pandora.Definitions.Operations.PutOperation +{ + public override bool LongRunning() => true; + + public override Type? RequestObject() => typeof(VaultModel); + + public override ResourceID? ResourceId() => new VaultId(); + + public override Type? ResponseObject() => typeof(VaultModel); + + +} diff --git a/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Operation-Delete.cs b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Operation-Delete.cs new file mode 100644 index 00000000000..0cff1a57f32 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Operation-Delete.cs @@ -0,0 +1,25 @@ +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.RecoveryServices.v2023_06_01.Vaults; + +internal class DeleteOperation : Pandora.Definitions.Operations.DeleteOperation +{ + public override IEnumerable ExpectedStatusCodes() => new List + { + HttpStatusCode.OK, + }; + + public override ResourceID? ResourceId() => new VaultId(); + + +} diff --git a/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Operation-Get.cs b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Operation-Get.cs new file mode 100644 index 00000000000..6205ba5bb85 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/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.RecoveryServices.v2023_06_01.Vaults; + +internal class GetOperation : Pandora.Definitions.Operations.GetOperation +{ + public override ResourceID? ResourceId() => new VaultId(); + + public override Type? ResponseObject() => typeof(VaultModel); + + +} diff --git a/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Operation-ListByResourceGroup.cs b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Operation-ListByResourceGroup.cs new file mode 100644 index 00000000000..6bb865e496a --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/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.RecoveryServices.v2023_06_01.Vaults; + +internal class ListByResourceGroupOperation : Pandora.Definitions.Operations.ListOperation +{ + public override string? FieldContainingPaginationDetails() => "nextLink"; + + public override ResourceID? ResourceId() => new ResourceGroupId(); + + public override Type NestedItemType() => typeof(VaultModel); + + public override string? UriSuffix() => "/providers/Microsoft.RecoveryServices/vaults"; + + +} diff --git a/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Operation-ListBySubscriptionId.cs b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Operation-ListBySubscriptionId.cs new file mode 100644 index 00000000000..827dc6f0980 --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Operation-ListBySubscriptionId.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.RecoveryServices.v2023_06_01.Vaults; + +internal class ListBySubscriptionIdOperation : Pandora.Definitions.Operations.ListOperation +{ + public override string? FieldContainingPaginationDetails() => "nextLink"; + + public override ResourceID? ResourceId() => new SubscriptionId(); + + public override Type NestedItemType() => typeof(VaultModel); + + public override string? UriSuffix() => "/providers/Microsoft.RecoveryServices/vaults"; + + +} diff --git a/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Operation-Update.cs b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/Operation-Update.cs new file mode 100644 index 00000000000..6f6536209cb --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/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.RecoveryServices.v2023_06_01.Vaults; + +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(PatchVaultModel); + + public override ResourceID? ResourceId() => new VaultId(); + + public override Type? ResponseObject() => typeof(VaultModel); + + +} diff --git a/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/ResourceId-ResourceGroupId.cs b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/ResourceId-ResourceGroupId.cs new file mode 100644 index 00000000000..0e986dca87d --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/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.RecoveryServices.v2023_06_01.Vaults; + +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/RecoveryServices/v2023_06_01/Vaults/ResourceId-SubscriptionId.cs b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/ResourceId-SubscriptionId.cs new file mode 100644 index 00000000000..b7716cd415f --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/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.RecoveryServices.v2023_06_01.Vaults; + +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/RecoveryServices/v2023_06_01/Vaults/ResourceId-VaultId.cs b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/ResourceId-VaultId.cs new file mode 100644 index 00000000000..bac83bad41e --- /dev/null +++ b/data/Pandora.Definitions.ResourceManager/RecoveryServices/v2023_06_01/Vaults/ResourceId-VaultId.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.RecoveryServices.v2023_06_01.Vaults; + +internal class VaultId : ResourceID +{ + public string? CommonAlias => null; + + public string ID => "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}"; + + 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("staticMicrosoftRecoveryServices", "Microsoft.RecoveryServices"), + ResourceIDSegment.Static("staticVaults", "vaults"), + ResourceIDSegment.UserSpecified("vaultName"), + }; +}