本文整理汇总了Java中com.microsoft.rest.ServiceResponse.body方法的典型用法代码示例。如果您正苦于以下问题:Java ServiceResponse.body方法的具体用法?Java ServiceResponse.body怎么用?Java ServiceResponse.body使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.microsoft.rest.ServiceResponse
的用法示例。
在下文中一共展示了ServiceResponse.body方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: listByResourceGroup
import com.microsoft.rest.ServiceResponse; //导入方法依赖的package包/类
/**
* Gets all the hubs in a resource group.
*
* @param resourceGroupName The name of the resource group.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @throws CloudException thrown if the request is rejected by server
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
* @return the PagedList<HubInner> object if successful.
*/
public PagedList<HubInner> listByResourceGroup(final String resourceGroupName) {
ServiceResponse<Page<HubInner>> response = listByResourceGroupSinglePageAsync(resourceGroupName).toBlocking().single();
return new PagedList<HubInner>(response.body()) {
@Override
public Page<HubInner> nextPage(String nextPageLink) {
return listByResourceGroupNextSinglePageAsync(nextPageLink).toBlocking().single().body();
}
};
}
示例2: listForResourceGroup
import com.microsoft.rest.ServiceResponse; //导入方法依赖的package包/类
/**
* Gets all permissions the caller has for a resource group.
*
* @param resourceGroupName The name of the resource group to get the permissions for. The name is case insensitive.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @throws CloudException thrown if the request is rejected by server
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
* @return the PagedList<PermissionInner> object if successful.
*/
public PagedList<PermissionInner> listForResourceGroup(final String resourceGroupName) {
ServiceResponse<Page<PermissionInner>> response = listForResourceGroupSinglePageAsync(resourceGroupName).toBlocking().single();
return new PagedList<PermissionInner>(response.body()) {
@Override
public Page<PermissionInner> nextPage(String nextPageLink) {
return listForResourceGroupNextSinglePageAsync(nextPageLink).toBlocking().single().body();
}
};
}
示例3: list
import com.microsoft.rest.ServiceResponse; //导入方法依赖的package包/类
/**
* Lists the available namespaces within a resourceGroup.
*
* @param resourceGroupName The name of the resource group. If resourceGroupName value is null the method lists all the namespaces within subscription
* @throws IllegalArgumentException thrown if parameters fail the validation
* @throws CloudException thrown if the request is rejected by server
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
* @return the PagedList<NamespaceResourceInner> object if successful.
*/
public PagedList<NamespaceResourceInner> list(final String resourceGroupName) {
ServiceResponse<Page<NamespaceResourceInner>> response = listSinglePageAsync(resourceGroupName).toBlocking().single();
return new PagedList<NamespaceResourceInner>(response.body()) {
@Override
public Page<NamespaceResourceInner> nextPage(String nextPageLink) {
return listNextSinglePageAsync(nextPageLink).toBlocking().single().body();
}
};
}
示例4: list
import com.microsoft.rest.ServiceResponse; //导入方法依赖的package包/类
/**
* Get a list of container groups in the specified subscription.
* Get a list of container groups in the specified subscription. This operation returns properties of each container group including containers, image registry credentials, restart policy, IP address type, OS type, state, and volumes.
*
* @throws IllegalArgumentException thrown if parameters fail the validation
* @throws CloudException thrown if the request is rejected by server
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
* @return the PagedList<ContainerGroupInner> object if successful.
*/
public PagedList<ContainerGroupInner> list() {
ServiceResponse<Page<ContainerGroupInner>> response = listSinglePageAsync().toBlocking().single();
return new PagedList<ContainerGroupInner>(response.body()) {
@Override
public Page<ContainerGroupInner> nextPage(String nextPageLink) {
return listNextSinglePageAsync(nextPageLink).toBlocking().single().body();
}
};
}
示例5: getSinglePages
import com.microsoft.rest.ServiceResponse; //导入方法依赖的package包/类
/**
* A paging operation that finishes on the first call without a nextlink.
*
* @throws IllegalArgumentException thrown if parameters fail the validation
* @throws CloudException thrown if the request is rejected by server
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
* @return the PagedList<Product> object if successful.
*/
public PagedList<Product> getSinglePages() {
ServiceResponse<Page<Product>> response = getSinglePagesSinglePageAsync().toBlocking().single();
return new PagedList<Product>(response.body()) {
@Override
public Page<Product> nextPage(String nextPageLink) {
return getSinglePagesNextSinglePageAsync(nextPageLink).toBlocking().single().body();
}
};
}
示例6: listBySubscription
import com.microsoft.rest.ServiceResponse; //导入方法依赖的package包/类
/**
* Gets all job collections under specified subscription.
*
* @throws IllegalArgumentException thrown if parameters fail the validation
* @throws CloudException thrown if the request is rejected by server
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
* @return the PagedList<JobCollectionDefinitionInner> object if successful.
*/
public PagedList<JobCollectionDefinitionInner> listBySubscription() {
ServiceResponse<Page<JobCollectionDefinitionInner>> response = listBySubscriptionSinglePageAsync().toBlocking().single();
return new PagedList<JobCollectionDefinitionInner>(response.body()) {
@Override
public Page<JobCollectionDefinitionInner> nextPage(String nextPageLink) {
return listBySubscriptionNextSinglePageAsync(nextPageLink).toBlocking().single().body();
}
};
}
示例7: list
import com.microsoft.rest.ServiceResponse; //导入方法依赖的package包/类
/**
* Gets information about the Clusters associated with the subscription.
*
* @throws IllegalArgumentException thrown if parameters fail the validation
* @throws CloudException thrown if the request is rejected by server
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
* @return the PagedList<ClusterInner> object if successful.
*/
public PagedList<ClusterInner> list() {
ServiceResponse<Page<ClusterInner>> response = listSinglePageAsync().toBlocking().single();
return new PagedList<ClusterInner>(response.body()) {
@Override
public Page<ClusterInner> nextPage(String nextPageLink) {
return listNextSinglePageAsync(nextPageLink).toBlocking().single().body();
}
};
}
示例8: list
import com.microsoft.rest.ServiceResponse; //导入方法依赖的package包/类
/**
* Gets all the preview features that are available through AFEC for the subscription.
*
* @throws IllegalArgumentException thrown if parameters fail the validation
* @throws CloudException thrown if the request is rejected by server
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
* @return the PagedList<FeatureResultInner> object if successful.
*/
public PagedList<FeatureResultInner> list() {
ServiceResponse<Page<FeatureResultInner>> response = listSinglePageAsync().toBlocking().single();
return new PagedList<FeatureResultInner>(response.body()) {
@Override
public Page<FeatureResultInner> nextPage(String nextPageLink) {
return listNextSinglePageAsync(nextPageLink).toBlocking().single().body();
}
};
}
示例9: list
import com.microsoft.rest.ServiceResponse; //导入方法依赖的package包/类
/**
* Gets provider operations metadata for all resource providers.
*
* @param apiVersion The API version to use for this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @throws CloudException thrown if the request is rejected by server
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
* @return the PagedList<ProviderOperationsMetadataInner> object if successful.
*/
public PagedList<ProviderOperationsMetadataInner> list(final String apiVersion) {
ServiceResponse<Page<ProviderOperationsMetadataInner>> response = listSinglePageAsync(apiVersion).toBlocking().single();
return new PagedList<ProviderOperationsMetadataInner>(response.body()) {
@Override
public Page<ProviderOperationsMetadataInner> nextPage(String nextPageLink) {
return listNextSinglePageAsync(nextPageLink).toBlocking().single().body();
}
};
}
示例10: list
import com.microsoft.rest.ServiceResponse; //导入方法依赖的package包/类
/**
* The List operation gets information about the vaults associated with the subscription.
*
* @param top Maximum number of results to return.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @throws CloudException thrown if the request is rejected by server
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
* @return the PagedList<Resource> object if successful.
*/
public PagedList<Resource> list(final Integer top) {
ServiceResponse<Page<Resource>> response = listSinglePageAsync(top).toBlocking().single();
return new PagedList<Resource>(response.body()) {
@Override
public Page<Resource> nextPage(String nextPageLink) {
return listNextSinglePageAsync(nextPageLink).toBlocking().single().body();
}
};
}
示例11: listWebWorkerMetrics
import com.microsoft.rest.ServiceResponse; //导入方法依赖的package包/类
/**
* Get metrics for a worker pool of a AppServiceEnvironment (App Service Environment).
* Get metrics for a worker pool of a AppServiceEnvironment (App Service Environment).
*
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the App Service Environment.
* @param workerPoolName Name of worker pool
* @throws IllegalArgumentException thrown if parameters fail the validation
* @throws CloudException thrown if the request is rejected by server
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
* @return the PagedList<ResourceMetricInner> object if successful.
*/
public PagedList<ResourceMetricInner> listWebWorkerMetrics(final String resourceGroupName, final String name, final String workerPoolName) {
ServiceResponse<Page<ResourceMetricInner>> response = listWebWorkerMetricsSinglePageAsync(resourceGroupName, name, workerPoolName).toBlocking().single();
return new PagedList<ResourceMetricInner>(response.body()) {
@Override
public Page<ResourceMetricInner> nextPage(String nextPageLink) {
return listWebWorkerMetricsNextSinglePageAsync(nextPageLink).toBlocking().single().body();
}
};
}
示例12: listByNamespace
import com.microsoft.rest.ServiceResponse; //导入方法依赖的package包/类
/**
* Gets all the topics in a namespace.
*
* @param resourceGroupName Name of the Resource group within the Azure subscription.
* @param namespaceName The namespace name
* @throws IllegalArgumentException thrown if parameters fail the validation
* @throws CloudException thrown if the request is rejected by server
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
* @return the PagedList<TopicInner> object if successful.
*/
public PagedList<TopicInner> listByNamespace(final String resourceGroupName, final String namespaceName) {
ServiceResponse<Page<TopicInner>> response = listByNamespaceSinglePageAsync(resourceGroupName, namespaceName).toBlocking().single();
return new PagedList<TopicInner>(response.body()) {
@Override
public Page<TopicInner> nextPage(String nextPageLink) {
return listByNamespaceNextSinglePageAsync(nextPageLink).toBlocking().single().body();
}
};
}
示例13: listBySubscription
import com.microsoft.rest.ServiceResponse; //导入方法依赖的package包/类
/**
* Gets a list of workflows by subscription.
*
* @param top The number of items to be included in the result.
* @param filter The filter to apply on the operation.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @throws CloudException thrown if the request is rejected by server
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
* @return the PagedList<WorkflowInner> object if successful.
*/
public PagedList<WorkflowInner> listBySubscription(final Integer top, final String filter) {
ServiceResponse<Page<WorkflowInner>> response = listBySubscriptionSinglePageAsync(top, filter).toBlocking().single();
return new PagedList<WorkflowInner>(response.body()) {
@Override
public Page<WorkflowInner> nextPage(String nextPageLink) {
return listBySubscriptionNextSinglePageAsync(nextPageLink).toBlocking().single().body();
}
};
}
示例14: listTables
import com.microsoft.rest.ServiceResponse; //导入方法依赖的package包/类
/**
* Retrieves the list of tables from the Data Lake Analytics catalog.
*
* @param accountName The Azure Data Lake Analytics account upon which to execute catalog operations.
* @param databaseName The name of the database containing the tables.
* @param schemaName The name of the schema containing the tables.
* @param filter OData filter. Optional.
* @param top The number of items to return. Optional.
* @param skip The number of items to skip over before returning elements. Optional.
* @param select OData Select statement. Limits the properties on each entry to just those requested, e.g. Categories?$select=CategoryName,Description. Optional.
* @param orderby OrderBy clause. One or more comma-separated expressions with an optional "asc" (the default) or "desc" depending on the order you'd like the values sorted, e.g. Categories?$orderby=CategoryName desc. Optional.
* @param count The Boolean value of true or false to request a count of the matching resources included with the resources in the response, e.g. Categories?$count=true. Optional.
* @param basic The basic switch indicates what level of information to return when listing tables. When basic is true, only database_name, schema_name, table_name and version are returned for each table, otherwise all table metadata is returned. By default, it is false. Optional.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @throws CloudException thrown if the request is rejected by server
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
* @return the PagedList<USqlTable> object if successful.
*/
public PagedList<USqlTable> listTables(final String accountName, final String databaseName, final String schemaName, final String filter, final Integer top, final Integer skip, final String select, final String orderby, final Boolean count, final Boolean basic) {
ServiceResponse<Page<USqlTable>> response = listTablesSinglePageAsync(accountName, databaseName, schemaName, filter, top, skip, select, orderby, count, basic).toBlocking().single();
return new PagedList<USqlTable>(response.body()) {
@Override
public Page<USqlTable> nextPage(String nextPageLink) {
return listTablesNextSinglePageAsync(nextPageLink).toBlocking().single().body();
}
};
}
示例15: list
import com.microsoft.rest.ServiceResponse; //导入方法依赖的package包/类
/**
* Lists the jobs, if any, associated with the specified Data Lake Analytics account. The response includes a link to the next page of results, if any.
*
* @param accountName The Azure Data Lake Analytics account to execute job operations on.
* @param filter OData filter. Optional.
* @param top The number of items to return. Optional.
* @param skip The number of items to skip over before returning elements. Optional.
* @param select OData Select statement. Limits the properties on each entry to just those requested, e.g. Categories?$select=CategoryName,Description. Optional.
* @param orderby OrderBy clause. One or more comma-separated expressions with an optional "asc" (the default) or "desc" depending on the order you'd like the values sorted, e.g. Categories?$orderby=CategoryName desc. Optional.
* @param count The Boolean value of true or false to request a count of the matching resources included with the resources in the response, e.g. Categories?$count=true. Optional.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @throws CloudException thrown if the request is rejected by server
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
* @return the PagedList<JobInformationBasic> object if successful.
*/
public PagedList<JobInformationBasic> list(final String accountName, final String filter, final Integer top, final Integer skip, final String select, final String orderby, final Boolean count) {
ServiceResponse<Page<JobInformationBasic>> response = listSinglePageAsync(accountName, filter, top, skip, select, orderby, count).toBlocking().single();
return new PagedList<JobInformationBasic>(response.body()) {
@Override
public Page<JobInformationBasic> nextPage(String nextPageLink) {
return listNextSinglePageAsync(nextPageLink).toBlocking().single().body();
}
};
}