public interface Services
Resource collection API of Services.
  • Method Details

    • delete

      void delete(String resourceGroupName, String mobileNetworkName, String serviceName)
      Deletes the specified service.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      mobileNetworkName - The name of the mobile network.
      serviceName - The name of the service. You must not use any of the following reserved strings - `default`, `requested` or `service`.
      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 serviceName, com.azure.core.util.Context context)
      Deletes the specified service.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      mobileNetworkName - The name of the mobile network.
      serviceName - The name of the service. You must not use any of the following reserved strings - `default`, `requested` or `service`.
      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

      Service get(String resourceGroupName, String mobileNetworkName, String serviceName)
      Gets information about the specified service.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      mobileNetworkName - The name of the mobile network.
      serviceName - The name of the service. You must not use any of the following reserved strings - `default`, `requested` or `service`.
      Returns:
      information about the specified service.
      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<Service> getWithResponse(String resourceGroupName, String mobileNetworkName, String serviceName, com.azure.core.util.Context context)
      Gets information about the specified service.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      mobileNetworkName - The name of the mobile network.
      serviceName - The name of the service. You must not use any of the following reserved strings - `default`, `requested` or `service`.
      context - The context to associate with this operation.
      Returns:
      information about the specified service 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<Service> listByMobileNetwork(String resourceGroupName, String mobileNetworkName)
      Gets all the services 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 services 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<Service> listByMobileNetwork(String resourceGroupName, String mobileNetworkName, com.azure.core.util.Context context)
      Gets all the services 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 services 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

      Service getById(String id)
      Gets information about the specified service.
      Parameters:
      id - the resource ID.
      Returns:
      information about the specified service 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<Service> getByIdWithResponse(String id, com.azure.core.util.Context context)
      Gets information about the specified service.
      Parameters:
      id - the resource ID.
      context - The context to associate with this operation.
      Returns:
      information about the specified service 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 service.
      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 service.
      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 Service resource.
      Parameters:
      name - resource name.
      Returns:
      the first stage of the new Service definition.