public ChangeDirectoryResponse ChangeDirectory(ChangeDirectoryRequest request) { throw new NotImplementedException(); }
/// <summary> /// Change directory of `ReservationOrder`. /// </summary> /// <remarks> /// Change directory (tenant) of `ReservationOrder` and all `Reservation` under /// it to specified tenant id /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='reservationOrderId'> /// Order Id of the reservation /// </param> /// <param name='body'> /// Information needed to change directory of reservation order /// </param> public static ChangeDirectoryResponse ChangeDirectory(this IReservationOrderOperations operations, string reservationOrderId, ChangeDirectoryRequest body) { return(operations.ChangeDirectoryAsync(reservationOrderId, body).GetAwaiter().GetResult()); }
/// <summary> /// Change directory of `ReservationOrder`. /// </summary> /// <remarks> /// Change directory (tenant) of `ReservationOrder` and all `Reservation` under /// it to specified tenant id /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='reservationOrderId'> /// Order Id of the reservation /// </param> /// <param name='body'> /// Information needed to change directory of reservation order /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <ChangeDirectoryResponse> ChangeDirectoryAsync(this IReservationOrderOperations operations, string reservationOrderId, ChangeDirectoryRequest body, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ChangeDirectoryWithHttpMessagesAsync(reservationOrderId, body, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }