/// <summary> /// Fetch information regarding Elastic cloud deployment corresponding to the /// Elastic monitor resource. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group to which the Elastic resource belongs. /// </param> /// <param name='monitorName'> /// Monitor resource name /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <DeploymentInfoResponse> ListAsync(this IDeploymentInfoOperations operations, string resourceGroupName, string monitorName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListWithHttpMessagesAsync(resourceGroupName, monitorName, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Fetch information regarding Elastic cloud deployment corresponding to the /// Elastic monitor resource. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group to which the Elastic resource belongs. /// </param> /// <param name='monitorName'> /// Monitor resource name /// </param> public static DeploymentInfoResponse List(this IDeploymentInfoOperations operations, string resourceGroupName, string monitorName) { return(operations.ListAsync(resourceGroupName, monitorName).GetAwaiter().GetResult()); }