Interface SimPolicies
public interface SimPolicies
Resource collection API of SimPolicies.
-
Method Summary
Modifier and TypeMethodDescriptionBegins definition for a new SimPolicy resource.void
Deletes the specified SIM policy.void
delete
(String resourceGroupName, String mobileNetworkName, String simPolicyName, com.azure.core.util.Context context) Deletes the specified SIM policy.void
deleteById
(String id) Deletes the specified SIM policy.void
deleteByIdWithResponse
(String id, com.azure.core.util.Context context) Deletes the specified SIM policy.Gets information about the specified SIM policy.Gets information about the specified SIM policy.com.azure.core.http.rest.Response<SimPolicy>
getByIdWithResponse
(String id, com.azure.core.util.Context context) Gets information about the specified SIM policy.com.azure.core.http.rest.Response<SimPolicy>
getWithResponse
(String resourceGroupName, String mobileNetworkName, String simPolicyName, com.azure.core.util.Context context) Gets information about the specified SIM policy.com.azure.core.http.rest.PagedIterable<SimPolicy>
listByMobileNetwork
(String resourceGroupName, String mobileNetworkName) Gets all the SIM policies in a mobile network.com.azure.core.http.rest.PagedIterable<SimPolicy>
listByMobileNetwork
(String resourceGroupName, String mobileNetworkName, com.azure.core.util.Context context) Gets all the SIM policies in a mobile network.
-
Method Details
-
delete
Deletes the specified SIM policy.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.mobileNetworkName
- The name of the mobile network.simPolicyName
- The name of the SIM policy.- 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 mobileNetworkName, String simPolicyName, com.azure.core.util.Context context) Deletes the specified SIM policy.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.mobileNetworkName
- The name of the mobile network.simPolicyName
- The name of the SIM policy.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.
-
get
Gets information about the specified SIM policy.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.mobileNetworkName
- The name of the mobile network.simPolicyName
- The name of the SIM policy.- Returns:
- information about the specified SIM policy.
- 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<SimPolicy> getWithResponse(String resourceGroupName, String mobileNetworkName, String simPolicyName, com.azure.core.util.Context context) Gets information about the specified SIM policy.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.mobileNetworkName
- The name of the mobile network.simPolicyName
- The name of the SIM policy.context
- The context to associate with this operation.- Returns:
- information about the specified SIM policy 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.
-
listByMobileNetwork
com.azure.core.http.rest.PagedIterable<SimPolicy> listByMobileNetwork(String resourceGroupName, String mobileNetworkName) Gets all the SIM policies in a mobile network.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.mobileNetworkName
- The name of the mobile network.- Returns:
- all the SIM policies in a mobile network 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.
-
listByMobileNetwork
com.azure.core.http.rest.PagedIterable<SimPolicy> listByMobileNetwork(String resourceGroupName, String mobileNetworkName, com.azure.core.util.Context context) Gets all the SIM policies in a mobile network.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.mobileNetworkName
- The name of the mobile network.context
- The context to associate with this operation.- Returns:
- all the SIM policies in a mobile network 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.
-
getById
Gets information about the specified SIM policy.- Parameters:
id
- the resource ID.- Returns:
- information about the specified SIM policy 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<SimPolicy> getByIdWithResponse(String id, com.azure.core.util.Context context) Gets information about the specified SIM policy.- Parameters:
id
- the resource ID.context
- The context to associate with this operation.- Returns:
- information about the specified SIM policy 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
Deletes the specified SIM policy.- 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
Deletes the specified SIM policy.- 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 SimPolicy resource.- Parameters:
name
- resource name.- Returns:
- the first stage of the new SimPolicy definition.
-