本文整理汇总了Java中com.microsoft.rest.ServiceCallback类的典型用法代码示例。如果您正苦于以下问题:Java ServiceCallback类的具体用法?Java ServiceCallback怎么用?Java ServiceCallback使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ServiceCallback类属于com.microsoft.rest包,在下文中一共展示了ServiceCallback类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: loadEndpointContentAsync
import com.microsoft.rest.ServiceCallback; //导入依赖的package包/类
@Override
public ServiceFuture<Void> loadEndpointContentAsync(String endpointName, Set<String> contentPaths, ServiceCallback<Void> callback) {
return ServiceFuture.fromBody(this.loadEndpointContentAsync(endpointName, contentPaths), callback);
}
示例2: checkEndpointNameAvailabilityAsync
import com.microsoft.rest.ServiceCallback; //导入依赖的package包/类
@Override
public ServiceFuture<CheckNameAvailabilityResult> checkEndpointNameAvailabilityAsync(String name, ServiceCallback<CheckNameAvailabilityResult> callback) {
return ServiceFuture.fromBody(this.checkEndpointNameAvailabilityAsync(name), callback);
}
示例3: regenerateKeyAsync
import com.microsoft.rest.ServiceCallback; //导入依赖的package包/类
@Override
public ServiceFuture<List<StorageAccountKey>> regenerateKeyAsync(String keyName, ServiceCallback<List<StorageAccountKey>> callback) {
return ServiceFuture.fromBody(this.regenerateKeyAsync(keyName), callback);
}
示例4: grantAccessAsync
import com.microsoft.rest.ServiceCallback; //导入依赖的package包/类
@Override
public ServiceFuture<String> grantAccessAsync(String resourceGroupName, String diskName, AccessLevel accessLevel, int accessDuration, ServiceCallback<String> callback) {
return ServiceFuture.fromBody(this.grantAccessAsync(resourceGroupName, diskName, accessLevel, accessDuration), callback);
}
示例5: getByScopeAndRoleNameAsync
import com.microsoft.rest.ServiceCallback; //导入依赖的package包/类
@Override
public ServiceFuture<RoleDefinition> getByScopeAndRoleNameAsync(String scope, String roleName, ServiceCallback<RoleDefinition> callback) {
return ServiceFuture.fromBody(getByScopeAndRoleNameAsync(scope, roleName), callback);
}
示例6: stopEndpointAsync
import com.microsoft.rest.ServiceCallback; //导入依赖的package包/类
@Override
public ServiceFuture<Void> stopEndpointAsync(String endpointName, ServiceCallback<Void> callback) {
return ServiceFuture.fromBody(this.stopEndpointAsync(endpointName), callback);
}
示例7: grantAccessAsync
import com.microsoft.rest.ServiceCallback; //导入依赖的package包/类
/**
* Grants access to the snapshot asynchronously.
*
* @param resourceGroupName the resource group name
* @param snapshotName the snapshot name
* @param accessLevel access level
* @param accessDuration access duration
* @param callback the callback to call on success or failure, on success it will pass read-only SAS URI to the snapshot in callback
* @return a handle to cancel the request
*/
@Beta(Beta.SinceVersion.V1_2_0)
ServiceFuture<String> grantAccessAsync(String resourceGroupName,
String snapshotName,
AccessLevel accessLevel,
int accessDuration,
ServiceCallback<String> callback);
示例8: getDurationValidAsync
import com.microsoft.rest.ServiceCallback; //导入依赖的package包/类
/**
* Get duration array value ['P123DT22H14M12.011S', 'P5DT1H0M0S'].
*
* @param serviceCallback the async ServiceCallback to handle successful and failed responses.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the {@link ServiceFuture} object
*/
public ServiceFuture<List<Period>> getDurationValidAsync(final ServiceCallback<List<Period>> serviceCallback) {
return ServiceFuture.fromResponse(getDurationValidWithServiceResponseAsync(), serviceCallback);
}
示例9: putOptionalQueryAsync
import com.microsoft.rest.ServiceCallback; //导入依赖的package包/类
/**
* Test implicitly optional query parameter.
*
* @param queryParameter the String value
* @param serviceCallback the async ServiceCallback to handle successful and failed responses.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the {@link ServiceFuture} object
*/
ServiceFuture<Void> putOptionalQueryAsync(String queryParameter, final ServiceCallback<Void> serviceCallback);
示例10: getByResourceGroupAsync
import com.microsoft.rest.ServiceCallback; //导入依赖的package包/类
/**
* Retrieves the properties of an existing Azure DocumentDB database account.
*
* @param resourceGroupName Name of an Azure resource group.
* @param accountName DocumentDB database account name.
* @param serviceCallback the async ServiceCallback to handle successful and failed responses.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the {@link ServiceFuture} object
*/
public ServiceFuture<DatabaseAccountInner> getByResourceGroupAsync(String resourceGroupName, String accountName, final ServiceCallback<DatabaseAccountInner> serviceCallback) {
return ServiceFuture.fromResponse(getByResourceGroupWithServiceResponseAsync(resourceGroupName, accountName), serviceCallback);
}
示例11: deleteAsync
import com.microsoft.rest.ServiceCallback; //导入依赖的package包/类
/**
* Deletes the identity.
*
* @param resourceGroupName The name of the Resource Group to which the identity belongs.
* @param resourceName The name of the identity resource.
* @param serviceCallback the async ServiceCallback to handle successful and failed responses.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the {@link ServiceFuture} object
*/
public ServiceFuture<IdentityInner> deleteAsync(String resourceGroupName, String resourceName, final ServiceCallback<IdentityInner> serviceCallback) {
return ServiceFuture.fromResponse(deleteWithServiceResponseAsync(resourceGroupName, resourceName), serviceCallback);
}
示例12: getTriggeredWebJobSlotAsync
import com.microsoft.rest.ServiceCallback; //导入依赖的package包/类
/**
* Gets a triggered web job by its ID for an app, or a deployment slot.
* Gets a triggered web job by its ID for an app, or a deployment slot.
*
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Site name.
* @param webJobName Name of Web Job.
* @param slot Name of the deployment slot. If a slot is not specified, the API deletes a deployment for the production slot.
* @param serviceCallback the async ServiceCallback to handle successful and failed responses.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the {@link ServiceFuture} object
*/
public ServiceFuture<TriggeredWebJobInner> getTriggeredWebJobSlotAsync(String resourceGroupName, String name, String webJobName, String slot, final ServiceCallback<TriggeredWebJobInner> serviceCallback) {
return ServiceFuture.fromResponse(getTriggeredWebJobSlotWithServiceResponseAsync(resourceGroupName, name, webJobName, slot), serviceCallback);
}
示例13: getArrayNullAsync
import com.microsoft.rest.ServiceCallback; //导入依赖的package包/类
/**
* Get a null array.
*
* @param serviceCallback the async ServiceCallback to handle successful and failed responses.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the {@link ServiceFuture} object
*/
public ServiceFuture<Map<String, List<String>>> getArrayNullAsync(final ServiceCallback<Map<String, List<String>>> serviceCallback) {
return ServiceFuture.fromResponse(getArrayNullWithServiceResponseAsync(), serviceCallback);
}
示例14: getVirtualMachineScaleSetPublicIPAddressAsync
import com.microsoft.rest.ServiceCallback; //导入依赖的package包/类
/**
* Get the specified public IP address in a virtual machine scale set.
*
* @param resourceGroupName The name of the resource group.
* @param virtualMachineScaleSetName The name of the virtual machine scale set.
* @param virtualmachineIndex The virtual machine index.
* @param networkInterfaceName The name of the network interface.
* @param ipConfigurationName The name of the IP configuration.
* @param publicIpAddressName The name of the public IP Address.
* @param serviceCallback the async ServiceCallback to handle successful and failed responses.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the {@link ServiceFuture} object
*/
public ServiceFuture<PublicIPAddressInner> getVirtualMachineScaleSetPublicIPAddressAsync(String resourceGroupName, String virtualMachineScaleSetName, String virtualmachineIndex, String networkInterfaceName, String ipConfigurationName, String publicIpAddressName, final ServiceCallback<PublicIPAddressInner> serviceCallback) {
return ServiceFuture.fromResponse(getVirtualMachineScaleSetPublicIPAddressWithServiceResponseAsync(resourceGroupName, virtualMachineScaleSetName, virtualmachineIndex, networkInterfaceName, ipConfigurationName, publicIpAddressName), serviceCallback);
}
示例15: putBigFloatAsync
import com.microsoft.rest.ServiceCallback; //导入依赖的package包/类
/**
* Put big float value 3.402823e+20.
*
* @param numberBody the double value
* @param serviceCallback the async ServiceCallback to handle successful and failed responses.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the {@link ServiceFuture} object
*/
public ServiceFuture<Void> putBigFloatAsync(double numberBody, final ServiceCallback<Void> serviceCallback) {
return ServiceFuture.fromResponse(putBigFloatWithServiceResponseAsync(numberBody), serviceCallback);
}