当前位置: 首页>>代码示例>>Java>>正文


Java ServiceCallback类代码示例

本文整理汇总了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);
}
 
开发者ID:Azure,项目名称:azure-libraries-for-java,代码行数:5,代码来源:CdnProfileImpl.java

示例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);
}
 
开发者ID:Azure,项目名称:azure-libraries-for-java,代码行数:5,代码来源:CdnProfileImpl.java

示例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);
}
 
开发者ID:Azure,项目名称:azure-libraries-for-java,代码行数:5,代码来源:StorageAccountImpl.java

示例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);
}
 
开发者ID:Azure,项目名称:azure-libraries-for-java,代码行数:5,代码来源:DisksImpl.java

示例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);
}
 
开发者ID:Azure,项目名称:azure-libraries-for-java,代码行数:5,代码来源:RoleDefinitionsImpl.java

示例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);
}
 
开发者ID:Azure,项目名称:azure-libraries-for-java,代码行数:5,代码来源:CdnProfileImpl.java

示例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);
 
开发者ID:Azure,项目名称:azure-libraries-for-java,代码行数:17,代码来源:Snapshots.java

示例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);
}
 
开发者ID:Azure,项目名称:autorest.java,代码行数:11,代码来源:ArraysImpl.java

示例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);
 
开发者ID:Azure,项目名称:autorest.java,代码行数:10,代码来源:Implicits.java

示例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);
}
 
开发者ID:Azure,项目名称:azure-libraries-for-java,代码行数:13,代码来源:DatabaseAccountsInner.java

示例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);
}
 
开发者ID:Azure,项目名称:azure-libraries-for-java,代码行数:13,代码来源:UserAssignedIdentitiesInner.java

示例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);
}
 
开发者ID:Azure,项目名称:azure-libraries-for-java,代码行数:16,代码来源:WebAppsInner.java

示例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);
}
 
开发者ID:Azure,项目名称:autorest.java,代码行数:11,代码来源:DictionarysImpl.java

示例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);
}
 
开发者ID:Azure,项目名称:azure-libraries-for-java,代码行数:17,代码来源:PublicIPAddressesInner.java

示例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);
}
 
开发者ID:Azure,项目名称:autorest.java,代码行数:12,代码来源:NumbersImpl.java


注:本文中的com.microsoft.rest.ServiceCallback类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。