Interface ServicesClient


  • public interface ServicesClient
    An instance of this class provides access to all the operations defined in ServicesClient.
    • Method Detail

      • beginDelete

        com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,​Void> beginDelete​(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`.
        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 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.
        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

        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

        ServiceInner 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<ServiceInner> 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.
      • beginCreateOrUpdate

        com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ServiceInner>,​ServiceInner> beginCreateOrUpdate​(String resourceGroupName,
                                                                                                                                                  String mobileNetworkName,
                                                                                                                                                  String serviceName,
                                                                                                                                                  ServiceInner parameters)
        Creates or updates a 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`.
        parameters - Parameters supplied to the create or update service operation.
        Returns:
        the SyncPoller for polling of service 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<ServiceInner>,​ServiceInner> beginCreateOrUpdate​(String resourceGroupName,
                                                                                                                                                  String mobileNetworkName,
                                                                                                                                                  String serviceName,
                                                                                                                                                  ServiceInner parameters,
                                                                                                                                                  com.azure.core.util.Context context)
        Creates or updates a 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`.
        parameters - Parameters supplied to the create or update service operation.
        context - The context to associate with this operation.
        Returns:
        the SyncPoller for polling of service 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

        ServiceInner createOrUpdate​(String resourceGroupName,
                                    String mobileNetworkName,
                                    String serviceName,
                                    ServiceInner parameters)
        Creates or updates a 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`.
        parameters - Parameters supplied to the create or update service operation.
        Returns:
        service 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

        ServiceInner createOrUpdate​(String resourceGroupName,
                                    String mobileNetworkName,
                                    String serviceName,
                                    ServiceInner parameters,
                                    com.azure.core.util.Context context)
        Creates or updates a 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`.
        parameters - Parameters supplied to the create or update service operation.
        context - The context to associate with this operation.
        Returns:
        service 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.
      • updateTags

        ServiceInner updateTags​(String resourceGroupName,
                                String mobileNetworkName,
                                String serviceName,
                                TagsObject parameters)
        Update service tags.
        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`.
        parameters - Parameters supplied to update service tags.
        Returns:
        service 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.
      • updateTagsWithResponse

        com.azure.core.http.rest.Response<ServiceInner> updateTagsWithResponse​(String resourceGroupName,
                                                                               String mobileNetworkName,
                                                                               String serviceName,
                                                                               TagsObject parameters,
                                                                               com.azure.core.util.Context context)
        Update service tags.
        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`.
        parameters - Parameters supplied to update service tags.
        context - The context to associate with this operation.
        Returns:
        service resource 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<ServiceInner> 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<ServiceInner> 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.