public Observable<Void> disableSchedulingAsync(String poolId, String nodeId, DisableComputeNodeSchedulingOption nodeDisableSchedulingOption, ComputeNodeDisableSchedulingOptions computeNodeDisableSchedulingOptions) {
        return disableSchedulingWithServiceResponseAsync(poolId, nodeId, nodeDisableSchedulingOption, computeNodeDisableSchedulingOptions).map(new Func1<ServiceResponseWithHeaders<Void, ComputeNodeDisableSchedulingHeaders>, Void>() {
            @Override
            public Void call(ServiceResponseWithHeaders<Void, ComputeNodeDisableSchedulingHeaders> response) {
                return response.body();
            }
        });
    }
public Observable < Void > disableSchedulingAsync ( String poolId , String nodeId , DisableComputeNodeSchedulingOption nodeDisableSchedulingOption , ComputeNodeDisableSchedulingOptions computeNodeDisableSchedulingOptions ) { return disableSchedulingWithServiceResponseAsync ( poolId , nodeId , nodeDisableSchedulingOption , computeNodeDisableSchedulingOptions ) . map ( new Func1 < ServiceResponseWithHeaders < Void , ComputeNodeDisableSchedulingHeaders > , Void > ( ) { @ Override public Void call ( ServiceResponseWithHeaders < Void , ComputeNodeDisableSchedulingHeaders > response ) { return response . body ( ) ; } } ) ; }
Disables task scheduling on the specified compute node.
You can disable task scheduling on a node only if its current scheduling state is enabled.

@param poolId The ID of the pool that contains the compute node.
@param nodeId The ID of the compute node on which you want to disable task scheduling.
@param nodeDisableSchedulingOption What to do with currently running tasks when disabling task scheduling on the compute node. The default value is requeue. Possible values include: 'requeue', 'terminate', 'taskCompletion'
@param computeNodeDisableSchedulingOptions Additional parameters for the operation
@throws IllegalArgumentException thrown if parameters fail the validation
@return the {@link ServiceResponseWithHeaders} object if successful.