/// <summary> /// Regenerate integration runtime authentication key /// </summary> /// <remarks> /// Regenerate the authentication key for an integration runtime /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. The name is case insensitive. /// </param> /// <param name='workspaceName'> /// The name of the workspace /// </param> /// <param name='integrationRuntimeName'> /// Integration runtime name /// </param> /// <param name='regenerateKeyParameters'> /// The parameters for regenerating integration runtime authentication key. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IntegrationRuntimeAuthKeys> RegenerateAsync(this IIntegrationRuntimeAuthKeysOperations operations, string resourceGroupName, string workspaceName, string integrationRuntimeName, IntegrationRuntimeRegenerateKeyParameters regenerateKeyParameters, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.RegenerateWithHttpMessagesAsync(resourceGroupName, workspaceName, integrationRuntimeName, regenerateKeyParameters, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// List integration runtime authentication keys /// </summary> /// <remarks> /// List authentication keys in an integration runtime /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. The name is case insensitive. /// </param> /// <param name='workspaceName'> /// The name of the workspace /// </param> /// <param name='integrationRuntimeName'> /// Integration runtime name /// </param> public static IntegrationRuntimeAuthKeys List(this IIntegrationRuntimeAuthKeysOperations operations, string resourceGroupName, string workspaceName, string integrationRuntimeName) { return(operations.ListAsync(resourceGroupName, workspaceName, integrationRuntimeName).GetAwaiter().GetResult()); }
/// <summary> /// Regenerate integration runtime authentication key /// </summary> /// <remarks> /// Regenerate the authentication key for an integration runtime /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. The name is case insensitive. /// </param> /// <param name='workspaceName'> /// The name of the workspace /// </param> /// <param name='integrationRuntimeName'> /// Integration runtime name /// </param> /// <param name='regenerateKeyParameters'> /// The parameters for regenerating integration runtime authentication key. /// </param> public static IntegrationRuntimeAuthKeys Regenerate(this IIntegrationRuntimeAuthKeysOperations operations, string resourceGroupName, string workspaceName, string integrationRuntimeName, IntegrationRuntimeRegenerateKeyParameters regenerateKeyParameters) { return(operations.RegenerateAsync(resourceGroupName, workspaceName, integrationRuntimeName, regenerateKeyParameters).GetAwaiter().GetResult()); }