/// <summary> /// Get a Machines /// </summary> /// <remarks> /// Get a Machines /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='id'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <Machine> GetAsync(this IMachinesOperations operations, string id, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetWithHttpMessagesAsync(id, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Retrieves information about the model view or the instance view of a hybrid /// machine. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> /// <param name='name'> /// The name of the hybrid machine. /// </param> /// <param name='expand'> /// The expand expression to apply on the operation. Possible values include: /// 'instanceView' /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <Machine> GetAsync(this IMachinesOperations operations, string resourceGroupName, string name, InstanceViewTypes?expand = default(InstanceViewTypes?), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, name, expand, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }