コード例 #1
0
 /// <summary>
 /// Checks that the attached database configuration resource name is valid and
 /// is not already in use.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group containing the Kusto cluster.
 /// </param>
 /// <param name='clusterName'>
 /// The name of the Kusto cluster.
 /// </param>
 /// <param name='resourceName'>
 /// The name of the resource.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <CheckNameResult> CheckNameAvailabilityAsync(this IAttachedDatabaseConfigurationsOperations operations, string resourceGroupName, string clusterName, AttachedDatabaseConfigurationsCheckNameRequest resourceName, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.CheckNameAvailabilityWithHttpMessagesAsync(resourceGroupName, clusterName, resourceName, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
コード例 #2
0
 /// <summary>
 /// Creates or updates an attached database configuration.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group containing the Kusto cluster.
 /// </param>
 /// <param name='clusterName'>
 /// The name of the Kusto cluster.
 /// </param>
 /// <param name='attachedDatabaseConfigurationName'>
 /// The name of the attached database configuration.
 /// </param>
 /// <param name='parameters'>
 /// The database parameters supplied to the CreateOrUpdate operation.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <AttachedDatabaseConfiguration> CreateOrUpdateAsync(this IAttachedDatabaseConfigurationsOperations operations, string resourceGroupName, string clusterName, string attachedDatabaseConfigurationName, AttachedDatabaseConfiguration parameters, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, clusterName, attachedDatabaseConfigurationName, parameters, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
コード例 #3
0
 /// <summary>
 /// Returns the list of attached database configurations of the given Kusto
 /// cluster.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group containing the Kusto cluster.
 /// </param>
 /// <param name='clusterName'>
 /// The name of the Kusto cluster.
 /// </param>
 public static IEnumerable <AttachedDatabaseConfiguration> ListByCluster(this IAttachedDatabaseConfigurationsOperations operations, string resourceGroupName, string clusterName)
 {
     return(operations.ListByClusterAsync(resourceGroupName, clusterName).GetAwaiter().GetResult());
 }
コード例 #4
0
 /// <summary>
 /// Checks that the attached database configuration resource name is valid and
 /// is not already in use.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group containing the Kusto cluster.
 /// </param>
 /// <param name='clusterName'>
 /// The name of the Kusto cluster.
 /// </param>
 /// <param name='resourceName'>
 /// The name of the resource.
 /// </param>
 public static CheckNameResult CheckNameAvailability(this IAttachedDatabaseConfigurationsOperations operations, string resourceGroupName, string clusterName, AttachedDatabaseConfigurationsCheckNameRequest resourceName)
 {
     return(operations.CheckNameAvailabilityAsync(resourceGroupName, clusterName, resourceName).GetAwaiter().GetResult());
 }
コード例 #5
0
 /// <summary>
 /// Deletes the attached database configuration with the given name.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group containing the Kusto cluster.
 /// </param>
 /// <param name='clusterName'>
 /// The name of the Kusto cluster.
 /// </param>
 /// <param name='attachedDatabaseConfigurationName'>
 /// The name of the attached database configuration.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task BeginDeleteAsync(this IAttachedDatabaseConfigurationsOperations operations, string resourceGroupName, string clusterName, string attachedDatabaseConfigurationName, CancellationToken cancellationToken = default(CancellationToken))
 {
     (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, clusterName, attachedDatabaseConfigurationName, null, cancellationToken).ConfigureAwait(false)).Dispose();
 }
コード例 #6
0
 /// <summary>
 /// Deletes the attached database configuration with the given name.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group containing the Kusto cluster.
 /// </param>
 /// <param name='clusterName'>
 /// The name of the Kusto cluster.
 /// </param>
 /// <param name='attachedDatabaseConfigurationName'>
 /// The name of the attached database configuration.
 /// </param>
 public static void BeginDelete(this IAttachedDatabaseConfigurationsOperations operations, string resourceGroupName, string clusterName, string attachedDatabaseConfigurationName)
 {
     operations.BeginDeleteAsync(resourceGroupName, clusterName, attachedDatabaseConfigurationName).GetAwaiter().GetResult();
 }
コード例 #7
0
 /// <summary>
 /// Creates or updates an attached database configuration.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group containing the Kusto cluster.
 /// </param>
 /// <param name='clusterName'>
 /// The name of the Kusto cluster.
 /// </param>
 /// <param name='attachedDatabaseConfigurationName'>
 /// The name of the attached database configuration.
 /// </param>
 /// <param name='parameters'>
 /// The database parameters supplied to the CreateOrUpdate operation.
 /// </param>
 public static AttachedDatabaseConfiguration BeginCreateOrUpdate(this IAttachedDatabaseConfigurationsOperations operations, string resourceGroupName, string clusterName, string attachedDatabaseConfigurationName, AttachedDatabaseConfiguration parameters)
 {
     return(operations.BeginCreateOrUpdateAsync(resourceGroupName, clusterName, attachedDatabaseConfigurationName, parameters).GetAwaiter().GetResult());
 }
コード例 #8
0
 /// <summary>
 /// Returns an attached database configuration.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group containing the Kusto cluster.
 /// </param>
 /// <param name='clusterName'>
 /// The name of the Kusto cluster.
 /// </param>
 /// <param name='attachedDatabaseConfigurationName'>
 /// The name of the attached database configuration.
 /// </param>
 public static AttachedDatabaseConfiguration Get(this IAttachedDatabaseConfigurationsOperations operations, string resourceGroupName, string clusterName, string attachedDatabaseConfigurationName)
 {
     return(operations.GetAsync(resourceGroupName, clusterName, attachedDatabaseConfigurationName).GetAwaiter().GetResult());
 }
コード例 #9
0
 /// <summary>
 /// Returns the list of attached database configurations of the given Kusto
 /// cluster.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group containing the Kusto cluster.
 /// </param>
 /// <param name='clusterName'>
 /// The name of the Kusto cluster.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IEnumerable <AttachedDatabaseConfiguration> > ListByClusterAsync(this IAttachedDatabaseConfigurationsOperations operations, string resourceGroupName, string clusterName, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListByClusterWithHttpMessagesAsync(resourceGroupName, clusterName, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }