SupportsListingByParent<T,ParentT,ManagerT> Interface

Type Parameters

T

the type of the resources listed

ParentT

the type of the parent resource

ManagerT

the client manager type representing the service

public interface SupportsListingByParent<T,ParentT extends Resource &HasResourceGroup,ManagerT>

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.)

Method Summary

Modifier and Type Method and Description
PagedList<T> listByParent(ParentT parentResource)

Gets the information about a resource from Azure based on the resource id.

PagedList<T> listByParent(String resourceGroupName, String parentName)

Lists resources of the specified type in the specified resource group.

Method Details

listByParent

public PagedList listByParent(ParentT parentResource)

Gets the information about a resource from Azure based on the resource id.

Parameters:

parentResource - the instance of parent resource.

Returns:

an immutable representation of the resource

listByParent

public PagedList listByParent(String resourceGroupName, String parentName)

Lists resources of the specified type in the specified resource group.

Parameters:

resourceGroupName - the name of the resource group to list the resources from
parentName - the name of parent resource.

Returns:

the list of resources

Applies to