共用方式為


SupportsGettingByResourceGroup<T> Interface

Type Parameters

T

the type of the resource to get.

public interface SupportsGettingByResourceGroup

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

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

Method Summary

Modifier and Type Method and Description
abstract T getByResourceGroup(String resourceGroupName, String name)

Gets the information about a resource from Azure based on the resource name and the name of its resource group.

abstract rx.Observable<T> getByResourceGroupAsync(String resourceGroupName, String name)

Gets the information about a resource from Azure based on the resource name and the name of its resource group.

abstract com.microsoft.rest.ServiceFuture<T> getByResourceGroupAsync(String resourceGroupName, String name, ServiceCallback<T> callback)

Gets the information about a resource from Azure based on the resource name and the name of its resource group.

Method Details

getByResourceGroup

public abstract T getByResourceGroup(String resourceGroupName, String name)

Gets the information about a resource from Azure based on the resource name and the name of its resource group.

Parameters:

resourceGroupName - the name of the resource group the resource is in
name - the name of the resource. (Note, this is not the ID)

Returns:

an immutable representation of the resource

getByResourceGroupAsync

public abstract Observable getByResourceGroupAsync(String resourceGroupName, String name)

Gets the information about a resource from Azure based on the resource name and the name of its resource group.

Parameters:

resourceGroupName - the name of the resource group the resource is in
name - the name of the resource. (Note, this is not the ID)

Returns:

Observable to an immutable representation of the resource

getByResourceGroupAsync

public abstract ServiceFuture getByResourceGroupAsync(String resourceGroupName, String name, ServiceCallback callback)

Gets the information about a resource from Azure based on the resource name and the name of its resource group.

Parameters:

resourceGroupName - the name of the resource group the resource is in
name - the name of the resource. (Note, this is not the ID)
callback - the callback to call on success or failure

Returns:

Observable to an immutable representation of the resource

Applies to