Share via


CollectorPolicies Interface

public interface CollectorPolicies

Resource collection API of CollectorPolicies.

Method Summary

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

Begins definition for a new CollectorPolicy resource.

abstract void delete(String resourceGroupName, String azureTrafficCollectorName, String collectorPolicyName)

Deletes a specified Collector Policy resource.

abstract void delete(String resourceGroupName, String azureTrafficCollectorName, String collectorPolicyName, Context context)

Deletes a specified Collector Policy resource.

abstract void deleteById(String id)

Deletes a specified Collector Policy resource.

abstract void deleteByIdWithResponse(String id, Context context)

Deletes a specified Collector Policy resource.

abstract CollectorPolicy get(String resourceGroupName, String azureTrafficCollectorName, String collectorPolicyName)

Gets the collector policy in a specified Traffic Collector.

abstract CollectorPolicy getById(String id)

Gets the collector policy in a specified Traffic Collector.

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

Gets the collector policy in a specified Traffic Collector.

abstract Response<CollectorPolicy> getWithResponse(String resourceGroupName, String azureTrafficCollectorName, String collectorPolicyName, Context context)

Gets the collector policy in a specified Traffic Collector.

abstract PagedIterable<CollectorPolicy> list(String resourceGroupName, String azureTrafficCollectorName)

Return list of Collector policies in a Azure Traffic Collector.

abstract PagedIterable<CollectorPolicy> list(String resourceGroupName, String azureTrafficCollectorName, Context context)

Return list of Collector policies in a Azure Traffic Collector.

Method Details

define

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

Begins definition for a new CollectorPolicy resource.

Parameters:

name - resource name.

Returns:

the first stage of the new CollectorPolicy definition.

delete

public abstract void delete(String resourceGroupName, String azureTrafficCollectorName, String collectorPolicyName)

Deletes a specified Collector Policy resource.

Parameters:

resourceGroupName - The name of the resource group.
azureTrafficCollectorName - Azure Traffic Collector name.
collectorPolicyName - Collector Policy Name.

delete

public abstract void delete(String resourceGroupName, String azureTrafficCollectorName, String collectorPolicyName, Context context)

Deletes a specified Collector Policy resource.

Parameters:

resourceGroupName - The name of the resource group.
azureTrafficCollectorName - Azure Traffic Collector name.
collectorPolicyName - Collector Policy Name.
context - The context to associate with this operation.

deleteById

public abstract void deleteById(String id)

Deletes a specified Collector Policy resource.

Parameters:

id - the resource ID.

deleteByIdWithResponse

public abstract void deleteByIdWithResponse(String id, Context context)

Deletes a specified Collector Policy resource.

Parameters:

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

get

public abstract CollectorPolicy get(String resourceGroupName, String azureTrafficCollectorName, String collectorPolicyName)

Gets the collector policy in a specified Traffic Collector.

Parameters:

resourceGroupName - The name of the resource group.
azureTrafficCollectorName - Azure Traffic Collector name.
collectorPolicyName - Collector Policy Name.

Returns:

the collector policy in a specified Traffic Collector.

getById

public abstract CollectorPolicy getById(String id)

Gets the collector policy in a specified Traffic Collector.

Parameters:

id - the resource ID.

Returns:

the collector policy in a specified Traffic Collector along with Response<T>.

getByIdWithResponse

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

Gets the collector policy in a specified Traffic Collector.

Parameters:

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

Returns:

the collector policy in a specified Traffic Collector along with Response<T>.

getWithResponse

public abstract Response<CollectorPolicy> getWithResponse(String resourceGroupName, String azureTrafficCollectorName, String collectorPolicyName, Context context)

Gets the collector policy in a specified Traffic Collector.

Parameters:

resourceGroupName - The name of the resource group.
azureTrafficCollectorName - Azure Traffic Collector name.
collectorPolicyName - Collector Policy Name.
context - The context to associate with this operation.

Returns:

the collector policy in a specified Traffic Collector along with Response<T>.

list

public abstract PagedIterable<CollectorPolicy> list(String resourceGroupName, String azureTrafficCollectorName)

Return list of Collector policies in a Azure Traffic Collector.

Parameters:

resourceGroupName - The name of the resource group.
azureTrafficCollectorName - Azure Traffic Collector name.

Returns:

response for the ListCollectorPolicies API service call as paginated response with PagedIterable<T>.

list

public abstract PagedIterable<CollectorPolicy> list(String resourceGroupName, String azureTrafficCollectorName, Context context)

Return list of Collector policies in a Azure Traffic Collector.

Parameters:

resourceGroupName - The name of the resource group.
azureTrafficCollectorName - Azure Traffic Collector name.
context - The context to associate with this operation.

Returns:

response for the ListCollectorPolicies API service call as paginated response with PagedIterable<T>.

Applies to