Ejemplo n.º 1
0
 /// <summary>
 /// Gets the script execution detail for the given script execution ID.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='clusterName'>
 /// The name of the cluster.
 /// </param>
 /// <param name='scriptExecutionId'>
 /// The script execution Id
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <RuntimeScriptActionDetail> GetExecutionDetailAsync(this IScriptActionsOperations operations, string resourceGroupName, string clusterName, string scriptExecutionId, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetExecutionDetailWithHttpMessagesAsync(resourceGroupName, clusterName, scriptExecutionId, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Lists all the persisted script actions for the specified cluster.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='clusterName'>
 /// The name of the cluster.
 /// </param>
 public static IPage <RuntimeScriptActionDetail> ListByCluster(this IScriptActionsOperations operations, string resourceGroupName, string clusterName)
 {
     return(operations.ListByClusterAsync(resourceGroupName, clusterName).GetAwaiter().GetResult());
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Deletes a specified persisted script action of the cluster.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='clusterName'>
 /// The name of the cluster.
 /// </param>
 /// <param name='scriptName'>
 /// The name of the script.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task DeleteAsync(this IScriptActionsOperations operations, string resourceGroupName, string clusterName, string scriptName, CancellationToken cancellationToken = default(CancellationToken))
 {
     (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, clusterName, scriptName, null, cancellationToken).ConfigureAwait(false)).Dispose();
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Deletes a specified persisted script action of the cluster.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='clusterName'>
 /// The name of the cluster.
 /// </param>
 /// <param name='scriptName'>
 /// The name of the script.
 /// </param>
 public static void Delete(this IScriptActionsOperations operations, string resourceGroupName, string clusterName, string scriptName)
 {
     operations.DeleteAsync(resourceGroupName, clusterName, scriptName).GetAwaiter().GetResult();
 }
Ejemplo n.º 5
0
 /// <summary>
 /// Lists all the persisted script actions for the specified cluster.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='nextPageLink'>
 /// The NextLink from the previous successful call to List operation.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IPage <RuntimeScriptActionDetail> > ListByClusterNextAsync(this IScriptActionsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListByClusterNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Ejemplo n.º 6
0
 /// <summary>
 /// Lists all the persisted script actions for the specified cluster.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='nextPageLink'>
 /// The NextLink from the previous successful call to List operation.
 /// </param>
 public static IPage <RuntimeScriptActionDetail> ListByClusterNext(this IScriptActionsOperations operations, string nextPageLink)
 {
     return(operations.ListByClusterNextAsync(nextPageLink).GetAwaiter().GetResult());
 }
Ejemplo n.º 7
0
 /// <summary>
 /// Gets the async operation status of execution operation.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='clusterName'>
 /// The name of the cluster.
 /// </param>
 /// <param name='operationId'>
 /// The long running operation id.
 /// </param>
 public static AsyncOperationResult GetExecutionAsyncOperationStatus(this IScriptActionsOperations operations, string resourceGroupName, string clusterName, string operationId)
 {
     return(operations.GetExecutionAsyncOperationStatusAsync(resourceGroupName, clusterName, operationId).GetAwaiter().GetResult());
 }
Ejemplo n.º 8
0
 /// <summary>
 /// Gets the script execution detail for the given script execution ID.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='clusterName'>
 /// The name of the cluster.
 /// </param>
 /// <param name='scriptExecutionId'>
 /// The script execution Id
 /// </param>
 public static RuntimeScriptActionDetail GetExecutionDetail(this IScriptActionsOperations operations, string resourceGroupName, string clusterName, string scriptExecutionId)
 {
     return(operations.GetExecutionDetailAsync(resourceGroupName, clusterName, scriptExecutionId).GetAwaiter().GetResult());
 }