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


Java ServiceResponse.body方法代码示例

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

示例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&lt;PermissionInner&gt; 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();
        }
    };
}
 
开发者ID:Azure,项目名称:azure-libraries-for-java,代码行数:19,代码来源:PermissionsInner.java

示例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&lt;NamespaceResourceInner&gt; 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();
        }
    };
}
 
开发者ID:Azure,项目名称:azure-libraries-for-java,代码行数:19,代码来源:NamespacesInner.java

示例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&lt;ContainerGroupInner&gt; 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();
        }
    };
}
 
开发者ID:Azure,项目名称:azure-libraries-for-java,代码行数:19,代码来源:ContainerGroupsInner.java

示例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&lt;Product&gt; 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();
        }
    };
}
 
开发者ID:Azure,项目名称:autorest.java,代码行数:18,代码来源:PagingsImpl.java

示例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&lt;JobCollectionDefinitionInner&gt; 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();
        }
    };
}
 
开发者ID:Azure,项目名称:azure-libraries-for-java,代码行数:18,代码来源:JobCollectionsInner.java

示例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&lt;ClusterInner&gt; 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();
        }
    };
}
 
开发者ID:Azure,项目名称:azure-libraries-for-java,代码行数:18,代码来源:ClustersInner.java

示例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&lt;FeatureResultInner&gt; 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();
        }
    };
}
 
开发者ID:Azure,项目名称:azure-libraries-for-java,代码行数:18,代码来源:FeaturesInner.java

示例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&lt;ProviderOperationsMetadataInner&gt; 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();
        }
    };
}
 
开发者ID:Azure,项目名称:azure-libraries-for-java,代码行数:19,代码来源:ProviderOperationsMetadatasInner.java

示例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&lt;Resource&gt; 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();
        }
    };
}
 
开发者ID:Azure,项目名称:azure-libraries-for-java,代码行数:19,代码来源:VaultsInner.java

示例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&lt;ResourceMetricInner&gt; 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();
        }
    };
}
 
开发者ID:Azure,项目名称:azure-libraries-for-java,代码行数:22,代码来源:AppServiceEnvironmentsInner.java

示例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&lt;TopicInner&gt; 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();
        }
    };
}
 
开发者ID:Azure,项目名称:azure-libraries-for-java,代码行数:20,代码来源:TopicsInner.java

示例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&lt;WorkflowInner&gt; 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();
        }
    };
}
 
开发者ID:Azure,项目名称:azure-libraries-for-java,代码行数:20,代码来源:WorkflowsInner.java

示例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&lt;USqlTable&gt; 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();
        }
    };
}
 
开发者ID:Azure,项目名称:azure-libraries-for-java,代码行数:28,代码来源:CatalogsImpl.java

示例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&lt;JobInformationBasic&gt; 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();
        }
    };
}
 
开发者ID:Azure,项目名称:azure-libraries-for-java,代码行数:25,代码来源:JobsImpl.java


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