public Observable<ServiceResponse<JobResponseInner>> exportDevicesWithServiceResponseAsync(String resourceGroupName, String resourceName, ExportDevicesRequest exportDevicesParameters) {
        if (this.client.subscriptionId() == null) {
            throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null.");
        }
        if (resourceGroupName == null) {
            throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.");
        }
        if (resourceName == null) {
            throw new IllegalArgumentException("Parameter resourceName is required and cannot be null.");
        }
        if (this.client.apiVersion() == null) {
            throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null.");
        }
        if (exportDevicesParameters == null) {
            throw new IllegalArgumentException("Parameter exportDevicesParameters is required and cannot be null.");
        }
        Validator.validate(exportDevicesParameters);
        return service.exportDevices(this.client.subscriptionId(), resourceGroupName, resourceName, this.client.apiVersion(), exportDevicesParameters, this.client.acceptLanguage(), this.client.userAgent())
            .flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<JobResponseInner>>>() {
                @Override
                public Observable<ServiceResponse<JobResponseInner>> call(Response<ResponseBody> response) {
                    try {
                        ServiceResponse<JobResponseInner> clientResponse = exportDevicesDelegate(response);
                        return Observable.just(clientResponse);
                    } catch (Throwable t) {
                        return Observable.error(t);
                    }
                }
            });
    }
public Observable < ServiceResponse < JobResponseInner > > exportDevicesWithServiceResponseAsync ( String resourceGroupName , String resourceName , ExportDevicesRequest exportDevicesParameters ) { if ( this . client . subscriptionId ( ) == null ) { throw new IllegalArgumentException ( "Parameter this.client.subscriptionId() is required and cannot be null." ) ; } if ( resourceGroupName == null ) { throw new IllegalArgumentException ( "Parameter resourceGroupName is required and cannot be null." ) ; } if ( resourceName == null ) { throw new IllegalArgumentException ( "Parameter resourceName is required and cannot be null." ) ; } if ( this . client . apiVersion ( ) == null ) { throw new IllegalArgumentException ( "Parameter this.client.apiVersion() is required and cannot be null." ) ; } if ( exportDevicesParameters == null ) { throw new IllegalArgumentException ( "Parameter exportDevicesParameters is required and cannot be null." ) ; } Validator . validate ( exportDevicesParameters ) ; return service . exportDevices ( this . client . subscriptionId ( ) , resourceGroupName , resourceName , this . client . apiVersion ( ) , exportDevicesParameters , this . client . acceptLanguage ( ) , this . client . userAgent ( ) ) . flatMap ( new Func1 < Response < ResponseBody > , Observable < ServiceResponse < JobResponseInner > > > ( ) { @ Override public Observable < ServiceResponse < JobResponseInner > > call ( Response < ResponseBody > response ) { try { ServiceResponse < JobResponseInner > clientResponse = exportDevicesDelegate ( response ) ; return Observable . just ( clientResponse ) ; } catch ( Throwable t ) { return Observable . error ( t ) ; } } } ) ; }
Exports all the device identities in the IoT hub identity registry to an Azure Storage blob container. For more information, see: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry#import-and-export-device-identities.
Exports all the device identities in the IoT hub identity registry to an Azure Storage blob container. For more information, see: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry#import-and-export-device-identities.

@param resourceGroupName The name of the resource group that contains the IoT hub.
@param resourceName The name of the IoT hub.
@param exportDevicesParameters The parameters that specify the export devices operation.
@throws IllegalArgumentException thrown if parameters fail the validation
@return the observable to the JobResponseInner object