QueryPacks Interface

public interface QueryPacks

Resource collection API of QueryPacks.

Method Summary

Modifier and Type Method and Description
abstract Blank define(String name)

Begins definition for a new LogAnalyticsQueryPack resource.

abstract void deleteById(String id)

Deletes a Log Analytics QueryPack.

abstract Response<Void> deleteByIdWithResponse(String id, Context context)

Deletes a Log Analytics QueryPack.

abstract void deleteByResourceGroup(String resourceGroupName, String queryPackName)

Deletes a Log Analytics QueryPack.

abstract Response<Void> deleteWithResponse(String resourceGroupName, String queryPackName, Context context)

Deletes a Log Analytics QueryPack.

abstract LogAnalyticsQueryPack getById(String id)

Returns a Log Analytics QueryPack.

abstract Response<LogAnalyticsQueryPack> getByIdWithResponse(String id, Context context)

Returns a Log Analytics QueryPack.

abstract LogAnalyticsQueryPack getByResourceGroup(String resourceGroupName, String queryPackName)

Returns a Log Analytics QueryPack.

abstract Response<LogAnalyticsQueryPack> getByResourceGroupWithResponse(String resourceGroupName, String queryPackName, Context context)

Returns a Log Analytics QueryPack.

abstract PagedIterable<LogAnalyticsQueryPack> list()

Gets a list of all Log Analytics QueryPacks within a subscription.

abstract PagedIterable<LogAnalyticsQueryPack> list(Context context)

Gets a list of all Log Analytics QueryPacks within a subscription.

abstract PagedIterable<LogAnalyticsQueryPack> listByResourceGroup(String resourceGroupName)

Gets a list of Log Analytics QueryPacks within a resource group.

abstract PagedIterable<LogAnalyticsQueryPack> listByResourceGroup(String resourceGroupName, Context context)

Gets a list of Log Analytics QueryPacks within a resource group.

Method Details

define

public abstract LogAnalyticsQueryPack.DefinitionStages.Blank define(String name)

Begins definition for a new LogAnalyticsQueryPack resource.

Parameters:

name - resource name.

Returns:

the first stage of the new LogAnalyticsQueryPack definition.

deleteById

public abstract void deleteById(String id)

Deletes a Log Analytics QueryPack.

Parameters:

id - the resource ID.

deleteByIdWithResponse

public abstract Response deleteByIdWithResponse(String id, Context context)

Deletes a Log Analytics QueryPack.

Parameters:

id - the resource ID.
context - The context to associate with this operation.

Returns:

deleteByResourceGroup

public abstract void deleteByResourceGroup(String resourceGroupName, String queryPackName)

Deletes a Log Analytics QueryPack.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
queryPackName - The name of the Log Analytics QueryPack resource.

deleteWithResponse

public abstract Response deleteWithResponse(String resourceGroupName, String queryPackName, Context context)

Deletes a Log Analytics QueryPack.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
queryPackName - The name of the Log Analytics QueryPack resource.
context - The context to associate with this operation.

Returns:

getById

public abstract LogAnalyticsQueryPack getById(String id)

Returns a Log Analytics QueryPack.

Parameters:

id - the resource ID.

Returns:

an Log Analytics QueryPack definition along with Response<T>.

getByIdWithResponse

public abstract Response getByIdWithResponse(String id, Context context)

Returns a Log Analytics QueryPack.

Parameters:

id - the resource ID.
context - The context to associate with this operation.

Returns:

an Log Analytics QueryPack definition along with Response<T>.

getByResourceGroup

public abstract LogAnalyticsQueryPack getByResourceGroup(String resourceGroupName, String queryPackName)

Returns a Log Analytics QueryPack.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
queryPackName - The name of the Log Analytics QueryPack resource.

Returns:

an Log Analytics QueryPack definition.

getByResourceGroupWithResponse

public abstract Response getByResourceGroupWithResponse(String resourceGroupName, String queryPackName, Context context)

Returns a Log Analytics QueryPack.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
queryPackName - The name of the Log Analytics QueryPack resource.
context - The context to associate with this operation.

Returns:

an Log Analytics QueryPack definition along with Response<T>.

list

public abstract PagedIterable list()

Gets a list of all Log Analytics QueryPacks within a subscription.

Returns:

a list of all Log Analytics QueryPacks within a subscription as paginated response with PagedIterable<T>.

list

public abstract PagedIterable list(Context context)

Gets a list of all Log Analytics QueryPacks within a subscription.

Parameters:

context - The context to associate with this operation.

Returns:

a list of all Log Analytics QueryPacks within a subscription as paginated response with PagedIterable<T>.

listByResourceGroup

public abstract PagedIterable listByResourceGroup(String resourceGroupName)

Gets a list of Log Analytics QueryPacks within a resource group.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.

Returns:

a list of Log Analytics QueryPacks within a resource group as paginated response with PagedIterable<T>.

listByResourceGroup

public abstract PagedIterable listByResourceGroup(String resourceGroupName, Context context)

Gets a list of Log Analytics QueryPacks within a resource group.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
context - The context to associate with this operation.

Returns:

a list of Log Analytics QueryPacks within a resource group as paginated response with PagedIterable<T>.

Applies to

Azure SDK for Java

Preview