Interface CollectorPoliciesClient
public interface CollectorPoliciesClient
An instance of this class provides access to all the operations defined in CollectorPoliciesClient.
-
Method Summary
Modifier and TypeMethodDescriptioncom.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<CollectorPolicyInner>,
CollectorPolicyInner> beginCreateOrUpdate
(String resourceGroupName, String azureTrafficCollectorName, String collectorPolicyName, CollectorPolicyInner parameters) Creates or updates a Collector Policy resource.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<CollectorPolicyInner>,
CollectorPolicyInner> beginCreateOrUpdate
(String resourceGroupName, String azureTrafficCollectorName, String collectorPolicyName, CollectorPolicyInner parameters, com.azure.core.util.Context context) Creates or updates a Collector Policy resource.beginDelete
(String resourceGroupName, String azureTrafficCollectorName, String collectorPolicyName) Deletes a specified Collector Policy resource.beginDelete
(String resourceGroupName, String azureTrafficCollectorName, String collectorPolicyName, com.azure.core.util.Context context) Deletes a specified Collector Policy resource.createOrUpdate
(String resourceGroupName, String azureTrafficCollectorName, String collectorPolicyName, CollectorPolicyInner parameters) Creates or updates a Collector Policy resource.createOrUpdate
(String resourceGroupName, String azureTrafficCollectorName, String collectorPolicyName, CollectorPolicyInner parameters, com.azure.core.util.Context context) Creates or updates a Collector Policy resource.void
Deletes a specified Collector Policy resource.void
delete
(String resourceGroupName, String azureTrafficCollectorName, String collectorPolicyName, com.azure.core.util.Context context) Deletes a specified Collector Policy resource.Gets the collector policy in a specified Traffic Collector.com.azure.core.http.rest.Response<CollectorPolicyInner>
getWithResponse
(String resourceGroupName, String azureTrafficCollectorName, String collectorPolicyName, com.azure.core.util.Context context) Gets the collector policy in a specified Traffic Collector.com.azure.core.http.rest.PagedIterable<CollectorPolicyInner>
Return list of Collector policies in a Azure Traffic Collector.com.azure.core.http.rest.PagedIterable<CollectorPolicyInner>
list
(String resourceGroupName, String azureTrafficCollectorName, com.azure.core.util.Context context) Return list of Collector policies in a Azure Traffic Collector.
-
Method Details
-
list
com.azure.core.http.rest.PagedIterable<CollectorPolicyInner> 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
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
list
com.azure.core.http.rest.PagedIterable<CollectorPolicyInner> list(String resourceGroupName, String azureTrafficCollectorName, com.azure.core.util.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
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
get
CollectorPolicyInner 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.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
getWithResponse
com.azure.core.http.rest.Response<CollectorPolicyInner> getWithResponse(String resourceGroupName, String azureTrafficCollectorName, String collectorPolicyName, com.azure.core.util.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
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
beginCreateOrUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<CollectorPolicyInner>,CollectorPolicyInner> beginCreateOrUpdate(String resourceGroupName, String azureTrafficCollectorName, String collectorPolicyName, CollectorPolicyInner parameters) Creates or updates a Collector Policy resource.- Parameters:
resourceGroupName
- The name of the resource group.azureTrafficCollectorName
- Azure Traffic Collector name.collectorPolicyName
- Collector Policy Name.parameters
- The parameters to provide for the created Collector Policy.- Returns:
- the
SyncPoller
for polling of collector policy resource. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
beginCreateOrUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<CollectorPolicyInner>,CollectorPolicyInner> beginCreateOrUpdate(String resourceGroupName, String azureTrafficCollectorName, String collectorPolicyName, CollectorPolicyInner parameters, com.azure.core.util.Context context) Creates or updates a Collector Policy resource.- Parameters:
resourceGroupName
- The name of the resource group.azureTrafficCollectorName
- Azure Traffic Collector name.collectorPolicyName
- Collector Policy Name.parameters
- The parameters to provide for the created Collector Policy.context
- The context to associate with this operation.- Returns:
- the
SyncPoller
for polling of collector policy resource. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
createOrUpdate
CollectorPolicyInner createOrUpdate(String resourceGroupName, String azureTrafficCollectorName, String collectorPolicyName, CollectorPolicyInner parameters) Creates or updates a Collector Policy resource.- Parameters:
resourceGroupName
- The name of the resource group.azureTrafficCollectorName
- Azure Traffic Collector name.collectorPolicyName
- Collector Policy Name.parameters
- The parameters to provide for the created Collector Policy.- Returns:
- collector policy resource.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
createOrUpdate
CollectorPolicyInner createOrUpdate(String resourceGroupName, String azureTrafficCollectorName, String collectorPolicyName, CollectorPolicyInner parameters, com.azure.core.util.Context context) Creates or updates a Collector Policy resource.- Parameters:
resourceGroupName
- The name of the resource group.azureTrafficCollectorName
- Azure Traffic Collector name.collectorPolicyName
- Collector Policy Name.parameters
- The parameters to provide for the created Collector Policy.context
- The context to associate with this operation.- Returns:
- collector policy resource.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
beginDelete
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(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.- Returns:
- the
SyncPoller
for polling of long-running operation. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
beginDelete
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(String resourceGroupName, String azureTrafficCollectorName, String collectorPolicyName, com.azure.core.util.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.- Returns:
- the
SyncPoller
for polling of long-running operation. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
delete
Deletes a specified Collector Policy resource.- Parameters:
resourceGroupName
- The name of the resource group.azureTrafficCollectorName
- Azure Traffic Collector name.collectorPolicyName
- Collector Policy Name.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
delete
void delete(String resourceGroupName, String azureTrafficCollectorName, String collectorPolicyName, com.azure.core.util.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.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-