Interface TrafficControllerInterfaces
public interface TrafficControllerInterfaces
Resource collection API of TrafficControllerInterfaces.
-
Method Summary
Modifier and TypeMethodDescriptionBegins definition for a new TrafficController resource.void
Delete a TrafficController.void
deleteById
(String id) Delete a TrafficController.void
deleteByIdWithResponse
(String id, com.azure.core.util.Context context) Delete a TrafficController.void
deleteByResourceGroup
(String resourceGroupName, String trafficControllerName) Delete a TrafficController.Get a TrafficController.com.azure.core.http.rest.Response<TrafficController>
getByIdWithResponse
(String id, com.azure.core.util.Context context) Get a TrafficController.getByResourceGroup
(String resourceGroupName, String trafficControllerName) Get a TrafficController.com.azure.core.http.rest.Response<TrafficController>
getByResourceGroupWithResponse
(String resourceGroupName, String trafficControllerName, com.azure.core.util.Context context) Get a TrafficController.com.azure.core.http.rest.PagedIterable<TrafficController>
list()
List TrafficController resources by subscription ID.com.azure.core.http.rest.PagedIterable<TrafficController>
list
(com.azure.core.util.Context context) List TrafficController resources by subscription ID.com.azure.core.http.rest.PagedIterable<TrafficController>
listByResourceGroup
(String resourceGroupName) List TrafficController resources by resource group.com.azure.core.http.rest.PagedIterable<TrafficController>
listByResourceGroup
(String resourceGroupName, com.azure.core.util.Context context) List TrafficController resources by resource group.
-
Method Details
-
list
com.azure.core.http.rest.PagedIterable<TrafficController> list()List TrafficController resources by subscription ID.- Returns:
- the response of a TrafficController list operation as paginated response with
PagedIterable
. - Throws:
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
List TrafficController resources by subscription ID.- Parameters:
context
- The context to associate with this operation.- Returns:
- the response of a TrafficController list operation 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.
-
listByResourceGroup
com.azure.core.http.rest.PagedIterable<TrafficController> listByResourceGroup(String resourceGroupName) List TrafficController resources by resource group.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.- Returns:
- the response of a TrafficController list operation 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.
-
listByResourceGroup
com.azure.core.http.rest.PagedIterable<TrafficController> listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context) List TrafficController resources by resource group.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.context
- The context to associate with this operation.- Returns:
- the response of a TrafficController list operation 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.
-
getByResourceGroupWithResponse
com.azure.core.http.rest.Response<TrafficController> getByResourceGroupWithResponse(String resourceGroupName, String trafficControllerName, com.azure.core.util.Context context) Get a TrafficController.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.trafficControllerName
- traffic controller name for path.context
- The context to associate with this operation.- Returns:
- a TrafficController 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.
-
getByResourceGroup
Get a TrafficController.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.trafficControllerName
- traffic controller name for path.- Returns:
- a TrafficController.
- 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.
-
deleteByResourceGroup
Delete a TrafficController.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.trafficControllerName
- traffic controller name for path.- 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 trafficControllerName, com.azure.core.util.Context context) Delete a TrafficController.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.trafficControllerName
- traffic controller name for path.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.
-
getById
Get a TrafficController.- Parameters:
id
- the resource ID.- Returns:
- a TrafficController 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.
-
getByIdWithResponse
com.azure.core.http.rest.Response<TrafficController> getByIdWithResponse(String id, com.azure.core.util.Context context) Get a TrafficController.- Parameters:
id
- the resource ID.context
- The context to associate with this operation.- Returns:
- a TrafficController 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.
-
deleteById
Delete a TrafficController.- Parameters:
id
- the resource ID.- 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.
-
deleteByIdWithResponse
Delete a TrafficController.- Parameters:
id
- the resource ID.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.
-
define
Begins definition for a new TrafficController resource.- Parameters:
name
- resource name.- Returns:
- the first stage of the new TrafficController definition.
-