Java Code Examples for com.microsoft.rest.ServiceFuture#fromBody()

The following examples show how to use com.microsoft.rest.ServiceFuture#fromBody() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: RegistryTaskImpl.java    From azure-libraries-for-java with MIT License 5 votes vote down vote up
@Override
public ServiceFuture<RegistryTask> createAsync(ServiceCallback<RegistryTask> callback) {
    return ServiceFuture.fromBody(createAsync().map(new Func1<Indexable, RegistryTask>() {
        @Override
        public RegistryTask call(Indexable indexable) {
            return (RegistryTask) indexable;
        }
    }), callback);
}
 
Example 2
Source File: FeaturesImpl.java    From azure-libraries-for-java with MIT License 4 votes vote down vote up
@Override
public ServiceFuture<Feature> registerAsync(String resourceProviderName, String featureName, ServiceCallback<Feature> callback) {
    return ServiceFuture.fromBody(this.registerAsync(resourceProviderName, featureName), callback);
}
 
Example 3
Source File: VirtualMachineImpl.java    From azure-libraries-for-java with MIT License 4 votes vote down vote up
@Override
public ServiceFuture<Void> convertToManagedAsync(ServiceCallback<Void> callback) {
    return ServiceFuture.fromBody(this.convertToManagedAsync(), callback);
}
 
Example 4
Source File: CdnProfileImpl.java    From azure-libraries-for-java with MIT License 4 votes vote down vote up
@Override
public ServiceFuture<Void> startEndpointAsync(String endpointName, ServiceCallback<Void> callback) {
    return ServiceFuture.fromBody(this.startEndpointAsync(endpointName), callback);
}
 
Example 5
Source File: VirtualMachinesImpl.java    From azure-libraries-for-java with MIT License 4 votes vote down vote up
@Override
public ServiceFuture<Void> migrateToManagedAsync(String groupName, String name, ServiceCallback<Void> callback) {
    return ServiceFuture.fromBody(migrateToManagedAsync(groupName, name), callback);
}
 
Example 6
Source File: CreatableWrappersImpl.java    From azure-libraries-for-java with MIT License 4 votes vote down vote up
@Override
public ServiceFuture<Void> deleteByIdAsync(String id, ServiceCallback<Void> callback) {
    return ServiceFuture.fromBody(deleteByIdAsync(id), callback);
}
 
Example 7
Source File: TrafficManagerProfilesImpl.java    From azure-libraries-for-java with MIT License 4 votes vote down vote up
@Override
public ServiceFuture<CheckProfileDnsNameAvailabilityResult> checkDnsNameAvailabilityAsync(String dnsNameLabel, ServiceCallback<CheckProfileDnsNameAvailabilityResult> callback) {
    return ServiceFuture.fromBody(this.checkDnsNameAvailabilityAsync(dnsNameLabel), callback);
}
 
Example 8
Source File: ServicePrincipalsImpl.java    From azure-libraries-for-java with MIT License 4 votes vote down vote up
@Override
public ServiceFuture<ServicePrincipal> getByIdAsync(String id, ServiceCallback<ServicePrincipal> callback) {
    return ServiceFuture.fromBody(getByIdAsync(id), callback);
}
 
Example 9
Source File: FlowLogSettingsImpl.java    From azure-libraries-for-java with MIT License 4 votes vote down vote up
@Override
public ServiceFuture<FlowLogSettings> applyAsync(ServiceCallback<FlowLogSettings> callback) {
    return ServiceFuture.fromBody(applyAsync(), callback);
}
 
Example 10
Source File: GenericResourcesImpl.java    From azure-libraries-for-java with MIT License 4 votes vote down vote up
@Override
public ServiceFuture<Void> moveResourcesAsync(String sourceResourceGroupName, ResourceGroup targetResourceGroup, List<String> resources, ServiceCallback<Void> callback) {
    return ServiceFuture.fromBody(this.moveResourcesAsync(sourceResourceGroupName, targetResourceGroup, resources), callback);
}
 
Example 11
Source File: VirtualMachinesImpl.java    From azure-libraries-for-java with MIT License 4 votes vote down vote up
@Override
public ServiceFuture<Void> redeployAsync(String groupName, String name, ServiceCallback<Void> callback) {
    return ServiceFuture.fromBody(redeployAsync(groupName, name), callback);
}
 
Example 12
Source File: SupportsGettingByIdImpl.java    From azure-libraries-for-java with MIT License 4 votes vote down vote up
@Override
public ServiceFuture<T> getByIdAsync(String id, ServiceCallback<T> callback) {
    return ServiceFuture.fromBody(getByIdAsync(id), callback);
}
 
Example 13
Source File: CdnEndpointImpl.java    From azure-libraries-for-java with MIT License 4 votes vote down vote up
@Override
public ServiceFuture<Void> stopAsync(ServiceCallback<Void> callback) {
    return ServiceFuture.fromBody(this.stopAsync(), callback);
}
 
Example 14
Source File: VirtualMachineImpl.java    From azure-libraries-for-java with MIT License 4 votes vote down vote up
@Override
public ServiceFuture<Void> restartAsync(ServiceCallback<Void> callback) {
    return ServiceFuture.fromBody(this.restartAsync(), callback);
}
 
Example 15
Source File: ExpressRouteCrossConnectionsImpl.java    From azure-libraries-for-java with MIT License 4 votes vote down vote up
@Override
public ServiceFuture<ExpressRouteCrossConnection> getByIdAsync(String id, ServiceCallback<ExpressRouteCrossConnection> callback) {
    return ServiceFuture.fromBody(getByIdAsync(id), callback);
}
 
Example 16
Source File: ExpressRouteCrossConnectionsImpl.java    From azure-libraries-for-java with MIT License 4 votes vote down vote up
@Override
public ServiceFuture<ExpressRouteCrossConnection> getByResourceGroupAsync(String resourceGroupName, String name, ServiceCallback<ExpressRouteCrossConnection> callback) {
    return ServiceFuture.fromBody(getByResourceGroupAsync(resourceGroupName, name), callback);
}
 
Example 17
Source File: ManagementLocksImpl.java    From azure-libraries-for-java with MIT License 4 votes vote down vote up
@Override
public ServiceFuture<ManagementLock> getByIdAsync(String id, ServiceCallback<ManagementLock> callback) {
    return ServiceFuture.fromBody(getByIdAsync(id), callback);
}
 
Example 18
Source File: CdnEndpointImpl.java    From azure-libraries-for-java with MIT License 4 votes vote down vote up
@Override
public ServiceFuture<Void> loadContentAsync(Set<String> contentPaths, ServiceCallback<Void> callback) {
    return ServiceFuture.fromBody(this.loadContentAsync(contentPaths), callback);
}
 
Example 19
Source File: StorageAccountImpl.java    From azure-libraries-for-java with MIT License 4 votes vote down vote up
@Override
public ServiceFuture<List<StorageAccountKey>> regenerateKeyAsync(String keyName, ServiceCallback<List<StorageAccountKey>> callback) {
    return ServiceFuture.fromBody(this.regenerateKeyAsync(keyName), callback);
}
 
Example 20
Source File: SnapshotImpl.java    From azure-libraries-for-java with MIT License 4 votes vote down vote up
@Override
public ServiceFuture<Void> revokeAccessAsync(ServiceCallback<Void> callback) {
    return ServiceFuture.fromBody(this.revokeAccessAsync(), callback);
}