Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License. See License.txt in the project root for license information.
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. */
package com.microsoft.azure.arm.resources.collection; import com.microsoft.azure.PagedList; import com.microsoft.azure.arm.resources.models.HasResourceGroup; import com.microsoft.azure.arm.resources.models.Resource; import com.microsoft.azure.management.apigeneration.LangDefinition;
Provides access to listing Azure resources of a specific type in a specific parent resource.

(Note this interface is not intended to be implemented by user code.)

Type parameters:
  • <T> – the type of the resources listed
  • <ParentT> – the type of the parent resource
  • <ManagerT> – the client manager type representing the service
/** * Provides access to listing Azure resources of a specific type in a specific parent resource. * <p> * (Note this interface is not intended to be implemented by user code.) * * @param <T> the type of the resources listed * @param <ParentT> the type of the parent resource * @param <ManagerT> the client manager type representing the service */
@LangDefinition(ContainerName = "CollectionActions", CreateAsyncMethods = true, MethodConversionType = LangDefinition.MethodConversion.OnlyMethod) public interface SupportsListingByParent<T, ParentT extends Resource & HasResourceGroup, ManagerT> {
Lists resources of the specified type in the specified resource group.
Params:
  • resourceGroupName – the name of the resource group to list the resources from
  • parentName – the name of parent resource.
Returns:the list of resources
/** * Lists resources of the specified type in the specified resource group. * * @param resourceGroupName the name of the resource group to list the resources from * @param parentName the name of parent resource. * @return the list of resources */
PagedList<T> listByParent(String resourceGroupName, String parentName);
Gets the information about a resource from Azure based on the resource id.
Params:
  • parentResource – the instance of parent resource.
Returns:an immutable representation of the resource
/** * Gets the information about a resource from Azure based on the resource id. * * @param parentResource the instance of parent resource. * @return an immutable representation of the resource */
PagedList<T> listByParent(ParentT parentResource); }