/// <summary> /// Refresh the set password link and return a latest one. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group to which the Datadog resource belongs. /// </param> /// <param name='monitorName'> /// Monitor resource name /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <DatadogSetPasswordLink> GetAsync(this IRefreshSetPasswordOperations operations, string resourceGroupName, string monitorName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, monitorName, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Refresh the set password link and return a latest one. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group to which the Datadog resource belongs. /// </param> /// <param name='monitorName'> /// Monitor resource name /// </param> public static DatadogSetPasswordLink Get(this IRefreshSetPasswordOperations operations, string resourceGroupName, string monitorName) { return(operations.GetAsync(resourceGroupName, monitorName).GetAwaiter().GetResult()); }