diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/ArmKustoModelFactory.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/ArmKustoModelFactory.cs index 78643a81d2cd..7c7dc4e39351 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/ArmKustoModelFactory.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/ArmKustoModelFactory.cs @@ -53,8 +53,9 @@ public static partial class ArmKustoModelFactory /// Indicates what public IP type to create - IPv4 (default), or DualStack (both IPv4 and IPv6). /// Virtual Cluster graduation properties. /// A list of private endpoint connections. + /// Properties of the peer cluster involved in a migration to/from this cluster. /// A new instance for mocking. - public static KustoClusterData KustoClusterData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, KustoSku sku = null, IEnumerable zones = null, ManagedServiceIdentity identity = null, ETag? etag = null, KustoClusterState? state = null, KustoProvisioningState? provisioningState = null, Uri clusterUri = null, Uri dataIngestionUri = null, string stateReason = null, IEnumerable trustedExternalTenants = null, OptimizedAutoscale optimizedAutoscale = null, bool? isDiskEncryptionEnabled = null, bool? isStreamingIngestEnabled = null, KustoClusterVirtualNetworkConfiguration virtualNetworkConfiguration = null, KustoKeyVaultProperties keyVaultProperties = null, bool? isPurgeEnabled = null, IEnumerable languageExtensionsValue = null, bool? isDoubleEncryptionEnabled = null, KustoClusterPublicNetworkAccess? publicNetworkAccess = null, IEnumerable allowedIPRangeList = null, KustoClusterEngineType? engineType = null, IEnumerable acceptedAudiences = null, bool? isAutoStopEnabled = null, KustoClusterNetworkAccessFlag? restrictOutboundNetworkAccess = null, IEnumerable allowedFqdnList = null, KustoClusterPublicIPType? publicIPType = null, string virtualClusterGraduationProperties = null, IEnumerable privateEndpointConnections = null) + public static KustoClusterData KustoClusterData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, KustoSku sku = null, IEnumerable zones = null, ManagedServiceIdentity identity = null, ETag? etag = null, KustoClusterState? state = null, KustoProvisioningState? provisioningState = null, Uri clusterUri = null, Uri dataIngestionUri = null, string stateReason = null, IEnumerable trustedExternalTenants = null, OptimizedAutoscale optimizedAutoscale = null, bool? isDiskEncryptionEnabled = null, bool? isStreamingIngestEnabled = null, KustoClusterVirtualNetworkConfiguration virtualNetworkConfiguration = null, KustoKeyVaultProperties keyVaultProperties = null, bool? isPurgeEnabled = null, IEnumerable languageExtensionsValue = null, bool? isDoubleEncryptionEnabled = null, KustoClusterPublicNetworkAccess? publicNetworkAccess = null, IEnumerable allowedIPRangeList = null, KustoClusterEngineType? engineType = null, IEnumerable acceptedAudiences = null, bool? isAutoStopEnabled = null, KustoClusterNetworkAccessFlag? restrictOutboundNetworkAccess = null, IEnumerable allowedFqdnList = null, KustoClusterPublicIPType? publicIPType = null, string virtualClusterGraduationProperties = null, IEnumerable privateEndpointConnections = null, MigrationClusterProperties migrationCluster = null) { tags ??= new Dictionary(); zones ??= new List(); @@ -65,7 +66,7 @@ public static KustoClusterData KustoClusterData(ResourceIdentifier id = null, st allowedFqdnList ??= new List(); privateEndpointConnections ??= new List(); - return new KustoClusterData(id, name, resourceType, systemData, tags, location, sku, zones?.ToList(), identity, etag, state, provisioningState, clusterUri, dataIngestionUri, stateReason, trustedExternalTenants?.ToList(), optimizedAutoscale, isDiskEncryptionEnabled, isStreamingIngestEnabled, virtualNetworkConfiguration, keyVaultProperties, isPurgeEnabled, languageExtensionsValue != null ? new KustoLanguageExtensionList(languageExtensionsValue?.ToList()) : null, isDoubleEncryptionEnabled, publicNetworkAccess, allowedIPRangeList?.ToList(), engineType, acceptedAudiences?.ToList(), isAutoStopEnabled, restrictOutboundNetworkAccess, allowedFqdnList?.ToList(), publicIPType, virtualClusterGraduationProperties, privateEndpointConnections?.ToList()); + return new KustoClusterData(id, name, resourceType, systemData, tags, location, sku, zones?.ToList(), identity, etag, state, provisioningState, clusterUri, dataIngestionUri, stateReason, trustedExternalTenants?.ToList(), optimizedAutoscale, isDiskEncryptionEnabled, isStreamingIngestEnabled, virtualNetworkConfiguration, keyVaultProperties, isPurgeEnabled, languageExtensionsValue != null ? new KustoLanguageExtensionList(languageExtensionsValue?.ToList()) : null, isDoubleEncryptionEnabled, publicNetworkAccess, allowedIPRangeList?.ToList(), engineType, acceptedAudiences?.ToList(), isAutoStopEnabled, restrictOutboundNetworkAccess, allowedFqdnList?.ToList(), publicIPType, virtualClusterGraduationProperties, privateEndpointConnections?.ToList(), migrationCluster); } /// Initializes a new instance of KustoPrivateEndpointConnectionData. @@ -93,6 +94,17 @@ public static KustoPrivateLinkServiceConnectionStateProperty KustoPrivateLinkSer return new KustoPrivateLinkServiceConnectionStateProperty(status, description, actionsRequired); } + /// Initializes a new instance of MigrationClusterProperties. + /// The resource ID of the cluster. + /// The public URL of the cluster. + /// The public data ingestion URL of the cluster. + /// The role of the cluster in the migration process. + /// A new instance for mocking. + public static MigrationClusterProperties MigrationClusterProperties(string id = null, Uri uri = null, Uri dataIngestionUri = null, MigrationClusterRole? role = null) + { + return new MigrationClusterProperties(id, uri, dataIngestionUri, role); + } + /// Initializes a new instance of KustoClusterPatch. /// The id. /// The name. @@ -126,8 +138,9 @@ public static KustoPrivateLinkServiceConnectionStateProperty KustoPrivateLinkSer /// Indicates what public IP type to create - IPv4 (default), or DualStack (both IPv4 and IPv6). /// Virtual Cluster graduation properties. /// A list of private endpoint connections. + /// Properties of the peer cluster involved in a migration to/from this cluster. /// A new instance for mocking. - public static KustoClusterPatch KustoClusterPatch(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, KustoSku sku = null, ManagedServiceIdentity identity = null, KustoClusterState? state = null, KustoProvisioningState? provisioningState = null, Uri uri = null, Uri dataIngestionUri = null, string stateReason = null, IEnumerable trustedExternalTenants = null, OptimizedAutoscale optimizedAutoscale = null, bool? isDiskEncryptionEnabled = null, bool? isStreamingIngestEnabled = null, KustoClusterVirtualNetworkConfiguration virtualNetworkConfiguration = null, KustoKeyVaultProperties keyVaultProperties = null, bool? isPurgeEnabled = null, IEnumerable languageExtensionsValue = null, bool? isDoubleEncryptionEnabled = null, KustoClusterPublicNetworkAccess? publicNetworkAccess = null, IEnumerable allowedIPRangeList = null, KustoClusterEngineType? engineType = null, IEnumerable acceptedAudiences = null, bool? isAutoStopEnabled = null, KustoClusterNetworkAccessFlag? restrictOutboundNetworkAccess = null, IEnumerable allowedFqdnList = null, KustoClusterPublicIPType? publicIPType = null, string virtualClusterGraduationProperties = null, IEnumerable privateEndpointConnections = null) + public static KustoClusterPatch KustoClusterPatch(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, KustoSku sku = null, ManagedServiceIdentity identity = null, KustoClusterState? state = null, KustoProvisioningState? provisioningState = null, Uri uri = null, Uri dataIngestionUri = null, string stateReason = null, IEnumerable trustedExternalTenants = null, OptimizedAutoscale optimizedAutoscale = null, bool? isDiskEncryptionEnabled = null, bool? isStreamingIngestEnabled = null, KustoClusterVirtualNetworkConfiguration virtualNetworkConfiguration = null, KustoKeyVaultProperties keyVaultProperties = null, bool? isPurgeEnabled = null, IEnumerable languageExtensionsValue = null, bool? isDoubleEncryptionEnabled = null, KustoClusterPublicNetworkAccess? publicNetworkAccess = null, IEnumerable allowedIPRangeList = null, KustoClusterEngineType? engineType = null, IEnumerable acceptedAudiences = null, bool? isAutoStopEnabled = null, KustoClusterNetworkAccessFlag? restrictOutboundNetworkAccess = null, IEnumerable allowedFqdnList = null, KustoClusterPublicIPType? publicIPType = null, string virtualClusterGraduationProperties = null, IEnumerable privateEndpointConnections = null, MigrationClusterProperties migrationCluster = null) { tags ??= new Dictionary(); trustedExternalTenants ??= new List(); @@ -137,7 +150,7 @@ public static KustoClusterPatch KustoClusterPatch(ResourceIdentifier id = null, allowedFqdnList ??= new List(); privateEndpointConnections ??= new List(); - return new KustoClusterPatch(id, name, resourceType, systemData, tags, location, sku, identity, state, provisioningState, uri, dataIngestionUri, stateReason, trustedExternalTenants?.ToList(), optimizedAutoscale, isDiskEncryptionEnabled, isStreamingIngestEnabled, virtualNetworkConfiguration, keyVaultProperties, isPurgeEnabled, languageExtensionsValue != null ? new KustoLanguageExtensionList(languageExtensionsValue?.ToList()) : null, isDoubleEncryptionEnabled, publicNetworkAccess, allowedIPRangeList?.ToList(), engineType, acceptedAudiences?.ToList(), isAutoStopEnabled, restrictOutboundNetworkAccess, allowedFqdnList?.ToList(), publicIPType, virtualClusterGraduationProperties, privateEndpointConnections?.ToList()); + return new KustoClusterPatch(id, name, resourceType, systemData, tags, location, sku, identity, state, provisioningState, uri, dataIngestionUri, stateReason, trustedExternalTenants?.ToList(), optimizedAutoscale, isDiskEncryptionEnabled, isStreamingIngestEnabled, virtualNetworkConfiguration, keyVaultProperties, isPurgeEnabled, languageExtensionsValue != null ? new KustoLanguageExtensionList(languageExtensionsValue?.ToList()) : null, isDoubleEncryptionEnabled, publicNetworkAccess, allowedIPRangeList?.ToList(), engineType, acceptedAudiences?.ToList(), isAutoStopEnabled, restrictOutboundNetworkAccess, allowedFqdnList?.ToList(), publicIPType, virtualClusterGraduationProperties, privateEndpointConnections?.ToList(), migrationCluster); } /// Initializes a new instance of KustoNameAvailabilityResult. @@ -277,6 +290,14 @@ public static KustoDatabaseData KustoDatabaseData(ResourceIdentifier id = null, return new KustoDatabaseData(id, name, resourceType, systemData, location, kind); } + /// Initializes a new instance of DatabaseInviteFollowerResult. + /// The generated invitation token. + /// A new instance for mocking. + public static DatabaseInviteFollowerResult DatabaseInviteFollowerResult(string generatedInvitation = null) + { + return new DatabaseInviteFollowerResult(generatedInvitation); + } + /// Initializes a new instance of KustoDatabasePrincipalAssignmentData. /// The id. /// The name. @@ -441,10 +462,12 @@ public static DataConnectionValidationResult DataConnectionValidationResult(stri /// The time the data should be kept in cache for fast queries in TimeSpan. /// The statistics of the database. /// Indicates whether the database is followed. + /// KeyVault properties for the database encryption. + /// The database suspension details. If the database is suspended, this object contains information related to the database's suspension state. /// A new instance for mocking. - public static KustoReadWriteDatabase KustoReadWriteDatabase(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, AzureLocation? location = null, KustoProvisioningState? provisioningState = null, TimeSpan? softDeletePeriod = null, TimeSpan? hotCachePeriod = null, float? statisticsSize = null, bool? isFollowed = null) + public static KustoReadWriteDatabase KustoReadWriteDatabase(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, AzureLocation? location = null, KustoProvisioningState? provisioningState = null, TimeSpan? softDeletePeriod = null, TimeSpan? hotCachePeriod = null, float? statisticsSize = null, bool? isFollowed = null, KustoKeyVaultProperties keyVaultProperties = null, DateTimeOffset? suspensionStartOn = null) { - return new KustoReadWriteDatabase(id, name, resourceType, systemData, location, KustoKind.ReadWrite, provisioningState, softDeletePeriod, hotCachePeriod, statisticsSize != null ? new DatabaseStatistics(statisticsSize) : null, isFollowed); + return new KustoReadWriteDatabase(id, name, resourceType, systemData, location, KustoKind.ReadWrite, provisioningState, softDeletePeriod, hotCachePeriod, statisticsSize != null ? new DatabaseStatistics(statisticsSize) : null, isFollowed, keyVaultProperties, suspensionStartOn != null ? new SuspensionDetails(suspensionStartOn) : null); } /// Initializes a new instance of KustoReadOnlyFollowingDatabase. @@ -463,10 +486,11 @@ public static KustoReadWriteDatabase KustoReadWriteDatabase(ResourceIdentifier i /// Table level sharing specifications. /// The original database name, before databaseNameOverride or databaseNamePrefix where applied. /// The origin of the following setup. + /// The database suspension details. If the database is suspended, this object contains information related to the database's suspension state. /// A new instance for mocking. - public static KustoReadOnlyFollowingDatabase KustoReadOnlyFollowingDatabase(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, AzureLocation? location = null, KustoProvisioningState? provisioningState = null, TimeSpan? softDeletePeriod = null, TimeSpan? hotCachePeriod = null, float? statisticsSize = null, string leaderClusterResourceId = null, string attachedDatabaseConfigurationName = null, KustoDatabasePrincipalsModificationKind? principalsModificationKind = null, KustoDatabaseTableLevelSharingProperties tableLevelSharingProperties = null, string originalDatabaseName = null, KustoDatabaseShareOrigin? databaseShareOrigin = null) + public static KustoReadOnlyFollowingDatabase KustoReadOnlyFollowingDatabase(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, AzureLocation? location = null, KustoProvisioningState? provisioningState = null, TimeSpan? softDeletePeriod = null, TimeSpan? hotCachePeriod = null, float? statisticsSize = null, string leaderClusterResourceId = null, string attachedDatabaseConfigurationName = null, KustoDatabasePrincipalsModificationKind? principalsModificationKind = null, KustoDatabaseTableLevelSharingProperties tableLevelSharingProperties = null, string originalDatabaseName = null, KustoDatabaseShareOrigin? databaseShareOrigin = null, DateTimeOffset? suspensionStartOn = null) { - return new KustoReadOnlyFollowingDatabase(id, name, resourceType, systemData, location, KustoKind.ReadOnlyFollowing, provisioningState, softDeletePeriod, hotCachePeriod, statisticsSize != null ? new DatabaseStatistics(statisticsSize) : null, leaderClusterResourceId, attachedDatabaseConfigurationName, principalsModificationKind, tableLevelSharingProperties, originalDatabaseName, databaseShareOrigin); + return new KustoReadOnlyFollowingDatabase(id, name, resourceType, systemData, location, KustoKind.ReadOnlyFollowing, provisioningState, softDeletePeriod, hotCachePeriod, statisticsSize != null ? new DatabaseStatistics(statisticsSize) : null, leaderClusterResourceId, attachedDatabaseConfigurationName, principalsModificationKind, tableLevelSharingProperties, originalDatabaseName, databaseShareOrigin, suspensionStartOn != null ? new SuspensionDetails(suspensionStartOn) : null); } /// Initializes a new instance of KustoEventHubDataConnection. diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Extensions/KustoExtensions.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Extensions/KustoExtensions.cs index 0053085454e1..5759f2e551b0 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Extensions/KustoExtensions.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Extensions/KustoExtensions.cs @@ -394,7 +394,7 @@ public static Pageable GetKustoEligibleSkus(this Subscripti /// /// /// The instance the method will execute against. - /// Azure location (region) name. + /// The name of Azure region. /// The name of the cluster. /// The cancellation token to use. /// is null. @@ -419,7 +419,7 @@ public static async Task> CheckKustoCluste /// /// /// The instance the method will execute against. - /// Azure location (region) name. + /// The name of Azure region. /// The name of the cluster. /// The cancellation token to use. /// is null. @@ -444,7 +444,7 @@ public static Response CheckKustoClusterNameAvailab /// /// /// The instance the method will execute against. - /// Azure location (region) name. + /// The name of Azure region. /// The cancellation token to use. /// An async collection of that may take multiple service requests to iterate over. public static AsyncPageable GetSkusAsync(this SubscriptionResource subscriptionResource, AzureLocation location, CancellationToken cancellationToken = default) @@ -466,7 +466,7 @@ public static AsyncPageable GetSkusAsync(this SubscriptionR /// /// /// The instance the method will execute against. - /// Azure location (region) name. + /// The name of Azure region. /// The cancellation token to use. /// A collection of that may take multiple service requests to iterate over. public static Pageable GetSkus(this SubscriptionResource subscriptionResource, AzureLocation location, CancellationToken cancellationToken = default) diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Extensions/SubscriptionResourceExtensionClient.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Extensions/SubscriptionResourceExtensionClient.cs index aa5e4c2aaaee..51078fe9aa5b 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Extensions/SubscriptionResourceExtensionClient.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Extensions/SubscriptionResourceExtensionClient.cs @@ -144,7 +144,7 @@ public virtual Pageable GetKustoEligibleSkus(CancellationTo /// /// /// - /// Azure location (region) name. + /// The name of Azure region. /// The name of the cluster. /// The cancellation token to use. public virtual async Task> CheckKustoClusterNameAvailabilityAsync(AzureLocation location, KustoClusterNameAvailabilityContent content, CancellationToken cancellationToken = default) @@ -176,7 +176,7 @@ public virtual async Task> CheckKustoClust /// /// /// - /// Azure location (region) name. + /// The name of Azure region. /// The name of the cluster. /// The cancellation token to use. public virtual Response CheckKustoClusterNameAvailability(AzureLocation location, KustoClusterNameAvailabilityContent content, CancellationToken cancellationToken = default) @@ -208,7 +208,7 @@ public virtual Response CheckKustoClusterNameAvaila /// /// /// - /// Azure location (region) name. + /// The name of Azure region. /// The cancellation token to use. /// An async collection of that may take multiple service requests to iterate over. public virtual AsyncPageable GetSkusAsync(AzureLocation location, CancellationToken cancellationToken = default) @@ -230,7 +230,7 @@ public virtual AsyncPageable GetSkusAsync(AzureLocation loc /// /// /// - /// Azure location (region) name. + /// The name of Azure region. /// The cancellation token to use. /// A collection of that may take multiple service requests to iterate over. public virtual Pageable GetSkus(AzureLocation location, CancellationToken cancellationToken = default) diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/KustoClusterData.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/KustoClusterData.cs index 95484d858eb6..e78ae9b5a007 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/KustoClusterData.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/KustoClusterData.cs @@ -72,7 +72,8 @@ public KustoClusterData(AzureLocation location, KustoSku sku) : base(location) /// Indicates what public IP type to create - IPv4 (default), or DualStack (both IPv4 and IPv6). /// Virtual Cluster graduation properties. /// A list of private endpoint connections. - internal KustoClusterData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, KustoSku sku, IList zones, ManagedServiceIdentity identity, ETag? etag, KustoClusterState? state, KustoProvisioningState? provisioningState, Uri clusterUri, Uri dataIngestionUri, string stateReason, IList trustedExternalTenants, OptimizedAutoscale optimizedAutoscale, bool? isDiskEncryptionEnabled, bool? isStreamingIngestEnabled, KustoClusterVirtualNetworkConfiguration virtualNetworkConfiguration, KustoKeyVaultProperties keyVaultProperties, bool? isPurgeEnabled, KustoLanguageExtensionList languageExtensions, bool? isDoubleEncryptionEnabled, KustoClusterPublicNetworkAccess? publicNetworkAccess, IList allowedIPRangeList, KustoClusterEngineType? engineType, IList acceptedAudiences, bool? isAutoStopEnabled, KustoClusterNetworkAccessFlag? restrictOutboundNetworkAccess, IList allowedFqdnList, KustoClusterPublicIPType? publicIPType, string virtualClusterGraduationProperties, IReadOnlyList privateEndpointConnections) : base(id, name, resourceType, systemData, tags, location) + /// Properties of the peer cluster involved in a migration to/from this cluster. + internal KustoClusterData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, KustoSku sku, IList zones, ManagedServiceIdentity identity, ETag? etag, KustoClusterState? state, KustoProvisioningState? provisioningState, Uri clusterUri, Uri dataIngestionUri, string stateReason, IList trustedExternalTenants, OptimizedAutoscale optimizedAutoscale, bool? isDiskEncryptionEnabled, bool? isStreamingIngestEnabled, KustoClusterVirtualNetworkConfiguration virtualNetworkConfiguration, KustoKeyVaultProperties keyVaultProperties, bool? isPurgeEnabled, KustoLanguageExtensionList languageExtensions, bool? isDoubleEncryptionEnabled, KustoClusterPublicNetworkAccess? publicNetworkAccess, IList allowedIPRangeList, KustoClusterEngineType? engineType, IList acceptedAudiences, bool? isAutoStopEnabled, KustoClusterNetworkAccessFlag? restrictOutboundNetworkAccess, IList allowedFqdnList, KustoClusterPublicIPType? publicIPType, string virtualClusterGraduationProperties, IReadOnlyList privateEndpointConnections, MigrationClusterProperties migrationCluster) : base(id, name, resourceType, systemData, tags, location) { Sku = sku; Zones = zones; @@ -102,6 +103,7 @@ internal KustoClusterData(ResourceIdentifier id, string name, ResourceType resou PublicIPType = publicIPType; VirtualClusterGraduationProperties = virtualClusterGraduationProperties; PrivateEndpointConnections = privateEndpointConnections; + MigrationCluster = migrationCluster; } /// The SKU of the cluster. @@ -171,5 +173,7 @@ public IList LanguageExtensionsValue public string VirtualClusterGraduationProperties { get; set; } /// A list of private endpoint connections. public IReadOnlyList PrivateEndpointConnections { get; } + /// Properties of the peer cluster involved in a migration to/from this cluster. + public MigrationClusterProperties MigrationCluster { get; } } } diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/KustoClusterResource.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/KustoClusterResource.cs index 2ab7b44c3dfc..f9fcc8c186bd 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/KustoClusterResource.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/KustoClusterResource.cs @@ -773,6 +773,82 @@ public virtual ArmOperation Start(WaitUntil waitUntil, CancellationToken cancell } } + /// + /// Migrate data from a Kusto cluster to another cluster. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/migrate + /// + /// + /// Operation Id + /// Clusters_Migrate + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The cluster migrate request parameters. + /// The cancellation token to use. + /// is null. + public virtual async Task MigrateAsync(WaitUntil waitUntil, ClusterMigrateContent content, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(content, nameof(content)); + + using var scope = _kustoClusterClustersClientDiagnostics.CreateScope("KustoClusterResource.Migrate"); + scope.Start(); + try + { + var response = await _kustoClusterClustersRestClient.MigrateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content, cancellationToken).ConfigureAwait(false); + var operation = new KustoArmOperation(_kustoClusterClustersClientDiagnostics, Pipeline, _kustoClusterClustersRestClient.CreateMigrateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Migrate data from a Kusto cluster to another cluster. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/migrate + /// + /// + /// Operation Id + /// Clusters_Migrate + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// The cluster migrate request parameters. + /// The cancellation token to use. + /// is null. + public virtual ArmOperation Migrate(WaitUntil waitUntil, ClusterMigrateContent content, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(content, nameof(content)); + + using var scope = _kustoClusterClustersClientDiagnostics.CreateScope("KustoClusterResource.Migrate"); + scope.Start(); + try + { + var response = _kustoClusterClustersRestClient.Migrate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content, cancellationToken); + var operation = new KustoArmOperation(_kustoClusterClustersClientDiagnostics, Pipeline, _kustoClusterClustersRestClient.CreateMigrateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletionResponse(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + /// /// Returns a list of databases that are owned by this cluster and were followed by another cluster. /// diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/KustoDatabaseCollection.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/KustoDatabaseCollection.cs index 81c9687b7af6..832aa6a77ead 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/KustoDatabaseCollection.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/KustoDatabaseCollection.cs @@ -224,12 +224,15 @@ public virtual Response Get(string databaseName, Cancella /// /// /// + /// limit the number of results. + /// Skiptoken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that specifies a starting point to use for subsequent calls. /// The cancellation token to use. /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetAllAsync(CancellationToken cancellationToken = default) + public virtual AsyncPageable GetAllAsync(int? top = null, string skiptoken = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _kustoDatabaseDatabasesRestClient.CreateListByClusterRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); - return PageableHelpers.CreateAsyncPageable(FirstPageRequest, null, e => new KustoDatabaseResource(Client, KustoDatabaseData.DeserializeKustoDatabaseData(e)), _kustoDatabaseDatabasesClientDiagnostics, Pipeline, "KustoDatabaseCollection.GetAll", "value", null, cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => _kustoDatabaseDatabasesRestClient.CreateListByClusterRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, top, skiptoken); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _kustoDatabaseDatabasesRestClient.CreateListByClusterNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, top, skiptoken); + return PageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new KustoDatabaseResource(Client, KustoDatabaseData.DeserializeKustoDatabaseData(e)), _kustoDatabaseDatabasesClientDiagnostics, Pipeline, "KustoDatabaseCollection.GetAll", "value", "nextLink", cancellationToken); } /// @@ -245,12 +248,15 @@ public virtual AsyncPageable GetAllAsync(CancellationToke /// /// /// + /// limit the number of results. + /// Skiptoken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that specifies a starting point to use for subsequent calls. /// The cancellation token to use. /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetAll(CancellationToken cancellationToken = default) + public virtual Pageable GetAll(int? top = null, string skiptoken = null, CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _kustoDatabaseDatabasesRestClient.CreateListByClusterRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); - return PageableHelpers.CreatePageable(FirstPageRequest, null, e => new KustoDatabaseResource(Client, KustoDatabaseData.DeserializeKustoDatabaseData(e)), _kustoDatabaseDatabasesClientDiagnostics, Pipeline, "KustoDatabaseCollection.GetAll", "value", null, cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => _kustoDatabaseDatabasesRestClient.CreateListByClusterRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, top, skiptoken); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _kustoDatabaseDatabasesRestClient.CreateListByClusterNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, top, skiptoken); + return PageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new KustoDatabaseResource(Client, KustoDatabaseData.DeserializeKustoDatabaseData(e)), _kustoDatabaseDatabasesClientDiagnostics, Pipeline, "KustoDatabaseCollection.GetAll", "value", "nextLink", cancellationToken); } /// diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/KustoDatabaseResource.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/KustoDatabaseResource.cs index a18c161adb28..d2698a771e49 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/KustoDatabaseResource.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/KustoDatabaseResource.cs @@ -34,6 +34,8 @@ public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, private readonly ClientDiagnostics _kustoDatabaseDatabasesClientDiagnostics; private readonly DatabasesRestOperations _kustoDatabaseDatabasesRestClient; + private readonly ClientDiagnostics _databaseClientDiagnostics; + private readonly DatabaseRestOperations _databaseRestClient; private readonly ClientDiagnostics _kustoDatabasePrincipalAssignmentDatabasePrincipalAssignmentsClientDiagnostics; private readonly DatabasePrincipalAssignmentsRestOperations _kustoDatabasePrincipalAssignmentDatabasePrincipalAssignmentsRestClient; private readonly ClientDiagnostics _kustoScriptScriptsClientDiagnostics; @@ -64,6 +66,8 @@ internal KustoDatabaseResource(ArmClient client, ResourceIdentifier id) : base(c _kustoDatabaseDatabasesClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Kusto", ResourceType.Namespace, Diagnostics); TryGetApiVersion(ResourceType, out string kustoDatabaseDatabasesApiVersion); _kustoDatabaseDatabasesRestClient = new DatabasesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, kustoDatabaseDatabasesApiVersion); + _databaseClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Kusto", ProviderConstants.DefaultProviderNamespace, Diagnostics); + _databaseRestClient = new DatabaseRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint); _kustoDatabasePrincipalAssignmentDatabasePrincipalAssignmentsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Kusto", KustoDatabasePrincipalAssignmentResource.ResourceType.Namespace, Diagnostics); TryGetApiVersion(KustoDatabasePrincipalAssignmentResource.ResourceType, out string kustoDatabasePrincipalAssignmentDatabasePrincipalAssignmentsApiVersion); _kustoDatabasePrincipalAssignmentDatabasePrincipalAssignmentsRestClient = new DatabasePrincipalAssignmentsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, kustoDatabasePrincipalAssignmentDatabasePrincipalAssignmentsApiVersion); @@ -613,6 +617,74 @@ public virtual Pageable RemovePrincipals(DatabasePrincip return PageableHelpers.CreatePageable(FirstPageRequest, null, KustoDatabasePrincipal.DeserializeKustoDatabasePrincipal, _kustoDatabaseDatabasesClientDiagnostics, Pipeline, "KustoDatabaseResource.RemovePrincipals", "value", null, cancellationToken); } + /// + /// Generates an invitation token that allows attaching a follower database to this database. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/inviteFollower + /// + /// + /// Operation Id + /// Database_InviteFollower + /// + /// + /// + /// The follower invitation request parameters. + /// The cancellation token to use. + /// is null. + public virtual async Task> InviteFollowerDatabaseAsync(DatabaseInviteFollowerContent content, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(content, nameof(content)); + + using var scope = _databaseClientDiagnostics.CreateScope("KustoDatabaseResource.InviteFollowerDatabase"); + scope.Start(); + try + { + var response = await _databaseRestClient.InviteFollowerAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, content, cancellationToken).ConfigureAwait(false); + return response; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Generates an invitation token that allows attaching a follower database to this database. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/inviteFollower + /// + /// + /// Operation Id + /// Database_InviteFollower + /// + /// + /// + /// The follower invitation request parameters. + /// The cancellation token to use. + /// is null. + public virtual Response InviteFollowerDatabase(DatabaseInviteFollowerContent content, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(content, nameof(content)); + + using var scope = _databaseClientDiagnostics.CreateScope("KustoDatabaseResource.InviteFollowerDatabase"); + scope.Start(); + try + { + var response = _databaseRestClient.InviteFollower(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, content, cancellationToken); + return response; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + /// /// Checks that the database principal assignment is valid and is not already in use. /// diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/KustoScriptResource.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/KustoScriptResource.cs index caf5c3858d18..cf1481fcd040 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/KustoScriptResource.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/KustoScriptResource.cs @@ -151,7 +151,7 @@ public virtual Response Get(CancellationToken cancellationT } /// - /// Deletes a Kusto principalAssignment. + /// Deletes a Kusto database script. /// /// /// Request Path @@ -185,7 +185,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell } /// - /// Deletes a Kusto principalAssignment. + /// Deletes a Kusto database script. /// /// /// Request Path diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/ClusterMigrateContent.Serialization.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/ClusterMigrateContent.Serialization.cs new file mode 100644 index 000000000000..874b2b666b94 --- /dev/null +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/ClusterMigrateContent.Serialization.cs @@ -0,0 +1,23 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.Kusto.Models +{ + public partial class ClusterMigrateContent : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("clusterResourceId"u8); + writer.WriteStringValue(ClusterResourceId); + writer.WriteEndObject(); + } + } +} diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/ClusterMigrateContent.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/ClusterMigrateContent.cs new file mode 100644 index 000000000000..ab4c7881674d --- /dev/null +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/ClusterMigrateContent.cs @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using Azure.Core; + +namespace Azure.ResourceManager.Kusto.Models +{ + /// A cluster migrate request. + public partial class ClusterMigrateContent + { + /// Initializes a new instance of ClusterMigrateContent. + /// Resource ID of the destination cluster or kusto pool. + /// is null. + public ClusterMigrateContent(string clusterResourceId) + { + Argument.AssertNotNull(clusterResourceId, nameof(clusterResourceId)); + + ClusterResourceId = clusterResourceId; + } + + /// Resource ID of the destination cluster or kusto pool. + public string ClusterResourceId { get; } + } +} diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/DatabaseInviteFollowerContent.Serialization.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/DatabaseInviteFollowerContent.Serialization.cs new file mode 100644 index 000000000000..e8eeea19bacb --- /dev/null +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/DatabaseInviteFollowerContent.Serialization.cs @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.Kusto.Models +{ + public partial class DatabaseInviteFollowerContent : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("inviteeEmail"u8); + writer.WriteStringValue(InviteeEmail); + if (Optional.IsDefined(TableLevelSharingProperties)) + { + writer.WritePropertyName("tableLevelSharingProperties"u8); + writer.WriteObjectValue(TableLevelSharingProperties); + } + writer.WriteEndObject(); + } + } +} diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/DatabaseInviteFollowerContent.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/DatabaseInviteFollowerContent.cs new file mode 100644 index 000000000000..9b897686fa55 --- /dev/null +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/DatabaseInviteFollowerContent.cs @@ -0,0 +1,31 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using Azure.Core; + +namespace Azure.ResourceManager.Kusto.Models +{ + /// The request to invite a follower to a database. + public partial class DatabaseInviteFollowerContent + { + /// Initializes a new instance of DatabaseInviteFollowerContent. + /// The email of the invited user for which the follower invitation is generated. + /// is null. + public DatabaseInviteFollowerContent(string inviteeEmail) + { + Argument.AssertNotNull(inviteeEmail, nameof(inviteeEmail)); + + InviteeEmail = inviteeEmail; + } + + /// The email of the invited user for which the follower invitation is generated. + public string InviteeEmail { get; } + /// Table level sharing specifications. + public KustoDatabaseTableLevelSharingProperties TableLevelSharingProperties { get; set; } + } +} diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/DatabaseInviteFollowerResult.Serialization.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/DatabaseInviteFollowerResult.Serialization.cs new file mode 100644 index 000000000000..63b53edbcccb --- /dev/null +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/DatabaseInviteFollowerResult.Serialization.cs @@ -0,0 +1,33 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.Kusto.Models +{ + public partial class DatabaseInviteFollowerResult + { + internal static DatabaseInviteFollowerResult DeserializeDatabaseInviteFollowerResult(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional generatedInvitation = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("generatedInvitation"u8)) + { + generatedInvitation = property.Value.GetString(); + continue; + } + } + return new DatabaseInviteFollowerResult(generatedInvitation.Value); + } + } +} diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/DatabaseInviteFollowerResult.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/DatabaseInviteFollowerResult.cs new file mode 100644 index 000000000000..88e26598b2a7 --- /dev/null +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/DatabaseInviteFollowerResult.cs @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.Kusto.Models +{ + /// The result returned from a follower invitation generation request. + public partial class DatabaseInviteFollowerResult + { + /// Initializes a new instance of DatabaseInviteFollowerResult. + internal DatabaseInviteFollowerResult() + { + } + + /// Initializes a new instance of DatabaseInviteFollowerResult. + /// The generated invitation token. + internal DatabaseInviteFollowerResult(string generatedInvitation) + { + GeneratedInvitation = generatedInvitation; + } + + /// The generated invitation token. + public string GeneratedInvitation { get; } + } +} diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/DatabaseListResult.Serialization.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/DatabaseListResult.Serialization.cs index c0e8e0c93072..0614d5e8cce6 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/DatabaseListResult.Serialization.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/DatabaseListResult.Serialization.cs @@ -20,9 +20,15 @@ internal static DatabaseListResult DeserializeDatabaseListResult(JsonElement ele { return null; } + Optional nextLink = default; Optional> value = default; foreach (var property in element.EnumerateObject()) { + if (property.NameEquals("nextLink"u8)) + { + nextLink = property.Value.GetString(); + continue; + } if (property.NameEquals("value"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -38,7 +44,7 @@ internal static DatabaseListResult DeserializeDatabaseListResult(JsonElement ele continue; } } - return new DatabaseListResult(Optional.ToList(value)); + return new DatabaseListResult(nextLink.Value, Optional.ToList(value)); } } } diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/DatabaseListResult.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/DatabaseListResult.cs index e5a6ffddf02c..354855d211e4 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/DatabaseListResult.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/DatabaseListResult.cs @@ -21,16 +21,20 @@ internal DatabaseListResult() } /// Initializes a new instance of DatabaseListResult. + /// Link to the next page of results. /// /// The list of Kusto databases. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. /// The available derived classes include and . /// - internal DatabaseListResult(IReadOnlyList value) + internal DatabaseListResult(string nextLink, IReadOnlyList value) { + NextLink = nextLink; Value = value; } + /// Link to the next page of results. + public string NextLink { get; } /// /// The list of Kusto databases. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoClusterData.Serialization.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoClusterData.Serialization.cs index b3000c0989de..5f6942b39ec4 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoClusterData.Serialization.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoClusterData.Serialization.cs @@ -206,6 +206,7 @@ internal static KustoClusterData DeserializeKustoClusterData(JsonElement element Optional publicIPType = default; Optional virtualClusterGraduationProperties = default; Optional> privateEndpointConnections = default; + Optional migrationCluster = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("sku"u8)) @@ -530,11 +531,20 @@ internal static KustoClusterData DeserializeKustoClusterData(JsonElement element privateEndpointConnections = array; continue; } + if (property0.NameEquals("migrationCluster"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + migrationCluster = MigrationClusterProperties.DeserializeMigrationClusterProperties(property0.Value); + continue; + } } continue; } } - return new KustoClusterData(id, name, type, systemData.Value, Optional.ToDictionary(tags), location, sku, Optional.ToList(zones), identity, Optional.ToNullable(etag), Optional.ToNullable(state), Optional.ToNullable(provisioningState), uri.Value, dataIngestionUri.Value, stateReason.Value, Optional.ToList(trustedExternalTenants), optimizedAutoscale.Value, Optional.ToNullable(enableDiskEncryption), Optional.ToNullable(enableStreamingIngest), virtualNetworkConfiguration.Value, keyVaultProperties.Value, Optional.ToNullable(enablePurge), languageExtensions.Value, Optional.ToNullable(enableDoubleEncryption), Optional.ToNullable(publicNetworkAccess), Optional.ToList(allowedIPRangeList), Optional.ToNullable(engineType), Optional.ToList(acceptedAudiences), Optional.ToNullable(enableAutoStop), Optional.ToNullable(restrictOutboundNetworkAccess), Optional.ToList(allowedFqdnList), Optional.ToNullable(publicIPType), virtualClusterGraduationProperties.Value, Optional.ToList(privateEndpointConnections)); + return new KustoClusterData(id, name, type, systemData.Value, Optional.ToDictionary(tags), location, sku, Optional.ToList(zones), identity, Optional.ToNullable(etag), Optional.ToNullable(state), Optional.ToNullable(provisioningState), uri.Value, dataIngestionUri.Value, stateReason.Value, Optional.ToList(trustedExternalTenants), optimizedAutoscale.Value, Optional.ToNullable(enableDiskEncryption), Optional.ToNullable(enableStreamingIngest), virtualNetworkConfiguration.Value, keyVaultProperties.Value, Optional.ToNullable(enablePurge), languageExtensions.Value, Optional.ToNullable(enableDoubleEncryption), Optional.ToNullable(publicNetworkAccess), Optional.ToList(allowedIPRangeList), Optional.ToNullable(engineType), Optional.ToList(acceptedAudiences), Optional.ToNullable(enableAutoStop), Optional.ToNullable(restrictOutboundNetworkAccess), Optional.ToList(allowedFqdnList), Optional.ToNullable(publicIPType), virtualClusterGraduationProperties.Value, Optional.ToList(privateEndpointConnections), migrationCluster.Value); } } } diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoClusterPatch.Serialization.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoClusterPatch.Serialization.cs index db7c31b5d47e..e80f3bf2ffb6 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoClusterPatch.Serialization.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoClusterPatch.Serialization.cs @@ -196,6 +196,7 @@ internal static KustoClusterPatch DeserializeKustoClusterPatch(JsonElement eleme Optional publicIPType = default; Optional virtualClusterGraduationProperties = default; Optional> privateEndpointConnections = default; + Optional migrationCluster = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("sku"u8)) @@ -501,11 +502,20 @@ internal static KustoClusterPatch DeserializeKustoClusterPatch(JsonElement eleme privateEndpointConnections = array; continue; } + if (property0.NameEquals("migrationCluster"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + migrationCluster = MigrationClusterProperties.DeserializeMigrationClusterProperties(property0.Value); + continue; + } } continue; } } - return new KustoClusterPatch(id, name, type, systemData.Value, Optional.ToDictionary(tags), location, sku.Value, identity, Optional.ToNullable(state), Optional.ToNullable(provisioningState), uri.Value, dataIngestionUri.Value, stateReason.Value, Optional.ToList(trustedExternalTenants), optimizedAutoscale.Value, Optional.ToNullable(enableDiskEncryption), Optional.ToNullable(enableStreamingIngest), virtualNetworkConfiguration.Value, keyVaultProperties.Value, Optional.ToNullable(enablePurge), languageExtensions.Value, Optional.ToNullable(enableDoubleEncryption), Optional.ToNullable(publicNetworkAccess), Optional.ToList(allowedIPRangeList), Optional.ToNullable(engineType), Optional.ToList(acceptedAudiences), Optional.ToNullable(enableAutoStop), Optional.ToNullable(restrictOutboundNetworkAccess), Optional.ToList(allowedFqdnList), Optional.ToNullable(publicIPType), virtualClusterGraduationProperties.Value, Optional.ToList(privateEndpointConnections)); + return new KustoClusterPatch(id, name, type, systemData.Value, Optional.ToDictionary(tags), location, sku.Value, identity, Optional.ToNullable(state), Optional.ToNullable(provisioningState), uri.Value, dataIngestionUri.Value, stateReason.Value, Optional.ToList(trustedExternalTenants), optimizedAutoscale.Value, Optional.ToNullable(enableDiskEncryption), Optional.ToNullable(enableStreamingIngest), virtualNetworkConfiguration.Value, keyVaultProperties.Value, Optional.ToNullable(enablePurge), languageExtensions.Value, Optional.ToNullable(enableDoubleEncryption), Optional.ToNullable(publicNetworkAccess), Optional.ToList(allowedIPRangeList), Optional.ToNullable(engineType), Optional.ToList(acceptedAudiences), Optional.ToNullable(enableAutoStop), Optional.ToNullable(restrictOutboundNetworkAccess), Optional.ToList(allowedFqdnList), Optional.ToNullable(publicIPType), virtualClusterGraduationProperties.Value, Optional.ToList(privateEndpointConnections), migrationCluster.Value); } } } diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoClusterPatch.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoClusterPatch.cs index f370936e709c..979becb57943 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoClusterPatch.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoClusterPatch.cs @@ -60,7 +60,8 @@ public KustoClusterPatch(AzureLocation location) : base(location) /// Indicates what public IP type to create - IPv4 (default), or DualStack (both IPv4 and IPv6). /// Virtual Cluster graduation properties. /// A list of private endpoint connections. - internal KustoClusterPatch(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, KustoSku sku, ManagedServiceIdentity identity, KustoClusterState? state, KustoProvisioningState? provisioningState, Uri uri, Uri dataIngestionUri, string stateReason, IList trustedExternalTenants, OptimizedAutoscale optimizedAutoscale, bool? isDiskEncryptionEnabled, bool? isStreamingIngestEnabled, KustoClusterVirtualNetworkConfiguration virtualNetworkConfiguration, KustoKeyVaultProperties keyVaultProperties, bool? isPurgeEnabled, KustoLanguageExtensionList languageExtensions, bool? isDoubleEncryptionEnabled, KustoClusterPublicNetworkAccess? publicNetworkAccess, IList allowedIPRangeList, KustoClusterEngineType? engineType, IList acceptedAudiences, bool? isAutoStopEnabled, KustoClusterNetworkAccessFlag? restrictOutboundNetworkAccess, IList allowedFqdnList, KustoClusterPublicIPType? publicIPType, string virtualClusterGraduationProperties, IReadOnlyList privateEndpointConnections) : base(id, name, resourceType, systemData, tags, location) + /// Properties of the peer cluster involved in a migration to/from this cluster. + internal KustoClusterPatch(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, KustoSku sku, ManagedServiceIdentity identity, KustoClusterState? state, KustoProvisioningState? provisioningState, Uri uri, Uri dataIngestionUri, string stateReason, IList trustedExternalTenants, OptimizedAutoscale optimizedAutoscale, bool? isDiskEncryptionEnabled, bool? isStreamingIngestEnabled, KustoClusterVirtualNetworkConfiguration virtualNetworkConfiguration, KustoKeyVaultProperties keyVaultProperties, bool? isPurgeEnabled, KustoLanguageExtensionList languageExtensions, bool? isDoubleEncryptionEnabled, KustoClusterPublicNetworkAccess? publicNetworkAccess, IList allowedIPRangeList, KustoClusterEngineType? engineType, IList acceptedAudiences, bool? isAutoStopEnabled, KustoClusterNetworkAccessFlag? restrictOutboundNetworkAccess, IList allowedFqdnList, KustoClusterPublicIPType? publicIPType, string virtualClusterGraduationProperties, IReadOnlyList privateEndpointConnections, MigrationClusterProperties migrationCluster) : base(id, name, resourceType, systemData, tags, location) { Sku = sku; Identity = identity; @@ -88,6 +89,7 @@ internal KustoClusterPatch(ResourceIdentifier id, string name, ResourceType reso PublicIPType = publicIPType; VirtualClusterGraduationProperties = virtualClusterGraduationProperties; PrivateEndpointConnections = privateEndpointConnections; + MigrationCluster = migrationCluster; } /// The SKU of the cluster. @@ -153,5 +155,7 @@ public IList LanguageExtensionsValue public string VirtualClusterGraduationProperties { get; set; } /// A list of private endpoint connections. public IReadOnlyList PrivateEndpointConnections { get; } + /// Properties of the peer cluster involved in a migration to/from this cluster. + public MigrationClusterProperties MigrationCluster { get; } } } diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoClusterState.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoClusterState.cs index d3a38954844e..d676032f4ada 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoClusterState.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoClusterState.cs @@ -31,6 +31,7 @@ public KustoClusterState(string value) private const string StoppedValue = "Stopped"; private const string StartingValue = "Starting"; private const string UpdatingValue = "Updating"; + private const string MigratedValue = "Migrated"; /// Creating. public static KustoClusterState Creating { get; } = new KustoClusterState(CreatingValue); @@ -50,6 +51,8 @@ public KustoClusterState(string value) public static KustoClusterState Starting { get; } = new KustoClusterState(StartingValue); /// Updating. public static KustoClusterState Updating { get; } = new KustoClusterState(UpdatingValue); + /// Migrated. + public static KustoClusterState Migrated { get; } = new KustoClusterState(MigratedValue); /// Determines if two values are the same. public static bool operator ==(KustoClusterState left, KustoClusterState right) => left.Equals(right); /// Determines if two values are not the same. diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoLanguageExtensionImageName.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoLanguageExtensionImageName.cs index 2cb906eed2d1..5bb172bb2cde 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoLanguageExtensionImageName.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoLanguageExtensionImageName.cs @@ -24,8 +24,6 @@ public KustoLanguageExtensionImageName(string value) private const string RValue = "R"; private const string Python3_6_5Value = "Python3_6_5"; - private const string Python3_9_12Value = "Python3_9_12"; - private const string Python3_9_12IncludeDeepLearningValue = "Python3_9_12IncludeDeepLearning"; private const string Python3_10_8Value = "Python3_10_8"; /// R. diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoReadOnlyFollowingDatabase.Serialization.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoReadOnlyFollowingDatabase.Serialization.cs index 24723611adb8..8b6adc44df57 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoReadOnlyFollowingDatabase.Serialization.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoReadOnlyFollowingDatabase.Serialization.cs @@ -57,6 +57,7 @@ internal static KustoReadOnlyFollowingDatabase DeserializeKustoReadOnlyFollowing Optional tableLevelSharingProperties = default; Optional originalDatabaseName = default; Optional databaseShareOrigin = default; + Optional suspensionDetails = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("location"u8)) @@ -184,11 +185,20 @@ internal static KustoReadOnlyFollowingDatabase DeserializeKustoReadOnlyFollowing databaseShareOrigin = new KustoDatabaseShareOrigin(property0.Value.GetString()); continue; } + if (property0.NameEquals("suspensionDetails"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + suspensionDetails = SuspensionDetails.DeserializeSuspensionDetails(property0.Value); + continue; + } } continue; } } - return new KustoReadOnlyFollowingDatabase(id, name, type, systemData.Value, Optional.ToNullable(location), kind, Optional.ToNullable(provisioningState), Optional.ToNullable(softDeletePeriod), Optional.ToNullable(hotCachePeriod), statistics.Value, leaderClusterResourceId.Value, attachedDatabaseConfigurationName.Value, Optional.ToNullable(principalsModificationKind), tableLevelSharingProperties.Value, originalDatabaseName.Value, Optional.ToNullable(databaseShareOrigin)); + return new KustoReadOnlyFollowingDatabase(id, name, type, systemData.Value, Optional.ToNullable(location), kind, Optional.ToNullable(provisioningState), Optional.ToNullable(softDeletePeriod), Optional.ToNullable(hotCachePeriod), statistics.Value, leaderClusterResourceId.Value, attachedDatabaseConfigurationName.Value, Optional.ToNullable(principalsModificationKind), tableLevelSharingProperties.Value, originalDatabaseName.Value, Optional.ToNullable(databaseShareOrigin), suspensionDetails.Value); } } } diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoReadOnlyFollowingDatabase.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoReadOnlyFollowingDatabase.cs index 68a5e7bfa7c1..62313b390f0a 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoReadOnlyFollowingDatabase.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoReadOnlyFollowingDatabase.cs @@ -38,7 +38,8 @@ public KustoReadOnlyFollowingDatabase() /// Table level sharing specifications. /// The original database name, before databaseNameOverride or databaseNamePrefix where applied. /// The origin of the following setup. - internal KustoReadOnlyFollowingDatabase(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, AzureLocation? location, KustoKind kind, KustoProvisioningState? provisioningState, TimeSpan? softDeletePeriod, TimeSpan? hotCachePeriod, DatabaseStatistics statistics, string leaderClusterResourceId, string attachedDatabaseConfigurationName, KustoDatabasePrincipalsModificationKind? principalsModificationKind, KustoDatabaseTableLevelSharingProperties tableLevelSharingProperties, string originalDatabaseName, KustoDatabaseShareOrigin? databaseShareOrigin) : base(id, name, resourceType, systemData, location, kind) + /// The database suspension details. If the database is suspended, this object contains information related to the database's suspension state. + internal KustoReadOnlyFollowingDatabase(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, AzureLocation? location, KustoKind kind, KustoProvisioningState? provisioningState, TimeSpan? softDeletePeriod, TimeSpan? hotCachePeriod, DatabaseStatistics statistics, string leaderClusterResourceId, string attachedDatabaseConfigurationName, KustoDatabasePrincipalsModificationKind? principalsModificationKind, KustoDatabaseTableLevelSharingProperties tableLevelSharingProperties, string originalDatabaseName, KustoDatabaseShareOrigin? databaseShareOrigin, SuspensionDetails suspensionDetails) : base(id, name, resourceType, systemData, location, kind) { ProvisioningState = provisioningState; SoftDeletePeriod = softDeletePeriod; @@ -50,6 +51,7 @@ internal KustoReadOnlyFollowingDatabase(ResourceIdentifier id, string name, Reso TableLevelSharingProperties = tableLevelSharingProperties; OriginalDatabaseName = originalDatabaseName; DatabaseShareOrigin = databaseShareOrigin; + SuspensionDetails = suspensionDetails; Kind = kind; } @@ -79,5 +81,12 @@ public float? StatisticsSize public string OriginalDatabaseName { get; } /// The origin of the following setup. public KustoDatabaseShareOrigin? DatabaseShareOrigin { get; } + /// The database suspension details. If the database is suspended, this object contains information related to the database's suspension state. + internal SuspensionDetails SuspensionDetails { get; } + /// The starting date and time of the suspension state. + public DateTimeOffset? SuspensionStartOn + { + get => SuspensionDetails?.SuspensionStartOn; + } } } diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoReadWriteDatabase.Serialization.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoReadWriteDatabase.Serialization.cs index 80f1a463b98c..5be51a1a88a3 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoReadWriteDatabase.Serialization.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoReadWriteDatabase.Serialization.cs @@ -36,6 +36,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("hotCachePeriod"u8); writer.WriteStringValue(HotCachePeriod.Value, "P"); } + if (Optional.IsDefined(KeyVaultProperties)) + { + writer.WritePropertyName("keyVaultProperties"u8); + writer.WriteObjectValue(KeyVaultProperties); + } writer.WriteEndObject(); writer.WriteEndObject(); } @@ -57,6 +62,8 @@ internal static KustoReadWriteDatabase DeserializeKustoReadWriteDatabase(JsonEle Optional hotCachePeriod = default; Optional statistics = default; Optional isFollowed = default; + Optional keyVaultProperties = default; + Optional suspensionDetails = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("location"u8)) @@ -151,11 +158,29 @@ internal static KustoReadWriteDatabase DeserializeKustoReadWriteDatabase(JsonEle isFollowed = property0.Value.GetBoolean(); continue; } + if (property0.NameEquals("keyVaultProperties"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + keyVaultProperties = KustoKeyVaultProperties.DeserializeKustoKeyVaultProperties(property0.Value); + continue; + } + if (property0.NameEquals("suspensionDetails"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + suspensionDetails = SuspensionDetails.DeserializeSuspensionDetails(property0.Value); + continue; + } } continue; } } - return new KustoReadWriteDatabase(id, name, type, systemData.Value, Optional.ToNullable(location), kind, Optional.ToNullable(provisioningState), Optional.ToNullable(softDeletePeriod), Optional.ToNullable(hotCachePeriod), statistics.Value, Optional.ToNullable(isFollowed)); + return new KustoReadWriteDatabase(id, name, type, systemData.Value, Optional.ToNullable(location), kind, Optional.ToNullable(provisioningState), Optional.ToNullable(softDeletePeriod), Optional.ToNullable(hotCachePeriod), statistics.Value, Optional.ToNullable(isFollowed), keyVaultProperties.Value, suspensionDetails.Value); } } } diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoReadWriteDatabase.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoReadWriteDatabase.cs index b2a4fb708e6d..bd45fc4e6876 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoReadWriteDatabase.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/KustoReadWriteDatabase.cs @@ -33,13 +33,17 @@ public KustoReadWriteDatabase() /// The time the data should be kept in cache for fast queries in TimeSpan. /// The statistics of the database. /// Indicates whether the database is followed. - internal KustoReadWriteDatabase(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, AzureLocation? location, KustoKind kind, KustoProvisioningState? provisioningState, TimeSpan? softDeletePeriod, TimeSpan? hotCachePeriod, DatabaseStatistics statistics, bool? isFollowed) : base(id, name, resourceType, systemData, location, kind) + /// KeyVault properties for the database encryption. + /// The database suspension details. If the database is suspended, this object contains information related to the database's suspension state. + internal KustoReadWriteDatabase(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, AzureLocation? location, KustoKind kind, KustoProvisioningState? provisioningState, TimeSpan? softDeletePeriod, TimeSpan? hotCachePeriod, DatabaseStatistics statistics, bool? isFollowed, KustoKeyVaultProperties keyVaultProperties, SuspensionDetails suspensionDetails) : base(id, name, resourceType, systemData, location, kind) { ProvisioningState = provisioningState; SoftDeletePeriod = softDeletePeriod; HotCachePeriod = hotCachePeriod; Statistics = statistics; IsFollowed = isFollowed; + KeyVaultProperties = keyVaultProperties; + SuspensionDetails = suspensionDetails; Kind = kind; } @@ -59,5 +63,14 @@ public float? StatisticsSize /// Indicates whether the database is followed. public bool? IsFollowed { get; } + /// KeyVault properties for the database encryption. + public KustoKeyVaultProperties KeyVaultProperties { get; set; } + /// The database suspension details. If the database is suspended, this object contains information related to the database's suspension state. + internal SuspensionDetails SuspensionDetails { get; } + /// The starting date and time of the suspension state. + public DateTimeOffset? SuspensionStartOn + { + get => SuspensionDetails?.SuspensionStartOn; + } } } diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/MigrationClusterProperties.Serialization.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/MigrationClusterProperties.Serialization.cs new file mode 100644 index 000000000000..171808bd16af --- /dev/null +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/MigrationClusterProperties.Serialization.cs @@ -0,0 +1,64 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.Kusto.Models +{ + public partial class MigrationClusterProperties + { + internal static MigrationClusterProperties DeserializeMigrationClusterProperties(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional id = default; + Optional uri = default; + Optional dataIngestionUri = default; + Optional role = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("id"u8)) + { + id = property.Value.GetString(); + continue; + } + if (property.NameEquals("uri"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + uri = new Uri(property.Value.GetString()); + continue; + } + if (property.NameEquals("dataIngestionUri"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + dataIngestionUri = new Uri(property.Value.GetString()); + continue; + } + if (property.NameEquals("role"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + role = new MigrationClusterRole(property.Value.GetString()); + continue; + } + } + return new MigrationClusterProperties(id.Value, uri.Value, dataIngestionUri.Value, Optional.ToNullable(role)); + } + } +} diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/MigrationClusterProperties.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/MigrationClusterProperties.cs new file mode 100644 index 000000000000..9c7920e808a5 --- /dev/null +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/MigrationClusterProperties.cs @@ -0,0 +1,42 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; + +namespace Azure.ResourceManager.Kusto.Models +{ + /// Represents a properties of a cluster that is part of a migration. + public partial class MigrationClusterProperties + { + /// Initializes a new instance of MigrationClusterProperties. + internal MigrationClusterProperties() + { + } + + /// Initializes a new instance of MigrationClusterProperties. + /// The resource ID of the cluster. + /// The public URL of the cluster. + /// The public data ingestion URL of the cluster. + /// The role of the cluster in the migration process. + internal MigrationClusterProperties(string id, Uri uri, Uri dataIngestionUri, MigrationClusterRole? role) + { + Id = id; + Uri = uri; + DataIngestionUri = dataIngestionUri; + Role = role; + } + + /// The resource ID of the cluster. + public string Id { get; } + /// The public URL of the cluster. + public Uri Uri { get; } + /// The public data ingestion URL of the cluster. + public Uri DataIngestionUri { get; } + /// The role of the cluster in the migration process. + public MigrationClusterRole? Role { get; } + } +} diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/MigrationClusterRole.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/MigrationClusterRole.cs new file mode 100644 index 000000000000..99343a06c904 --- /dev/null +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/MigrationClusterRole.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.Kusto.Models +{ + /// The role of the cluster in the migration process. + public readonly partial struct MigrationClusterRole : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public MigrationClusterRole(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string SourceValue = "Source"; + private const string DestinationValue = "Destination"; + + /// Source. + public static MigrationClusterRole Source { get; } = new MigrationClusterRole(SourceValue); + /// Destination. + public static MigrationClusterRole Destination { get; } = new MigrationClusterRole(DestinationValue); + /// Determines if two values are the same. + public static bool operator ==(MigrationClusterRole left, MigrationClusterRole right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(MigrationClusterRole left, MigrationClusterRole right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator MigrationClusterRole(string value) => new MigrationClusterRole(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is MigrationClusterRole other && Equals(other); + /// + public bool Equals(MigrationClusterRole other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/SuspensionDetails.Serialization.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/SuspensionDetails.Serialization.cs new file mode 100644 index 000000000000..066db6858319 --- /dev/null +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/SuspensionDetails.Serialization.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.Kusto.Models +{ + internal partial class SuspensionDetails + { + internal static SuspensionDetails DeserializeSuspensionDetails(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Optional suspensionStartDate = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("suspensionStartDate"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + suspensionStartDate = property.Value.GetDateTimeOffset("O"); + continue; + } + } + return new SuspensionDetails(Optional.ToNullable(suspensionStartDate)); + } + } +} diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/SuspensionDetails.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/SuspensionDetails.cs new file mode 100644 index 000000000000..e645a422e80c --- /dev/null +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/Models/SuspensionDetails.cs @@ -0,0 +1,30 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; + +namespace Azure.ResourceManager.Kusto.Models +{ + /// The database suspension details. If the database is suspended, this object contains information related to the database's suspension state. + internal partial class SuspensionDetails + { + /// Initializes a new instance of SuspensionDetails. + internal SuspensionDetails() + { + } + + /// Initializes a new instance of SuspensionDetails. + /// The starting date and time of the suspension state. + internal SuspensionDetails(DateTimeOffset? suspensionStartOn) + { + SuspensionStartOn = suspensionStartOn; + } + + /// The starting date and time of the suspension state. + public DateTimeOffset? SuspensionStartOn { get; } + } +} diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/AttachedDatabaseConfigurationsRestOperations.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/AttachedDatabaseConfigurationsRestOperations.cs index f3c19cc206c0..36301ce80ffe 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/AttachedDatabaseConfigurationsRestOperations.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/AttachedDatabaseConfigurationsRestOperations.cs @@ -33,7 +33,7 @@ public AttachedDatabaseConfigurationsRestOperations(HttpPipeline pipeline, strin { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-12-29"; + _apiVersion = apiVersion ?? "2023-05-02"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } @@ -63,8 +63,8 @@ internal HttpMessage CreateCheckNameAvailabilityRequest(string subscriptionId, s } /// Checks that the attached database configuration resource name is valid and is not already in use. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// The name of the resource group containing the Kusto cluster. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The name of the Kusto cluster. /// The name of the resource. /// The cancellation token to use. @@ -94,8 +94,8 @@ public async Task> CheckNameAvailabilityAs } /// Checks that the attached database configuration resource name is valid and is not already in use. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// The name of the resource group containing the Kusto cluster. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The name of the Kusto cluster. /// The name of the resource. /// The cancellation token to use. @@ -146,8 +146,8 @@ internal HttpMessage CreateListByClusterRequest(string subscriptionId, string re } /// Returns the list of attached database configurations of the given Kusto cluster. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// The name of the resource group containing the Kusto cluster. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The name of the Kusto cluster. /// The cancellation token to use. /// , or is null. @@ -175,8 +175,8 @@ public async Task> ListByClust } /// Returns the list of attached database configurations of the given Kusto cluster. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// The name of the resource group containing the Kusto cluster. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The name of the Kusto cluster. /// The cancellation token to use. /// , or is null. @@ -226,8 +226,8 @@ internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGrou } /// Returns an attached database configuration. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// The name of the resource group containing the Kusto cluster. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The name of the Kusto cluster. /// The name of the attached database configuration. /// The cancellation token to use. @@ -259,8 +259,8 @@ public async Task> GetAsync(str } /// Returns an attached database configuration. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// The name of the resource group containing the Kusto cluster. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The name of the Kusto cluster. /// The name of the attached database configuration. /// The cancellation token to use. @@ -318,8 +318,8 @@ internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string r } /// Creates or updates an attached database configuration. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// The name of the resource group containing the Kusto cluster. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The name of the Kusto cluster. /// The name of the attached database configuration. /// The database parameters supplied to the CreateOrUpdate operation. @@ -348,8 +348,8 @@ public async Task CreateOrUpdateAsync(string subscriptionId, string re } /// Creates or updates an attached database configuration. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// The name of the resource group containing the Kusto cluster. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The name of the Kusto cluster. /// The name of the attached database configuration. /// The database parameters supplied to the CreateOrUpdate operation. @@ -400,8 +400,8 @@ internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceG } /// Deletes the attached database configuration with the given name. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// The name of the resource group containing the Kusto cluster. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The name of the Kusto cluster. /// The name of the attached database configuration. /// The cancellation token to use. @@ -428,8 +428,8 @@ public async Task DeleteAsync(string subscriptionId, string resourceGr } /// Deletes the attached database configuration with the given name. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// The name of the resource group containing the Kusto cluster. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The name of the Kusto cluster. /// The name of the attached database configuration. /// The cancellation token to use. diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/ClusterPrincipalAssignmentsRestOperations.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/ClusterPrincipalAssignmentsRestOperations.cs index d7b0d6fca413..6972a54dc1ea 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/ClusterPrincipalAssignmentsRestOperations.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/ClusterPrincipalAssignmentsRestOperations.cs @@ -33,7 +33,7 @@ public ClusterPrincipalAssignmentsRestOperations(HttpPipeline pipeline, string a { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-12-29"; + _apiVersion = apiVersion ?? "2023-05-02"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } @@ -63,8 +63,8 @@ internal HttpMessage CreateCheckNameAvailabilityRequest(string subscriptionId, s } /// Checks that the principal assignment name is valid and is not already in use. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// The name of the resource group containing the Kusto cluster. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The name of the Kusto cluster. /// The name of the principal assignment. /// The cancellation token to use. @@ -94,8 +94,8 @@ public async Task> CheckNameAvailabilityAs } /// Checks that the principal assignment name is valid and is not already in use. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// The name of the resource group containing the Kusto cluster. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The name of the Kusto cluster. /// The name of the principal assignment. /// The cancellation token to use. @@ -147,8 +147,8 @@ internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGrou } /// Gets a Kusto cluster principalAssignment. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// The name of the resource group containing the Kusto cluster. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The name of the Kusto cluster. /// The name of the Kusto principalAssignment. /// The cancellation token to use. @@ -180,8 +180,8 @@ public async Task> GetAsync(string } /// Gets a Kusto cluster principalAssignment. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// The name of the resource group containing the Kusto cluster. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The name of the Kusto cluster. /// The name of the Kusto principalAssignment. /// The cancellation token to use. @@ -239,8 +239,8 @@ internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string r } /// Create a Kusto cluster principalAssignment. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// The name of the resource group containing the Kusto cluster. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The name of the Kusto cluster. /// The name of the Kusto principalAssignment. /// The Kusto cluster principalAssignment's parameters supplied for the operation. @@ -268,8 +268,8 @@ public async Task CreateOrUpdateAsync(string subscriptionId, string re } /// Create a Kusto cluster principalAssignment. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// The name of the resource group containing the Kusto cluster. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The name of the Kusto cluster. /// The name of the Kusto principalAssignment. /// The Kusto cluster principalAssignment's parameters supplied for the operation. @@ -319,8 +319,8 @@ internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceG } /// Deletes a Kusto cluster principalAssignment. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// The name of the resource group containing the Kusto cluster. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The name of the Kusto cluster. /// The name of the Kusto principalAssignment. /// The cancellation token to use. @@ -347,8 +347,8 @@ public async Task DeleteAsync(string subscriptionId, string resourceGr } /// Deletes a Kusto cluster principalAssignment. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// The name of the resource group containing the Kusto cluster. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The name of the Kusto cluster. /// The name of the Kusto principalAssignment. /// The cancellation token to use. @@ -396,8 +396,8 @@ internal HttpMessage CreateListRequest(string subscriptionId, string resourceGro } /// Lists all Kusto cluster principalAssignments. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// The name of the resource group containing the Kusto cluster. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The name of the Kusto cluster. /// The cancellation token to use. /// , or is null. @@ -425,8 +425,8 @@ public async Task> ListAsync(stri } /// Lists all Kusto cluster principalAssignments. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// The name of the resource group containing the Kusto cluster. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The name of the Kusto cluster. /// The cancellation token to use. /// , or is null. diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/ClustersRestOperations.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/ClustersRestOperations.cs index 32e2adf2f1a3..5ccd1bcc4819 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/ClustersRestOperations.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/ClustersRestOperations.cs @@ -33,7 +33,7 @@ public ClustersRestOperations(HttpPipeline pipeline, string applicationId, Uri e { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-12-29"; + _apiVersion = apiVersion ?? "2023-05-02"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } @@ -58,8 +58,8 @@ internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGrou } /// Gets a Kusto cluster. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// The name of the resource group containing the Kusto cluster. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The name of the Kusto cluster. /// The cancellation token to use. /// , or is null. @@ -89,8 +89,8 @@ public async Task> GetAsync(string subscriptionId, st } /// Gets a Kusto cluster. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// The name of the resource group containing the Kusto cluster. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The name of the Kusto cluster. /// The cancellation token to use. /// , or is null. @@ -152,8 +152,8 @@ internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string r } /// Create or update a Kusto cluster. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// The name of the resource group containing the Kusto cluster. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The name of the Kusto cluster. /// The Kusto cluster parameters supplied to the CreateOrUpdate operation. /// The ETag of the cluster. Omit this value to always overwrite the current cluster. Specify the last-seen ETag value to prevent accidentally overwriting concurrent changes. @@ -181,8 +181,8 @@ public async Task CreateOrUpdateAsync(string subscriptionId, string re } /// Create or update a Kusto cluster. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// The name of the resource group containing the Kusto cluster. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The name of the Kusto cluster. /// The Kusto cluster parameters supplied to the CreateOrUpdate operation. /// The ETag of the cluster. Omit this value to always overwrite the current cluster. Specify the last-seen ETag value to prevent accidentally overwriting concurrent changes. @@ -238,8 +238,8 @@ internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceG } /// Update a Kusto cluster. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// The name of the resource group containing the Kusto cluster. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The name of the Kusto cluster. /// The Kusto cluster parameters supplied to the Update operation. /// The ETag of the cluster. Omit this value to always overwrite the current cluster. Specify the last-seen ETag value to prevent accidentally overwriting concurrent changes. @@ -267,8 +267,8 @@ public async Task UpdateAsync(string subscriptionId, string resourceGr } /// Update a Kusto cluster. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// The name of the resource group containing the Kusto cluster. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The name of the Kusto cluster. /// The Kusto cluster parameters supplied to the Update operation. /// The ETag of the cluster. Omit this value to always overwrite the current cluster. Specify the last-seen ETag value to prevent accidentally overwriting concurrent changes. @@ -316,8 +316,8 @@ internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceG } /// Deletes a Kusto cluster. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// The name of the resource group containing the Kusto cluster. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The name of the Kusto cluster. /// The cancellation token to use. /// , or is null. @@ -342,8 +342,8 @@ public async Task DeleteAsync(string subscriptionId, string resourceGr } /// Deletes a Kusto cluster. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// The name of the resource group containing the Kusto cluster. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The name of the Kusto cluster. /// The cancellation token to use. /// , or is null. @@ -389,8 +389,8 @@ internal HttpMessage CreateStopRequest(string subscriptionId, string resourceGro } /// Stops a Kusto cluster. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// The name of the resource group containing the Kusto cluster. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The name of the Kusto cluster. /// The cancellation token to use. /// , or is null. @@ -414,8 +414,8 @@ public async Task StopAsync(string subscriptionId, string resourceGrou } /// Stops a Kusto cluster. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// The name of the resource group containing the Kusto cluster. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The name of the Kusto cluster. /// The cancellation token to use. /// , or is null. @@ -460,8 +460,8 @@ internal HttpMessage CreateStartRequest(string subscriptionId, string resourceGr } /// Starts a Kusto cluster. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// The name of the resource group containing the Kusto cluster. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The name of the Kusto cluster. /// The cancellation token to use. /// , or is null. @@ -485,8 +485,8 @@ public async Task StartAsync(string subscriptionId, string resourceGro } /// Starts a Kusto cluster. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// The name of the resource group containing the Kusto cluster. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The name of the Kusto cluster. /// The cancellation token to use. /// , or is null. @@ -509,6 +509,85 @@ public Response Start(string subscriptionId, string resourceGroupName, string cl } } + internal HttpMessage CreateMigrateRequest(string subscriptionId, string resourceGroupName, string clusterName, ClusterMigrateContent content) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Post; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Kusto/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/migrate", false); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + request.Headers.Add("Content-Type", "application/json"); + var content0 = new Utf8JsonRequestContent(); + content0.JsonWriter.WriteObjectValue(content); + request.Content = content0; + _userAgent.Apply(message); + return message; + } + + /// Migrate data from a Kusto cluster to another cluster. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the Kusto cluster. + /// The cluster migrate request parameters. + /// The cancellation token to use. + /// , , or is null. + /// , or is an empty string, and was expected to be non-empty. + public async Task MigrateAsync(string subscriptionId, string resourceGroupName, string clusterName, ClusterMigrateContent content, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(clusterName, nameof(clusterName)); + Argument.AssertNotNull(content, nameof(content)); + + using var message = CreateMigrateRequest(subscriptionId, resourceGroupName, clusterName, content); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + case 202: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + /// Migrate data from a Kusto cluster to another cluster. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the Kusto cluster. + /// The cluster migrate request parameters. + /// The cancellation token to use. + /// , , or is null. + /// , or is an empty string, and was expected to be non-empty. + public Response Migrate(string subscriptionId, string resourceGroupName, string clusterName, ClusterMigrateContent content, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(clusterName, nameof(clusterName)); + Argument.AssertNotNull(content, nameof(content)); + + using var message = CreateMigrateRequest(subscriptionId, resourceGroupName, clusterName, content); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 202: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + internal HttpMessage CreateListFollowerDatabasesRequest(string subscriptionId, string resourceGroupName, string clusterName) { var message = _pipeline.CreateMessage(); @@ -531,8 +610,8 @@ internal HttpMessage CreateListFollowerDatabasesRequest(string subscriptionId, s } /// Returns a list of databases that are owned by this cluster and were followed by another cluster. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// The name of the resource group containing the Kusto cluster. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The name of the Kusto cluster. /// The cancellation token to use. /// , or is null. @@ -560,8 +639,8 @@ public async Task> ListFollowerDatabasesAsy } /// Returns a list of databases that are owned by this cluster and were followed by another cluster. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// The name of the resource group containing the Kusto cluster. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The name of the Kusto cluster. /// The cancellation token to use. /// , or is null. @@ -614,8 +693,8 @@ internal HttpMessage CreateDetachFollowerDatabasesRequest(string subscriptionId, } /// Detaches all followers of a database owned by this cluster. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// The name of the resource group containing the Kusto cluster. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The name of the Kusto cluster. /// The follower databases properties to remove. /// The cancellation token to use. @@ -641,8 +720,8 @@ public async Task DetachFollowerDatabasesAsync(string subscriptionId, } /// Detaches all followers of a database owned by this cluster. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// The name of the resource group containing the Kusto cluster. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The name of the Kusto cluster. /// The follower databases properties to remove. /// The cancellation token to use. @@ -689,8 +768,8 @@ internal HttpMessage CreateDiagnoseVirtualNetworkRequest(string subscriptionId, } /// Diagnoses network connectivity status for external resources on which the service is dependent on. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// The name of the resource group containing the Kusto cluster. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The name of the Kusto cluster. /// The cancellation token to use. /// , or is null. @@ -714,8 +793,8 @@ public async Task DiagnoseVirtualNetworkAsync(string subscriptionId, s } /// Diagnoses network connectivity status for external resources on which the service is dependent on. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// The name of the resource group containing the Kusto cluster. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The name of the Kusto cluster. /// The cancellation token to use. /// , or is null. @@ -758,8 +837,8 @@ internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, str } /// Lists all Kusto clusters within a resource group. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// The name of the resource group containing the Kusto cluster. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The cancellation token to use. /// or is null. /// or is an empty string, and was expected to be non-empty. @@ -785,8 +864,8 @@ public async Task> ListByResourceGroupAsync(string s } /// Lists all Kusto clusters within a resource group. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// The name of the resource group containing the Kusto cluster. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The cancellation token to use. /// or is null. /// or is an empty string, and was expected to be non-empty. @@ -829,7 +908,7 @@ internal HttpMessage CreateListRequest(string subscriptionId) } /// Lists all Kusto clusters within a subscription. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The ID of the target subscription. /// The cancellation token to use. /// is null. /// is an empty string, and was expected to be non-empty. @@ -854,7 +933,7 @@ public async Task> ListAsync(string subscriptionId, } /// Lists all Kusto clusters within a subscription. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The ID of the target subscription. /// The cancellation token to use. /// is null. /// is an empty string, and was expected to be non-empty. @@ -896,7 +975,7 @@ internal HttpMessage CreateListSkusRequest(string subscriptionId) } /// Lists eligible SKUs for Kusto resource provider. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The ID of the target subscription. /// The cancellation token to use. /// is null. /// is an empty string, and was expected to be non-empty. @@ -921,7 +1000,7 @@ public async Task> ListSkusAsync(string subscr } /// Lists eligible SKUs for Kusto resource provider. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The ID of the target subscription. /// The cancellation token to use. /// is null. /// is an empty string, and was expected to be non-empty. @@ -969,8 +1048,8 @@ internal HttpMessage CreateCheckNameAvailabilityRequest(string subscriptionId, A } /// Checks that the cluster name is valid and is not already in use. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// Azure location (region) name. + /// The ID of the target subscription. + /// The name of Azure region. /// The name of the cluster. /// The cancellation token to use. /// or is null. @@ -997,8 +1076,8 @@ public async Task> CheckNameAvailabilityAs } /// Checks that the cluster name is valid and is not already in use. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// Azure location (region) name. + /// The ID of the target subscription. + /// The name of Azure region. /// The name of the cluster. /// The cancellation token to use. /// or is null. @@ -1046,8 +1125,8 @@ internal HttpMessage CreateListSkusByResourceRequest(string subscriptionId, stri } /// Returns the SKUs available for the provided resource. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// The name of the resource group containing the Kusto cluster. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The name of the Kusto cluster. /// The cancellation token to use. /// , or is null. @@ -1075,8 +1154,8 @@ public async Task> ListSkusByResourceAsync(stri } /// Returns the SKUs available for the provided resource. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// The name of the resource group containing the Kusto cluster. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The name of the Kusto cluster. /// The cancellation token to use. /// , or is null. @@ -1125,8 +1204,8 @@ internal HttpMessage CreateListOutboundNetworkDependenciesEndpointsRequest(strin } /// Gets the network endpoints of all outbound dependencies of a Kusto cluster. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// The name of the resource group containing the Kusto cluster. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The name of the Kusto cluster. /// The cancellation token to use. /// , or is null. @@ -1154,8 +1233,8 @@ public async Task> ListO } /// Gets the network endpoints of all outbound dependencies of a Kusto cluster. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// The name of the resource group containing the Kusto cluster. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The name of the Kusto cluster. /// The cancellation token to use. /// , or is null. @@ -1204,8 +1283,8 @@ internal HttpMessage CreateListLanguageExtensionsRequest(string subscriptionId, } /// Returns a list of language extensions that can run within KQL queries. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// The name of the resource group containing the Kusto cluster. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The name of the Kusto cluster. /// The cancellation token to use. /// , or is null. @@ -1233,8 +1312,8 @@ public async Task> ListLanguageExtensionsAs } /// Returns a list of language extensions that can run within KQL queries. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// The name of the resource group containing the Kusto cluster. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The name of the Kusto cluster. /// The cancellation token to use. /// , or is null. @@ -1287,8 +1366,8 @@ internal HttpMessage CreateAddLanguageExtensionsRequest(string subscriptionId, s } /// Add a list of language extensions that can run within KQL queries. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// The name of the resource group containing the Kusto cluster. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The name of the Kusto cluster. /// The language extensions to add. /// The cancellation token to use. @@ -1314,8 +1393,8 @@ public async Task AddLanguageExtensionsAsync(string subscriptionId, st } /// Add a list of language extensions that can run within KQL queries. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// The name of the resource group containing the Kusto cluster. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The name of the Kusto cluster. /// The language extensions to add. /// The cancellation token to use. @@ -1366,8 +1445,8 @@ internal HttpMessage CreateRemoveLanguageExtensionsRequest(string subscriptionId } /// Remove a list of language extensions that can run within KQL queries. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// The name of the resource group containing the Kusto cluster. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The name of the Kusto cluster. /// The language extensions to remove. /// The cancellation token to use. @@ -1393,8 +1472,8 @@ public async Task RemoveLanguageExtensionsAsync(string subscriptionId, } /// Remove a list of language extensions that can run within KQL queries. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// The name of the resource group containing the Kusto cluster. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The name of the Kusto cluster. /// The language extensions to remove. /// The cancellation token to use. @@ -1435,8 +1514,8 @@ internal HttpMessage CreateListOutboundNetworkDependenciesEndpointsNextPageReque /// Gets the network endpoints of all outbound dependencies of a Kusto cluster. /// The URL to the next page of results. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// The name of the resource group containing the Kusto cluster. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The name of the Kusto cluster. /// The cancellation token to use. /// , , or is null. @@ -1466,8 +1545,8 @@ public async Task> ListO /// Gets the network endpoints of all outbound dependencies of a Kusto cluster. /// The URL to the next page of results. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// The name of the resource group containing the Kusto cluster. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The name of the Kusto cluster. /// The cancellation token to use. /// , , or is null. diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/DataConnectionsRestOperations.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/DataConnectionsRestOperations.cs index d8730729ee4e..17e47fd08401 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/DataConnectionsRestOperations.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/DataConnectionsRestOperations.cs @@ -33,7 +33,7 @@ public DataConnectionsRestOperations(HttpPipeline pipeline, string applicationId { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-12-29"; + _apiVersion = apiVersion ?? "2023-05-02"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } @@ -61,8 +61,8 @@ internal HttpMessage CreateListByDatabaseRequest(string subscriptionId, string r } /// Returns the list of data connections of the given Kusto database. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// The name of the resource group containing the Kusto cluster. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The name of the Kusto cluster. /// The name of the database in the Kusto cluster. /// The cancellation token to use. @@ -92,8 +92,8 @@ public async Task> ListByDatabaseAsync(string } /// Returns the list of data connections of the given Kusto database. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// The name of the resource group containing the Kusto cluster. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The name of the Kusto cluster. /// The name of the database in the Kusto cluster. /// The cancellation token to use. @@ -150,8 +150,8 @@ internal HttpMessage CreateDataConnectionValidationRequest(string subscriptionId } /// Checks that the data connection parameters are valid. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// The name of the resource group containing the Kusto cluster. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The name of the Kusto cluster. /// The name of the database in the Kusto cluster. /// The data connection parameters supplied to the CreateOrUpdate operation. @@ -179,8 +179,8 @@ public async Task DataConnectionValidationAsync(string subscriptionId, } /// Checks that the data connection parameters are valid. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// The name of the resource group containing the Kusto cluster. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The name of the Kusto cluster. /// The name of the database in the Kusto cluster. /// The data connection parameters supplied to the CreateOrUpdate operation. @@ -235,8 +235,8 @@ internal HttpMessage CreateCheckNameAvailabilityRequest(string subscriptionId, s } /// Checks that the data connection name is valid and is not already in use. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// The name of the resource group containing the Kusto cluster. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The name of the Kusto cluster. /// The name of the database in the Kusto cluster. /// The name of the data connection. @@ -268,8 +268,8 @@ public async Task> CheckNameAvailabilityAs } /// Checks that the data connection name is valid and is not already in use. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// The name of the resource group containing the Kusto cluster. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The name of the Kusto cluster. /// The name of the database in the Kusto cluster. /// The name of the data connection. @@ -325,8 +325,8 @@ internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGrou } /// Returns a data connection. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// The name of the resource group containing the Kusto cluster. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The name of the Kusto cluster. /// The name of the database in the Kusto cluster. /// The name of the data connection. @@ -360,8 +360,8 @@ public async Task> GetAsync(string subscriptio } /// Returns a data connection. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// The name of the resource group containing the Kusto cluster. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The name of the Kusto cluster. /// The name of the database in the Kusto cluster. /// The name of the data connection. @@ -423,8 +423,8 @@ internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string r } /// Creates or updates a data connection. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// The name of the resource group containing the Kusto cluster. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The name of the Kusto cluster. /// The name of the database in the Kusto cluster. /// The name of the data connection. @@ -455,8 +455,8 @@ public async Task CreateOrUpdateAsync(string subscriptionId, string re } /// Creates or updates a data connection. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// The name of the resource group containing the Kusto cluster. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The name of the Kusto cluster. /// The name of the database in the Kusto cluster. /// The name of the data connection. @@ -515,8 +515,8 @@ internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceG } /// Updates a data connection. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// The name of the resource group containing the Kusto cluster. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The name of the Kusto cluster. /// The name of the database in the Kusto cluster. /// The name of the data connection. @@ -547,8 +547,8 @@ public async Task UpdateAsync(string subscriptionId, string resourceGr } /// Updates a data connection. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// The name of the resource group containing the Kusto cluster. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The name of the Kusto cluster. /// The name of the database in the Kusto cluster. /// The name of the data connection. @@ -603,8 +603,8 @@ internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceG } /// Deletes the data connection with the given name. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// The name of the resource group containing the Kusto cluster. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The name of the Kusto cluster. /// The name of the database in the Kusto cluster. /// The name of the data connection. @@ -633,8 +633,8 @@ public async Task DeleteAsync(string subscriptionId, string resourceGr } /// Deletes the data connection with the given name. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// The name of the resource group containing the Kusto cluster. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The name of the Kusto cluster. /// The name of the database in the Kusto cluster. /// The name of the data connection. diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/DatabasePrincipalAssignmentsRestOperations.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/DatabasePrincipalAssignmentsRestOperations.cs index cf0eac7f9a10..65254c2596c4 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/DatabasePrincipalAssignmentsRestOperations.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/DatabasePrincipalAssignmentsRestOperations.cs @@ -33,7 +33,7 @@ public DatabasePrincipalAssignmentsRestOperations(HttpPipeline pipeline, string { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-12-29"; + _apiVersion = apiVersion ?? "2023-05-02"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } @@ -65,8 +65,8 @@ internal HttpMessage CreateCheckNameAvailabilityRequest(string subscriptionId, s } /// Checks that the database principal assignment is valid and is not already in use. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// The name of the resource group containing the Kusto cluster. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The name of the Kusto cluster. /// The name of the database in the Kusto cluster. /// The name of the resource. @@ -98,8 +98,8 @@ public async Task> CheckNameAvailabilityAs } /// Checks that the database principal assignment is valid and is not already in use. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// The name of the resource group containing the Kusto cluster. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The name of the Kusto cluster. /// The name of the database in the Kusto cluster. /// The name of the resource. @@ -155,8 +155,8 @@ internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGrou } /// Gets a Kusto cluster database principalAssignment. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// The name of the resource group containing the Kusto cluster. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The name of the Kusto cluster. /// The name of the database in the Kusto cluster. /// The name of the Kusto principalAssignment. @@ -190,8 +190,8 @@ public async Task> GetAsync(strin } /// Gets a Kusto cluster database principalAssignment. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// The name of the resource group containing the Kusto cluster. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The name of the Kusto cluster. /// The name of the database in the Kusto cluster. /// The name of the Kusto principalAssignment. @@ -253,8 +253,8 @@ internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string r } /// Creates a Kusto cluster database principalAssignment. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// The name of the resource group containing the Kusto cluster. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The name of the Kusto cluster. /// The name of the database in the Kusto cluster. /// The name of the Kusto principalAssignment. @@ -284,8 +284,8 @@ public async Task CreateOrUpdateAsync(string subscriptionId, string re } /// Creates a Kusto cluster database principalAssignment. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// The name of the resource group containing the Kusto cluster. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The name of the Kusto cluster. /// The name of the database in the Kusto cluster. /// The name of the Kusto principalAssignment. @@ -339,8 +339,8 @@ internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceG } /// Deletes a Kusto principalAssignment. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// The name of the resource group containing the Kusto cluster. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The name of the Kusto cluster. /// The name of the database in the Kusto cluster. /// The name of the Kusto principalAssignment. @@ -369,8 +369,8 @@ public async Task DeleteAsync(string subscriptionId, string resourceGr } /// Deletes a Kusto principalAssignment. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// The name of the resource group containing the Kusto cluster. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The name of the Kusto cluster. /// The name of the database in the Kusto cluster. /// The name of the Kusto principalAssignment. @@ -422,8 +422,8 @@ internal HttpMessage CreateListRequest(string subscriptionId, string resourceGro } /// Lists all Kusto cluster database principalAssignments. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// The name of the resource group containing the Kusto cluster. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The name of the Kusto cluster. /// The name of the database in the Kusto cluster. /// The cancellation token to use. @@ -453,8 +453,8 @@ public async Task> ListAsync(str } /// Lists all Kusto cluster database principalAssignments. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// The name of the resource group containing the Kusto cluster. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The name of the Kusto cluster. /// The name of the database in the Kusto cluster. /// The cancellation token to use. diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/DatabaseRestOperations.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/DatabaseRestOperations.cs new file mode 100644 index 000000000000..677c5b27d4ae --- /dev/null +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/DatabaseRestOperations.cs @@ -0,0 +1,133 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager.Kusto.Models; + +namespace Azure.ResourceManager.Kusto +{ + internal partial class DatabaseRestOperations + { + private readonly TelemetryDetails _userAgent; + private readonly HttpPipeline _pipeline; + private readonly Uri _endpoint; + private readonly string _apiVersion; + + /// Initializes a new instance of DatabaseRestOperations. + /// The HTTP pipeline for sending and receiving REST requests and responses. + /// The application id to use for user agent. + /// server parameter. + /// Api Version. + /// or is null. + public DatabaseRestOperations(HttpPipeline pipeline, string applicationId, Uri endpoint = null, string apiVersion = default) + { + _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); + _endpoint = endpoint ?? new Uri("https://management.azure.com"); + _apiVersion = apiVersion ?? "2023-05-02"; + _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); + } + + internal HttpMessage CreateInviteFollowerRequest(string subscriptionId, string resourceGroupName, string clusterName, string databaseName, DatabaseInviteFollowerContent content) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Post; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Kusto/clusters/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/inviteFollower", false); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + request.Headers.Add("Content-Type", "application/json"); + var content0 = new Utf8JsonRequestContent(); + content0.JsonWriter.WriteObjectValue(content); + request.Content = content0; + _userAgent.Apply(message); + return message; + } + + /// Generates an invitation token that allows attaching a follower database to this database. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the Kusto cluster. + /// The name of the database in the Kusto cluster. + /// The follower invitation request parameters. + /// The cancellation token to use. + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task> InviteFollowerAsync(string subscriptionId, string resourceGroupName, string clusterName, string databaseName, DatabaseInviteFollowerContent content, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(clusterName, nameof(clusterName)); + Argument.AssertNotNullOrEmpty(databaseName, nameof(databaseName)); + Argument.AssertNotNull(content, nameof(content)); + + using var message = CreateInviteFollowerRequest(subscriptionId, resourceGroupName, clusterName, databaseName, content); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + DatabaseInviteFollowerResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = DatabaseInviteFollowerResult.DeserializeDatabaseInviteFollowerResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Generates an invitation token that allows attaching a follower database to this database. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the Kusto cluster. + /// The name of the database in the Kusto cluster. + /// The follower invitation request parameters. + /// The cancellation token to use. + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response InviteFollower(string subscriptionId, string resourceGroupName, string clusterName, string databaseName, DatabaseInviteFollowerContent content, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(clusterName, nameof(clusterName)); + Argument.AssertNotNullOrEmpty(databaseName, nameof(databaseName)); + Argument.AssertNotNull(content, nameof(content)); + + using var message = CreateInviteFollowerRequest(subscriptionId, resourceGroupName, clusterName, databaseName, content); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + DatabaseInviteFollowerResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = DatabaseInviteFollowerResult.DeserializeDatabaseInviteFollowerResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + } +} diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/DatabasesRestOperations.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/DatabasesRestOperations.cs index 612f840117bb..aafffdf1b4bd 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/DatabasesRestOperations.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/DatabasesRestOperations.cs @@ -33,7 +33,7 @@ public DatabasesRestOperations(HttpPipeline pipeline, string applicationId, Uri { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-12-29"; + _apiVersion = apiVersion ?? "2023-05-02"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } @@ -63,8 +63,8 @@ internal HttpMessage CreateCheckNameAvailabilityRequest(string subscriptionId, s } /// Checks that the databases resource name is valid and is not already in use. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// The name of the resource group containing the Kusto cluster. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The name of the Kusto cluster. /// The name of the resource. /// The cancellation token to use. @@ -94,8 +94,8 @@ public async Task> CheckNameAvailabilityAs } /// Checks that the databases resource name is valid and is not already in use. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// The name of the resource group containing the Kusto cluster. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The name of the Kusto cluster. /// The name of the resource. /// The cancellation token to use. @@ -124,7 +124,7 @@ public Response CheckNameAvailability(string subscr } } - internal HttpMessage CreateListByClusterRequest(string subscriptionId, string resourceGroupName, string clusterName) + internal HttpMessage CreateListByClusterRequest(string subscriptionId, string resourceGroupName, string clusterName, int? top, string skiptoken) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -139,6 +139,14 @@ internal HttpMessage CreateListByClusterRequest(string subscriptionId, string re uri.AppendPath(clusterName, true); uri.AppendPath("/databases", false); uri.AppendQuery("api-version", _apiVersion, true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (skiptoken != null) + { + uri.AppendQuery("$skiptoken", skiptoken, true); + } request.Uri = uri; request.Headers.Add("Accept", "application/json"); _userAgent.Apply(message); @@ -146,19 +154,21 @@ internal HttpMessage CreateListByClusterRequest(string subscriptionId, string re } /// Returns the list of databases of the given Kusto cluster. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// The name of the resource group containing the Kusto cluster. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The name of the Kusto cluster. + /// limit the number of results. + /// Skiptoken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that specifies a starting point to use for subsequent calls. /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> ListByClusterAsync(string subscriptionId, string resourceGroupName, string clusterName, CancellationToken cancellationToken = default) + public async Task> ListByClusterAsync(string subscriptionId, string resourceGroupName, string clusterName, int? top = null, string skiptoken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(clusterName, nameof(clusterName)); - using var message = CreateListByClusterRequest(subscriptionId, resourceGroupName, clusterName); + using var message = CreateListByClusterRequest(subscriptionId, resourceGroupName, clusterName, top, skiptoken); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -175,19 +185,21 @@ public async Task> ListByClusterAsync(string subscr } /// Returns the list of databases of the given Kusto cluster. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// The name of the resource group containing the Kusto cluster. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The name of the Kusto cluster. + /// limit the number of results. + /// Skiptoken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that specifies a starting point to use for subsequent calls. /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response ListByCluster(string subscriptionId, string resourceGroupName, string clusterName, CancellationToken cancellationToken = default) + public Response ListByCluster(string subscriptionId, string resourceGroupName, string clusterName, int? top = null, string skiptoken = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(clusterName, nameof(clusterName)); - using var message = CreateListByClusterRequest(subscriptionId, resourceGroupName, clusterName); + using var message = CreateListByClusterRequest(subscriptionId, resourceGroupName, clusterName, top, skiptoken); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -226,8 +238,8 @@ internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGrou } /// Returns a database. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// The name of the resource group containing the Kusto cluster. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The name of the Kusto cluster. /// The name of the database in the Kusto cluster. /// The cancellation token to use. @@ -259,8 +271,8 @@ public async Task> GetAsync(string subscriptionId, s } /// Returns a database. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// The name of the resource group containing the Kusto cluster. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The name of the Kusto cluster. /// The name of the database in the Kusto cluster. /// The cancellation token to use. @@ -322,8 +334,8 @@ internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string r } /// Creates or updates a database. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// The name of the resource group containing the Kusto cluster. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The name of the Kusto cluster. /// The name of the database in the Kusto cluster. /// The database parameters supplied to the CreateOrUpdate operation. @@ -353,8 +365,8 @@ public async Task CreateOrUpdateAsync(string subscriptionId, string re } /// Creates or updates a database. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// The name of the resource group containing the Kusto cluster. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The name of the Kusto cluster. /// The name of the database in the Kusto cluster. /// The database parameters supplied to the CreateOrUpdate operation. @@ -414,8 +426,8 @@ internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceG } /// Updates a database. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// The name of the resource group containing the Kusto cluster. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The name of the Kusto cluster. /// The name of the database in the Kusto cluster. /// The database parameters supplied to the Update operation. @@ -445,8 +457,8 @@ public async Task UpdateAsync(string subscriptionId, string resourceGr } /// Updates a database. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// The name of the resource group containing the Kusto cluster. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The name of the Kusto cluster. /// The name of the database in the Kusto cluster. /// The database parameters supplied to the Update operation. @@ -498,8 +510,8 @@ internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceG } /// Deletes the database with the given name. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// The name of the resource group containing the Kusto cluster. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The name of the Kusto cluster. /// The name of the database in the Kusto cluster. /// The cancellation token to use. @@ -526,8 +538,8 @@ public async Task DeleteAsync(string subscriptionId, string resourceGr } /// Deletes the database with the given name. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// The name of the resource group containing the Kusto cluster. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The name of the Kusto cluster. /// The name of the database in the Kusto cluster. /// The cancellation token to use. @@ -577,8 +589,8 @@ internal HttpMessage CreateListPrincipalsRequest(string subscriptionId, string r } /// Returns a list of database principals of the given Kusto cluster and database. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// The name of the resource group containing the Kusto cluster. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The name of the Kusto cluster. /// The name of the database in the Kusto cluster. /// The cancellation token to use. @@ -608,8 +620,8 @@ public async Task> ListPrincipalsAsync(str } /// Returns a list of database principals of the given Kusto cluster and database. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// The name of the resource group containing the Kusto cluster. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The name of the Kusto cluster. /// The name of the database in the Kusto cluster. /// The cancellation token to use. @@ -666,8 +678,8 @@ internal HttpMessage CreateAddPrincipalsRequest(string subscriptionId, string re } /// Add Database principals permissions. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// The name of the resource group containing the Kusto cluster. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The name of the Kusto cluster. /// The name of the database in the Kusto cluster. /// List of database principals to add. @@ -699,8 +711,8 @@ public async Task> AddPrincipalsAsync(stri } /// Add Database principals permissions. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// The name of the resource group containing the Kusto cluster. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The name of the Kusto cluster. /// The name of the database in the Kusto cluster. /// List of database principals to add. @@ -759,8 +771,8 @@ internal HttpMessage CreateRemovePrincipalsRequest(string subscriptionId, string } /// Remove Database principals permissions. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// The name of the resource group containing the Kusto cluster. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The name of the Kusto cluster. /// The name of the database in the Kusto cluster. /// List of database principals to remove. @@ -792,8 +804,8 @@ public async Task> RemovePrincipalsAsync(s } /// Remove Database principals permissions. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// The name of the resource group containing the Kusto cluster. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The name of the Kusto cluster. /// The name of the database in the Kusto cluster. /// List of database principals to remove. @@ -823,5 +835,85 @@ public Response RemovePrincipals(string subscriptio throw new RequestFailedException(message.Response); } } + + internal HttpMessage CreateListByClusterNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string clusterName, int? top, string skiptoken) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Returns the list of databases of the given Kusto cluster. + /// The URL to the next page of results. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the Kusto cluster. + /// limit the number of results. + /// Skiptoken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that specifies a starting point to use for subsequent calls. + /// The cancellation token to use. + /// , , or is null. + /// , or is an empty string, and was expected to be non-empty. + public async Task> ListByClusterNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string clusterName, int? top = null, string skiptoken = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(clusterName, nameof(clusterName)); + + using var message = CreateListByClusterNextPageRequest(nextLink, subscriptionId, resourceGroupName, clusterName, top, skiptoken); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + DatabaseListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = DatabaseListResult.DeserializeDatabaseListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Returns the list of databases of the given Kusto cluster. + /// The URL to the next page of results. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the Kusto cluster. + /// limit the number of results. + /// Skiptoken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that specifies a starting point to use for subsequent calls. + /// The cancellation token to use. + /// , , or is null. + /// , or is an empty string, and was expected to be non-empty. + public Response ListByClusterNextPage(string nextLink, string subscriptionId, string resourceGroupName, string clusterName, int? top = null, string skiptoken = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(clusterName, nameof(clusterName)); + + using var message = CreateListByClusterNextPageRequest(nextLink, subscriptionId, resourceGroupName, clusterName, top, skiptoken); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + DatabaseListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = DatabaseListResult.DeserializeDatabaseListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } } } diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/ManagedPrivateEndpointsRestOperations.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/ManagedPrivateEndpointsRestOperations.cs index 234bcab73ede..e07069fa5df7 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/ManagedPrivateEndpointsRestOperations.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/ManagedPrivateEndpointsRestOperations.cs @@ -33,7 +33,7 @@ public ManagedPrivateEndpointsRestOperations(HttpPipeline pipeline, string appli { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-12-29"; + _apiVersion = apiVersion ?? "2023-05-02"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } @@ -63,8 +63,8 @@ internal HttpMessage CreateCheckNameAvailabilityRequest(string subscriptionId, s } /// Checks that the managed private endpoints resource name is valid and is not already in use. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// The name of the resource group containing the Kusto cluster. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The name of the Kusto cluster. /// The name of the resource. /// The cancellation token to use. @@ -94,8 +94,8 @@ public async Task> CheckNameAvailabilityAs } /// Checks that the managed private endpoints resource name is valid and is not already in use. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// The name of the resource group containing the Kusto cluster. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The name of the Kusto cluster. /// The name of the resource. /// The cancellation token to use. @@ -146,8 +146,8 @@ internal HttpMessage CreateListRequest(string subscriptionId, string resourceGro } /// Returns the list of managed private endpoints. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// The name of the resource group containing the Kusto cluster. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The name of the Kusto cluster. /// The cancellation token to use. /// , or is null. @@ -175,8 +175,8 @@ public async Task> ListAsync(string s } /// Returns the list of managed private endpoints. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// The name of the resource group containing the Kusto cluster. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The name of the Kusto cluster. /// The cancellation token to use. /// , or is null. @@ -226,8 +226,8 @@ internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGrou } /// Gets a managed private endpoint. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// The name of the resource group containing the Kusto cluster. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The name of the Kusto cluster. /// The name of the managed private endpoint. /// The cancellation token to use. @@ -259,8 +259,8 @@ public async Task> GetAsync(string sub } /// Gets a managed private endpoint. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// The name of the resource group containing the Kusto cluster. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The name of the Kusto cluster. /// The name of the managed private endpoint. /// The cancellation token to use. @@ -318,8 +318,8 @@ internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string r } /// Creates a managed private endpoint. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// The name of the resource group containing the Kusto cluster. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The name of the Kusto cluster. /// The name of the managed private endpoint. /// The managed private endpoint parameters. @@ -348,8 +348,8 @@ public async Task CreateOrUpdateAsync(string subscriptionId, string re } /// Creates a managed private endpoint. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// The name of the resource group containing the Kusto cluster. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The name of the Kusto cluster. /// The name of the managed private endpoint. /// The managed private endpoint parameters. @@ -404,8 +404,8 @@ internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceG } /// Updates a managed private endpoint. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// The name of the resource group containing the Kusto cluster. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The name of the Kusto cluster. /// The name of the managed private endpoint. /// The managed private endpoint parameters. @@ -433,8 +433,8 @@ public async Task UpdateAsync(string subscriptionId, string resourceGr } /// Updates a managed private endpoint. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// The name of the resource group containing the Kusto cluster. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The name of the Kusto cluster. /// The name of the managed private endpoint. /// The managed private endpoint parameters. @@ -484,8 +484,8 @@ internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceG } /// Deletes a managed private endpoint. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// The name of the resource group containing the Kusto cluster. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The name of the Kusto cluster. /// The name of the managed private endpoint. /// The cancellation token to use. @@ -512,8 +512,8 @@ public async Task DeleteAsync(string subscriptionId, string resourceGr } /// Deletes a managed private endpoint. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// The name of the resource group containing the Kusto cluster. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The name of the Kusto cluster. /// The name of the managed private endpoint. /// The cancellation token to use. diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs index 6eaa68b6d563..c0a76ccc531b 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs @@ -33,7 +33,7 @@ public PrivateEndpointConnectionsRestOperations(HttpPipeline pipeline, string ap { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-12-29"; + _apiVersion = apiVersion ?? "2023-05-02"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } @@ -59,8 +59,8 @@ internal HttpMessage CreateListRequest(string subscriptionId, string resourceGro } /// Returns the list of private endpoint connections. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// The name of the resource group containing the Kusto cluster. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The name of the Kusto cluster. /// The cancellation token to use. /// , or is null. @@ -88,8 +88,8 @@ public async Task> ListAsync( } /// Returns the list of private endpoint connections. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// The name of the resource group containing the Kusto cluster. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The name of the Kusto cluster. /// The cancellation token to use. /// , or is null. @@ -139,8 +139,8 @@ internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGrou } /// Gets a private endpoint connection. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// The name of the resource group containing the Kusto cluster. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The name of the Kusto cluster. /// The name of the private endpoint connection. /// The cancellation token to use. @@ -172,8 +172,8 @@ public async Task> GetAsync(string } /// Gets a private endpoint connection. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// The name of the resource group containing the Kusto cluster. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The name of the Kusto cluster. /// The name of the private endpoint connection. /// The cancellation token to use. @@ -231,8 +231,8 @@ internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string r } /// Approve or reject a private endpoint connection with a given name. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// The name of the resource group containing the Kusto cluster. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The name of the Kusto cluster. /// The name of the private endpoint connection. /// The KustoPrivateEndpointConnection to use. @@ -260,8 +260,8 @@ public async Task CreateOrUpdateAsync(string subscriptionId, string re } /// Approve or reject a private endpoint connection with a given name. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// The name of the resource group containing the Kusto cluster. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The name of the Kusto cluster. /// The name of the private endpoint connection. /// The KustoPrivateEndpointConnection to use. @@ -311,8 +311,8 @@ internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceG } /// Deletes a private endpoint connection with a given name. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// The name of the resource group containing the Kusto cluster. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The name of the Kusto cluster. /// The name of the private endpoint connection. /// The cancellation token to use. @@ -339,8 +339,8 @@ public async Task DeleteAsync(string subscriptionId, string resourceGr } /// Deletes a private endpoint connection with a given name. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// The name of the resource group containing the Kusto cluster. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The name of the Kusto cluster. /// The name of the private endpoint connection. /// The cancellation token to use. diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs index 5a75cefc1af5..834fc187e6c4 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs @@ -33,7 +33,7 @@ public PrivateLinkResourcesRestOperations(HttpPipeline pipeline, string applicat { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-12-29"; + _apiVersion = apiVersion ?? "2023-05-02"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } @@ -59,8 +59,8 @@ internal HttpMessage CreateListRequest(string subscriptionId, string resourceGro } /// Returns the list of private link resources. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// The name of the resource group containing the Kusto cluster. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The name of the Kusto cluster. /// The cancellation token to use. /// , or is null. @@ -88,8 +88,8 @@ public async Task> ListAsync(string } /// Returns the list of private link resources. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// The name of the resource group containing the Kusto cluster. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The name of the Kusto cluster. /// The cancellation token to use. /// , or is null. @@ -139,8 +139,8 @@ internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGrou } /// Gets a private link resource. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// The name of the resource group containing the Kusto cluster. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The name of the Kusto cluster. /// The name of the private link resource. /// The cancellation token to use. @@ -172,8 +172,8 @@ public async Task> GetAsync(string subscr } /// Gets a private link resource. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// The name of the resource group containing the Kusto cluster. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The name of the Kusto cluster. /// The name of the private link resource. /// The cancellation token to use. diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/ScriptsRestOperations.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/ScriptsRestOperations.cs index 4386c05f6af1..6af08b88bbe8 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/ScriptsRestOperations.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/ScriptsRestOperations.cs @@ -33,7 +33,7 @@ public ScriptsRestOperations(HttpPipeline pipeline, string applicationId, Uri en { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-12-29"; + _apiVersion = apiVersion ?? "2023-05-02"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } @@ -61,8 +61,8 @@ internal HttpMessage CreateListByDatabaseRequest(string subscriptionId, string r } /// Returns the list of database scripts for given database. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// The name of the resource group containing the Kusto cluster. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The name of the Kusto cluster. /// The name of the database in the Kusto cluster. /// The cancellation token to use. @@ -92,8 +92,8 @@ public async Task> ListByDatabaseAsync(string subscri } /// Returns the list of database scripts for given database. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// The name of the resource group containing the Kusto cluster. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The name of the Kusto cluster. /// The name of the database in the Kusto cluster. /// The cancellation token to use. @@ -147,8 +147,8 @@ internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGrou } /// Gets a Kusto cluster database script. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// The name of the resource group containing the Kusto cluster. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The name of the Kusto cluster. /// The name of the database in the Kusto cluster. /// The name of the Kusto database script. @@ -182,8 +182,8 @@ public async Task> GetAsync(string subscriptionId, str } /// Gets a Kusto cluster database script. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// The name of the resource group containing the Kusto cluster. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The name of the Kusto cluster. /// The name of the database in the Kusto cluster. /// The name of the Kusto database script. @@ -245,8 +245,8 @@ internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string r } /// Creates a Kusto database script. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// The name of the resource group containing the Kusto cluster. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The name of the Kusto cluster. /// The name of the database in the Kusto cluster. /// The name of the Kusto database script. @@ -277,8 +277,8 @@ public async Task CreateOrUpdateAsync(string subscriptionId, string re } /// Creates a Kusto database script. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// The name of the resource group containing the Kusto cluster. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The name of the Kusto cluster. /// The name of the database in the Kusto cluster. /// The name of the Kusto database script. @@ -337,8 +337,8 @@ internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceG } /// Updates a database script. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// The name of the resource group containing the Kusto cluster. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The name of the Kusto cluster. /// The name of the database in the Kusto cluster. /// The name of the Kusto database script. @@ -368,8 +368,8 @@ public async Task UpdateAsync(string subscriptionId, string resourceGr } /// Updates a database script. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// The name of the resource group containing the Kusto cluster. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The name of the Kusto cluster. /// The name of the database in the Kusto cluster. /// The name of the Kusto database script. @@ -422,9 +422,9 @@ internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceG return message; } - /// Deletes a Kusto principalAssignment. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// The name of the resource group containing the Kusto cluster. + /// Deletes a Kusto database script. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The name of the Kusto cluster. /// The name of the database in the Kusto cluster. /// The name of the Kusto database script. @@ -452,9 +452,9 @@ public async Task DeleteAsync(string subscriptionId, string resourceGr } } - /// Deletes a Kusto principalAssignment. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// The name of the resource group containing the Kusto cluster. + /// Deletes a Kusto database script. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The name of the Kusto cluster. /// The name of the database in the Kusto cluster. /// The name of the Kusto database script. @@ -510,8 +510,8 @@ internal HttpMessage CreateCheckNameAvailabilityRequest(string subscriptionId, s } /// Checks that the script name is valid and is not already in use. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// The name of the resource group containing the Kusto cluster. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The name of the Kusto cluster. /// The name of the database in the Kusto cluster. /// The name of the script. @@ -543,8 +543,8 @@ public async Task> CheckNameAvailabilityAs } /// Checks that the script name is valid and is not already in use. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// The name of the resource group containing the Kusto cluster. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The name of the Kusto cluster. /// The name of the database in the Kusto cluster. /// The name of the script. diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/SkusRestOperations.cs b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/SkusRestOperations.cs index e7017e7674e5..42ded0236e56 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/SkusRestOperations.cs +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/Generated/RestOperations/SkusRestOperations.cs @@ -33,7 +33,7 @@ public SkusRestOperations(HttpPipeline pipeline, string applicationId, Uri endpo { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-12-29"; + _apiVersion = apiVersion ?? "2023-05-02"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } @@ -57,8 +57,8 @@ internal HttpMessage CreateListRequest(string subscriptionId, AzureLocation loca } /// Lists eligible region SKUs for Kusto resource provider by Azure region. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// Azure location (region) name. + /// The ID of the target subscription. + /// The name of Azure region. /// The cancellation token to use. /// is null. /// is an empty string, and was expected to be non-empty. @@ -83,8 +83,8 @@ public async Task> ListAsync(string subscripti } /// Lists eligible region SKUs for Kusto resource provider by Azure region. - /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - /// Azure location (region) name. + /// The ID of the target subscription. + /// The name of Azure region. /// The cancellation token to use. /// is null. /// is an empty string, and was expected to be non-empty. diff --git a/sdk/kusto/Azure.ResourceManager.Kusto/src/autorest.md b/sdk/kusto/Azure.ResourceManager.Kusto/src/autorest.md index e5254294710b..b380dfe9aa84 100644 --- a/sdk/kusto/Azure.ResourceManager.Kusto/src/autorest.md +++ b/sdk/kusto/Azure.ResourceManager.Kusto/src/autorest.md @@ -8,7 +8,7 @@ azure-arm: true csharp: true library-name: Kusto namespace: Azure.ResourceManager.Kusto -require: https://github.com/Azure/azure-rest-api-specs/blob/78ec1b99699a4bf44869bd13f1b0ed7d92a99c27/specification/azure-kusto/resource-manager/readme.md +require: /mnt/vss/_work/1/s/azure-rest-api-specs/specification/azure-kusto/resource-manager/readme.md output-folder: $(this-folder)/Generated clear-output-folder: true skip-csproj: true