Interface SimPolicies
-
public interface SimPolicies
Resource collection API of SimPolicies.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SimPolicy.DefinitionStages.Blank
define(String name)
Begins definition for a new SimPolicy resource.void
delete(String resourceGroupName, String mobileNetworkName, String simPolicyName)
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.SimPolicy
get(String resourceGroupName, String mobileNetworkName, String simPolicyName)
Gets information about the specified sim policy.SimPolicy
getById(String id)
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 simPolicies 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 simPolicies in a mobile network.
-
-
-
Method Detail
-
delete
void delete(String resourceGroupName, String mobileNetworkName, String simPolicyName)
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
SimPolicy get(String resourceGroupName, String mobileNetworkName, String simPolicyName)
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 simPolicies 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 simPolicies 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 simPolicies 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 simPolicies 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
SimPolicy getById(String id)
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
void deleteById(String id)
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
void deleteByIdWithResponse(String id, com.azure.core.util.Context context)
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
SimPolicy.DefinitionStages.Blank define(String name)
Begins definition for a new SimPolicy resource.- Parameters:
name
- resource name.- Returns:
- the first stage of the new SimPolicy definition.
-
-