SupportsGettingByParent<T,ParentT,ManagerT> Interface

Type Parameters

T

the type of the resource collection

ParentT

the parent resource type

ManagerT

the client manager type representing the service

public interface SupportsGettingByParent<T,ParentT,ManagerT>

Provides access to getting a specific Azure resource based on its resource group and parent.

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

Method Summary

Modifier and Type Method and Description
abstract T getByParent(ParentT parentResource, String name)

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

abstract T getByParent(String resourceGroup, String parentName, String name)

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

abstract Mono<T> getByParentAsync(ParentT parentResource, String name)

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

abstract Mono<T> getByParentAsync(String resourceGroup, String parentName, String name)

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

Method Details

getByParent

public abstract T getByParent(ParentT parentResource, String name)

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

Parameters:

parentResource - the instance of parent resource
name - the name of resource

Returns:

an immutable representation of the resource

getByParent

public abstract T getByParent(String resourceGroup, String parentName, String name)

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

Parameters:

resourceGroup - the name of resource group
parentName - the name of parent resource
name - the name of resource

Returns:

an immutable representation of the resource

getByParentAsync

public abstract Mono<T> getByParentAsync(ParentT parentResource, String name)

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

Parameters:

parentResource - the instance of parent resource.
name - the name of resource.

Returns:

a Mono that emits the found resource asynchronously.

getByParentAsync

public abstract Mono<T> getByParentAsync(String resourceGroup, String parentName, String name)

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

Parameters:

resourceGroup - the name of resource group
parentName - the name of parent resource
name - the name of resource

Returns:

a Mono that emits the found resource asynchronously.

Applies to